/* Douceurs et Affini'thés — couleurs et polices reprises du site d'origine */
:root {
  --fond: #cacaca;
  --fond-clair: #ececec;
  --surface: #f4f2f3;
  /* UN SEUL ROSE pour tout le site : modifiez --rose (ou Admin > Apparence) */
  --rose: #e6c1cc;
  --rose-tint: var(--rose);
  --rose-fonce: var(--rose);
  --rose-badge: var(--rose);
  --accent: var(--rose);
  --rose-clair: color-mix(in srgb, var(--rose) 30%, #fff);
  --rose-halo: color-mix(in srgb, var(--rose) 55%, transparent);
  --sur-rose: #424242;
  --lien: var(--texte);
  --texte: #424242;
  --texte-doux: #67575c;
  --gris: #868686;
  --ligne: #b9b9b9;
  --sombre: #282828;
  --sombre-texte: #9e9e9e;
  --erreur: #9e2723;
  --ok: #4f7a5a;
  --police-titres: "Playfair Display", Georgia, serif;
  --police-texte: "Quicksand", system-ui, sans-serif;
  --r: 14px;
  --ombre: 0 10px 30px -12px rgba(66, 66, 66, .35);
  --ombre-forte: 0 22px 50px -18px rgba(66, 66, 66, .5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font-family: var(--police-texte); font-size: 16px; font-weight: 500; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, .titre { font-family: var(--police-titres); color: var(--texte); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--lien); text-decoration: none; transition: color .2s; }
a:hover { color: var(--texte); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Bandeau d'annonce ---------- */
.annonce { background: var(--sombre); color: var(--rose); text-align: center; font-size: .82rem; padding: 8px 12px; letter-spacing: .03em; overflow: hidden; }
.annonce span { display: inline-block; animation: annonce 14s ease-in-out infinite; }
@keyframes annonce { 0%, 100% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-120%); opacity: 0; } 55% { transform: translateY(120%); opacity: 0; } 60% { transform: translateY(0); opacity: 1; } }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.entete.scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.45); border-color: var(--ligne); }
.entete-haut { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 0 6px; }
.slogan { font-size: .8rem; color: var(--texte-doux); font-style: italic; }
.logo { font-family: var(--police-titres); font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--texte); text-align: center; white-space: nowrap; letter-spacing: .01em; }
.logo:hover { color: var(--texte); }
.logo small { display: block; font-size: .5em; color: var(--texte); text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 3px; text-underline-offset: 6px; letter-spacing: .3em; text-transform: uppercase; }
.outils { display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.outil { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--texte); background: transparent; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.outil:hover { background: var(--fond-clair); color: var(--texte); transform: translateY(-2px); }
.outil svg { width: 21px; height: 21px; }
.pastille { position: absolute; top: 1px; right: 0; background: var(--rose-badge); color: var(--sur-rose); font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.pastille.on { transform: scale(1); }
.pastille.pop { animation: pop .5s; }
@keyframes pop { 50% { transform: scale(1.5); } }

.menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 4px 0 10px; font-family: var(--police-titres); text-transform: uppercase; font-size: 1rem; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 8px 14px; color: var(--texte); border-radius: 8px; position: relative; }
.menu > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--rose-fonce); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.menu > li:hover > a, .menu > li > a.actif { color: var(--sombre); }
.menu > li > a.actif::after { background: var(--rose); height: 3px; transform: scaleX(1); }
.menu > li:hover > a::after, .menu > li > a.actif::after { transform: scaleX(1); }
.sous { position: absolute; left: 50%; top: 100%; min-width: 210px; list-style: none; margin: 0; padding: 8px; background: var(--rose); border-radius: 12px; box-shadow: var(--ombre); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: .25s; font-size: .9rem; z-index: 5; }
.menu > li:hover .sous, .menu > li:focus-within .sous { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sous a { display: block; padding: 8px 12px; color: var(--texte-doux); border-radius: 8px; white-space: nowrap; }
.sous a:hover { background: var(--surface); color: var(--sur-rose); }
.burger { display: none; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 0; background: var(--rose); color: var(--texte); font-family: var(--police-titres); font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, color .2s; position: relative; overflow: hidden; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55), transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn:hover { background: var(--rose); color: var(--sur-rose); filter: brightness(1.04); transform: translateY(-2px); box-shadow: var(--ombre); }
.btn:hover::before { transform: translateX(120%); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sombre { background: var(--texte); color: var(--fond-clair); }
.btn-sombre:hover { background: var(--rose); color: var(--sur-rose); }
.btn-ligne { background: transparent; box-shadow: inset 0 0 0 2px var(--texte); }
.btn-ligne:hover { background: var(--texte); color: var(--fond-clair); }
.btn-petit { padding: 8px 16px; font-size: .9rem; }
.btn-bloc { width: 100%; }

/* ---------- Héros ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: grid; align-items: center; overflow: hidden; border-radius: 0 0 40px 40px; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1%, -1%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,40,40,.62), rgba(40,40,40,.2) 60%, transparent); }
.hero-contenu { position: relative; z-index: 2; color: #fff; max-width: 620px; padding: 60px 0; }
.hero-contenu h1 { color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.3); }
.hero-contenu p { font-size: 1.05rem; color: var(--rose-clair); }
.surtitre { display: inline-block; font-family: var(--police-titres); font-style: italic; color: var(--rose); letter-spacing: .05em; margin-bottom: 12px; }
.vapeur { position: absolute; z-index: 1; bottom: 0; right: 12%; width: 120px; height: 300px; pointer-events: none; }
.vapeur span { position: absolute; bottom: 0; width: 26px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.25); filter: blur(14px); animation: vapeur 6s ease-in infinite; }
.vapeur span:nth-child(2) { left: 40px; animation-delay: 2s; }
.vapeur span:nth-child(3) { left: 80px; animation-delay: 4s; }
@keyframes vapeur { 0% { transform: translateY(0) scaleX(1); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-260px) scaleX(2.4); opacity: 0; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-titre { text-align: center; margin-bottom: 40px; }
.section-titre p { color: var(--texte-doux); max-width: 620px; margin: 0 auto; }
.section-titre h2::after { content: "✦"; display: block; font-size: .9rem; color: var(--accent); margin-top: 10px; }
.bande-rose { background: var(--rose); }
.bande-claire { background: var(--fond-clair); }
.bande-sombre { background: var(--sombre); color: var(--sombre-texte); }
.bande-sombre h2, .bande-sombre h3 { color: #f1f1f1; }

/* ---------- Atouts ---------- */
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -54px; position: relative; z-index: 3; }
.atout { background: var(--surface); border-radius: var(--r); padding: 22px; box-shadow: var(--ombre); transition: transform .3s; }
.atout:hover { transform: translateY(-6px); }
.atout .ico { font-size: 1.6rem; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--rose); margin-bottom: 10px; }
.atout h3 { font-size: 1.05rem; margin-bottom: 4px; }
.atout p { font-size: .85rem; color: var(--texte-doux); margin: 0; }

/* ---------- Cartes catégories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-carte { position: relative; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--ombre); }
.cat-carte .fond { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s; }
.cat-carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(40,40,40,.78)); }
.cat-carte:hover .fond { transform: scale(1.1); }
.cat-carte div.txt { position: relative; z-index: 2; padding: 20px; }
.cat-carte h3 { color: #fff; margin: 0 0 4px; font-size: 1.5rem; }
.cat-carte span { font-size: .8rem; color: var(--rose); }

/* ---------- Grille produits ---------- */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.carte { background: var(--surface); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 0 rgba(0,0,0,.04); transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s; position: relative; }
.carte:hover { transform: translateY(-8px); box-shadow: var(--ombre-forte); }
.carte-img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--fond-clair); display: block; }
.carte-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.carte:hover .carte-img img { transform: scale(1.08); }
.carte-corps { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.carte-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--texte-doux); }
.carte h3 { font-size: 1.12rem; margin: 4px 0 6px; }
.carte h3 a { color: var(--texte); }
.carte h3 a:hover { color: var(--texte); }
.carte-resume { font-size: .82rem; color: var(--texte-doux); flex: 1; margin-bottom: 12px; }
.carte-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prix { font-family: var(--police-titres); font-size: 1.25rem; color: var(--texte); }
.prix s { font-size: .8em; color: var(--gris); margin-right: 6px; }
.prix small { font-family: var(--police-texte); font-size: .7rem; color: var(--gris); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { background: var(--surface); color: var(--texte); border: 1px solid var(--rose); font-size: .7rem; padding: 4px 10px; border-radius: 999px; font-weight: 700; box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); }
.badge.promo { background: var(--rose); color: var(--sur-rose); }
.badge.epuise { background: var(--texte); color: #fff; }
.coeur { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(244,242,243,.92); display: grid; place-items: center; cursor: pointer; color: var(--texte-doux); transition: transform .2s, color .2s; }
.coeur:hover { transform: scale(1.12); color: var(--accent); }
.coeur.on { color: var(--accent); }
.coeur.on svg { fill: currentColor; animation: pop .45s; }
.coeur svg { width: 19px; height: 19px; }
.ajout-rapide { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--rose); cursor: pointer; display: grid; place-items: center; transition: transform .25s, background .2s; flex: none; }
.ajout-rapide:hover { background: var(--sombre); color: var(--rose); transform: rotate(90deg); }
.ajout-rapide svg { width: 18px; height: 18px; }

/* image de remplacement */
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, var(--rose-clair), var(--rose) 55%, var(--rose-tint)); color: #fff; position: relative; }
.ph svg { width: 46%; opacity: .95; filter: drop-shadow(0 8px 14px rgba(66,66,66,.2)); transition: transform .7s; }
.carte:hover .ph svg { transform: rotate(-6deg) scale(1.06); }
.ph em { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: var(--police-titres); font-style: normal; color: var(--texte); font-size: .9rem; opacity: .8; padding: 0 8px; }

/* ---------- Split (texte + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.inverse > :first-child { order: 2; }
.split-img { border-radius: 28px; overflow: hidden; box-shadow: var(--ombre-forte); position: relative; }
.split-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.2s; }
.split-img:hover img { transform: scale(1.06); }
.split-img::before { content: ""; position: absolute; inset: 14px; border: 1.5px solid rgba(255,255,255,.65); border-radius: 18px; z-index: 2; pointer-events: none; }

/* ---------- Avis ---------- */
.avis-defile { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 85%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.avis { scroll-snap-align: start; background: var(--surface); border-radius: var(--r); padding: 26px; position: relative; }
.avis::before { content: "“"; position: absolute; top: -8px; right: 18px; font-family: var(--police-titres); font-size: 5rem; color: var(--rose); line-height: 1; }
.etoiles { color: var(--rose); letter-spacing: 2px; text-shadow: 0 0 1px rgba(0,0,0,.55); }
.avis p { font-style: italic; font-size: .9rem; }
.avis strong { font-family: var(--police-titres); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--r); padding: 0 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--ombre); }
.faq summary { cursor: pointer; padding: 18px 30px 18px 0; font-family: var(--police-titres); font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--texte-doux); padding-bottom: 18px; margin: 0; animation: deplie .4s ease; }
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin: 20px auto 0; }
.champ, .newsletter input { flex: 1; padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s; }
.champ:focus, .newsletter input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--rose-halo); }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 14px; }
.form .ligne2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .82rem; color: var(--texte-doux); }
.form input, .form textarea, .form select { padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--ligne); background: var(--surface); outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--rose-halo); }
.form textarea { min-height: 140px; resize: vertical; }
.choix { display: grid; gap: 10px; }
.choix label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--surface); cursor: pointer; color: var(--texte); font-size: .9rem; transition: border-color .2s, background .2s; }
.choix label:has(input:checked) { border-color: var(--accent); background: var(--rose-clair); }
.choix input { width: auto; accent-color: var(--accent); }
.choix .droite { margin-left: auto; font-family: var(--police-titres); }
.choix small { display: block; color: var(--gris); }

/* ---------- Pied de page ---------- */
.pied { background: var(--sombre); color: var(--sombre-texte); padding: 64px 0 24px; margin-top: 40px; border-radius: 40px 40px 0 0; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.pied h4 { color: #f1f1f1; font-size: 1.1rem; }
.pied a { color: var(--sombre-texte); display: block; padding: 3px 0; font-size: .86rem; }
.pied a:hover { color: var(--rose); transform: translateX(4px); }
.pied a { transition: color .2s, transform .2s; }
.pied .logo { text-align: left; color: #f1f1f1; display: block; margin-bottom: 10px; font-size: 1.6rem; padding: 0; }
.pied p { font-size: .86rem; }
.pied-bas { border-top: 1px solid #3c3c3c; margin-top: 40px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .78rem; }
.pied-bas a { display: inline; }

/* ---------- Pages internes ---------- */
.page-tete { background: var(--rose); padding: 54px 0 46px; text-align: center; position: relative; overflow: hidden; border-radius: 0 0 40px 40px; }
.page-tete h1 { margin-bottom: 8px; }
.page-tete p { max-width: 640px; margin: 0 auto; color: var(--texte-doux); }
.page-tete::before, .page-tete::after { content: "✦"; position: absolute; color: rgba(255,255,255,.6); font-size: 2.4rem; animation: scintille 4s ease-in-out infinite; }
.page-tete::before { left: 10%; top: 30%; }
.page-tete::after { right: 12%; bottom: 22%; animation-delay: 2s; font-size: 1.6rem; }
@keyframes scintille { 50% { opacity: .2; transform: scale(.7) rotate(30deg); } }
.fil { font-size: .78rem; margin-bottom: 14px; color: var(--texte-doux); }
.fil a { color: var(--texte-doux); }
.fil a:hover { color: var(--texte); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.puce { padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--texte); font-size: .85rem; border: 0; cursor: pointer; transition: .2s; }
.puce:hover { background: var(--fond-clair); color: var(--texte); }
.puce.on { background: var(--texte); color: var(--fond-clair); }
.barre-outils { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.barre-outils select, .barre-outils input { padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--surface); outline: none; }
.compte { color: var(--texte-doux); font-size: .85rem; }
.vide { text-align: center; padding: 60px 20px; color: var(--texte-doux); }
.vide .gros { font-size: 3rem; display: block; margin-bottom: 10px; }

/* ---------- Fiche produit ---------- */
.fiche { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: start; }
.fiche-img { position: sticky; top: 140px; border-radius: 28px; overflow: hidden; aspect-ratio: 1; background: var(--fond-clair); box-shadow: var(--ombre-forte); }
.fiche-img img { width: 100%; height: 100%; object-fit: cover; }
.fiche-img .zoom { transition: transform .4s; cursor: zoom-in; }
.fiche h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.fiche .prix { font-size: 2rem; display: block; margin: 8px 0 18px; }
.variantes { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px; }
.variante { padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--ligne); background: var(--surface); cursor: pointer; transition: .2s; }
.variante small { display: block; font-size: .72rem; color: var(--gris); }
.variante:hover { border-color: var(--rose-fonce); }
.variante.on { border-color: var(--accent); background: var(--rose-clair); box-shadow: 0 0 0 3px var(--rose-halo); }
.variante:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.qte { display: inline-flex; align-items: center; border: 1.5px solid var(--ligne); border-radius: 999px; background: var(--surface); }
.qte button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: var(--texte); }
.qte button:hover { color: var(--texte); }
.qte input { width: 44px; text-align: center; border: 0; background: none; outline: none; -moz-appearance: textfield; }
.qte input::-webkit-outer-spin-button, .qte input::-webkit-inner-spin-button { -webkit-appearance: none; }
.achat { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stock-info { font-size: .82rem; margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.stock-info::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(79,122,90,.18); }
.stock-info.bas::before { background: #c98a2b; box-shadow: 0 0 0 4px rgba(201,138,43,.2); }
.stock-info.zero::before { background: var(--erreur); box-shadow: 0 0 0 4px rgba(158,39,35,.18); }
.infusion { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.infusion div { background: var(--surface); border-radius: 12px; padding: 14px; text-align: center; }
.infusion b { display: block; font-family: var(--police-titres); font-size: 1.05rem; }
.infusion span { font-size: .72rem; color: var(--gris); text-transform: uppercase; letter-spacing: .08em; }
.onglets { margin-top: 28px; }
.onglets-tetes { display: flex; gap: 6px; border-bottom: 1.5px solid var(--ligne); }
.onglets-tetes button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-family: var(--police-titres); color: var(--texte-doux); position: relative; }
.onglets-tetes button.on { color: var(--sombre); }
.onglets-tetes button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 3px; background: var(--accent); }
.onglet { padding: 18px 2px; font-size: .9rem; color: var(--texte-doux); white-space: pre-line; animation: deplie .35s; }

/* ---------- Panier ---------- */
.panier-grille { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }
.panier-ligne { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 18px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 14px; margin-bottom: 12px; animation: deplie .4s; }
.panier-ligne .mini { width: 90px; height: 90px; border-radius: 12px; overflow: hidden; }
.panier-ligne .mini img { width: 100%; height: 100%; object-fit: cover; }
.panier-ligne h3 { font-size: 1.05rem; margin: 0; }
.panier-ligne small { color: var(--gris); }
.retirer { border: 0; background: none; color: var(--gris); cursor: pointer; font-size: .78rem; text-decoration: underline; padding: 0; }
.retirer:hover { color: var(--erreur); }
.recap { background: var(--surface); border-radius: var(--r); padding: 26px; position: sticky; top: 140px; box-shadow: var(--ombre); }
.recap .ligne { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; }
.recap .total { border-top: 1.5px dashed var(--ligne); margin-top: 10px; padding-top: 14px; font-family: var(--police-titres); font-size: 1.4rem; }
.jauge { height: 8px; background: var(--fond-clair); border-radius: 4px; overflow: hidden; margin: 6px 0 16px; }
.jauge div { height: 100%; background: linear-gradient(90deg, var(--rose), var(--accent)); border-radius: 4px; transition: width .6s; }
.code-promo { display: flex; gap: 8px; margin: 14px 0; }
.code-promo input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--ligne); background: #fff; outline: none; text-transform: uppercase; }
.msg { font-size: .82rem; margin: 4px 0; }
.msg.ok { color: var(--ok); }
.msg.ko { color: var(--erreur); }

/* tiroir panier */
.voile { position: fixed; inset: 0; background: rgba(40,40,40,.45); z-index: 90; opacity: 0; visibility: hidden; transition: .3s; }
.voile.on { opacity: 1; visibility: visible; }
.tiroir { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--fond-clair); z-index: 91; transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.tiroir.on { transform: none; }
.tiroir-tete { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--ligne); }
.tiroir-tete h3 { margin: 0; }
.tiroir-corps { flex: 1; overflow-y: auto; padding: 16px 22px; }
.tiroir-pied { padding: 18px 22px; border-top: 1px solid var(--ligne); display: grid; gap: 10px; }
.t-ligne { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--ligne); }
.t-ligne .mini { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; }
.t-ligne .mini img { width: 100%; height: 100%; object-fit: cover; }
.t-ligne b { font-family: var(--police-titres); font-weight: 400; display: block; }
.t-ligne small { color: var(--gris); }

/* ---------- Toast ---------- */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--texte); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .88rem; box-shadow: var(--ombre-forte); animation: toast 3.2s forwards; display: flex; gap: 10px; align-items: center; }
.toast::before { content: "✦"; color: var(--rose); }
@keyframes toast { 0% { opacity: 0; transform: translateY(20px) scale(.95); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Recettes ---------- */
.recette-carte .carte-img { aspect-ratio: 4/3; }
.recette-meta { display: flex; gap: 14px; font-size: .78rem; color: var(--gris); }
.recette-cols { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.recette-cols ul { padding-left: 1.2em; }
.recette-cols li { margin-bottom: 6px; }
.etapes { counter-reset: e; list-style: none; padding: 0; }
.etapes li { counter-increment: e; position: relative; padding-left: 52px; margin-bottom: 18px; min-height: 36px; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; font-family: var(--police-titres); color: var(--lien); }

/* ---------- Contenu riche ---------- */
.prose { max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--r); padding: clamp(24px, 5vw, 48px); }
.prose p { white-space: pre-line; }

/* ---------- Commande ---------- */
.etapes-cmd { display: flex; justify-content: center; gap: 0; margin-bottom: 36px; }
.etapes-cmd span { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--gris); }
.etapes-cmd span + span::before { content: ""; width: 50px; height: 2px; background: var(--ligne); margin: 0 10px; }
.etapes-cmd span.on { color: var(--texte); }
.etapes-cmd i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fond-clair); font-family: var(--police-titres); }
.etapes-cmd span.on i { background: var(--rose); color: var(--sur-rose); }
.bloc { background: var(--surface); border-radius: var(--r); padding: 26px; margin-bottom: 20px; }
.bloc h3 { display: flex; align-items: center; gap: 10px; }
.bloc h3 i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; font-size: .9rem; }
.carte-bancaire { display: none; margin-top: 12px; }
.carte-bancaire.on { display: grid; animation: deplie .35s; }
.merci { text-align: center; max-width: 640px; margin: 0 auto; }
.merci .cercle { width: 96px; height: 96px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; margin: 0 auto 22px; font-size: 2.6rem; animation: pop .7s; }
.suivi-etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 26px 0; }
.suivi-etapes div { text-align: center; font-size: .78rem; color: var(--gris); padding-top: 14px; border-top: 4px solid var(--fond-clair); }
.suivi-etapes div.on { border-color: var(--accent); color: var(--texte); }

/* ---------- Maintenance ---------- */
.maintenance { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 30px; background: var(--rose); }

/* ---------- Animations d'apparition ---------- */
.apparait { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.apparait.vu { opacity: 1; transform: none; }
.grille > .apparait:nth-child(4n+2), .cats > .apparait:nth-child(4n+2) { transition-delay: .08s; }
.grille > .apparait:nth-child(4n+3), .cats > .apparait:nth-child(4n+3) { transition-delay: .16s; }
.grille > .apparait:nth-child(4n+4), .cats > .apparait:nth-child(4n+4) { transition-delay: .24s; }
.flotte { animation: flotte 6s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-10px); } }
body.sans-anim *, body.sans-anim *::before, body.sans-anim *::after { animation: none !important; transition: none !important; }
body.sans-anim .apparait { opacity: 1; transform: none; }

/* ---------- Bouton connexion admin (en-tête) ---------- */
.outil.outil-admin { width: auto; height: 40px; border-radius: 999px; padding: 0 14px 0 10px; display: inline-flex; gap: 6px; background: var(--rose); color: var(--sur-rose); font-family: var(--police-titres); font-size: .9rem; margin-left: 6px; }
.outil.outil-admin svg { width: 20px; height: 20px; }
.outil.outil-admin:hover { background: var(--rose); color: var(--sur-rose); box-shadow: var(--ombre); }

/* ---------- Fenêtre de connexion ---------- */
.connexion-voile { position: fixed; inset: 0; z-index: 200; background: rgba(40,40,40,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.connexion-voile.on { opacity: 1; }
.connexion-fenetre { position: relative; width: min(420px, 100%); background: var(--surface); border-radius: 22px; padding: 34px 30px 28px; display: grid; gap: 12px; box-shadow: var(--ombre-forte); transform: translateY(18px) scale(.97); transition: transform .3s cubic-bezier(.2,.8,.2,1); border-top: 6px solid var(--rose); }
.connexion-voile.on .connexion-fenetre { transform: none; }
.connexion-fenetre h2 { text-align: center; margin: 0; }
.connexion-fenetre > p { text-align: center; font-size: .85rem; color: var(--texte-doux); margin: 0 0 6px; }
.connexion-ico { width: 62px; height: 62px; border-radius: 50%; background: var(--rose); color: var(--sur-rose); display: grid; place-items: center; margin: 0 auto; }
.connexion-ico svg { width: 30px; height: 30px; }
.connexion-fenetre label { display: grid; gap: 4px; font-size: .85rem; }
.connexion-fenetre input[name=u], .connexion-fenetre input[name=p] { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--ligne); background: #fff; }
.connexion-fenetre input:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-halo); }
.connexion-rester { display: flex !important; align-items: center; gap: 8px !important; }
.connexion-rester input { accent-color: var(--rose); }
.connexion-err { color: var(--erreur); min-height: 1.2em; margin: 0; font-size: .85rem; text-align: center; }
.connexion-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--texte); display: grid; place-items: center; }
.connexion-x:hover { background: var(--fond-clair); }
.connexion-x svg { width: 20px; height: 20px; }

/* ---------- Barre admin (quand l'admin est connecté) ---------- */
.barre-admin { background: var(--sombre); color: #e9e9e9; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .82rem; position: relative; z-index: 60; border-bottom: 3px solid var(--rose); }
.barre-admin-in { display: flex; align-items: center; gap: 4px; padding: 6px 12px; overflow-x: auto; white-space: nowrap; }
.barre-admin a { color: #e9e9e9; padding: 6px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.barre-admin a:hover { background: #3a3a3a; color: #fff; }
.barre-admin a b { background: var(--rose); color: var(--sur-rose); border-radius: 9px; padding: 0 7px; font-size: .72rem; }
.barre-admin .ba-marque { font-family: var(--police-titres); color: var(--rose); font-size: .95rem; }
.barre-admin .ba-edit { background: var(--rose); color: var(--sur-rose); font-weight: 600; }
.barre-admin .ba-edit:hover { background: var(--rose); color: var(--sur-rose); filter: brightness(1.05); }
.barre-admin .ba-esp { flex: 1; }
.barre-admin .ba-qui { color: #9e9e9e; padding: 0 6px; }
.barre-admin button { background: transparent; border: 1px solid #555; color: #e9e9e9; border-radius: 8px; padding: 5px 10px; cursor: pointer; font: inherit; }
.barre-admin button:hover { border-color: var(--rose); color: var(--rose); }
@media (max-width: 760px) { .barre-admin a span { display: none; } .barre-admin .ba-qui { display: none; } .outil.outil-admin span { display: none; } .outil.outil-admin { width: 36px; height: 36px; padding: 0; justify-content: center; margin-left: 2px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .apparait { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .atouts, .cats { grid-template-columns: repeat(2, 1fr); }
  .split, .fiche, .panier-grille, .recette-cols { grid-template-columns: 1fr; gap: 30px; }
  .split.inverse > :first-child { order: 0; }
  .fiche-img, .recap { position: static; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .entete-haut { grid-template-columns: auto 1fr auto; }
  .slogan { display: none; }
  .logo { text-align: left; font-size: 1.15rem; white-space: normal; min-width: 0; line-height: 1.15; }
  .entete-haut { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; }
  .outils { gap: 0; }
  .outil { width: 36px; height: 36px; }
  .logo small { display: none; }
  .burger { display: grid; }
  .menu { display: none; flex-direction: column; text-align: left; padding: 8px 0 16px; }
  .menu.on { display: flex; animation: deplie .3s; }
  .sous { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 18px; display: none; }
  .menu > li.ouvert .sous { display: block; }
  .menu > li > a::after { display: none; }
  .form .ligne2 { grid-template-columns: 1fr; }
  .panier-ligne { grid-template-columns: 70px 1fr; }
  .panier-ligne .mini { width: 70px; height: 70px; }
  .panier-ligne > :nth-child(3), .panier-ligne > :nth-child(4) { grid-column: 2; }
  .newsletter form { flex-direction: column; }
  .infusion { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .grille { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .carte-corps { padding: 12px; }
  .carte-resume { display: none; }
  .suivi-etapes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
  .atouts, .cats { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
}

/* Espace client */
.compte-onglets { flex-wrap: wrap; margin-bottom: 18px; }
.compte-onglets #deco-client { color: var(--texte-doux); font-family: inherit; font-size: .85rem; }
.onglet-compte { animation: deplie .35s; }
.compte-split .bloc { margin-bottom: 0; }
.envoi-err:empty { display: none; }
