:root {
  --nuit: #13204a;
  --nuit-2: #0d1736;
  --lavande: #5b67c9;
  --lavande-clair: #e8ebff;
  --or: #f4c56b;
  --creme: #f8f6f1;
  --blanc: #ffffff;
  --texte: #1e2440;
  --doux: #5c6383;
  --bord: #dcdff0;
  --vert: #2f9e5b;
  --rayon: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font: 16px/1.6 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Quicksand, system-ui, sans-serif; color: var(--nuit); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 4.4vw, 44px); }
h2 { font-size: clamp(25px, 3.4vw, 34px); }
h3 { font-size: 19px; }
a { color: var(--lavande); }

.annonce {
  background: var(--nuit);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}

.entete {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(248, 246, 241, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bord);
}
.marque { display: flex; }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: var(--texte); text-decoration: none; font-weight: 600; }
.menu a:hover { color: var(--lavande); }

.bouton {
  display: inline-flex; justify-content: center; align-items: center;
  background: var(--nuit); color: #fff; text-decoration: none; border: 0;
  border-radius: 999px; font: 700 16px/1.2 "Nunito Sans", sans-serif;
  padding: 14px 26px; cursor: pointer; transition: transform .15s, background .15s;
}
.bouton:hover { background: var(--lavande); transform: translateY(-1px); }
.bouton.petit { padding: 9px 18px; font-size: 14px; }
.bouton.grand { width: 100%; padding: 18px 24px; font-size: 18px; box-shadow: 0 10px 24px rgba(19, 32, 74, .25); }
.bouton:disabled { opacity: .6; cursor: wait; transform: none; }

section { padding: clamp(40px, 7vw, 80px) clamp(16px, 5vw, 64px); }
.intro { color: var(--doux); max-width: 640px; margin: 0 auto 28px; text-align: center; }

/* Produit */
.produit {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px);
  max-width: 1200px; margin: 0 auto; align-items: start;
}
.galerie { position: sticky; top: 90px; }
.vue-principale { border-radius: var(--rayon); overflow: hidden; box-shadow: 0 18px 40px rgba(19, 32, 74, .18); background: var(--nuit); }
.vue-principale img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vignettes { display: flex; gap: 10px; margin-top: 12px; }
.vignette { width: 84px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.vignette img { aspect-ratio: 4 / 3; object-fit: cover; }
.vignette.actif { border-color: var(--lavande); }

.surtitre { color: var(--lavande); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0 0 8px; }
.accroche { color: var(--doux); font-size: 18px; margin: 0 0 18px; }
.points { list-style: none; padding: 0; margin: 0 0 24px; }
.points li { padding-left: 30px; position: relative; margin-bottom: 8px; font-weight: 600; }
.points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--lavande-clair); color: var(--lavande); display: grid; place-items: center; font-size: 13px; }

.offres { display: grid; gap: 12px; margin-bottom: 18px; }
.offre {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: #fff; border: 2px solid var(--bord); border-radius: var(--rayon);
  padding: 16px 18px; cursor: pointer; transition: border-color .15s;
}
.offre:has(input:checked) { border-color: var(--nuit); box-shadow: 0 6px 18px rgba(19, 32, 74, .12); }
.offre input { accent-color: var(--nuit); width: 20px; height: 20px; }
.offre-corps { display: flex; flex-direction: column; }
.offre-titre { font-weight: 700; font-size: 18px; color: var(--nuit); }
.offre-detail { color: var(--doux); font-size: 14px; }
.offre-prix { margin-left: auto; font: 700 20px Quicksand, sans-serif; color: var(--nuit); text-align: right; }
.offre-prix s { display: block; font-size: 14px; color: var(--doux); font-weight: 500; }
.badge { position: absolute; top: -11px; right: 16px; background: var(--or); color: var(--nuit); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

.garanties { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 6px; color: var(--doux); font-size: 15px; }
.garanties span { display: inline-block; width: 28px; }

.accordeon { border-top: 1px solid var(--bord); padding: 12px 0; }
.accordeon:last-of-type { border-bottom: 1px solid var(--bord); }
summary { cursor: pointer; font-weight: 700; color: var(--nuit); list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--lavande); }
details[open] > summary::after { content: "–"; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--doux); margin: 10px 0 0; }

/* Bandes */
.bande { background: var(--nuit); color: #e6e9fb; text-align: center; }
.bande h2 { color: #fff; }
.bande .intro { color: #b9c0ea; }
.bande.clair { background: var(--lavande-clair); color: var(--texte); }
.bande.clair h2 { color: var(--nuit); }
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; text-align: left; }
.carte { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--rayon); padding: 22px; }
.carte h3 { color: #fff; }
.carte p { margin: 0; color: #c7cdf0; }
.icone { font-size: 30px; display: block; margin-bottom: 10px; }

.comment { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; max-width: 1150px; margin: 0 auto; }
.comment img { border-radius: var(--rayon); box-shadow: 0 12px 30px rgba(19, 32, 74, .12); }
.etapes { padding-left: 20px; }
.etapes li { margin-bottom: 10px; }

.tableau { max-width: 800px; margin: 0 auto; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--bord); }
th { background: #f3f4fb; color: var(--nuit); }
.nous { background: #f5f6ff; color: var(--nuit); font-weight: 700; }
td.nous { color: var(--vert); }

/* Commande */
.commande { background: linear-gradient(180deg, var(--creme), #eceefa); }
.commande-carte { max-width: 620px; margin: 0 auto; background: #fff; border-radius: 22px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 20px 50px rgba(19, 32, 74, .12); }
.commande-carte h2 { text-align: center; }
form label { display: block; font-weight: 700; color: var(--nuit); margin-bottom: 14px; font-size: 15px; }
input, select {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px;
  border: 1.5px solid var(--bord); border-radius: 12px; font: 16px "Nunito Sans", sans-serif; color: var(--texte); background: #fff;
}
input:focus, select:focus { outline: none; border-color: var(--lavande); box-shadow: 0 0 0 3px rgba(91, 103, 201, .18); }
input.invalide { border-color: #d64545; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choix { border: 1.5px solid var(--bord); border-radius: 14px; padding: 14px 16px 4px; margin: 0 0 18px; }
.choix legend { font-weight: 700; color: var(--nuit); padding: 0 6px; }
.choix-ligne { display: flex !important; align-items: center; gap: 10px; font-weight: 600 !important; }
.choix-ligne input { width: 18px; height: 18px; margin: 0; accent-color: var(--nuit); }
.quantite select { width: 110px; }
.recap { background: var(--creme); border-radius: 14px; padding: 14px 16px; margin: 6px 0 16px; }
.recap div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--doux); }
.recap .total { color: var(--nuit); font-weight: 800; font-size: 18px; border-top: 1px dashed var(--bord); margin-top: 6px; padding-top: 8px; }
.erreur { color: #b42323; background: #fdecec; padding: 10px 12px; border-radius: 10px; }
.mention { text-align: center; color: var(--doux); font-size: 13px; margin: 12px 0 0; }
.merci { text-align: center; }
.merci-icone { font-size: 48px; }

.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 24px; }
.faq details { background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }

.pied { background: var(--nuit-2); color: #b9c0ea; text-align: center; padding: 30px 16px 90px; font-size: 14px; }
.pied p { margin: 4px 0; }
.pied strong { color: #fff; }

.barre-mobile { display: none; }

@media (max-width: 860px) {
  .menu { display: none; }
  .entete .bouton.petit { margin-left: auto; }
  .produit, .comment { grid-template-columns: 1fr; }
  .galerie { position: static; }
  .barre-mobile {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    display: block; text-align: center; background: var(--nuit); color: #fff; text-decoration: none;
    font-weight: 700; padding: 15px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    transition: opacity .2s, transform .2s;
  }
  .barre-mobile.cache { opacity: 0; transform: translateY(20px); pointer-events: none; }
}
@media (max-width: 480px) {
  .grille { grid-template-columns: 1fr; gap: 0; }
  .offre-titre { font-size: 16px; }
}
