/* Clairdent — feuille de style commune (accueil + page produit)
   Pensée pour des lecteurs de 60 ans et plus : texte 18 px minimum, contrastes forts, gros boutons. */

:root {
  --bleu: #0B4F6C;
  --bleu-fonce: #08384D;
  --eau: #3FB8AF;
  --eau-claire: #EAF6F6;
  --texte: #1D2B33;
  --texte-doux: #4A5A63;
  --fond: #FFFFFF;
  --fond-doux: #F6FAFB;
  --bordure: #D6E4E8;
  --accent: #E8833A;
  --rayon: 14px;
  --ombre: 0 6px 24px rgba(11, 79, 108, 0.10);
  --largeur: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
h1, h2, h3 { line-height: 1.2; color: var(--bleu-fonce); margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 48px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section--douce { background: var(--fond-doux); }
.section--eau { background: var(--eau-claire); }
.centre { text-align: center; }
.intro { max-width: 720px; margin: 0 auto 32px; color: var(--texte-doux); font-size: 20px; }

/* Bandeau et en-tête */
.bandeau {
  background: var(--bleu);
  color: #fff;
  font-size: 15px;
  text-align: center;
  padding: 8px 16px;
}
.bandeau strong { color: #BFF1EC; }
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--bordure);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.entete .logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--texte); font-size: 17px; }
.nav a:hover { color: var(--bleu); }
.nav a.bouton, .nav a.bouton:hover { color: #fff; }
@media (max-width: 820px) { .nav .nav-lien { display: none; } }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff;
  font-size: 20px; font-weight: 700; text-decoration: none;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(232, 131, 58, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(232, 131, 58, .45); }
.bouton--plein { width: 100%; }
.bouton--petit { font-size: 16px; padding: 10px 18px; }
.bouton--secondaire { background: #fff; color: var(--bleu); border: 2px solid var(--bleu); box-shadow: none; }

/* Emplacements de photos (remplacés par les vraies images) */
.photo {
  position: relative;
  background: linear-gradient(135deg, var(--eau-claire), #fff);
  border: 2px dashed var(--eau);
  border-radius: var(--rayon);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--bleu); font-size: 15px; padding: 16px;
  aspect-ratio: 1 / 1;
}
.photo--large { aspect-ratio: 4 / 3; }
.photo span { max-width: 26ch; }
.photo--ok { border: 0; background: none; padding: 0; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--rayon) - 2px); }

/* Héros */
.heros { padding: 40px 0 56px; background: linear-gradient(180deg, var(--eau-claire), #fff); }
.heros .conteneur { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.heros p.sous-titre { font-size: 21px; color: var(--texte-doux); }
.heros .prix-depart { font-size: 17px; color: var(--texte-doux); margin-top: 12px; }
@media (max-width: 820px) { .heros .conteneur { grid-template-columns: 1fr; } .heros .visuel { order: -1; } }

.puces { list-style: none; padding: 0; margin: 20px 0 28px; }
.puces li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.puces li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--eau); color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Réassurance */
.reassurance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reassurance div { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 18px; text-align: center; font-size: 16px; }
.reassurance strong { display: block; color: var(--bleu-fonce); font-size: 17px; }
.reassurance .icone { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; background: var(--eau-claire); color: var(--bleu); }
.reassurance .icone svg { width: 26px; height: 26px; }
.icon-inline { display: inline-block; vertical-align: -4px; color: var(--bleu); margin-right: 4px; }
@media (max-width: 820px) { .reassurance { grid-template-columns: repeat(2, 1fr); } }

/* Grilles */
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: center; }
@media (max-width: 820px) { .grille-3, .grille-2 { grid-template-columns: 1fr; } }
.carte { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; box-shadow: var(--ombre); }
/* Étapes illustrées : photo en tête de carte, numéro posé sur la photo. */
.carte.etape { padding: 0; overflow: hidden; }
.etape-photo { position: relative; aspect-ratio: 4 / 3; background: var(--eau-claire); }
.etape-photo img { width: 100%; height: 100%; object-fit: cover; }
.etape-photo .numero { position: absolute; top: 14px; left: 14px; margin: 0; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.carte.etape h3 { margin: 18px 22px 6px; }
.carte.etape p { margin: 0 22px 22px; }
.carte .numero {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bleu); color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}

/* Comparatif */
.tableau-comparatif { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); font-size: 17px; }
.tableau-comparatif th, .tableau-comparatif td { padding: 14px 12px; border-bottom: 1px solid var(--bordure); text-align: center; }
.tableau-comparatif th:first-child, .tableau-comparatif td:first-child { text-align: left; }
.tableau-comparatif thead th { background: var(--bleu); color: #fff; }
.tableau-comparatif thead th.nous { background: var(--eau); }
.oui { color: #1E8E5A; font-weight: 700; }
.non { color: #B54834; font-weight: 700; }
.defilement { overflow-x: auto; }

/* Offres (lots) */
.offres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .offres { grid-template-columns: 1fr; } }
.offre {
  position: relative; display: block; cursor: pointer;
  background: #fff; border: 2px solid var(--bordure); border-radius: var(--rayon);
  padding: 22px; transition: border-color .15s ease, box-shadow .15s ease;
}
.offre:hover { border-color: var(--eau); }
.offre input { position: absolute; opacity: 0; }
.offre:has(input:checked) { border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(11,79,108,.15); }
.offre .badge {
  position: absolute; top: -13px; right: 16px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.offre .titre { font-size: 20px; font-weight: 700; color: var(--bleu-fonce); }
.offre .prix { font-size: 30px; font-weight: 800; color: var(--bleu); }
.offre .detail { color: var(--texte-doux); font-size: 16px; }
.offre .economie { color: #1E8E5A; font-weight: 700; font-size: 16px; }

/* Cartes d'offre de l'accueil */
.offer-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 860px; margin: 0 auto; align-items: stretch; }
@media (max-width: 700px) { .offer-cards { grid-template-columns: minmax(0, 1fr); } }
.offer-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--bordure); border-radius: 18px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.offer-card--featured { border-color: var(--bleu); box-shadow: 0 10px 30px rgba(11,79,108,.16); }
.offer-card-badge { position: absolute; top: 14px; right: 14px; z-index: 1; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; }
.offer-card-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--fond-doux); }
.offer-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.offer-card-body h3 { margin: 0; font-size: 22px; color: var(--bleu-fonce); }
.offer-card-detail { margin: 4px 0 14px; color: var(--texte-doux); font-size: 16px; }
.offer-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.offer-card-amount { font-size: 34px; font-weight: 800; color: var(--bleu); line-height: 1.1; }
.offer-card-compare { color: var(--texte-doux); font-size: 18px; }
.offer-card-off { background: #E3F5EC; color: #1E7A4F; font-weight: 700; font-size: 14px; padding: 3px 8px; border-radius: 6px; }
.offer-card-savings { margin: 6px 0 0; color: #1E7A4F; font-weight: 700; font-size: 15px; }
.offer-card-perks { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; font-size: 16px; }
.offer-card-perks li { display: flex; align-items: center; gap: 8px; }
.offer-card-perks .icon { color: var(--eau); flex: 0 0 auto; }
.offer-card-body .bouton { margin-top: auto; width: 100%; text-align: center; box-sizing: border-box; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); margin-bottom: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--eau); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--texte-doux); }

/* Engagement honnêteté */
.engagement { border-left: 6px solid var(--eau); background: #fff; padding: 24px; border-radius: var(--rayon); box-shadow: var(--ombre); max-width: 820px; margin: 0 auto; }

/* Page produit */
.produit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding: 32px 0 48px; }
@media (max-width: 900px) { .produit { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 16px; } }
.produit > *, .grille-2 > *, .grille-3 > *, .offres > *, .heros .conteneur > * { min-width: 0; }
/* Galerie produit */
.gallery-stage { position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--fond-doux); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { box-shadow: inset 0 0 0 3px var(--eau); }
.gallery-slide { flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: var(--bleu); box-shadow: 0 4px 14px rgba(0,0,0,.16);
  transition: transform .15s ease, background .15s ease;
}
.gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-arrow:focus-visible, .gallery-zoom:focus-visible, .gallery-thumb:focus-visible, .gallery-close:focus-visible { outline: 3px solid var(--eau); outline-offset: 2px; }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }
.gallery-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: var(--bleu); box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.gallery-counter {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: rgba(8,56,77,.78); color: #fff; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; pointer-events: none;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  flex: 0 0 auto; width: 76px; aspect-ratio: 1 / 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: var(--fond-doux); cursor: pointer; opacity: .6; transition: opacity .15s ease, border-color .15s ease;
}
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: .9; }
.gallery-thumb[aria-current="true"] { border-color: var(--bleu); opacity: 1; }
@media (max-width: 640px) {
  .gallery-arrow { width: 38px; height: 38px; }
  .gallery-arrow--prev { left: 8px; } .gallery-arrow--next { right: 8px; }
  .gallery-thumb { width: 60px; }
}
.gallery-lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(8,20,28,.94); }
.gallery-lightbox::backdrop { background: rgba(8,20,28,.94); }
.gallery-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.gallery-lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain; border-radius: 8px; }
.gallery-close {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.95); color: var(--bleu);
}
@media (max-width: 480px) {
  .tableau-comparatif { font-size: 15px; }
  .tableau-comparatif th, .tableau-comparatif td { padding: 10px 6px; }
  .fiche .reassurance { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .fiche .reassurance div { padding: 10px 6px; font-size: 14px; }
}
.fiche h1 { font-size: clamp(28px, 4vw, 38px); }
.fiche .accroche { font-size: 20px; color: var(--texte-doux); }
.livraison-estimee { background: var(--eau-claire); border-radius: var(--rayon); padding: 14px 16px; font-size: 17px; margin: 16px 0; }
.dans-la-boite { font-size: 16px; color: var(--texte-doux); }
.caracteristiques { width: 100%; border-collapse: collapse; font-size: 17px; }
.caracteristiques td { padding: 10px 0; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.caracteristiques td:first-child { color: var(--texte-doux); width: 45%; }

/* Barre d'achat collante (mobile) */
.barre-achat {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--bordure);
  padding: 10px 16px; display: none; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -6px 18px rgba(0,0,0,.06);
}
.barre-achat .prix { font-weight: 800; color: var(--bleu); font-size: 22px; }
@media (max-width: 820px) { .barre-achat { display: flex; } body { padding-bottom: 76px; } }

/* Pied de page */
.pied { background: var(--bleu-fonce); color: #DCEBEF; padding: 40px 0 24px; font-size: 16px; }
.pied a { color: #fff; text-decoration: none; }
.pied .colonnes { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .pied .colonnes { grid-template-columns: 1fr; } }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 8px; }
.pied .mentions { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 16px; font-size: 14px; color: #A9C3CC; }

/* Avis */
.etoiles { color: #F2A900; letter-spacing: 2px; }
.etoiles-vides { color: #D6DEE2; }
.note-heros { margin: 0 0 10px; font-size: 17px; }
.note-heros a { color: var(--texte); text-decoration: none; }
.note-heros a:hover { text-decoration: underline; }
/* Section avis */
.reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-bottom: 32px; }
.reviews-head h2 { margin: 0; }
.reviews-summary { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--rayon); padding: 14px 22px; box-shadow: var(--ombre); }
.reviews-score { font-size: 44px; font-weight: 800; color: var(--bleu); line-height: 1; }
.reviews-score small { font-size: 18px; font-weight: 600; color: var(--texte-doux); }
.reviews-stars { font-size: 22px; }
.reviews-summary p { margin: 2px 0 0; font-size: 15px; color: var(--texte-doux); }
.reviews-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .reviews-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review-card {
  position: relative; display: flex; flex-direction: column; margin: 0; background: #fff; border-radius: var(--rayon);
  padding: 26px 24px 20px; box-shadow: var(--ombre); border-top: 4px solid var(--eau);
}
.review-card figcaption { margin-top: auto; }
.review-card--cta { justify-content: center; align-items: flex-start; background: var(--bleu); border-top-color: var(--accent); color: #DCEBEF; }
.review-card--cta p { margin: 0 0 18px; font-size: 17px; }
.review-card--cta .review-cta-title { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.review-quote { position: absolute; top: 18px; right: 20px; color: var(--eau-claire); fill: var(--eau-claire); stroke: none; }
.review-card blockquote { margin: 12px 0 18px; font-size: 17px; line-height: 1.6; color: var(--texte); }
.review-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--bordure); font-size: 14px; color: var(--texte-doux); }
.review-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #1F7A5A; }
@media (max-width: 640px) {
  .reviews-head { flex-direction: column; align-items: flex-start; }
  .reviews-summary { width: 100%; box-sizing: border-box; }
  /* Sur téléphone, les avis défilent au doigt ; la carte suivante dépasse pour inviter à glisser. */
  .reviews-list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 18px; }
  .reviews-list::-webkit-scrollbar { display: none; }
  .review-card { flex: 0 0 84%; margin: 0; scroll-snap-align: center; }
}

.faq-plus { margin: 20px 0 0; }
.faq-plus .bouton { cursor: pointer; font-family: inherit; }
.faq-suite[hidden], .faq-plus[hidden] { display: none; }
.faq-contact { margin-top: 24px; color: var(--texte-doux); font-size: 16px; }
