/* NovaCBD — styles des pages ajoutées : fiche produit, journal, quiz, pages légales, recherche, avis.
   Couleurs et polices du thème (style.css). */

.catalogue-erreur { grid-column: 1 / -1; color: var(--doux); }
.product h3 a { color: inherit; }
.product h3 a:hover { color: var(--or-texte); }
.add:disabled { opacity: .35; pointer-events: none; }

/* ---------- Fiche produit ---------- */

.fiche {
  position: relative; overflow: hidden; color: var(--texte);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  background: radial-gradient(80% 90% at 25% 40%, color-mix(in srgb, var(--teinte, var(--or)) 14%, var(--lueur)), var(--fond) 55%, var(--fond-2));
}
.fiche__grille { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.fiche__visuel { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; cursor: grab; touch-action: pan-y; }
.fiche__visuel:active { cursor: grabbing; }
.fiche__halo {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--or-clair) 26%, transparent), color-mix(in srgb, var(--or) 8%, transparent) 45%, transparent 70%);
  border: 1px solid color-mix(in srgb, var(--or) 18%, transparent);
}
.produit3d--grand { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.produit3d--grand > svg { width: 46%; height: 70%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.fiche__aide { position: absolute; left: 0; right: 0; bottom: -.4rem; display: flex; justify-content: center; align-items: center; gap: .45rem; margin: 0; font-size: .78rem; color: color-mix(in srgb, var(--texte) 55%, transparent); }
.fiche__aide svg { width: 15px; height: 15px; color: var(--or); }

.fil { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.2rem; font-size: .82rem; color: var(--doux); }
.fil a:hover { color: var(--or-clair); }
.fiche h1 { margin: .9rem 0 .8rem; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.fiche .lead { margin-bottom: 1.4rem; }
.fiche__taux { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0 0 1.6rem; padding: 0; }
.fiche__taux li { display: flex; align-items: baseline; gap: .5rem; padding: .55rem .95rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--ligne); }
.fiche__taux span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--doux); }
.fiche__taux strong { font-family: var(--chiffres); font-size: 1.15rem; }
.fiche__prix { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; }
.fiche__prix .price { font-size: 2.3rem; color: var(--or-clair); }
.fiche__unite { font-size: .85rem; color: var(--doux); }
.fiche__choix { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.fiche__choix button {
  min-width: 64px; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte);
  font: 700 .92rem var(--chiffres); transition: border-color .25s, background-color .25s, color .25s, transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
.fiche__choix button:hover { border-color: color-mix(in srgb, var(--or) 70%, transparent); transform: translateY(-1px); }
.fiche__choix button[aria-checked="true"] { background: var(--or); border-color: var(--or); color: var(--sur-or); }
.fiche__achat { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.fiche__qte { display: inline-flex; align-items: center; border: 1px solid var(--ligne); border-radius: 999px; background: var(--surface); }
.fiche__qte button { width: 44px; height: 46px; border: 0; background: none; color: var(--texte); font-size: 1.2rem; border-radius: 50%; }
.fiche__qte button:hover { color: var(--or-clair); }
.fiche__qte output { min-width: 2rem; text-align: center; font: 700 1rem var(--chiffres); }
.fiche__achat .btn { flex: 1; min-width: 220px; }
.fiche__stock { margin: .9rem 0 0; font-size: .85rem; color: var(--accent-texte); }
.fiche__stock.est-bas { color: var(--or-clair); }
.fiche__stock.est-epuise { color: #e9a08a; }
.fiche__garanties { display: grid; gap: .55rem; list-style: none; margin: 1.6rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--ligne); font-size: .86rem; color: var(--doux); }
.fiche__garanties li { display: flex; gap: .7rem; align-items: center; }
.fiche__garanties svg { width: 19px; height: 19px; color: var(--or); flex: none; }

.fiche__details { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.fiche__details h2 { margin: .8rem 0 1.2rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.fiche__description { display: grid; gap: 1rem; color: var(--doux); font-size: 1.02rem; }
.fiche__certificat { padding: 1.6rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--ligne); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.fiche__certificat h3 { margin: .7rem 0 1rem; font-size: 1.2rem; }
.fiche__certificat dl { display: grid; gap: .1rem; margin: 0; }
.fiche__certificat dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--ligne); }
.fiche__certificat dt { font-weight: 700; }
.fiche__certificat dd { margin: 0; font-family: var(--chiffres); font-weight: 600; text-align: right; }
.fiche__certificat-note { margin: 1rem 0 0; font-size: .8rem; color: var(--doux); }
.fiche__certificat[hidden] { display: none; }
.fiche__details.est-seul { grid-template-columns: minmax(0, 760px); }

@media (max-width: 900px) {
  .fiche__grille, .fiche__details { grid-template-columns: 1fr; }
  .fiche__visuel { max-width: 420px; }
}

/* ---------- En-têtes courts, pages légales, FAQ ---------- */

.page-tete--courte { padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2rem, 4vw, 2.8rem); }
.page-tete--courte h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-tete__quiz { margin-top: 1.4rem; max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; }
.legal { max-width: 760px; color: var(--doux); font-size: 1rem; line-height: 1.75; }
.legal h2 { margin: 2.2rem 0 .7rem; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--texte); }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: .55rem; }
.legal strong { color: var(--texte); }
.legal a { color: var(--or-clair); text-decoration: underline; text-underline-offset: 3px; }
.legal__maj { margin-top: 2.6rem !important; font-size: .82rem; color: color-mix(in srgb, var(--texte) 45%, transparent); }
.legal__note { font-size: .88rem; }
.a-completer { padding: .05rem .4rem; border-radius: 6px; background: color-mix(in srgb, var(--or) 22%, transparent); color: var(--or-clair); font-weight: 700; font-size: .9em; }
.faq { display: grid; gap: .7rem; margin-bottom: 2rem; }
.faq__item { border-radius: 16px; background: var(--surface); border: 1px solid var(--ligne); transition: border-color .3s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--or) 40%, transparent); }
.faq__item summary { position: relative; padding: 1.1rem 3rem 1.1rem 1.3rem; cursor: pointer; list-style: none; font-weight: 700; color: var(--texte); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; font-size: 1.4rem; color: var(--or); transition: rotate .35s cubic-bezier(.3, 1.4, .5, 1); }
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item p { margin: 0; padding: 0 1.3rem 1.2rem; }

/* ---------- Journal ---------- */

.journal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.journal__carte {
  display: flex; flex-direction: column; gap: .7rem; padding: 1.8rem; border-radius: var(--radius); color: var(--texte);
  background: var(--surface); border: 1px solid var(--ligne); transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .3s;
}
.journal__carte:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--or) 45%, transparent); }
.journal__carte--une { grid-column: 1 / -1; padding: clamp(2rem, 4vw, 3rem); background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--or) 14%, transparent), transparent 60%), var(--surface); }
.journal__carte--une h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.journal__carte h2 { font-size: 1.35rem; }
.journal__carte p { color: var(--doux); flex: 1; }
.journal__carte .link-arrow { align-self: flex-start; color: var(--or-clair); }
.journal__date { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--or-texte); }
.article__tete { max-width: 820px; }
.article__corps { font-size: 1.06rem; }
.article__fin { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: space-between; max-width: 760px; margin-top: 2.5rem; }
@media (max-width: 720px) { .journal { grid-template-columns: 1fr; } }

/* ---------- Quiz ---------- */

.quiz-page { position: relative; overflow: hidden; min-height: calc(100vh - 72px); display: grid; align-items: center; padding: 3rem 0 4rem;
  background: radial-gradient(90% 90% at 50% 20%, var(--lueur), var(--fond) 60%, var(--fond-2)); }
.quiz { position: relative; max-width: 860px; text-align: center; }
.quiz__progression { height: 4px; margin: 1.2rem auto 2rem; max-width: 360px; border-radius: 4px; background: color-mix(in srgb, var(--texte) 10%, transparent); overflow: hidden; }
.quiz__progression span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--or), var(--or-clair)); transition: width .6s cubic-bezier(.22, 1, .36, 1); }
.quiz__scene { transition: opacity .26s ease, transform .26s ease; }
.quiz__scene.sort { opacity: 0; transform: translateY(-10px); }
.quiz__etape { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); }
.quiz h1 { margin: .6rem 0 .6rem; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.quiz .lead { margin: 0 auto 2rem; }
.quiz__reponses { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.quiz__reponses > .quiz__reponse { flex: 1 1 170px; max-width: 230px; }
.quiz__ico { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto .5rem; border-radius: 50%; color: var(--or);
  background: color-mix(in srgb, var(--or) 10%, transparent); border: 1px solid color-mix(in srgb, var(--or) 22%, transparent);
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background-color .3s; }
.quiz__ico svg { width: 24px; height: 24px; }
.quiz__ico--produit { width: 64px; height: 64px; border-radius: 18px; }
.quiz__ico--produit svg { width: 84%; height: 84%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }
.quiz__ico--arome { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); border: 0;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent), 0 10px 20px -8px var(--c); }
.quiz__reponse:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.quiz__reponse:hover .quiz__ico { transform: scale(1.1) rotate(-6deg); }
.quiz__reponse.est-choisie .quiz__ico { background: color-mix(in srgb, var(--sur-or) 14%, transparent); color: var(--sur-or); }
@media (max-width: 560px) { .quiz__reponses > .quiz__reponse { flex-basis: calc(50% - .4rem); } .quiz__ico { width: 44px; height: 44px; } .quiz__ico--produit { width: 52px; height: 52px; } }
.quiz__reponse {
  display: grid; gap: .3rem; padding: 1.3rem 1.1rem; border-radius: 18px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte);
  text-align: center; animation: quiz-entree .5s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 60ms) backwards;
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), border-color .25s, background-color .25s;
}
.quiz__reponse:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--or) 60%, transparent); }
.quiz__reponse.est-choisie { background: var(--or); border-color: var(--or); color: var(--sur-or); }
.quiz__reponse strong { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.quiz__reponse span { font-size: .8rem; color: var(--doux); }
.quiz__reponse.est-choisie span { color: inherit; }
@keyframes quiz-entree { from { opacity: 0; transform: translateY(14px); } }
.quiz__retour { margin-top: 1.6rem; border: 0; background: none; color: var(--doux); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.quiz__resultats { text-align: left; grid-template-columns: repeat(3, 1fr); }
.quiz__fin { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 2rem; }
@media (max-width: 900px) { .quiz__resultats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .quiz__resultats { grid-template-columns: 1fr; } }

/* ---------- Recherche ---------- */

.recherche { position: fixed; inset: 0; z-index: 98; display: grid; justify-items: center; align-items: start; padding: clamp(16px, 10vh, 120px) 16px 16px; }
.recherche__fond { position: absolute; inset: 0; background: color-mix(in srgb, var(--fond-2) 66%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .3s; }
.recherche.est-ouvert .recherche__fond { opacity: 1; }
.recherche__boite {
  position: relative; width: min(640px, 100%); border-radius: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--or) 30%, transparent); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75);
  opacity: 0; transform: translateY(-16px) scale(.97); transition: opacity .3s, transform .45s cubic-bezier(.22, 1.2, .36, 1);
}
.recherche.est-ouvert .recherche__boite { opacity: 1; transform: none; }
.recherche__champ { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--ligne); }
.recherche__champ svg { width: 22px; height: 22px; color: var(--or); flex: none; }
.recherche__champ input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--texte); font: 600 1.08rem var(--sans); }
.recherche__champ kbd { padding: .2rem .5rem; border-radius: 6px; border: 1px solid var(--ligne); font: 600 .7rem var(--sans); color: var(--doux); }
.recherche__resultats { max-height: min(60vh, 460px); overflow-y: auto; padding: .5rem; }
.recherche__titre, .recherche__vide { margin: .6rem .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.recherche__vide { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .92rem; }
.recherche__vide a { color: var(--or-clair); }
.recherche__ligne { display: flex; align-items: center; gap: .9rem; padding: .6rem .8rem; border-radius: 14px; color: var(--texte); transition: background-color .15s; }
.recherche__ligne[aria-selected="true"], .recherche__ligne:hover { background: color-mix(in srgb, var(--or) 12%, transparent); }
.recherche__visuel { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--fond); }
.recherche__visuel svg { width: 62%; height: 62%; color: var(--or); }
.recherche__texte { flex: 1; min-width: 0; }
.recherche__texte strong { display: block; font-weight: 700; }
.recherche__texte small { color: var(--doux); font-size: .78rem; }
.recherche__prix { font-family: var(--chiffres); font-weight: 700; color: var(--or-clair); white-space: nowrap; }
.recherche__prix small { font-family: var(--sans); font-weight: 500; color: var(--doux); }

/* ---------- Avis Google ---------- */

.avis__note { display: flex; align-items: baseline; gap: .6rem; }
.avis__note strong { font-family: var(--chiffres); font-size: 2.2rem; color: var(--or-clair); }
.avis__note span:last-child { font-size: .85rem; color: var(--doux); }
.avis__etoiles { color: var(--or); letter-spacing: .1em; }
.avis__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.avis__carte { display: flex; flex-direction: column; gap: .8rem; margin: 0; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--ligne); }
.avis__carte blockquote { flex: 1; margin: 0; color: var(--doux); font-size: .95rem; }
.avis__carte figcaption { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .9rem; }
.avis__carte figcaption small { margin-left: auto; font-weight: 500; color: var(--doux); }
.avis__initiale { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--or); color: var(--sur-or); font-weight: 800; }
.avis__lien { margin-top: 1.4rem; display: inline-flex; color: var(--or-clair); }

.newsletter__erreur { margin: .6rem 0 0; padding-left: 1.2rem; font-size: .82rem; color: #e9a08a; }

/* ---------- Page Commande (commande.js) ---------- */

.etapes { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; counter-reset: etape; font-size: .86rem; font-weight: 700; color: var(--doux); }
.etapes li { position: relative; display: flex; align-items: center; gap: .5rem; counter-increment: etape; transition: color .3s; }
.etapes li::before {
  content: counter(etape); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--ligne); font-family: var(--chiffres); font-size: .75rem; transition: background-color .3s, border-color .3s, color .3s;
}
.etapes li + li::after { content: ""; position: absolute; left: -1.25rem; top: 50%; width: .9rem; height: 1px; background: var(--ligne); }
.etapes .est-courant { color: var(--texte); }
.etapes .est-courant::before { border-color: var(--or); color: var(--or-clair); box-shadow: 0 0 0 4px color-mix(in srgb, var(--or) 16%, transparent); }
.etapes .est-fait { color: var(--accent-texte); }
.etapes .est-fait::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: var(--texte); }

.commande { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.commande[hidden] { display: none; }
.commande__colonne { display: grid; gap: 1.4rem; }
.commande__bloc { margin: 0; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 22px; border: 1px solid var(--ligne); background: var(--surface); }
.commande__bloc legend, .recap h2 { font-family: var(--display); font-weight: 400; display: flex; align-items: center; gap: .7rem; float: left; width: 100%; margin: 0 0 1.2rem; padding: 0; font-size: 1.2rem; }
.commande__bloc legend + * { clear: both; }
.commande__num {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--or); color: var(--sur-or); font-family: var(--chiffres); font-size: .9rem; font-weight: 800;
}
.commande__aide { margin: 1rem 0 0; font-size: .84rem; color: var(--doux); }
.commande__aide:empty { display: none; }
.commande__aide strong { color: var(--or-clair); }

.commande .champs { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.commande .champs[hidden] { display: none; }
.commande .champ { display: grid; gap: .35rem; min-width: 0; }
.commande .champ--large { grid-column: 1 / -1; }
.commande .champ > span { font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--doux); }
.commande .champ > span i { font-style: normal; font-weight: 500; opacity: .8; }
.commande .champ input {
  width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--ligne);
  background: color-mix(in srgb, var(--texte) 4%, var(--fond)); color: var(--texte); font: 600 .95rem var(--sans);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.commande .champ input::placeholder { color: color-mix(in srgb, var(--texte) 35%, transparent); font-weight: 500; }
.commande .champ input:hover { border-color: color-mix(in srgb, var(--texte) 25%, transparent); }
.commande .champ input:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px color-mix(in srgb, var(--or) 15%, transparent); }
.commande .champ input[aria-invalid="true"] { border-color: #d98b74; box-shadow: 0 0 0 4px rgba(217, 139, 116, .12); }
.commande .champ input:-webkit-autofill { -webkit-text-fill-color: var(--texte); -webkit-box-shadow: 0 0 0 40px var(--fond) inset; caret-color: var(--texte); }
.commande .champ__erreur { font-style: normal; font-size: .76rem; font-weight: 600; color: #e9a08a; animation: entree-erreur .3s ease; }
@keyframes entree-erreur { from { opacity: 0; transform: translateY(-4px); } }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1.2rem; }
.mode { position: relative; cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode__carte {
  display: grid; gap: .25rem; height: 100%; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--ligne);
  background: color-mix(in srgb, var(--texte) 3%, transparent);
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
.mode:hover .mode__carte { border-color: color-mix(in srgb, var(--or) 50%, transparent); transform: translateY(-2px); }
.mode input:checked + .mode__carte {
  border-color: var(--or); background: color-mix(in srgb, var(--or) 9%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--or) 12%, transparent), 0 18px 34px -22px rgba(0, 0, 0, .7);
}
.mode input:focus-visible + .mode__carte { outline: 2px solid var(--or-clair); outline-offset: 3px; }
.mode__carte svg { width: 26px; height: 26px; margin-bottom: .3rem; color: var(--or); }
.mode__carte strong { font-size: .96rem; }
.mode__carte small { font-size: .76rem; line-height: 1.4; color: var(--doux); }
.mode__prix { margin-top: .3rem; font-style: normal; font-family: var(--chiffres); font-weight: 700; color: var(--or-clair); }

.commande__recap { position: sticky; top: calc(var(--entete, 84px) + 1rem); }
.recap {
  padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 22px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--or) 28%, transparent); box-shadow: 0 30px 70px -36px rgba(0, 0, 0, .75);
}
.recap h2 { float: none; }
.recap__liste { display: grid; gap: .2rem; margin: 0 0 1rem; padding: 0; list-style: none; max-height: 300px; overflow-y: auto; }
.recap__article { display: grid; grid-template-columns: 52px 1fr auto; gap: .8rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--ligne); font-size: .92rem; }
.recap__visuel { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--or) 10%, var(--fond)); border: 1px solid var(--ligne); }
.recap__visuel svg { width: 72%; height: 72%; }
.recap__visuel b {
  position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 .3rem; border-radius: 999px;
  display: grid; place-items: center; background: var(--or); color: var(--sur-or); font-size: .68rem;
}
.recap__nom { min-width: 0; }
.recap__nom strong { display: block; font-weight: 800; line-height: 1.25; }
.recap__nom small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; color: var(--doux); }
.recap__totaux { display: grid; gap: .4rem; margin: 0 0 1.2rem; }
.recap__totaux > div { display: flex; justify-content: space-between; font-size: .9rem; color: var(--doux); }
.recap__totaux dd { margin: 0; font-family: var(--chiffres); font-weight: 600; color: var(--texte); }
.recap__totaux #recap-remise dd { color: var(--accent-texte); }
.recap__total { margin-top: .3rem; padding-top: .7rem; border-top: 1px dashed var(--ligne); color: var(--texte) !important; font-weight: 800; }
.recap__total dd { font-size: 1.45rem; font-weight: 800; color: var(--or-clair); }
.case { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 .7rem; font-size: .88rem; cursor: pointer; }
.case input { appearance: none; flex: none; width: 20px; height: 20px; margin: .05rem 0 0; border-radius: 6px; border: 1.5px solid color-mix(in srgb, var(--texte) 35%, transparent); background: none; display: grid; place-items: center; transition: background-color .2s, border-color .2s; cursor: pointer; }
.case input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--sur-or); border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; scale: 0; transition: scale .25s cubic-bezier(.3, 1.6, .5, 1); }
.case input:checked { background: var(--or); border-color: var(--or); }
.case input:checked::after { scale: 1; }
.case input:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 2px; }
.case a { color: var(--or-clair); text-decoration: underline; text-underline-offset: 3px; }
.commande__erreur { margin: .2rem 0 .8rem; font-size: .84rem; font-weight: 600; color: #e9a08a; }
.commande__erreur:empty { display: none; }
.commande__payer { width: 100%; margin-top: .4rem; font-size: 1.02rem; }
.commande__payer .num { font-size: 1.06em; }
.commande__payer.est-en-cours { opacity: .75; pointer-events: none; }
.commande__payer.est-en-cours::before {
  content: ""; width: 16px; height: 16px; margin-right: .6rem; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: tourne .8s linear infinite;
}
@keyframes tourne { to { rotate: 360deg; } }
.recap__secu { display: flex; gap: .55rem; align-items: flex-start; margin: 1rem 0 0; font-size: .76rem; line-height: 1.5; color: var(--doux); }
.recap__secu svg { flex: none; width: 18px; height: 18px; color: var(--accent-texte); }
.recap__modifier { display: inline-block; margin-top: .9rem; font-size: .82rem; font-weight: 700; color: var(--doux); transition: color .2s; }
.recap__modifier:hover { color: var(--or-clair); }

/* états : panier vide, paiement simulé, vérification, merci, échec */
.commande-etat {
  max-width: 620px; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem); border-radius: 26px; text-align: center;
  background: var(--surface); border: 1px solid var(--ligne); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75);
  animation: entree-douce .7s cubic-bezier(.16, 1, .3, 1) backwards;
}
.commande-etat h2 { margin: 1.1rem 0 .7rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.commande-etat p { margin: 0 auto 1rem; max-width: 30rem; color: var(--doux); }
.commande-etat a:not(.btn) { color: var(--or-clair); }
.commande-etat--merci { border-color: color-mix(in srgb, var(--or) 40%, transparent); }
.commande-etat--simulation { border-style: dashed; border-color: color-mix(in srgb, var(--or) 50%, transparent); }
.etat__icone {
  display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto; border-radius: 50%;
  font: 800 1.9rem var(--chiffres); animation: etat-pop .7s cubic-bezier(.3, 1.6, .5, 1) .15s backwards;
}
.etat__icone svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.etat__icone--ok { background: var(--or); color: var(--sur-or); box-shadow: 0 0 0 10px color-mix(in srgb, var(--or) 15%, transparent), 0 0 60px color-mix(in srgb, var(--or) 45%, transparent); }
.etat__icone--ok path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: trace .5s ease .55s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.etat__icone--info { background: color-mix(in srgb, var(--or) 14%, transparent); color: var(--or-clair); border: 1px solid color-mix(in srgb, var(--or) 40%, transparent); }
.etat__icone--erreur { background: rgba(217, 139, 116, .14); color: #e9a08a; border: 1px solid rgba(217, 139, 116, .4); }
@keyframes etat-pop { from { opacity: 0; scale: .4; } }
.etat__chargement { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--or) 25%, transparent); border-top-color: var(--or); animation: tourne 1s linear infinite; }
.etat__numero { font-size: 1.02rem; color: var(--texte) !important; }
.etat__numero strong { font-family: var(--chiffres); letter-spacing: .04em; color: var(--or-clair); }
.etat__articles { display: grid; gap: .3rem; max-width: 360px; margin: 0 auto 1.4rem; padding: .8rem 1rem; list-style: none; border-radius: 14px; background: color-mix(in srgb, var(--texte) 4%, transparent); text-align: left; font-size: .9rem; }
.etat__articles li { display: flex; justify-content: space-between; gap: 1rem; }
.etat__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.6rem; }

.confettis { position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; }
.confettis i {
  position: absolute; top: -20px; left: var(--x); width: 9px; height: 14px; border-radius: 3px;
  background: linear-gradient(135deg, var(--or-clair), var(--or)); scale: var(--s);
  animation: confetti var(--t) cubic-bezier(.25, .6, .5, 1) var(--d) forwards;
}
.confettis i:nth-child(3n) { background: var(--accent-texte); border-radius: 50%; width: 8px; height: 8px; }
.confettis i:nth-child(4n) { width: 5px; height: 16px; }
@keyframes confetti { to { transform: translate(calc((var(--s) - 1) * 160px), 105vh) rotate(var(--r)); opacity: .2; } }

@media (max-width: 900px) {
  .commande { grid-template-columns: 1fr; }
  .commande__recap { position: static; }
}
@media (max-width: 560px) {
  .modes { grid-template-columns: 1fr; }
  .commande .champ { grid-column: 1 / -1; }
  .commande .champ--cp, .commande .champ--ville { grid-column: auto; }
  .etapes { gap: .4rem 1.2rem; font-size: .78rem; }
  .etapes li + li::after { display: none; }
}

/* ---------- Page 404 ---------- */

.introuvable { min-height: calc(100svh - 72px - var(--annonce)); display: grid; align-items: center; }
.introuvable__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.introuvable h1 { margin: 1rem 0; font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.introuvable h1 em { font-style: normal; color: var(--or); }
.introuvable__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.introuvable__liens { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 700; }
.introuvable__liens a { color: var(--doux); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--or) 40%, transparent); text-underline-offset: 4px; transition: color .2s; }
.introuvable__liens a:hover { color: var(--or-clair); }
.introuvable__visuel { display: grid; place-items: center; }
.introuvable__chiffre {
  display: flex; align-items: center; font: 400 clamp(7rem, 17vw, 13rem)/1 var(--display); letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--or-clair), var(--or) 55%, color-mix(in srgb, var(--or) 60%, #000)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5));
}
.introuvable__chiffre img { width: auto; height: 1.25em; margin: 0 -.05em; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); animation: flotte 4.5s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-14px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .introuvable__chiffre img { animation: none; } }
@media (max-width: 860px) {
  .introuvable__inner { grid-template-columns: 1fr; text-align: left; }
  .introuvable__visuel { order: -1; }
}

/* journal : icône du sujet, feuille en filigrane sur l'article à la une, « à lire aussi » */
.journal__carte { position: relative; overflow: hidden; }
.journal__carte > :not(.journal__feuille) { position: relative; }
.journal__ico {
  position: absolute !important; top: 1.4rem; right: 1.4rem; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--or); background: color-mix(in srgb, var(--or) 10%, transparent); border: 1px solid color-mix(in srgb, var(--or) 25%, transparent);
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), background-color .3s;
}
.journal__ico svg { width: 20px; height: 20px; }
.journal__carte:hover .journal__ico { transform: rotate(-10deg) scale(1.08); background: color-mix(in srgb, var(--or) 18%, transparent); }
.journal__carte h2 { padding-right: 3.4rem; }
.journal__feuille { position: absolute; right: -60px; bottom: -90px; width: 300px; height: 300px; color: var(--or); opacity: .07; rotate: -18deg; pointer-events: none; transition: rotate .8s cubic-bezier(.22, 1, .36, 1), opacity .4s; }
.journal__carte--une:hover .journal__feuille { rotate: -8deg; opacity: .11; }
.article__suite { max-width: 980px; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ligne); }
.article__suite .eyebrow { margin-bottom: 1.2rem; }
@media (max-width: 720px) { .journal__ico { width: 38px; height: 38px; top: 1.1rem; right: 1.1rem; } }
