/* ============================================================
   PAGE « NOS GARANTIES »  (route page_garantie) — v2
   Mobile-first. Réutilise base.css (typo/couleurs/.container),
   breadcrumb.css, responsive-tablet.css. Données depuis la BDD.
   Le bloc « En savoir plus » est un module partagé :
   markup `front/fragment/apropos_savoir_plus.html.twig`
   + styles `v2/package/css/apropos.css`.
   Figma desktop : 942:3187   |   Figma mobile : 942:3321
============================================================ */

/* ------------------------------------------------------------
   GOUTTIÈRES — aligne .container (base.css) sur la gouttière du
   header (30 mobile / 40 tablette / 100 desktop), contenu 1166,
   centré au-delà de 1366. (miroir responsable.css / finding.css)
------------------------------------------------------------ */
@media (min-width: 769px) and (max-width: 1100px) {
  .container { padding: 0 40px; max-width: 100%; }
}
@media (min-width: 1101px) {
  .container {
    max-width: min(1166px, calc(100% - 200px));
    margin-inline: auto;
    padding: 0;
  }
}

/* ------------------------------------------------------------
   HEADER — barre opaque (beige) en flux, dark-on-light.
   topbar.css garde .header-transparant en display:none (sticky au
   scroll). On le passe en display:block ici : il pousse le contenu
   vers le bas (header 60px mobile / 100px desktop → plus de
   chevauchement du hero). Corrections pixel Figma (942:3188).
------------------------------------------------------------ */
.header-transparant { display: block; }
@media (min-width: 1100px) {
  .header-transparant { display: block; }

  .header-transparant .menu,
  .header-transparant .destinations-menu { color: #0f1b24; }
  .header-transparant .menu { margin-right: 0; }
  .header-transparant .topbar_top .image-logo { width: 373px; height: 27px; }
  .header-transparant .btn-quote_request { white-space: nowrap; }

  .header-transparant .right-menu { align-items: center; }
  .header-transparant .right-menu > * { flex-shrink: 0; }
  .header-transparant .right-menu > a:last-child {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }
  .header-transparant .right-menu > a:last-child img {
    width: 20px;
    height: 20px;
    display: block;
  }
}

/* ============================================================
   1. HERO  (visuel de couverture + fil d'ariane)
   Figma : header desktop 942:3203 (pt40 pb20, gap20)
           header mobile  942:3340 (pt20 pb30, gap30)
============================================================ */
.garantie-hero {
  background-color: #efece9;
  padding: 20px 0 30px;             /* mobile : pt-20 pb-30 */
}
.garantie-hero .container {
  display: flex;
  flex-direction: column;
  gap: 30px;                        /* mobile : visuel ↔ ariane */
}
.garantie-hero__image {
  width: 100%;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
}
.garantie-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.garantie-hero__breadcrumb { margin: 0; }
.garantie-hero__breadcrumb .sep { color: #0f1b24; margin: 0 4px; }

@media (min-width: 769px) {
  .garantie-hero {
    padding: 40px 0 20px;           /* desktop : pt-40 pb-20 */
  }
  .garantie-hero .container { gap: 20px; }
}

/* ============================================================
   2. ÉDITO  (titre « Nos garanties » + 3 fiches image/texte)
   Figma : bloc desktop 942:3207 (pt40 pb80, colonne 764 centrée, gap90)
           bloc mobile  942:3343 (py40, gap40, px30)
============================================================ */
.garantie-edito {
  background-color: #efece9;
  padding: 40px 0;                  /* mobile : py-40 */
}

/* Colonne de contenu : pleine largeur en mobile, 764 centrée en desktop
   (Figma px-301 dans 1366). gap titre ↔ fiches : 40 mobile / 90 desktop. */
.garantie-edito__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.garantie-edito__title {
  font-family: 'Asul', sans-serif;
  font-weight: 400;
  font-size: 35px;                  /* mobile */
  line-height: 1;
  color: #0f1b24;
  text-align: center;
  width: 100%;
}

/* Liste des fiches (gap 60 entre chaque bloc image/texte). */
.garantie-fiches {
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
}

/* Une fiche : image empilée au-dessus du texte (mobile), côte à côte (desktop). */
.garantie-fiche {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

/* Visuel : taille fixe 330×212, sans redimensionnement (mobile comme desktop).
   Fond gris (#5f5f5f) visible si l'image est absente (cf. maquette).
   flex-shrink:0 → ne rétrécit pas dans la rangée desktop. */
.garantie-fiche__image {
  width: 330px;
  height: 212px;
  border-radius: 15px;
  overflow: hidden;
  background-color: #5f5f5f;
  flex-shrink: 0;
}
.garantie-fiche__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* Colonne texte (titre ↔ corps : gap 20). */
.garantie-fiche__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.garantie-fiche__title {
  font-family: 'Asul', sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 33px;                /* mobile */
  color: #0f1b24;
}

/* Corps de la fiche (contenu BO — texteN|raw). Le reset global aplatit les
   titres et retire les marges des <p> : on rétablit la typo Body M et un
   interligne de 10px entre paragraphes (cf. liste « Nos assurances »). */
.garantie-fiche__body {
  color: #0f1b24;
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 24px;
  text-align: left;
}
/* Le contenu BO porte un `style="text-align: justify"` inline sur les <p> :
   on force l'alignement à gauche (conforme à la maquette) via !important. */
.garantie-fiche__body,
.garantie-fiche__body p {
  text-align: left !important;
}
.garantie-fiche__body p {
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 24px;
  margin: 0;
}
.garantie-fiche__body p + p { margin-top: 10px; }
.garantie-fiche__body ul { list-style: disc; padding-left: 1.2em; }
.garantie-fiche__body a { color: #9f9a7c; text-decoration: underline; }

@media (min-width: 769px) {
  .garantie-edito {
    padding: 40px 0 80px;           /* desktop : pt-40 pb-80 */
  }
  .garantie-edito__inner {
    gap: 90px;
    max-width: 764px;               /* Figma px-301 dans 1366 → colonne centrée */
    margin-inline: auto;
  }
  .garantie-edito__title { font-size: 50px; }

  /* Image à gauche (330px fixe, définie plus haut), texte à droite (fluide). */
  .garantie-fiche {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
  .garantie-fiche__text { flex: 1 1 0; min-width: 0; }
  .garantie-fiche__title { line-height: 31px; }
}

/* ============================================================
   3. EN SAVOIR PLUS — module partagé « À propos ».
   Markup : front/fragment/apropos_savoir_plus.html.twig
   Styles : v2/package/css/apropos.css (chargé par la page).
============================================================ */
