/* ============================================================
   styles.css : Nommos Marrakech, réservation Dinner Show
   Palette et polices reprises de nommos.ma :
   - fonds blanc / gris clair (#f4f4f4), texte gris (#434240, #333)
   - taupe #baa18d (titres, bandeaux), sable #d9c1ac, pêche #fedcb9
   - bordeaux #56001e (boutons)
   - polices : Authentic Signature (titres manuscrits) + Gotu (texte)
   Formes : angles droits partout SAUF les boutons (pilule).
   Les pages de paiement (payment/*.php) utilisent la même feuille.
   ============================================================ */
@font-face { font-family: 'Authentic Signature'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/authentic-signature.woff2) format('woff2'); }
@font-face { font-family: 'Gotu'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/gotu.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f4f4f4;         /* gris clair des sections nommos.ma */
  --bg-3: #f9f9fb;
  --ink: #333333;          /* titres */
  --body: #434240;         /* texte courant (nommos.ma) */
  --muted: #6e6c69;
  --taupe: #baa18d;        /* couleur signature nommos.ma */
  --taupe-title: #a08670;  /* taupe un peu plus soutenu pour les titres (contraste AA) */
  --taupe-deep: #7f6857;   /* petits libellés et liens */
  --sand: #d9c1ac;
  --peach: #fedcb9;        /* bouton « Réserver maintenant » de nommos.ma */
  --burgundy: #56001e;     /* boutons nommos.ma */
  --burgundy-2: #74102f;
  --dark: #1d1a18;         /* voiles sur photos */
  --line: rgba(67, 66, 64, .14);
  --line-strong: rgba(67, 66, 64, .32);
  --paper: #f4f4f4;
  --paper-ink: #333333;
  --paper-muted: #6e6c69;
  --display: 'Authentic Signature', 'Segoe Script', 'Brush Script MT', cursive;
  --sans: 'Gotu', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
  /* échelle z : 2 bouton vidéo · 10 contenu surélevé · 30 barre mobile · 40 en-tête · 99 lien d'évitement */
}

/* ---------- langue ---------- */
html[data-lang="fr"] [lang="en"]:not(blockquote) { display: none !important; }
html[data-lang="en"] [lang="fr"]:not(blockquote) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(186, 161, 141, .25); }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--sans); font-weight: 400; font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
a, button, select, input, label { touch-action: manipulation; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; text-wrap: balance; }
p, figure, blockquote, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--taupe-deep); outline-offset: 3px; }
::selection { background: var(--sand); color: var(--ink); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 40px; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--burgundy); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tbv { display: inline-block; background: rgba(254, 220, 185, .7); color: #5d4532; padding: 0 6px; font-size: .8em; letter-spacing: .02em; }

/* ---------- typo ---------- */
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe-deep); }
.display { font-family: var(--display); font-weight: 400; line-height: 1.25; color: var(--taupe-title); }
.section-title { font-family: var(--display); font-size: clamp(46px, 5.6vw, 76px); line-height: 1.25; color: var(--taupe-title); max-width: 20ch; padding-bottom: .1em; }
.lede { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.8; max-width: 50ch; color: var(--body); }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-deep); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line-strong); transition: border-color .3s, gap .3s var(--ease); }
.link-arrow:hover { border-color: var(--taupe-deep); gap: 14px; }

/* ---------- boutons (pilule) ----------
   bordeaux = action principale sur fond clair ; pêche = action principale sur photo sombre */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary, .btn-gold { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.btn-primary:hover, .btn-gold:hover { background: var(--burgundy-2); border-color: var(--burgundy-2); }
.btn-primary:disabled, .btn-gold:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-peach { background: var(--peach); color: #3a2a20; border-color: var(--peach); }
.btn-peach:hover { background: #fff; border-color: #fff; }
.btn-line { background: rgba(29, 26, 24, .2); color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-outline-light { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn-outline-light:hover { background: var(--burgundy); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 11.5px; }
.round { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; font-size: 18px; transition: background-color .3s, color .3s, border-color .3s; }
.round:hover { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }
.round:disabled { opacity: .35; cursor: default; background: #fff; color: var(--ink); border-color: var(--line-strong); }

/* ---------- en-tête ----------
   transparent (texte blanc) sur le hero, blanc (texte gris) au défilement */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h); color: #fff; transition: background-color .4s var(--ease), border-color .4s, color .4s; border-bottom: 1px solid transparent; }
.site-header::before { content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(29, 26, 24, .6), rgba(29, 26, 24, 0)); transition: opacity .4s; }
.site-header.is-solid { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); color: var(--body); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid .brand-logo { filter: brightness(0) opacity(.82); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.brand { display: inline-flex; text-decoration: none; justify-self: start; }
.brand-logo { height: 34px; width: auto; transition: filter .4s; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav a { position: relative; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: inherit; padding: 8px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--taupe); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; justify-self: end; }
.header-cta { display: none; }
.site-header:not(.is-solid) .header-cta { background: var(--peach); border-color: var(--peach); color: #3a2a20; }
.lang-toggle { display: inline-flex; gap: 2px; }
.lang-toggle button { background: none; border: 0; color: inherit; opacity: .6; padding: 8px 6px; font-size: 12px; letter-spacing: .16em; cursor: pointer; min-width: 32px; min-height: 40px; }
.lang-toggle button.active { opacity: 1; text-decoration: underline; text-decoration-color: var(--taupe); text-underline-offset: 6px; }
.burger { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid currentColor; border-radius: 999px; color: inherit; cursor: pointer; opacity: .9; }
.burger-lines, .burger-lines::before, .burger-lines::after { display: block; width: 16px; height: 1px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger-lines { position: relative; }
.burger-lines::before, .burger-lines::after { content: ''; position: absolute; left: 0; }
.burger-lines::before { top: -5px; } .burger-lines::after { top: 5px; }
body.menu-open .burger-lines { background: transparent; }
body.menu-open .burger-lines::before { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger-lines::after { transform: translateY(-5px) rotate(-45deg); }
body.menu-open .site-header { background: #fff; border-bottom-color: var(--line); color: var(--body); }
body.menu-open .site-header .brand-logo { filter: brightness(0) opacity(.82); }
body.menu-open .nav { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 24px; }
body.menu-open .nav ul { flex-direction: column; gap: 0; }
body.menu-open .nav a { display: block; padding: 16px 0; font-size: 14px; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .nav { display: block; justify-self: start; }
  .brand { justify-self: center; }
  .brand-logo { height: 38px; }
  .burger { display: none; }
  body.menu-open .nav { position: static; background: none; border: 0; padding: 0; }
  body.menu-open .nav ul { flex-direction: row; gap: 32px; }
  body.menu-open .nav a { padding: 8px 0; font-size: 12px; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--dark); }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--dark); }
.hero-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(29, 26, 24, .9) 0%, rgba(29, 26, 24, .45) 38%, rgba(29, 26, 24, .08) 70%),
              linear-gradient(90deg, rgba(29, 26, 24, .7) 0%, rgba(29, 26, 24, .15) 60%, rgba(29, 26, 24, 0) 100%); }
.sentinel { position: absolute; top: 0; left: 0; height: 120px; width: 1px; }
.hero-body { padding-top: 120px; padding-bottom: 150px; }
.hero .eyebrow { color: var(--peach); }
.hero h1 { font-family: var(--display); font-size: clamp(60px, 9vw, 132px); line-height: 1.2; margin-top: 14px; max-width: 15ch; color: #fff; padding-bottom: .08em; }
.hero-lead { margin-top: 16px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.7; color: #fff; opacity: .9; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 479px) { .hero-ctas .btn { width: 100%; } }
.video-toggle { position: absolute; right: 40px; bottom: 140px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(29, 26, 24, .35); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color .3s, border-color .3s; }
.video-toggle:hover { background: rgba(29, 26, 24, .7); border-color: #fff; }
.video-toggle[hidden] { display: none; }
.vt-icon { width: 10px; height: 12px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.video-toggle[aria-pressed="true"] .vt-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

/* ---------- réservation ---------- */
.booking-band { position: relative; z-index: 10; margin-top: -96px; }
.booking { background: #fff; border-top: 3px solid var(--taupe); padding: 26px 18px 22px; box-shadow: 0 30px 70px -30px rgba(67, 50, 40, .35); }
@media (min-width: 700px) { .booking { padding: 32px 38px 26px; } }
.booking-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 22px; }
.booking-head h2 { font-family: var(--display); font-size: clamp(40px, 4vw, 56px); line-height: 1.3; color: var(--taupe-title); }
.booking-price { font-size: 14px; color: var(--muted); }
.booking-price [data-unit] { color: var(--burgundy); letter-spacing: .04em; }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; align-items: end; }
.booking-grid .f-date, .booking-grid .booking-total, .booking-grid .btn-submit { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .booking-grid { grid-template-columns: 1.25fr 1fr .8fr 1.1fr auto; gap: 28px; }
  .booking-grid .f-date, .booking-grid .booking-total, .booking-grid .btn-submit { grid-column: auto; }
}
.bfield label { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.bfield input, .bfield select { width: 100%; min-height: 48px; padding: 8px 2px; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; color: var(--ink); font-size: 16px; color-scheme: light; transition: border-color .3s; }
.bfield select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 22px; background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, var(--taupe-deep) 50%), linear-gradient(-45deg, transparent 50%, var(--taupe-deep) 50%);
  background-position: calc(100% - 9px) 52%, calc(100% - 4px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.bfield select option { background: #fff; color: var(--ink); }
.bfield input:hover, .bfield select:hover { border-bottom-color: var(--taupe); }
.bfield input:focus, .bfield select:focus { outline: none; border-bottom-color: var(--taupe-deep); box-shadow: 0 1px 0 var(--taupe-deep); }
.bfield select:disabled { opacity: .45; }
.booking-total { padding: 2px 0 2px 16px; border-left: 2px solid var(--taupe); }
.booking-total .detail { font-size: 13px; color: var(--muted); min-height: 20px; }
.booking-total .amount { font-size: 28px; line-height: 1.2; color: var(--burgundy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.btn-submit { min-height: 56px; }
.booking-msg { margin-top: 16px; min-height: 22px; font-size: 14px; color: #a61b29; }
.booking-msg.info { color: var(--taupe-deep); }
.booking-msg:empty { margin-top: 6px; }
.notes { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: grid; gap: 4px; }

/* ---------- sections ---------- */
.section { padding: 60px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }

/* Le show */
.show-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .show-grid { grid-template-columns: 5fr 6fr; gap: 88px; } }
.show-poster img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(67, 50, 40, .45); }
.show-copy .display { font-size: clamp(88px, 12vw, 170px); margin-top: 10px; line-height: 1.2; }
.show-tag { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--burgundy); margin-top: 4px; }
.show-copy .lede { margin-top: 22px; }
.acts { list-style: none; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 0; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink); line-height: 1.4; }
.acts li:not(:last-child)::after { content: '/'; color: var(--taupe); margin: 0 .7em; }

/* Cuisine : bento 5 cellules */
.cuisine { background: var(--bg-2); }
.bento { margin-top: 36px; display: grid; gap: 12px; grid-template-columns: 1fr; }
.cell { position: relative; overflow: hidden; background: #fff; }
.cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cell:hover img { transform: scale(1.04); }
.cell-grill { aspect-ratio: 4 / 3; }
.cell-sushi, .cell-oyster { aspect-ratio: 3 / 2; }
.cell-text, .cell-menu { padding: 32px 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.cell h3 { font-family: var(--display); font-size: clamp(38px, 3.4vw, 50px); line-height: 1.3; color: var(--taupe-title); }
.cell-text p { max-width: 46ch; }
.cell-menu { background: var(--taupe) url(image/motif-sm.png) right -40px center / auto 140% no-repeat; color: #2e2622; }
.cell-menu h3 { color: #fff; }
.dishes { display: grid; gap: 12px 40px; }
.dishes div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.dishes dt { color: #2e2622; }
.dishes dd { color: var(--burgundy); font-size: 14px; letter-spacing: .06em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-menu .link-arrow { color: #2e2622; border-color: rgba(46, 38, 34, .4); }
.cell-menu .link-arrow:hover { border-color: #2e2622; }
@media (min-width: 700px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-grill, .cell-text, .cell-menu { grid-column: 1 / -1; }
  .dishes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: 1.5fr 1fr 1fr; }
  .cell-grill { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; min-height: 560px; }
  .cell-text { grid-column: 2 / 4; grid-row: 1; padding: 40px; }
  .cell-sushi { grid-column: 2; grid-row: 2; aspect-ratio: auto; }
  .cell-oyster { grid-column: 3; grid-row: 2; aspect-ratio: auto; }
  .cell-menu { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: 1fr 2fr auto; align-items: end; gap: 40px; padding: 40px; }
}

/* La soirée : bandeau photo avec voile sombre */
.evening { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.evening-media { position: absolute; inset: 0; z-index: -1; }
.evening-media img { width: 100%; height: 100%; object-fit: cover; }
.evening-media::after { content: ''; position: absolute; inset: 0; background: rgba(29, 26, 24, .8); }
.evening .section-title { color: var(--peach); }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 40px; }
.timeline li { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .3); }
.timeline .time { display: block; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; color: var(--sand); }
.timeline h3 { margin-top: 14px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #fff; }
.timeline p { margin-top: 8px; max-width: 30ch; color: rgba(255, 255, 255, .85); }
@media (min-width: 700px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* Galerie défilante */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.gallery-nav { display: flex; gap: 10px; }
.gallery { list-style: none; margin: 32px 0 0; padding: 0 max(16px, calc((100vw - 1240px) / 2 + 40px)); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(16px, calc((100vw - 1240px) / 2 + 40px)); scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery::-webkit-scrollbar { display: none; }
.gallery li { flex: none; height: clamp(320px, 52vh, 520px); scroll-snap-align: start; overflow: hidden; background: var(--bg-2); }
.gallery .w-l { aspect-ratio: 3 / 2; }
.gallery .w-p { aspect-ratio: 2 / 3; }
.gallery .w-s { aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 699px) { .gallery { padding: 0 16px; scroll-padding: 0 16px; } .gallery li { height: 300px; } .gallery-nav { display: none; } }

/* Avis */
.reviews { background: var(--bg-2); }
.reviews-grid { display: grid; gap: 56px; align-items: end; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: 1.35fr 1fr; gap: 96px; } }
.quote blockquote { color: var(--body); font-size: 17px; line-height: 1.7; }
.quote-main blockquote { color: var(--ink); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.5; }
.quote figcaption { margin-top: 18px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe-deep); }
.quote figcaption span { display: block; margin-top: 2px; color: var(--muted); letter-spacing: .14em; font-size: 11.5px; }
.quote-stack { display: grid; gap: 36px; padding-left: 28px; border-left: 2px solid var(--taupe); }

/* Infos */
.infos-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .infos-grid { grid-template-columns: 1fr 1fr; gap: 88px; } }
.infos-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; }
@media (max-width: 899px) { .infos-media img { max-height: 72vh; } }
.info-list { margin-top: 32px; display: grid; gap: 20px; }
.info-list div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.info-list dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe-deep); padding-top: 4px; }
.info-list dd { color: var(--ink); }
.info-list dd a { text-decoration: none; }
.info-list dd a:hover { color: var(--burgundy); }
.info-list .link-arrow { margin-left: 12px; font-size: 11px; padding: 0; }
.group-box { margin-top: 40px; padding: 30px 28px; background: var(--bg-2); border-left: 3px solid var(--taupe); display: grid; gap: 12px; justify-items: start; }
.group-box h3 { font-family: var(--display); font-size: 42px; line-height: 1.3; color: var(--taupe-title); }

/* Dernier appel */
.final { position: relative; isolation: isolate; overflow: hidden; min-height: 72vh; display: flex; align-items: center; text-align: center; color: #fff; background: var(--dark); }
.final-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.final::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(29, 26, 24, .5), rgba(29, 26, 24, .85) 75%); }
.final-body { display: grid; justify-items: center; gap: 26px; padding-top: 80px; padding-bottom: 80px; }
.final-mark { width: 48px; height: 48px; }
.final h2 { font-size: clamp(64px, 9vw, 128px); max-width: 14ch; color: #fff; }

/* ---------- pied de page (comme nommos.ma : clair, titres taupe) ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { height: 36px; width: auto; filter: brightness(0) opacity(.82); }
.footer-brand p { margin-top: 18px; color: var(--muted); max-width: 32ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { text-decoration: none; color: var(--taupe-deep); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.footer-links a:hover { color: var(--burgundy); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- logos de paiement (charte CMI) ---------- */
.pay-badges { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.pay-badges + .footer-bottom { margin-top: 28px; }
.pay-label { margin: 0; color: var(--taupe-deep); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.pay-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pay-logos li { background: #fff; border: 1px solid var(--line); padding: 5px 8px; display: flex; align-items: center; }
.pay-logos img { height: 24px; width: auto; display: block; }
.secure-note + .pay-logos { margin-top: 16px; }
@media (max-width: 799px) { .pay-badges { justify-content: center; text-align: center; } }
@media (max-width: 420px) { .pay-logos { gap: 5px; } .pay-logos li { padding: 4px 5px; } }
@media (max-width: 359px) { .pay-logos { max-width: 200px; } }   /* 3 + 3 plutôt qu'un logo seul */

/* ---------- barre mobile ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .45s var(--ease); }
.mobile-cta .btn { width: 100%; }
.mobile-cta.is-visible { transform: none; }
@media (min-width: 900px) { .mobile-cta { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } html { scroll-padding-bottom: 96px; } }

/* ---------- mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: settle 2.6s var(--ease) both; }
  .rise { animation: rise 1.1s var(--ease) both; }
  .rise:nth-child(2) { animation-delay: .12s; } .rise:nth-child(3) { animation-delay: .24s; } .rise:nth-child(4) { animation-delay: .36s; }
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .timeline .reveal:nth-child(2) { transition-delay: .1s; } .js .timeline .reveal:nth-child(3) { transition-delay: .2s; } .js .timeline .reveal:nth-child(4) { transition-delay: .3s; }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .hero-video { display: none; }
}

/* ============================================================
   Pages de paiement (checkout, ok, fail, groupe, démo, conditions)
   ============================================================ */
.pay-layout { min-height: 100vh; display: grid; }
@media (min-width: 1000px) { .pay-layout { grid-template-columns: 5fr 7fr; } }
.pay-aside { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 20px 16px; min-height: 200px; color: #fff; }
.pay-aside-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.pay-aside::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29, 26, 24, .45), rgba(29, 26, 24, .85)); }
.pay-aside-top { display: flex; justify-content: space-between; align-items: center; }
.pay-aside .brand-logo { height: 36px; }
.lang-link { border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: 8px 14px; font-size: 12px; letter-spacing: .16em; text-decoration: none; color: #fff; }
.pay-back { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-underline-offset: 5px; }
@media (min-width: 1000px) { .pay-aside { padding: 40px; position: sticky; top: 0; height: 100vh; } .pay-aside .brand-logo { height: 44px; } }
.pay-main { background: var(--paper); color: var(--paper-ink); padding: 40px 16px 56px; }
.pay-inner { max-width: 540px; margin: 0 auto; }
.lock-badge { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--taupe); margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 20px; background: #fff; }
.pay-main h1 { text-align: center; font-family: var(--display); font-size: clamp(46px, 6vw, 62px); line-height: 1.3; margin-top: 14px; color: var(--taupe-title); }
.pay-intro { text-align: center; color: var(--paper-muted); margin-top: 6px; font-size: 15px; }
.summary-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 14px; margin-top: 28px; }
.summary-card img { width: 72px; height: 72px; object-fit: cover; flex: none; }
.sc-name { font-size: 17px; color: var(--paper-ink); line-height: 1.3; }
.sc-sub { font-size: 13px; color: var(--paper-muted); margin-top: 3px; }
.sc-amount { margin-left: auto; font-size: 22px; white-space: nowrap; color: var(--burgundy); font-variant-numeric: tabular-nums; }
.recap { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 20px 0 0; font-size: 15px; }
.recap dt { color: var(--paper-muted); }
.recap dd { margin: 0; text-align: right; color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.recap .total { font-size: 22px; color: var(--burgundy); }
.form-alert { margin-top: 18px; background: #fbeaea; color: #8f1d1d; border-left: 3px solid #8f1d1d; padding: 10px 14px; font-size: 14px; }
.form-ok { margin: 18px 0; background: #e8f1ea; color: #1f4a28; border-left: 3px solid #2f6b3a; padding: 12px 14px; }
.pay-form { margin-top: 24px; display: grid; gap: 16px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--paper-ink); }
.field input, .field select, .field textarea, .tel-row select { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 0; background: #fff; color: var(--paper-ink); }
.field input::placeholder, .field textarea::placeholder { color: #807872; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--taupe-deep); box-shadow: 0 0 0 2px rgba(186, 161, 141, .45); }
.field.bad input, .field.bad select, .check.bad input { border-color: #b3261e; background: #fff7f7; outline: 2px solid #f1b8b4; }
.tel-row { display: flex; gap: 8px; }
.tel-row select { flex: 0 0 42%; min-width: 0; }
.tel-row input { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--burgundy); flex: none; }
.check a { color: inherit; text-underline-offset: 3px; }
.btn-pay { width: 100%; min-height: 58px; font-size: 13px; }
.secure-note { text-align: center; font-size: 13px; color: var(--paper-muted); line-height: 1.7; }
.secure-note strong { color: var(--paper-ink); font-weight: 400; }
.demo-note { text-align: center; font-size: 13px; background: #fff3cd; color: #5e4500; padding: 8px; }

.result-page { background: var(--bg-2); min-height: 100vh; display: flex; flex-direction: column; }
.result-header { padding: 18px 16px; display: flex; justify-content: center; background: var(--dark); }
.result-header .brand-logo { height: 36px; }
.result-card { background: #fff; color: var(--paper-ink); max-width: 560px; width: calc(100% - 32px); margin: 32px auto 56px; padding: 40px 24px; text-align: center; border-top: 3px solid var(--taupe); }
.result-card.left { text-align: left; }
.result-card h1 { font-family: var(--display); font-size: 58px; line-height: 1.3; color: var(--taupe-title); }
.result-card > p { margin-top: 10px; color: var(--paper-muted); }
.result-card .recap { text-align: left; margin-top: 22px; }
.result-card .btn-outline, .result-card .btn-outline-dark, .btn-outline-dark { border: 1px solid var(--burgundy); color: var(--burgundy); background: transparent; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.result-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; border: 1px solid currentColor; }
.result-icon.ok { color: #2f6b3a; } .result-icon.ko { color: #a61b29; } .result-icon.wait { color: var(--taupe-deep); }
.result-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ref { font-size: 12px; letter-spacing: .06em; }
.redirect-page { background: var(--bg-2); color: var(--ink); text-align: center; padding: 80px 20px; }
.redirect-page form { margin-top: 20px; }
.btn-outline { border: 1px solid var(--burgundy); color: var(--burgundy); background: transparent; }

.demo-page { background: #eef0f3; color: #1d2433; font-family: system-ui, Arial, sans-serif; }
.demo-card { max-width: 520px; margin: 30px auto; background: #fff; padding: 28px; border: 1px solid #cfd6e2; border-radius: 8px; }
.demo-card h1 { font-family: system-ui, Arial, sans-serif; color: #1d2433; font-size: 24px; font-weight: 700; margin: 12px 0 8px; }
.demo-badge { display: inline-block; background: #fff3cd; color: #6b4e00; border: 1px solid #e6c65c; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.demo-card form { display: grid; gap: 8px; margin-top: 18px; }
.demo-btn { border: 0; border-radius: 4px; padding: 12px; font-weight: 700; cursor: pointer; text-align: left; }
.demo-btn.ok { background: #1f7a3a; color: #fff; } .demo-btn.ko { background: #a61b29; color: #fff; } .demo-btn.test { background: #e8ecf3; color: #1d2433; }
.demo-sub { font-size: 12px; color: #5b6477; margin-top: 8px; }

.content-page { background: #fff; color: var(--paper-ink); }
.content-page .top { background: var(--dark); padding: 16px 0; color: #fff; }
.content-page .top .header-inner { height: auto; padding: 0 16px; grid-template-columns: 1fr auto; }
.content-page .top .brand-logo { height: 34px; }
.article { max-width: 760px; margin: 0 auto; padding: 48px 16px 64px; }
.article h1 { font-family: var(--display); font-size: clamp(48px, 6vw, 68px); line-height: 1.3; color: var(--taupe-title); }
.article li, .article p { margin-top: 12px; line-height: 1.8; }
.summary-card .tbv, .result-card .tbv, .article .tbv { background: rgba(254, 220, 185, .8); color: #5d4532; }
.draft { background: var(--bg-2); color: #5d4532; padding: 10px 14px; border-left: 3px solid var(--taupe); font-size: 14px; }

/* très petits écrans : la colonne d'infos ne doit jamais dépasser */
.infos-grid > * { min-width: 0; }
.info-list dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 380px) { .info-list div { grid-template-columns: 1fr; gap: 2px; } .info-list .link-arrow { margin-left: 0; } }

/* écart réduit entre « Charmed » et « La qualité » */
.show { padding-bottom: 36px; }
.cuisine { padding-top: 48px; }
@media (min-width: 900px) { .show { padding-bottom: 36px; } .cuisine { padding-top: 48px; } }
