/* Cartes accordéon (même design que « Des garanties reconnues » de l'accueil) */
/* ─── GARANTIES : cartes accordéon (1 ouverte, 3 fermées) ─── */
.gar-strip { --closed: 72px; --gap: 12px; display: flex; gap: var(--gap); height: 280px; margin-top: 8px; }
.gar-card {
  position: relative; flex: none; width: var(--closed); min-width: 0; padding: 0; cursor: pointer;
  border: 1px solid var(--border); border-radius: 36px; overflow: hidden;
  text-align: left; font: inherit; color: var(--text); background: #fff;
  box-shadow: 0 10px 26px rgba(26,41,40,.06);
  transition: width .6s cubic-bezier(.65,0,.35,1), background-color .5s ease, border-color .5s ease, border-radius .6s ease;
}
.gar-card.is-open {
  width: calc(100% - (var(--n, 4) - 1) * (var(--closed) + var(--gap)));
  background: var(--teal); border-color: var(--teal); color: #fff; border-radius: 24px; cursor: default;
}
.gar-txt {
  position: absolute; top: 34px; left: 34px; width: 440px; max-width: calc(100% - 68px);
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.gar-card.is-open .gar-txt { opacity: 1; transform: none; transition: opacity .4s ease .35s, transform .4s ease .35s; }
.gar-title { font-family: var(--font-title); font-size: 28px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.gar-desc { font-family: var(--font-body); font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.82); }
.gar-ico {
  position: absolute; left: 11px; bottom: 11px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--off); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  transition: background .4s ease, color .4s ease, left .6s cubic-bezier(.65,0,.35,1);
}
.gar-ico svg { width: 22px; height: 22px; }
.gar-card.is-open .gar-ico { background: var(--orange); color: #fff; left: 24px; bottom: 24px; }
.gar-card:not(.is-open):hover { border-color: var(--teal-mid); }
.gar-card:not(.is-open):hover .gar-ico { background: var(--teal); color: #fff; }
.gar-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (max-width: 760px) {
  .gar-strip { flex-direction: column; height: auto; }
  .gar-card, .gar-card.is-open { width: 100%; height: 70px; border-radius: 35px; transition: height .5s cubic-bezier(.65,0,.35,1), background-color .4s ease, border-color .4s ease; }
  .gar-card.is-open { height: 250px; border-radius: 22px; }
  .gar-txt { top: 24px; left: 24px; max-width: calc(100% - 48px); }
  .gar-ico, .gar-card.is-open .gar-ico { left: 11px; bottom: 11px; }
  .gar-title { font-size: 22px; }
  .gar-desc { font-size: 14px; }
}


/* Variante orange (page SATIBAT Création) */
.gar-strip--orange .gar-card { border-color: rgba(241,90,41,.22); }
.gar-strip--orange .gar-ico { background: rgba(241,90,41,.10); color: var(--orange); }
.gar-strip--orange .gar-card.is-open { background: var(--orange); border-color: var(--orange); }
.gar-strip--orange .gar-card.is-open .gar-ico { background: #fff; color: var(--orange); }
.gar-strip--orange .gar-card.is-open .gar-desc { color: rgba(255,255,255,.9); }
.gar-strip--orange .gar-card:not(.is-open):hover { border-color: var(--orange); }
.gar-strip--orange .gar-card:not(.is-open):hover .gar-ico { background: var(--orange); color: #fff; }
.gar-strip--orange .gar-card:focus-visible { outline-color: var(--teal); }

/* Mobile : les cartes fermées affichent leur titre à côté de l'icône */
@media (max-width: 760px) {
  .gar-card:not(.is-open) .gar-txt { opacity: 1; top: 50%; left: 70px; max-width: calc(100% - 86px); transform: translateY(-50%); transition: opacity .3s ease; }
  .gar-card:not(.is-open) .gar-desc { display: none; }
  .gar-card:not(.is-open) .gar-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gar-card.is-open { height: auto; min-height: 230px; padding-bottom: 72px; }
  .gar-card.is-open .gar-txt { position: relative; top: 0; left: 0; padding: 24px 24px 0; max-width: none; width: auto; }
}

/* Icône en filigrane dans la carte ouverte */
.gar-big { position: absolute; right: -28px; bottom: -40px; width: 230px; height: 230px; color: rgba(255,255,255,.07); opacity: 0; transition: opacity .5s ease .2s; pointer-events: none; }
.gar-big svg { width: 100%; height: 100%; stroke-width: 1.2; }
.gar-card.is-open .gar-big { opacity: 1; }
.gar-txt, .gar-ico { z-index: 1; }
.gar-strip--orange .gar-big { color: rgba(255,255,255,.12); }
@media (max-width: 760px) { .gar-big { width: 170px; height: 170px; right: -20px; bottom: -30px; } }

/* Variante bleue (page SATIBAT Chape) : carte ouverte bleue, accents verts */
.gar-strip--blue .gar-card { border-color: rgba(66,105,178,.22); }
.gar-strip--blue .gar-ico { background: var(--blue-light); color: var(--blue); }
.gar-strip--blue .gar-card.is-open { background: var(--blue); border-color: var(--blue); }
.gar-strip--blue .gar-card.is-open .gar-ico { background: var(--teal); color: #fff; }
.gar-strip--blue .gar-card:not(.is-open):hover { border-color: var(--blue); }
.gar-strip--blue .gar-card:not(.is-open):hover .gar-ico { background: var(--blue); color: #fff; }
.gar-strip--blue .gar-big { color: rgba(255,255,255,.1); }
.gar-strip--blue .gar-card:focus-visible { outline-color: var(--teal); }
