/* MP Spirits — couleurs de la charte graphique (MP Spirits_Charte_250624) :
   noir #080b03, vert #223420, beige #dcc3a8, taupe #7f7160, rouge #862f24, blanc #f4f4f4, or.
   Titres : Pirata One (proche de l'Adso Extra Bold) ; texte : Jost (proche de l'Avenir).
   Contrastes (WCAG) : texte #F4EFE7 sur #0b0d07 ≈ 17:1 ; beige #dcc3a8 ≈ 11:1 ; or #c9a45c ≈ 8:1. */
:root {
  --bg: #0b0d07;
  --bg-2: #15180f;
  --green: #223420;
  --green-2: #182616;
  --brown: #2a1b12;
  --brown-2: #3a271a;
  --beige: #dcc3a8;
  --taupe: #7f7160;
  --red: #862f24;
  --fg: #f4efe7;
  --gold: #c9a45c;
  --gold-soft: #8a6d43;
  --muted: #c4b8a8;
  --border: #34372b;
  --danger: #f08a80;
  --display: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: .01em; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
p { margin: 0 0 .9em; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { font: 500 .8125rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 38rem; }
.gold-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 2rem 0; }
.gold-rule.short { max-width: 20rem; background: linear-gradient(90deg, var(--gold), transparent); }
.price { color: var(--gold); margin: .25rem 0 0; }
.price.big { font-size: 1.6rem; margin: .8rem 0 1.6rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.8rem; border: 1px solid transparent; border-radius: 2px; font: 500 .85rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { opacity: .9; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); width: 100%; padding: .8rem 1rem; letter-spacing: .08em; text-transform: none; font-size: .9rem; margin-top: auto; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--bg); }
.btn.block { width: 100%; margin-top: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-underline { color: var(--fg); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; }
.link-underline:hover { color: var(--gold); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; height: 84px; padding: 0 var(--gutter); background: rgba(8, 11, 3, .9); backdrop-filter: blur(8px); transition: background .4s; }
.brand { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.brand img { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; transition: transform .4s; }
.brand:hover img { transform: rotate(-6deg) scale(1.04); }
.main-nav { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav-left { justify-content: flex-start; }
.main-nav a, .mobile-nav a { text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.main-nav a { position: relative; padding: .4rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.6rem, 1.6vw, 1.4rem); }
.login-link { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 1px solid rgba(201, 164, 92, .5); padding: .45rem .8rem; white-space: nowrap; }
.login-link:hover { border-color: var(--gold); color: var(--gold); }
/* Accueil : en-tête transparent au-dessus de la vidéo, opaque dès qu'on descend */
.home .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(8, 11, 3, .65), transparent); backdrop-filter: none; }
.home .site-header.scrolled { background: rgba(8, 11, 3, .92); backdrop-filter: blur(8px); }
.cart-link { position: relative; display: inline-flex; padding: 6px; }
.cart-count { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: var(--bg); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.cart-count[hidden] { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: var(--fg); padding: 6px; cursor: pointer; }
.mobile-nav { position: absolute; top: 84px; right: var(--gutter); width: 16rem; background: var(--bg); border: 1px solid var(--border); padding: .5rem; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.mobile-nav a { display: block; padding: .75rem; }
.mobile-nav a[aria-current="page"] { color: var(--gold); }
.mobile-nav[hidden] { display: none; }
@media (max-width: 1279px) { .main-nav, .login-link { display: none; } .menu-toggle { display: inline-flex; } .site-header { height: 72px; } .mobile-nav { top: 72px; } .brand img { width: 50px; height: 50px; } .brand { grid-column: 2; } .header-actions { grid-column: 3; } }

/* Sections */
.section { padding: 4.5rem var(--gutter); }
.section.center { text-align: center; }
.section.center .btn { margin-top: 1.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }

/* Accueil */
.hero { display: grid; gap: 2.5rem; align-items: center; padding: 3.5rem var(--gutter); border-bottom: 1px solid var(--border); }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero .lead { margin-top: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.2rem; }
.hero-media { position: relative; display: block; text-decoration: none; }
.hero-media .frame { position: relative; aspect-ratio: 4 / 5; max-height: 70vh; overflow: hidden; background: var(--bg-2); outline: 1px solid rgba(138, 109, 67, .6); outline-offset: 12px; }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; font: 400 1.4rem/1.2 var(--display); }
.hero-caption .price { font: 400 1rem/1.6 var(--sans); }
@media (min-width: 768px) { .hero { grid-template-columns: 1.1fr 1fr; padding-block: 5rem; } }
.story { display: grid; gap: 3rem; align-items: center; padding: 5rem var(--gutter); background: var(--bg-2); border-block: 1px solid var(--border); }
.story > img { width: min(18rem, 70%); margin: 0 auto; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.facts li { border-left: 1px solid var(--gold); padding-left: 1rem; }
.facts strong { display: block; font: 400 2rem/1.1 var(--display); color: var(--gold); }
.facts span { font-size: .9rem; color: var(--muted); }
@media (min-width: 768px) { .story { grid-template-columns: auto 1fr; } }

/* Grille et tuiles */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1.25rem; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-link { text-decoration: none; display: block; margin-bottom: 1rem; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.card-hover { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-hover { opacity: 1; }
.card h3 { font-size: 1.3rem; margin-top: 1rem; overflow-wrap: anywhere; }
.card .btn-outline { margin-top: auto; }
.card-oos { margin-top: auto; }
.ribbon { position: absolute; top: .75rem; left: 0; background: var(--gold); color: var(--bg); padding: .3rem .65rem; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.ribbon.static { position: static; display: inline-block; margin-bottom: 1rem; }
.soldout { position: absolute; left: .75rem; bottom: .75rem; background: rgba(20,18,17,.9); border: 1px solid var(--border); color: var(--muted); padding: .3rem .65rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.toolbar p { margin: 0; }
select, input, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 2px; }
select { padding: .5rem .7rem; }

/* Fiche produit */
.product { padding: 1.5rem var(--gutter) 4rem; }
.crumbs { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--fg); }
.product-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } .gallery { position: sticky; top: 88px; align-self: start; } }
.gallery-main { display: flex; align-items: center; justify-content: center; background: var(--bg-2); border: 1px solid var(--border); max-height: 34vh; }
.gallery-main img { width: 100%; max-height: 34vh; object-fit: contain; }
@media (max-width: 767px) { .product { padding-top: 1rem; } .crumbs { margin-bottom: 1rem; } .product-info h1 { font-size: 2rem; } .price.big { margin: .4rem 0 1rem; } .ribbon.static { margin-bottom: .5rem; } }
@media (min-width: 768px) { .gallery-main, .gallery-main img { max-height: none; aspect-ratio: 4 / 5; } .gallery-main img { height: 100%; } }
.thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 1px solid var(--border); background: var(--bg-2); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); }
.buy { margin-bottom: 1rem; }
.choices { border: 0; padding: 0; margin: 0 0 1.2rem; }
.choices legend { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.choices label { display: inline-block; margin: 0 .4rem .4rem 0; }
.choices input { position: absolute; opacity: 0; }
.choices span { display: inline-block; min-width: 3rem; text-align: center; padding: .5rem .9rem; border: 1px solid var(--border); cursor: pointer; }
.choices input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choices input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.buy-row { display: flex; gap: .75rem; }
.grow { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); }
.qty button { background: none; border: 0; color: var(--fg); width: 2.4rem; height: 100%; font-size: 1.1rem; cursor: pointer; }
.qty input { width: 2.6rem; border: 0; text-align: center; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-hint { margin-top: .6rem; min-height: 1.3em; }
.soldout-note { color: var(--muted); border: 1px solid var(--border); padding: 1rem; }
.soldout-note a { color: var(--gold); }
.prose { color: var(--muted); font-size: 1.0625rem; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul { padding-left: 1.25rem; margin: 0 0 .9em; }
.prose li p { margin: 0; }
.sections { margin-top: 2rem; border-top: 1px solid var(--border); }
.sections details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.sections summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font: 400 1.35rem/1.3 var(--display); }
.sections summary::-webkit-details-marker { display: none; }
.sections summary span { color: var(--gold); transition: transform .2s; }
.sections details[open] summary span { transform: rotate(45deg); }
.sections .prose { margin-top: .8rem; }

/* Panier */
.cart { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .cart { grid-template-columns: minmax(0, 1fr) 22rem; } .summary { align-self: start; position: sticky; top: 88px; } }
.cart-lines { list-style: none; margin: 0; padding: 0; border-block: 1px solid var(--border); }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 88px; height: 88px; object-fit: cover; border: 1px solid var(--border); }
.cart-line h3 { font-size: 1.3rem; }
.cart-line h3 a { text-decoration: none; }
.line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .7rem; }
.text-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; font-size: .9rem; }
.text-btn:hover { color: var(--fg); }
.pay-line { font-size: .75rem; padding: .55rem .9rem; }
.summary { border: 1px solid var(--border); padding: 1.5rem; }
.summary h2 { font-size: 1.8rem; margin-bottom: 1.2rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.sum-row.total { border-top: 1px solid var(--border); padding-top: .8rem; margin-top: .8rem; font-size: 1.1rem; }
.sum-row.total strong { color: var(--gold); }
.summary .btn { width: 100%; margin-top: 1rem; }
.ship-country { display: flex; flex-direction: column; gap: .4rem; margin-top: 1.2rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ship-country select { width: 100%; padding: .7rem .8rem; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.empty { border: 1px solid var(--border); padding: 4rem 1.5rem; text-align: center; }
.empty img { margin: 0 auto 1.5rem; opacity: .75; }
.empty-title { font: 400 1.8rem/1.2 var(--display); }

/* Formulaire */
.contact { display: grid; gap: 3rem; }
@media (min-width: 768px) { .contact { grid-template-columns: 1fr 1.2fr; } }
.contact-logo { width: 12rem; margin-top: 3rem; }
@media (max-width: 767px) { .contact-logo { display: none; } }
.form { border: 1px solid var(--border); padding: clamp(1.25rem, 4vw, 2.5rem); display: flex; flex-direction: column; gap: 1.3rem; }
.field label { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.field input, .field textarea { width: 100%; padding: .8rem 1rem; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field .err { color: var(--danger); font-size: .9rem; margin: .4rem 0 0; }
.req { color: var(--gold); }
.form-error { color: var(--danger); margin: 0; }
.form-ok { border: 1px solid var(--gold); padding: 2rem; }
.form-ok p:first-child { font: 400 1.8rem/1.2 var(--display); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--border); margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; padding: 3.5rem var(--gutter); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: auto 1fr 1fr; } }
.footer-grid img { width: 96px; height: 96px; }
.footer-mark { font: 400 2.4rem/1 var(--display); color: var(--gold); }
.footer-name { font: 400 1.6rem/1.2 var(--display); margin-bottom: .4rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-grid nav a { color: var(--muted); text-decoration: none; }
.footer-grid nav a:hover { color: var(--gold); }
.site-footer .gold-rule { margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.5rem var(--gutter); font-size: .8rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* Message flottant (ajout au panier) */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--bg-2); border: 1px solid var(--gold); padding: .9rem 1.2rem; display: flex; gap: 1rem; align-items: center; z-index: 60; box-shadow: 0 20px 40px rgba(0,0,0,.5); max-width: calc(100% - 32px); }
.toast a { color: var(--gold); white-space: nowrap; }

/* ===================== Univers MP Spirits (refonte 2026) ===================== */
.display { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1.05; }
.display-xl { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 11vw, 9rem); line-height: .95; letter-spacing: .02em; margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.display-xl span { display: block; font-family: var(--sans); font-size: .22em; letter-spacing: .6em; text-transform: uppercase; color: var(--beige); margin-bottom: .35em; text-shadow: none; padding-left: .6em; }
.plan { position: relative; padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); }
.plan-dark { background: var(--bg); }
.plan-brown { background: radial-gradient(120% 90% at 80% 20%, var(--brown-2), var(--brown) 55%, #1c120b); }
.plan-green { background: radial-gradient(110% 100% at 20% 0%, #2c4429, var(--green) 50%, var(--green-2)); }
/* Vagues entre les plans : jamais une ligne droite */
.wave { position: relative; height: clamp(40px, 6vw, 90px); margin-top: calc(-1 * clamp(40px, 6vw, 90px) + 1px); z-index: 2; pointer-events: none; line-height: 0; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave-brown { color: var(--brown); } .wave-dark { color: var(--bg); } .wave-green { color: var(--green); } .wave-photo { color: #1c120b; }
.wave path { fill: currentColor; }

/* Apparition au défilement (désactivée si l'utilisateur limite les animations) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.from-right { transform: translateX(40px) rotate(1deg); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Plan 1 : vidéo */
.hero-video { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; background: #120c07; }
.hero-video { isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { z-index: -1; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 55%, rgba(8,11,3,.25), rgba(8,11,3,.75)), linear-gradient(transparent 60%, rgba(8,11,3,.6)); }
.hero-inner { position: relative; z-index: 1; padding: 7rem var(--gutter) 5rem; }
.hero-inner .eyebrow { color: var(--beige); font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .3em; }
.bio-badge { display: inline-flex; align-items: center; gap: .6rem; margin: 1.8rem 0 0; padding: .55rem 1.1rem; border: 1px solid rgba(220,195,168,.5); border-radius: 999px; color: var(--beige); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; background: rgba(8,11,3,.35); }
.bio-badge .leaf { color: #8fc26a; }
.hero-video .hero-cta { justify-content: center; margin-top: 2.4rem; }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(244,239,231,.6); border-radius: 13px; z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Plan 2 : Amande Honorable */
.tagline { font: italic 600 clamp(1.5rem, 3.4vw, 2.6rem)/1.25 var(--serif); color: var(--beige); text-align: center; max-width: 52rem; margin: 0 auto clamp(2.5rem, 6vw, 5rem); }
.amande-grid { display: grid; gap: 3rem; align-items: center; max-width: 72rem; margin: 0 auto; }
@media (min-width: 860px) { .amande-grid { grid-template-columns: 1.05fr 1fr; } }
.amande-text { text-align: center; }
.amande-logo { width: 110px; height: 110px; margin: 0 auto 1.2rem; border-radius: 50%; }
.amande-text h2 { font-size: clamp(2.8rem, 6vw, 4.6rem); color: var(--fg); }
.amaretto-dots { font: 500 clamp(.9rem, 1.6vw, 1.1rem)/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; color: var(--gold); margin: .8rem 0 2.2rem; }
.amaretto-dots span { color: var(--beige); letter-spacing: 0; }
.medals { list-style: none; padding: 0; margin: 0 0 2.2rem; display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(.8rem, 2.5vw, 2rem); }
.medals img { width: clamp(88px, 11vw, 132px); height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); transition: transform .4s; }
.medals li:nth-child(2) img { transform: translateY(-10px); }
.medals img:hover { transform: scale(1.06) rotate(-3deg); }
.pun { font: italic 600 clamp(1.4rem, 2.6vw, 1.9rem)/1.3 var(--serif); color: var(--beige); margin-bottom: .6rem; }
.pun-en { color: var(--muted); font-size: .98rem; margin-bottom: 2rem; }
.amande-bottle img { width: 100%; max-width: 34rem; margin: 0 auto; border-radius: 46% 46% 12px 12px / 30% 30% 12px 12px; box-shadow: 0 40px 80px rgba(0,0,0,.55); }

/* Plan 3 : photo + texte, sans encadré */
.voyage { min-height: 88vh; display: flex; align-items: center; overflow: hidden; background: #1c120b; }
.voyage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.voyage::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,8,4,.92) 0%, rgba(12,8,4,.78) 38%, rgba(12,8,4,.15) 75%, transparent); }
.voyage-text { position: relative; z-index: 2; max-width: 36rem; font-size: 1.08rem; color: var(--fg); }
.voyage-text p { text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.voyage-lead { font: italic 600 clamp(1.5rem, 2.8vw, 2.2rem)/1.3 var(--serif); color: var(--beige); margin-bottom: 1.6rem; }
@media (max-width: 767px) { .voyage::before { background: linear-gradient(rgba(12,8,4,.55), rgba(12,8,4,.9) 45%); } .voyage { align-items: flex-end; } }
.plan-dark .section-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

/* Pages intérieures */
.page-intro { text-align: center; padding-bottom: 2rem; }
.page-intro h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); color: var(--fg); }
.page-intro .lead { margin: 1.6rem auto 0; }
.prose-story { font-size: 1.12rem; line-height: 1.75; color: #e6ddd0; }
.prose-story strong { color: var(--gold); font-weight: 500; }
.prose-story.narrow { max-width: 44rem; margin: 0 auto; }
.dropcap::first-letter { float: left; font: 400 4.6em/.8 var(--display); color: var(--gold); padding: .08em .12em 0 0; }
.quote { font: italic 600 clamp(1.35rem, 2.4vw, 1.75rem)/1.4 var(--serif); color: var(--beige); border-left: 2px solid var(--gold); padding-left: 1.2rem; margin: 2rem 0; }
.quote.big { border: 0; padding: 0; text-align: center; max-width: 50rem; margin: 0 auto 1.2rem; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.legend { display: grid; gap: 3rem; max-width: 72rem; margin: 0 auto; padding-top: 1rem; }
@media (min-width: 900px) { .legend { grid-template-columns: 22rem 1fr; align-items: start; } .legend-portrait { position: sticky; top: 110px; } }
.legend-portrait { margin: 0; }
.legend-portrait img { border-radius: 50% 50% 6px 6px / 38% 38% 6px 6px; filter: sepia(.35) contrast(1.05); box-shadow: 0 30px 60px rgba(0,0,0,.5); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .9rem; letter-spacing: .02em; }
.fresque { margin: 0; position: relative; background: #1c120b; padding: 0 0 calc(clamp(40px, 6vw, 90px) + 1.75rem); }
.fresque img { width: 100%; max-height: 88vh; object-fit: cover; }
.fresque figcaption { max-width: 52rem; margin: 1.2rem auto 0; padding: 0 var(--gutter); text-align: center; font-style: italic; }
.renaissance .btn { margin-top: 1rem; }

/* Notre histoire : chapitres + photos façon tirages anciens */
.chapter { display: grid; gap: 3rem; align-items: center; }
.chapter > * { max-width: 40rem; }
@media (min-width: 900px) { .chapter { grid-template-columns: 1fr 1.15fr; padding-inline: max(var(--gutter), calc((100% - 76rem) / 2)); } .chapter.reverse .chapter-text { order: 2; } }
.chapter-num, .chapter-text .chapter-num { font: 400 3.6rem/1 var(--display); color: var(--gold); margin: 0 0 .4rem; }
.chapter h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1.4rem; color: var(--fg); }
.chapter-text p { font-size: 1.1rem; line-height: 1.75; color: #e6ddd0; }
.snaps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; align-items: start; }
.snaps .snap:first-child { grid-row: span 2; }
.snap { margin: 0; background: #efe6d6; padding: .7rem .7rem 0; box-shadow: 0 18px 40px rgba(0,0,0,.5); transition: transform .5s; }
.snap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: sepia(.3) contrast(1.03); }
.snaps .snap:not(:first-child) img { aspect-ratio: 4 / 3; }
.snap figcaption { color: #3a2a1c; font: italic 600 1.05rem/1.3 var(--serif); padding: .55rem .2rem .7rem; margin: 0; text-align: center; }
.js .snap.tilt-l.in, .snap.tilt-l { transform: rotate(-2deg); } .js .snap.tilt-r.in, .snap.tilt-r { transform: rotate(1.6deg); }
.snap:hover { transform: rotate(0) scale(1.02) !important; z-index: 1; position: relative; }
.snap-bd { max-width: 30rem; justify-self: center; }
.snap-bd img { aspect-ratio: auto; filter: none; }
.signature { text-align: center; }
.signed { font: 400 2.2rem/1 var(--display); color: var(--gold); margin: 1rem 0 2rem; }

/* Produits : texte des amandes dans une forme organique + bande dessinée */
.shop-intro { display: grid; gap: 2rem; align-items: center; justify-items: center; overflow: hidden; }
@media (min-width: 1000px) { .shop-intro { grid-template-columns: 1fr minmax(0, 40rem) 1fr; } }
.almond-card { position: relative; padding: clamp(2rem, 5vw, 3.6rem) clamp(1.6rem, 5vw, 3.8rem); background: radial-gradient(120% 120% at 30% 0%, #4a3322, #2e1e13); border-radius: 58% 42% 52% 48% / 18% 22% 16% 20%; box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 0 0 1px rgba(220,195,168,.18); color: #eadfce; text-align: center; }
.almond-card::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(201,164,92,.35); border-radius: inherit; pointer-events: none; }
.almond-card h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); margin-bottom: 1.2rem; color: var(--fg); }
.almond-card p { font-size: 1.04rem; line-height: 1.7; }
.almond-card strong { color: var(--gold); font-weight: 500; }
.bd { margin: 0; background: #fff; padding: 6px; box-shadow: 0 20px 44px rgba(0,0,0,.5); }
.bd img { width: 100%; }
.bd-a { max-width: 20rem; transform: rotate(-3deg); }
.bd-b { max-width: 17rem; transform: rotate(3.5deg); }
.js .bd-a.reveal.in { transform: rotate(-3deg); } .js .bd-b.reveal.in { transform: rotate(3.5deg); }
@media (max-width: 999px) { .bd-a { max-width: 15rem; } .bd-b { display: none; } }
.bd-strip { display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: clamp(.8rem, 2vw, 1.6rem); align-items: center; padding: 1rem var(--gutter) 3rem; background: linear-gradient(#1c120b, var(--bg)); }
.bd-strip .bd:nth-child(1), .js .bd-strip .bd:nth-child(1).in { transform: rotate(-2deg); }
.bd-strip .bd:nth-child(3), .js .bd-strip .bd:nth-child(3).in { transform: rotate(2deg); }
@media (max-width: 767px) { .bd-strip { grid-template-columns: 1fr; } .bd-strip .bd:not(.wide) { display: none; } }
.shop-list { padding-top: 2.5rem; }
.card-media { background: radial-gradient(circle at 50% 35%, #2b2218, #15110c); }

/* Professionnel */
.pro { display: grid; place-items: center; }
.pro-card { max-width: 40rem; text-align: center; padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid rgba(201,164,92,.35); border-radius: 28px; background: rgba(8,11,3,.35); }
.pro-card h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.pro-card .btn { margin-top: 1rem; }

/* Contrôle de l'âge */
.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--gutter); background: rgba(8,11,3,.82); backdrop-filter: blur(10px); }
.age-box { width: min(30rem, 100%); text-align: center; padding: clamp(2rem, 5vw, 3rem); background: radial-gradient(120% 100% at 50% 0%, #2c4429, var(--green-2)); border: 1px solid rgba(201,164,92,.45); border-radius: 24px; box-shadow: 0 40px 90px rgba(0,0,0,.6); }
.age-box img { width: 96px; height: 96px; margin: 0 auto 1.2rem; border-radius: 50%; }
.age-box h2 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin-bottom: .8rem; }
.age-box p { color: var(--muted); }
.age-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.age-no { color: var(--beige); margin-top: 1.2rem; display: none; }
.age-gate.refused .age-no { display: block; }
.site-footer { background: var(--bg); border-color: rgba(201,164,92,.18); margin-top: 0; }
.site-footer a { color: inherit; }

/* Empêche les animations latérales de faire déborder la page sur mobile */
main { overflow-x: clip; }

/* Accueil : Philippe et Maxime (personnages de la BD) rient puis trinquent, en avant-plan */
.duo { position: absolute; right: 0; bottom: calc(clamp(40px, 6vw, 90px) * .55 - 0.5cm); z-index: 2; width: clamp(94px, 11.3vw, 167px); margin-right: clamp(8px, 2vw, 32px); pointer-events: none; }
.duo-stage { position: relative; aspect-ratio: 721 / 484; }
.duo-body { position: absolute; inset: 0; transform-origin: 50% 100%; }
.duo-body img, .duo-hand { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.duo-hand { position: absolute; }
.duo-hand-g { left: 18.3%; top: 53.7%; width: 34%; transform-origin: 93% 4%; }
.duo-hand-d { left: 49.4%; top: 52.3%; width: 48%; transform-origin: 3% 6%; rotate: 10deg; }
.duo-bubble { position: absolute; left: 50%; top: -15%; translate: -50% 0; padding: .3em .75em; background: #fff; color: #140d08; border: 2px solid #140d08; border-radius: 50%; font: 700 clamp(.62rem, .7vw, .75rem)/1.1 var(--sans); white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.duo-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 9px; height: 9px; margin-left: -4.5px; background: #fff; border-right: 2px solid #140d08; border-bottom: 2px solid #140d08; transform: rotate(45deg) skew(8deg, 8deg); }

.js .duo:not(.play) { visibility: hidden; }
.duo.play .duo-phil { animation: duoEnterP 3.4s cubic-bezier(.2,.8,.3,1) both; }
.duo.play .duo-max { animation: duoEnterM 3.4s cubic-bezier(.2,.8,.3,1) .12s both; }
.duo.play .duo-phil img { animation: duoLaughP .26s ease-in-out .8s 6 alternate; }
.duo.play .duo-max img { animation: duoLaughM .3s ease-in-out .9s 6 alternate; }
.duo.play .duo-bubble { animation: duoBubble .45s cubic-bezier(.3,1.6,.5,1) 3.3s both; }
@keyframes duoEnterP { 0% { transform: translateY(105%); } 20% { transform: none; } 88% { transform: none; } 100% { transform: translateX(1%) rotate(2deg); } }
@keyframes duoEnterM { 0% { transform: translateY(105%); } 20% { transform: none; } 88% { transform: none; } 100% { transform: translateX(-1%) rotate(-2deg); } }
@keyframes duoLaughP { to { transform: translateY(-3%) rotate(-1.4deg); } }
@keyframes duoLaughM { to { transform: translateY(-3.5%) rotate(1.4deg); } }
@keyframes duoHandG { 0% { transform: translate(-10%, 120%) rotate(-25deg); } 70% { transform: translate(-14%, 0) rotate(-6deg); } 88% { transform: translate(2%, -1%) rotate(3deg); } 100% { transform: none; } }
@keyframes duoHandD { 0% { transform: translate(15%, 120%) rotate(30deg); } 70% { transform: translate(12%, 0) rotate(8deg); } 88% { transform: translate(-2%, -1%) rotate(-3deg); } 100% { transform: none; } }
@keyframes duoBubble { 0% { opacity: 0; transform: scale(.2); } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .duo.play *, .duo.play { animation: none !important; } }
@media (max-width: 700px) { .duo { width: 23vw; } }

/* Sélecteur de langue (en haut à droite) */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .65rem; border: 1px solid rgba(201,164,92,.55); border-radius: 999px; color: var(--fg); font: 500 .72rem/1 var(--sans); letter-spacing: .14em; cursor: pointer; transition: border-color .2s, background .2s; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--gold); background: rgba(201,164,92,.1); }
.lang-switch summary svg { transition: rotate .2s; }
.lang-switch[open] summary svg { rotate: 180deg; }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + .55rem); z-index: 60; min-width: 10.5rem; margin: 0; padding: .4rem; list-style: none; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 32px rgba(0,0,0,.5); }
.lang-switch li a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 8px; color: var(--fg); font: 400 .92rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; text-decoration: none; }
.lang-switch li a::after { display: none; }
.lang-switch li a span { width: 1.6rem; color: var(--gold); font-size: .7rem; letter-spacing: .14em; }
.lang-switch li a:hover, .lang-switch li a:focus-visible { background: rgba(201,164,92,.12); }
.lang-switch li a[aria-current] { color: var(--gold); }
/* Galeries en grille 2 x 2 (Maurice) et 2 photos au-dessus du texte de Guy : pas de grande photo, toutes au format 4:3 */
.snaps-grid .snap:first-child { grid-row: auto; }
.snaps-grid .snap img { aspect-ratio: 4 / 3; }
.snaps-top { margin-bottom: 2.2rem; }
/* Notre histoire, sous la signature : la jeep collée au bord gauche (coupée par l'écran), la photo en cuisine à droite */
.finale { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-left: 0; }
.finale-jeep img { display: block; width: 100%; height: auto; aspect-ratio: 1125 / 930; object-fit: cover; }
.finale .snap { width: 100%; max-width: 24rem; justify-self: center; }
.finale .snap img { aspect-ratio: 841 / 1050; }
@media (max-width: 760px) { .finale { grid-template-columns: 1fr; padding-right: 0; } .finale .snap { max-width: 20rem; margin-right: var(--gutter); } }

/* Espace client « Mon compte » */
.account-login { max-width: 34rem; }
.account-login .lead { margin-bottom: 1rem; }
.account-login .form { margin-top: 1.8rem; }
.code-input { font-size: 1.8rem; letter-spacing: .5em; text-align: center; max-width: 14rem; }
.account-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; }
button.link-underline { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.account-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }
.account-title { font-size: 1.6rem; margin-bottom: 1.2rem; }
.order-card { border: 1px solid var(--border); padding: 1.3rem 1.4rem; margin-bottom: 1.2rem; }
.order-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.order-card h3 { font-size: 1.3rem; margin: 0; }
.order-card header p { margin: .2rem 0 0; }
.order-status { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border: 1px solid var(--gold); color: var(--gold); white-space: nowrap; }
.order-status.s-expediee { border-color: #7fa37a; color: #9cc196; }
.order-status.s-annulee { border-color: var(--border); color: var(--muted); }
.order-items { list-style: none; margin: 1rem 0; padding: 0; border-top: 1px solid var(--border); }
.order-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.order-items .order-total { font-weight: 600; border-bottom: 0; }
.order-card footer { margin-top: .4rem; }
.account .form-ok { padding: .8rem 1rem; margin: 0; }
.account .form-ok:first-child { font: inherit; }
.account-addr { margin-top: 1.5rem; }
.account-addr p { margin: .2rem 0; }
.account-privacy { margin-top: 1.8rem; }
