/* Page « Personnalisation » */
.personnalisation {
  /* ---------- Textes communs ---------- */
  p {
    color: var(--gris-texte);
    line-height: 1.72;
    margin-bottom: 13px;
    font-size: 15px;
  }
  h2 {
    font-size: 19px;
    color: var(--noir);
    margin-bottom: 25px;
  }
  h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--noir);
  }
  h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--noir);
    margin: 18px 0 8px;
  }
  a {
    color: var(--orange);
  }
  .surtitre {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 6px;
  }
  .contenu {
    max-width: var(--max);
  }
  .entete {
    max-width: var(--max);
    margin-bottom: 30px;
    p {
      max-width: 620px;
      margin-top: 8px;
      line-height: 1.74;
    }
  }

  /* ---------- Listes à coches / à croix ---------- */
  .coches,
  .croix {
    list-style: none;
    li {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      font-size: 14px;
      color: var(--gris-texte);
      margin-bottom: 11px;
      line-height: 1.55;
    }
    li::before {
      font-weight: 700;
      flex-shrink: 0;
    }
  }
  .coches li::before {
    content: "\2713";
    color: var(--vert);
    font-weight: 800;
    margin-top: 1px;
  }
  .croix li::before {
    content: "\2715";
    color: var(--orange);
  }

  /* ---------- 1. Accroche ---------- */
  .accroche {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--c-surface);
    border-bottom: 1px solid var(--gris-bord);
    padding: 56px 22px 52px;

    h1 {
      margin-bottom: 14px;
      color: black;
      font-size: 29px;
    }
    .intro {
      font-size: 16px;
      max-width: 560px;
      line-height: 1.78;
      margin-bottom: 22px;
    }
    .pastilles {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .pastille {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 600;
      color: var(--gris-texte);
      background: var(--blanc);
      border: 1px solid var(--gris-bord);
      border-radius: 20px;
      padding: 5px 12px;
    }
    .point {
      width: 7px;
      height: 7px;
      background: var(--vert);
      border-radius: 50%;
      flex-shrink: 0;
    }
    .visuel {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      aspect-ratio: 1.1;
      background: var(--gris-bg);
    }
  }

  /* ---------- 2. Pourquoi le marquage est essentiel ---------- */
  .pourquoi {
    padding: 60px 22px;
    background: var(--blanc);
  }
  .encadre {
    height: 100%;
    background: var(--ivoire);
    border: 1px solid var(--gris-bord);
    border-radius: 8px;
    padding: 24px 22px;
    h3 {
      font-size: 12px;
      letter-spacing: 0.11em;
      text-transform: uppercase;
      color: var(--orange);
      margin-bottom: 16px;
    }
  }

  /* ---------- 3. Critères de choix ---------- */
  .criteres {
    padding: 60px 22px;
  }
  .critere {
    height: 100%;
    background: var(--ivoire);
    border: 1px solid var(--gris-bord);
    border-left: 3px solid var(--vert);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 18px 16px;
    p {
      font-size: 13px;
      line-height: 1.66;
    }
  }
  .critere h3,
  .carte-titre h3 {
    font-size: 15px;
    font-weight: 500;
  }
  .critere h3 {
    margin-bottom: 7px;
  }

  /* ---------- 4. Sommaire des 12 techniques ---------- */
  .sommaire {
    padding: 60px 22px;
    background: var(--ivoire);
    margin-bottom: 72px;
  }
  .carte {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--blanc);
    border: 1px solid var(--gris-bord);
    border-radius: 8px;
    overflow: hidden;
    transition:
      box-shadow 0.2s,
      border-color 0.2s;
    &:hover {
      box-shadow: 0 5px 22px rgba(0, 0, 0, 0.09);
      border-color: var(--orange);
      .carte-photo img {
        transform: scale(1.05);
      }
    }
  }
  .carte-photo {
    height: 170px;
    background: var(--gris-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s;
    }
  }
  .carte-titre {
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--gris-bord);
  }
  .carte-corps {
    padding: 14px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
  }
  .etiquettes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .etiquette {
    background: var(--orange-10);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
  }
  .savoir-plus {
    font-size: 15px;
    font-weight: 400;
    color: var(--orange);
    text-decoration: none;
    &:hover {
      text-decoration: underline;
    }
  }

  /* ---------- 5. Fiches détaillées ---------- */
  .introduction {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 56px;
    .surtitre {
      font-size: 14px;
      letter-spacing: 0.14em;
      margin-bottom: 30px;
    }
    h2 {
      margin-bottom: 15px;
    }
  }
  .fiche {
    background: var(--blanc);
    padding: 48px 22px;
    border-bottom: 1px solid var(--gris-bord);
    scroll-margin-top: 80px;
    h4 {
      font-family: inherit;
      font-weight: 700;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--orange);
      margin: 18px 0 6px;
    }
  }
  .fiche-alt {
    background: var(--ivoire);
    .bon-a-savoir {
      border-radius: 0px;
    }
  }
  .fiche-titre {
    margin-bottom: 20px;
  }
  .fiche-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    max-width: 420px;
    max-height: 240px;
    /* Place réservée avant le chargement de la photo (chargée en différé) : sinon elle pousse la fiche vers le bas
       après le saut d'un lien d'ancre (« En savoir plus » des fiches produit) et l'on arrive trop haut. */
    aspect-ratio: 420 / 238;
    background: var(--gris-bg);
    img {
      width: 100%;
      height: 100%;
      max-height: 240px;
      object-fit: cover;
    }
  }
  .bon-a-savoir {
    background: var(--blanc);
    border-left: 3px solid var(--vert);
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 18px;
    font-size: 14px;
    color: var(--gris-texte);
    strong {
      color: black;
    }
    ul {
      list-style: disc;
      padding-left: 18px;
      margin-top: 6px;
      font-size: 13.5px;
    }
  }

  /* ---------- 6. Conseils d'experts : six étapes reliées par un fil (dès 992 px) ---------- */
  .conseils {
    padding: 60px 22px;
    background: var(--peche-clair);
  }
  .etapes {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
  }
  .etape {
    text-align: center;
    position: relative;
    z-index: 1;
    h3 {
      margin: 0;
      font-size: 14px;
      font-weight: 400;
    }
    p {
      font-size: 12px;
      line-height: 1.52;
    }
  }
  .numero {
    width: 44px;
    height: 44px;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 13px;
    box-shadow: 0 0 0 5px var(--peche-clair);
  }

  /* ---------- 7. Questions fréquentes ---------- */
  .faq {
    padding: 60px 22px;
    background: var(--blanc);
    .entete {
      margin-bottom: 38px;
    }
    .surtitre {
      margin-bottom: 30px;
      font-size: 14px;
    }
    h2 {
      font-weight: bold;
      color: #333;
    }
  }
  .questions {
    max-width: 740px;
    margin: 0 auto;
    details {
      border-bottom: 1px solid var(--gris-bord);
      padding: 18px 0;
      &:first-of-type {
        border-top: 1px solid var(--gris-bord);
      }
      &[open] summary::after {
        transform: rotate(45deg);
      }
    }
    summary {
      font-size: 16px;
      font-weight: 700;
      color: var(--noir);
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      &::-webkit-details-marker {
        display: none;
      }
      &::after {
        content: "+";
        font-size: 21px;
        font-weight: 300;
        color: var(--orange);
        flex-shrink: 0;
        transition: transform 0.18s;
      }
    }
  }
  .reponse {
    font-size: 14px;
    color: var(--gris-texte);
    line-height: 1.76;
    padding-top: 12px;
    font-weight: 400;
  }

  /* ---------- 8. Appel à l'action ---------- */
  .appel {
    background: var(--orange);
    text-align: center;
    padding: 50px 16px;
    h2 {
      font-size: 32px;
      color: var(--blanc);
      margin-bottom: 15px;
    }
    p {
      max-width: 480px;
      color: var(--blanc);
      margin: 0 auto 30px;
      line-height: 1.7;
      font-size: 16px;
      font-weight: 300;
    }
  }
}

.footer {
  margin-top: 0;
}

/* Fil qui relie les six étapes (dès 992 px, quand elles tiennent sur une ligne). */
@media (min-width: 992px) {
  .personnalisation .etapes::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--orange-20);
    z-index: 0;
  }
}

/* Mobile et tablette : marges de sections réduites. */
@media (max-width: 768px) {
  .personnalisation {
    .accroche,
    .pourquoi,
    .criteres,
    .sommaire,
    .conseils,
    .faq {
      padding-top: 40px;
      padding-bottom: 40px;
    }
    .fiche {
      padding-top: 32px;
      padding-bottom: 32px;
    }
    .introduction {
      margin-bottom: 32px;
    }
    .sommaire {
      margin-bottom: 40px;
    }
  }
}
