/* =========================================================
   Franchi G. – Landing page
   Palette chocolat / orange logo, typographies :
   Great Vibes (script), Cormorant Garamond (titres),
   Montserrat (capitales), Jost (texte)
   ========================================================= */

:root {
  --noir: #120c08;
  --brun: #1f140d;
  --brun-2: #2c1d13;
  --brun-3: #3a2516;
  --orange: #fc9b00;
  --caramel: #c98446;
  --caramel-fonce: #b4713a;
  /* Fond des boutons à texte blanc : contraste 4,5:1 minimum (WCAG AA). */
  --caramel-bouton: #a8662f;
  --caramel-bouton-survol: #8f5426;
  --creme: #f6e9d8;
  --texte: #eadccb;
  --texte-doux: #b9a690;
  --ligne: rgba(246, 233, 216, 0.16);

  --f-script: "Great Vibes", cursive;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-caps: "Montserrat", sans-serif;
  --f-texte: "Jost", system-ui, sans-serif;

  --header-h: 88px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  background: var(--noir);
  color: var(--texte);
  font-family: var(--f-texte);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Typo utilitaires ---------- */
.script { font-family: var(--f-script); color: var(--orange); font-weight: 400; line-height: 1.1; }
.serif-it { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--creme); line-height: 1.15; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--caramel-bouton); color: #fff; text-decoration: none;
  padding: 17px 32px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 16px; letter-spacing: .01em;
  box-shadow: 0 10px 30px rgba(201, 132, 70, .3);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn svg { width: 20px; height: 20px; transition: transform .25s; }
.btn:hover { background: var(--caramel-bouton-survol); transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; border-color: rgba(246, 233, 216, .35); box-shadow: none; }
.btn-ghost:hover { background: rgba(246, 233, 216, .08); }

/* ---------- Annonce ---------- */
.annonce {
  position: relative; z-index: 60;
  background: var(--caramel-bouton); color: #fff;
  padding: 10px 56px; text-align: center; font-size: 15px; font-weight: 400;
}
.annonce strong { font-weight: 500; }
.annonce-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; padding: 4px 8px;
}
.annonce.hidden { display: none; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 4vw, 60px);
  transition: background .35s, box-shadow .35s;
  margin-bottom: calc(var(--header-h) * -1);
}
.header.scrolled { background: rgba(18, 12, 8, .88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ligne); }
.header-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.header-mark {
  /* Le F du logo dans le même cercle noir à double filet doré que le hero */
  --or: #d4a650;
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #1d140e 0%, #0d0906 75%);
  border: 1.5px solid var(--or);
  box-shadow:
    inset 0 0 0 3px rgba(13, 9, 6, .9),
    inset 0 0 0 4px rgba(212, 166, 80, .45),
    0 0 0 1px rgba(212, 166, 80, .25),
    0 6px 18px rgba(0, 0, 0, .45);
  transition: transform .3s;
}
.header-mark img { width: 64%; height: 64%; }
.header-brand:hover .header-mark { transform: rotate(-6deg) scale(1.05); }
.header-lieu { font-family: var(--f-caps); font-weight: 500; letter-spacing: .3em; font-size: 12px; color: var(--creme); white-space: nowrap; }

.pill {
  display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  border: 1px solid rgba(246, 233, 216, .18);
  background: rgba(18, 12, 8, .35); backdrop-filter: blur(6px);
}
.pill a {
  color: var(--creme); text-decoration: none; font-size: 15px; font-weight: 400;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  transition: background .25s, color .25s;
}
.pill a:hover { background: rgba(246, 233, 216, .1); }
.pill a.on { background: var(--creme); color: var(--brun); font-weight: 500; }

.header-actions { display: flex; justify-content: flex-end; gap: 12px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(246, 233, 216, .2); background: rgba(18, 12, 8, .35);
  color: var(--creme); transition: background .25s, border-color .25s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--caramel); border-color: var(--caramel); }
.burger { display: none; }
/* Nombre d'articles du panier de la boutique */
.icon-panier { position: relative; }
.panier-nb {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; background: var(--orange); color: var(--noir);
  font-size: 12px; font-weight: 500; line-height: 1; box-shadow: 0 0 0 2px var(--noir);
}
.panier-nb[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  /* Tient dans l'écran visible, barre d'annonce déduite (--annonce-h posé par js/main.js) */
  position: relative; min-height: calc(100svh - var(--annonce-h, 0px));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 1svh) 20px clamp(64px, 10svh, 100px); text-align: center; overflow: hidden;
}
/* Diaporama Ken Burns (le mouvement est piloté par js/main.js) */
.hero-slides { position: absolute; inset: 0; overflow: hidden; background: var(--noir); }
.slide {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(.45, 0, .55, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.slide.active { opacity: 1; }
.slide.salon { filter: sepia(.5) saturate(.75) brightness(1.05); } /* adoucit les néons violets */

/* Voile : centre plus sombre pour les textes, bords plus lumineux */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 55% 60% at 50% 48%, rgba(18, 12, 8, .74) 0%, rgba(18, 12, 8, .56) 45%, rgba(18, 12, 8, .18) 100%),
    linear-gradient(180deg, rgba(18, 12, 8, .55) 0%, transparent 18%),
    linear-gradient(0deg, var(--noir) 0%, rgba(18, 12, 8, .4) 18%, transparent 35%);
}
.hero-content { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }

.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-logo {
  /* Cercle noir à bord doré, comme le logo d'origine */
  --or: #d4a650;
  width: clamp(160px, min(26vw, 37svh), 330px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #1d140e 0%, #0d0906 75%);
  border: 2px solid var(--or);
  box-shadow:
    inset 0 0 0 6px rgba(13, 9, 6, .9),
    inset 0 0 0 7px rgba(212, 166, 80, .45),
    0 0 0 1px rgba(212, 166, 80, .25),
    0 18px 50px rgba(0, 0, 0, .55),
    0 0 60px rgba(212, 166, 80, .12);
  animation: rise 1.1s ease-out both;
}
.hero-logo img { width: 100%; height: 100%; }
.hero-depuis { font-size: clamp(26px, min(3.4vw, 4.6svh), 44px); margin-top: clamp(8px, 2svh, 22px); animation: rise 1.1s .15s ease-out both; }
.hero-title { font-size: clamp(26px, min(4.2vw, 6svh), 56px); margin: 2px 0 clamp(8px, 1.8svh, 20px); max-width: 1100px; text-wrap: balance; animation: rise 1.1s .3s ease-out both; }
.hero-intro { font-size: clamp(15px, min(1.4vw, 2.2svh), 19px); max-width: 900px; text-wrap: balance; margin-bottom: clamp(14px, 3.5svh, 38px); animation: rise 1.1s .45s ease-out both; }
.hero-ctas .btn { padding-block: clamp(11px, 1.8svh, 17px); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; animation: rise 1.1s .6s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Bandeau des chiffres clés ---------- */
.chiffres {
  position: relative; padding: clamp(28px, 4vw, 44px) 20px;
  background: linear-gradient(180deg, var(--noir), var(--brun) 60%, var(--brun));
  border-bottom: 1px solid rgba(212, 166, 80, .25);
}
.chiffres::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(560px, 70%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 166, 80, .6), transparent);
}
.stats { display: flex; justify-content: center; text-align: center; }
.stats li { padding: 0 48px; border-left: 1px solid rgba(246, 233, 216, .16); }
.stats li:first-child { border: 0; }
.stats b { display: block; font-family: var(--f-serif); font-weight: 500; font-size: 46px; line-height: 1.1; color: var(--orange); font-variant-numeric: lining-nums; }
.stats span { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--texte-doux); }

.scroll-hint {
  position: absolute; left: 50%; bottom: clamp(10px, 2.5svh, 26px); transform: translateX(-50%); z-index: 2;
  width: 34px; height: clamp(40px, 6svh, 54px); border: 1px solid var(--caramel); border-radius: 20px;
  display: grid; place-items: center; color: var(--caramel); text-decoration: none;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.container { width: min(1240px, 100% - 32px); margin: 0 auto; }
.section-head { text-align: center; margin: 0 auto 64px; max-width: 760px; }
.section-head .script { font-size: clamp(34px, 3.4vw, 44px); }
.section-head h2 { font-size: clamp(36px, 4.4vw, 58px); margin-top: -2px; }
.section-head p:not(.script) { color: var(--texte-doux); margin-top: 16px; font-size: 18px; }
.section-head.left { text-align: left; margin-left: 0; margin-bottom: 40px; }

/* ---------- Histoire ---------- */
.histoire { background: radial-gradient(ellipse at 80% 0%, var(--brun-3) 0%, var(--brun) 45%, var(--noir) 100%); }
.histoire-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.histoire-photos { display: grid; gap: 34px; position: sticky; top: calc(var(--header-h) + 30px); }
.histoire-photos img { width: 100%; border-radius: 10px; border: 1px solid rgba(201, 132, 70, .4); }
.histoire-photos figure:first-child img { filter: sepia(.35) contrast(1.05); }
.histoire-photos figcaption { margin-top: 10px; font-family: var(--f-serif); font-style: italic; color: var(--texte-doux); font-size: 18px; }

.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(var(--orange), rgba(252, 155, 0, .08)); }
.timeline li { position: relative; margin-bottom: 44px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -42px; top: 14px; width: 13px; height: 13px; border-radius: 50%; background: var(--noir); border: 2px solid var(--orange); }
.timeline .an { font-family: var(--f-serif); font-weight: 500; font-size: 42px; color: var(--orange); line-height: 1; }
.timeline h3 { font-family: var(--f-caps); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--creme); margin: 10px 0 8px; }

.quote { margin: 90px auto 0; text-align: center; font-size: clamp(26px, 3vw, 36px); max-width: 900px; }
.quote::before, .quote::after { content: "—"; color: var(--orange); margin: 0 14px; }

/* ---------- Savoir-faire ---------- */
.savoir { background: var(--noir); }
.savoir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.savoir-photo { position: relative; }
.savoir-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); }
.savoir-badge {
  position: absolute; right: -24px; bottom: 40px; width: 170px; height: 170px; border-radius: 50%;
  background: var(--brun-2); border: 1px solid var(--caramel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5); transform: rotate(-8deg);
}
.savoir-badge .script { font-size: 36px; }
.savoir-badge small { font-family: var(--f-caps); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--creme); max-width: 120px; line-height: 1.5; margin-top: 4px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.features li { display: flex; align-items: center; gap: 16px; color: var(--creme); line-height: 1.35; }
.features svg { width: 38px; height: 38px; flex: none; color: var(--orange); stroke-width: 1.3; }
.note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ligne); color: var(--texte-doux); font-size: 15px; }

/* ---------- Parfums ---------- */
.parfums { background: linear-gradient(180deg, var(--noir), var(--brun) 50%, var(--noir)); }
.tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 36px; padding: 6px; border-radius: 999px; border: 1px solid var(--ligne); width: max-content; max-width: 100%; }
.tabs button { background: none; border: 0; color: var(--creme); padding: 10px 26px; border-radius: 999px; font-size: 15px; transition: background .25s, color .25s; }
.tabs button[aria-selected="true"] { background: var(--creme); color: var(--brun); font-weight: 500; }
.flavours { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 12px; max-width: 920px; margin: 0 auto; padding-top: 30px; }
.flavours li { perspective: 700px; position: relative; cursor: default; outline: none; }
/* Pastille à retournement 3D : recto = nom du parfum, verso = petit cornet (SVG construit par js/main.js) */
.fl-inner { display: grid; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.35, .45, 1); }
.fl-face {
  grid-area: 1 / 1; display: block; text-align: center; white-space: nowrap;
  font-family: var(--f-serif); font-size: 22px; font-style: italic; color: var(--creme);
  padding: 8px 22px; border-radius: 999px; border: 1px solid rgba(201, 132, 70, .45);
  background: rgba(201, 132, 70, .06);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.fl-back {
  position: relative; transform: rotateY(180deg); color: transparent;
  border-color: rgba(212, 166, 80, .8);
  background: radial-gradient(ellipse at 50% 120%, rgba(212, 166, 80, .35), var(--brun-2) 70%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.fl-back svg {
  position: absolute; left: 50%; bottom: 3px; width: auto; height: 78px;
  transform: translate(-50%, 14px) scale(.6); opacity: 0;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45));
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) .25s, opacity .3s .25s;
}
.flavours li:hover, .flavours li:focus-visible, .flavours li.is-flipped { z-index: 2; }
.flavours li:hover .fl-inner, .flavours li:focus-visible .fl-inner, .flavours li.is-flipped .fl-inner { transform: rotateY(180deg); }
.flavours li:hover .fl-back svg, .flavours li:focus-visible .fl-back svg, .flavours li.is-flipped .fl-back svg { transform: translate(-50%, 0) scale(1); opacity: 1; }
.flavours li.star .fl-front { border-color: var(--orange); color: var(--orange); }
.flavours li.star .fl-front::after { content: " ★"; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .flavours li .fl-inner { transform: none !important; }
  .fl-back { transform: none; opacity: 0; }
  .flavours li:hover .fl-back, .flavours li:focus-visible .fl-back, .flavours li.is-flipped .fl-back { opacity: 1; }
  .flavours li:hover .fl-front, .flavours li:focus-visible .fl-front, .flavours li.is-flipped .fl-front { opacity: 0; }
}
.tab-panel { animation: rise .5s ease-out both; }
.tab-note { text-align: center; margin-top: 22px; color: var(--texte-doux); }

.sub-title { text-align: center; font-size: clamp(28px, 3vw, 38px); margin: 100px 0 40px; }
.carousel { position: relative; }
.carousel-viewport {
  overflow: hidden; padding: 24px 0 30px; margin: -24px 0 -30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  cursor: grab; touch-action: pan-y;
}
.carousel-viewport.dragging { cursor: grabbing; }
.carousel-track { display: flex; gap: 24px; width: max-content; will-change: transform; }
.card { flex: none; width: clamp(250px, 24vw, 310px); perspective: 900px; }
.card-tilt {
  position: relative; height: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--brun-2); border: 1px solid var(--ligne);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .5s cubic-bezier(.2, .75, .25, 1), border-color .4s, box-shadow .4s, opacity .4s, filter .4s;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s cubic-bezier(.2, .75, .25, 1); user-select: none; -webkit-user-drag: none; }
.card-body { padding: 22px 22px 26px; }
.card h4 { font-family: var(--f-serif); font-weight: 600; font-size: 24px; color: var(--creme); line-height: 1.2; margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--texte-doux); line-height: 1.55; }
.card-glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(212, 166, 80, .28), transparent 55%);
}
/* Survol : la carte se soulève et s'incline vers la souris, les autres s'estompent */
@media (hover: hover) {
  .carousel-track:hover .card .card-tilt { opacity: .5; filter: saturate(.55); }
  .carousel-track:hover .card:hover .card-tilt {
    opacity: 1; filter: none; --ty: -10px;
    border-color: rgba(212, 166, 80, .7);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 166, 80, .25);
  }
  .card:hover img { transform: scale(1.08); }
  .card:hover .card-glare { opacity: 1; }
}
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(212, 166, 80, .45); background: rgba(13, 9, 6, .5); color: var(--creme);
  transition: background .25s, border-color .25s, color .25s;
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn[data-dir="-1"] svg { transform: scaleX(-1); }
.carousel-btn:hover { border-color: var(--orange); color: var(--orange); }
.carousel-btn.on { background: var(--caramel-bouton); border-color: var(--caramel-bouton); color: #fff; }

/* ---------- Évènements ---------- */
.evenements { background: radial-gradient(ellipse at 10% 60%, var(--brun-3) 0%, var(--brun) 40%, var(--noir) 100%); }
.evenements-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.delais { display: grid; gap: 18px; margin-bottom: 40px; }
.delais li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--ligne); }
.delais b { font-family: var(--f-serif); font-weight: 500; font-size: 28px; color: var(--orange); }
.buches { padding: 30px 32px; border-radius: var(--radius); border: 1px solid rgba(201, 132, 70, .45); background: rgba(18, 12, 8, .5); }
.buches .script { font-size: 36px; margin-bottom: 8px; }
.buches p:not(.script) { margin-bottom: 24px; }
.buches strong { color: var(--creme); font-weight: 500; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 620px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery img:first-child { grid-row: span 2; }

/* ---------- Livraison ---------- */
.livraison { background: var(--noir); }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.service {
  padding: 40px 34px; border-radius: var(--radius); background: linear-gradient(160deg, var(--brun-2), var(--brun));
  border: 1px solid var(--ligne); transition: border-color .35s, transform .35s;
}
.service:hover { border-color: rgba(201, 132, 70, .55); transform: translateY(-4px); }
.service > svg { width: 46px; height: 46px; color: var(--orange); stroke-width: 1.2; margin-bottom: 22px; }
.service h3 { font-family: var(--f-serif); font-weight: 600; font-size: 28px; color: var(--creme); margin-bottom: 10px; }
.small { font-size: 14px; color: var(--texte-doux); margin-top: 12px; }
.link { display: inline-block; margin-top: 20px; color: var(--orange); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* Cartes à retournement 3D (Deliveroo, revendeurs) */
.service.flip { padding: 0; background: none; border: 0; perspective: 1400px; }
.service.flip:hover { transform: none; }
.flip-inner {
  display: grid; height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .75, .25, 1);
}
.flip-face {
  grid-area: 1 / 1; position: relative;
  padding: 40px 34px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--brun-2), var(--brun));
  border: 1px solid var(--ligne);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-front > svg { width: 46px; height: 46px; color: var(--orange); stroke-width: 1.2; margin-bottom: 22px; }
.flip-back {
  transform: rotateY(180deg);
  border-color: rgba(212, 166, 80, .55);
  background: radial-gradient(ellipse at 30% 0%, var(--brun-3), var(--brun) 70%);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
@media (hover: hover) {
  .flip:hover .flip-inner { transform: rotateY(180deg); }
  .flip:hover .flip-front { border-color: rgba(201, 132, 70, .55); }
}
.flip:focus-within .flip-inner, .flip.is-flipped .flip-inner { transform: rotateY(180deg); }

.flip-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: none; border: 0; padding: 0; color: var(--orange); font-weight: 500; font-size: 15px;
}
.flip-toggle svg { width: 16px; height: 16px; transition: transform .5s; }
.flip:hover .flip-front .flip-toggle svg { transform: rotate(180deg); }
@media (hover: hover) { .flip-back-btn { display: none; } }

/* Mobile : petite icône ronde « retourner » en bas à droite, sur les deux faces */
@media (hover: none) {
  .flip-face { padding-bottom: 64px; cursor: pointer; }
  .flip-toggle {
    position: absolute; right: 14px; bottom: 14px; margin: 0;
    width: 40px; height: 40px; border-radius: 50%; justify-content: center;
    border: 1px solid rgba(212, 166, 80, .6); background: rgba(13, 9, 6, .55);
    box-shadow: 0 0 0 4px rgba(212, 166, 80, .08);
  }
  .flip-toggle svg { width: 18px; height: 18px; }
  .flip-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .flip:not(.is-flipped) .flip-front .flip-toggle svg { animation: hint-flip 3.2s ease-in-out infinite; }
}
@keyframes hint-flip { 0%, 70% { transform: none; } 85%, 100% { transform: rotate(180deg); } }

.flip-back .script { font-size: 34px; }
.flip-back strong { color: var(--creme); font-weight: 500; }
.stores { display: grid; gap: 10px; }
.store {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 12px;
  background: #0b0805; border: 1px solid rgba(246, 233, 216, .25); color: #fff; text-decoration: none;
  transition: border-color .25s, background .25s;
}
.store:hover { border-color: var(--orange); background: #000; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-size: 18px; font-weight: 500; }
.store small { font-size: 11px; font-weight: 300; letter-spacing: .04em; color: var(--texte-doux); }
.flip-back .link { margin-top: 2px; }

.pots { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 8px; } /* vignette du milieu plus large : enseigne Uhoda entière */
.pots img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid rgba(212, 166, 80, .35); }
.pots .pots-magasin { aspect-ratio: 1.2; }
.shops { display: grid; gap: 4px; }
.shops a {
  display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; margin: 0 -10px; border-radius: 10px;
  text-decoration: none; font-size: 14px; color: var(--texte-doux); line-height: 1.4; transition: background .25s;
}
.shops a:hover { background: rgba(201, 132, 70, .12); }
.shops svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 2px; }
.shops b { display: block; color: var(--creme); font-weight: 500; font-size: 15px; }
.shops a:hover b { color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  /* Pas de rotation : simple fondu entre les deux faces */
  .flip-inner { transform: none !important; }
  .flip-back { transform: none; opacity: 0; visibility: hidden; }
  .flip:hover .flip-back, .flip:focus-within .flip-back, .flip.is-flipped .flip-back { opacity: 1; visibility: visible; }
  .flip:hover .flip-front, .flip:focus-within .flip-front, .flip.is-flipped .flip-front { visibility: hidden; }
}

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--noir), var(--brun)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; }
.coords { display: grid; gap: 20px; }
.coords li { display: flex; gap: 16px; align-items: flex-start; color: var(--creme); }
.coords svg { width: 24px; height: 24px; color: var(--orange); flex: none; margin-top: 3px; }
.coords a { text-decoration: none; }
.coords a:hover { color: var(--orange); }
.socials { display: flex; gap: 12px; margin-top: 32px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(246, 233, 216, .25); color: var(--creme); transition: background .25s, border-color .25s; }
.socials a:hover { background: var(--caramel); border-color: var(--caramel); }
.socials svg { width: 20px; height: 20px; }

.horaires { padding: 36px 36px 30px; border-radius: var(--radius); background: rgba(18, 12, 8, .6); border: 1px solid rgba(201, 132, 70, .4); align-self: start; }
.horaires h3 { display: flex; align-items: center; gap: 12px; font-family: var(--f-serif); font-weight: 600; font-size: 28px; color: var(--creme); margin-bottom: 18px; }
.horaires h3 svg { width: 26px; height: 26px; color: var(--orange); }
.horaires table { width: 100%; border-collapse: collapse; }
.horaires th, .horaires td { padding: 10px 0; border-bottom: 1px solid var(--ligne); text-align: left; font-weight: 300; }
.horaires td { text-align: right; color: var(--creme); }
.horaires tr.today th, .horaires tr.today td { color: var(--orange); font-weight: 500; }
.horaires tr.today th::after { content: " · aujourd'hui"; font-size: 13px; font-weight: 400; }
.map { grid-column: 1 / -1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ligne); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) invert(.9) hue-rotate(180deg) sepia(.25); }
.map-consentement {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(201, 132, 70, .14), transparent 65%), var(--brun-2, #1a110b);
}
.map-adresse { font-family: var(--f-serif); font-size: 26px; color: var(--creme); }
.map-note { font-size: 14px; color: var(--texte-doux); max-width: 420px; }
.map-note a { color: var(--orange); white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { background: var(--noir); border-top: 1px solid var(--ligne); text-align: center; padding: 70px 20px 40px; }
.footer-logo {
  /* Même cercle noir à double filet doré que le logo du hero */
  --or: #d4a650;
  width: 108px; height: 108px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #1d140e 0%, #0d0906 75%);
  border: 1px solid var(--or);
  box-shadow:
    inset 0 0 0 3px rgba(13, 9, 6, .9),
    inset 0 0 0 4px rgba(212, 166, 80, .45),
    0 0 0 1px rgba(212, 166, 80, .25),
    0 10px 30px rgba(0, 0, 0, .5),
    0 0 30px rgba(212, 166, 80, .1);
}
.footer-logo img { width: 86%; height: 86%; }
.footer .script { font-size: 32px; margin-bottom: 28px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin-bottom: 34px; }
.footer nav a { text-decoration: none; color: var(--texte-doux); }
.footer nav a:hover { color: var(--orange); }
.copy { font-size: 14px; color: var(--texte-doux); opacity: .7; }
.footer-legal { margin-top: 8px; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--orange); }

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
/* Écrans peu hauts (portables 13-14") : le hero doit tenir dans la fenêtre */
@media (max-height: 760px) and (min-width: 901px) {
  :root { --header-h: 72px; }
  .icon-btn { width: 42px; height: 42px; }
  .pill a { padding-block: 8px; }
  .hero { padding-bottom: 56px; }
  .hero-logo { width: clamp(150px, 36svh, 330px); }
}

@media (max-width: 1340px) {
  .header { grid-template-columns: auto 1fr auto; }
  .header-lieu { display: none; }
  .pill { justify-self: center; }
}

@media (max-width: 1180px) {
  .pill { justify-self: center; }
  .pill a { padding: 10px 13px; font-size: 14px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header { grid-template-columns: 1fr auto; }
  .header-mark { width: 48px; height: 48px; }
  .burger {
    display: grid; place-content: center; gap: 6px; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(246, 233, 216, .2); background: rgba(18, 12, 8, .5);
  }
  .burger span { display: block; width: 18px; height: 1.5px; background: var(--creme); transition: transform .3s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .pill {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    border-radius: 0; border: 0; background: rgba(18, 12, 8, .97);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .pill.open { opacity: 1; visibility: visible; }
  .pill a { font-family: var(--f-serif); font-style: italic; font-size: 30px; padding: 8px 28px; }
  .icon-btn { display: none; }
  /* Sur mobile, le panier reste visible dès qu'il contient un article */
  .icon-panier.rempli { display: grid; width: 44px; height: 44px; }
  .header.scrolled { backdrop-filter: none; background: rgba(18, 12, 8, .96); }

  .stats li { padding: 0 22px; }
  .stats b { font-size: 38px; }

  .histoire-grid, .savoir-grid, .evenements-grid, .contact-grid { grid-template-columns: 1fr; }
  .histoire-photos { position: static; }
  .savoir-badge { right: 10px; width: 140px; height: 140px; }
  .savoir-badge .script { font-size: 30px; }
  .services { grid-template-columns: 1fr; }
  .gallery { height: 420px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .annonce { padding: 10px 44px 10px 16px; text-align: left; font-size: 14px; }
  /* Hero mobile compact : boutons côte à côte, chiffres sur une ligne */
  .hero-logo { width: clamp(170px, min(58vw, 29svh), 240px); }
  .hero-ctas { flex-wrap: nowrap; gap: 10px; }
  .hero-ctas .btn { padding: 13px 18px; font-size: 14.5px; gap: 8px; box-shadow: none; white-space: nowrap; }
  .hero-ctas .btn svg { width: 16px; height: 16px; }
  .stats li { width: 25%; padding: 0 4px; }
  .stats b { font-size: 28px; }
  .stats span { display: block; font-size: 10px; letter-spacing: .08em; line-height: 1.35; }
  .features { grid-template-columns: 1fr; }
  .card { width: 76vw; }
  .carousel-track { gap: 14px; }
  .fl-face { font-size: 19px; padding: 6px 16px; }
  .fl-back svg { height: 68px; }
  .delais li { grid-template-columns: 1fr; gap: 2px; }
  .gallery { height: 340px; gap: 10px; }
  .buches, .horaires { padding: 26px 22px; }
  .quote::before, .quote::after { display: none; }
}

/* Petits téléphones (iPhone SE…) : hero encore plus compact */
@media (max-width: 400px) {
  .hero-ctas .btn { padding: 12px 14px; font-size: 13.5px; }
  .hero-ctas .btn svg { display: none; }
}
@media (max-width: 560px) and (max-height: 700px) {
  .hero-logo { width: 170px; }
  .hero-intro { font-size: 14px; line-height: 1.5; }
  .hero { padding-bottom: 58px; }
}
