/* ==========================================================================
   HOP v2 — Page d'accueil (CSS pur)
   ========================================================================== */

/* ÉCHELLE GLOBALE DESKTOP — reproduit le confort du "zoom 80%" du navigateur à 100%,
   pour que la mise en page garde la même forme qu'on la voie à 80% ou 100%.
   Le mobile (<1024px) n'est PAS touché (il a sa propre mise en page responsive).
   Chargé en tête (home.css/page.css sont sur toutes les pages) -> pas de flash. */
@media (min-width: 1024px) { :root { zoom: 0.8; } }

:root {
  --brand: #9c0306;
  --brand-ink: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-50: color-mix(in srgb, var(--brand) 5%, #fff);
  --brand-100: color-mix(in srgb, var(--brand) 11%, #fff);
  --brand-200: color-mix(in srgb, var(--brand) 22%, #fff);

  --ink: #161213;
  --text: #413b3c;
  --muted: #7a7274;
  --bg: #fcfaf9;
  --surface: #ffffff;
  --soft: #f5f1f0;
  --line: #ece6e4;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;

  --shadow-sm: 0 1px 2px rgb(22 18 19 / .05), 0 2px 8px rgb(22 18 19 / .04);
  --shadow-md: 0 2px 6px rgb(22 18 19 / .05), 0 12px 32px rgb(22 18 19 / .07);
  --shadow-lg: 0 8px 20px rgb(22 18 19 / .07), 0 30px 70px rgb(22 18 19 / .12);
  --shadow-brand: 0 10px 30px color-mix(in srgb, var(--brand) 30%, transparent);

  --hdr-h: 76px;
  --gutter: clamp(16px, 4vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip -> empêche la marge/scroll horizontal causé par des widgets tiers
   en position:fixed légèrement plus larges que le viewport (ex. LiveChat #chat-widget-container
   ~392px sur mobile). « clip » rogne sans créer de conteneur de défilement -> position:sticky
   (en-tête) continue de fonctionner, contrairement à overflow:hidden. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* clip (et non hidden) : rogne le débordement horizontal SANS créer de conteneur de
   défilement -> l'en-tête position:sticky reste collé au viewport au scroll. */
body { font-family: var(--font); font-size: 16px; color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* Menu mobile ouvert : on verrouille le DÉFILEMENT. Avec le zoom CSS posé sur <html>
   par le scaler, c'est <html> qui devient le conteneur de défilement (et le conteneur
   de bloc des éléments position:fixed), donc overflow:hidden sur <body> ne suffit plus :
   l'en-tête et le menu partaient au scroll. On verrouille aussi <html>. */
html.no-scroll, body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--brand-100); color: var(--brand-ink); }

.wrap { width: calc(100% - 2 * var(--gutter)); max-width: 1920px; margin-inline: auto; }

.h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; color: var(--ink); text-align: center; }
.lead { max-width: 640px; margin: 14px auto 0; text-align: center; font-size: 1.08rem; color: var(--muted); }

/* ---------------- Squelettes de chargement ---------------- */
.sk:empty { position: relative; min-height: 1em; border-radius: 14px; background: linear-gradient(90deg, var(--soft) 0%, var(--soft) 50%, var(--soft) 100%) 0 0 / 200% 100%; animation: sk 1.3s linear infinite; }
.hero__title.sk:empty { width: min(760px, 90%); height: 2.2em; margin-inline: auto; }
.sk--line:empty { width: 220px; height: 1.1em; margin-inline: auto; }
@keyframes sk { to { background-position: -200% 0; } }
body.is-loading .hdr__menu { opacity: 0; pointer-events: none; }
.load-error { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; padding: 14px 18px; background: var(--surface); border: 1px solid var(--brand-200); border-radius: var(--r-md); box-shadow: var(--shadow-md); color: var(--brand); z-index: 99; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Boutons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px;
       font-weight: 700; font-size: .95rem; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--brand:hover { background: var(--brand-ink); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand-200); color: var(--brand); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem;
              color: var(--ink); background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); transition: .2s; }
.link-arrow svg { width: 18px; height: 18px; color: var(--brand); transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-200); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------- En-tête ---------------- */
.hdr { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.hdr.is-sticky, .hdr.is-menu { background: rgb(255 255 255 / .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
/* le flou crée un bloc conteneur qui piégerait le menu mobile (position: fixed) */
.hdr.is-menu { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr__in { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }
/* Logo = mot-symbole « HOP! » (SVG) : hauteur fixe, largeur auto, pas de tuile carrée. */
.hdr__logo { flex-shrink: 0; height: 34px; width: auto; display: inline-flex; align-items: center; transition: transform .2s var(--ease); }
.hdr__logo:hover { transform: scale(1.04); }
.hdr__logo img { height: 100%; width: auto; object-fit: contain; }
.hdr__menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr__nav { display: flex; align-items: center; gap: 4px; }
.hdr__side { display: flex; align-items: center; gap: 16px; }
.hdr__tools { display: flex; gap: 6px; }
.hdr__auth { display: flex; gap: 10px; }

.nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--text); transition: background .2s, color .2s; }
.nav__link:hover { color: var(--ink); background: var(--soft); }
.nav__link.is-active { color: var(--brand); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px 0 12px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink); transition: background .2s; }
.chip:hover { background: var(--soft); }
.chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.chip__sym { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--brand-100); color: var(--brand); font-size: .72rem; }
.chev { width: 16px; height: 16px; opacity: .6; transition: transform .25s var(--ease); }
.dd.is-open .chev { transform: rotate(180deg); }

.hdr__burger { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; }
.hdr__burger span, .hdr__burger span::before, .hdr__burger span::after { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); content: ''; transition: .25s var(--ease); }
.hdr__burger span { top: 21px; }
.hdr__burger span::before { left: 0; top: -7px; }
.hdr__burger span::after { left: 0; top: 7px; }
.hdr.is-menu .hdr__burger span { background: transparent; }
.hdr.is-menu .hdr__burger span::before { top: 0; transform: rotate(45deg); }
.hdr.is-menu .hdr__burger span::after { top: 0; transform: rotate(-45deg); }

/* Menus déroulants */
.dd { position: relative; }
.dd__panel { position: absolute; top: calc(100% + 10px); right: 0; min-width: 210px; padding: 8px; border-radius: var(--r-md); background: var(--surface);
             box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); z-index: 60;
             opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: .2s var(--ease); }
.dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: none; }
.dd__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; font-weight: 600; font-size: .93rem; transition: background .15s; }
.dd__item:hover { background: var(--soft); }
.dd__item.is-active { color: var(--brand); background: var(--brand-50); }
.dd__item img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.dd__sym { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: var(--soft); font-size: .8rem; }
.mega { left: 50%; right: auto; transform: translate(-50%, -6px) scale(.98); transform-origin: top center; display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 8px; min-width: 520px; padding: 14px; }
.dd.is-open .mega { transform: translate(-50%, 0); }
.mega__col { display: flex; flex-direction: column; padding: 6px; }
.mega__title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 8px; }
.mega__col a { padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: .93rem; transition: .15s; }
.mega__col a:hover { background: var(--brand-50); color: var(--brand); }

/* ---------------- Hero ---------------- */
.hero { position: relative; margin-top: calc(var(--hdr-h) * -1); padding: calc(var(--hdr-h) + clamp(28px, 5vw, 64px)) 0 0; overflow: hidden; isolation: isolate; }
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
              background: radial-gradient(40% 55% at 78% 55%, var(--brand-100) 0%, transparent 70%),
                          radial-gradient(30% 40% at 96% 95%, #fff1e6 0%, transparent 70%); }
.hero__glow::after { content: ''; position: absolute; inset: 0; opacity: .6;
                     background-image: radial-gradient(rgb(22 18 19 / .07) 1px, transparent 1px); background-size: 26px 26px;
                     -webkit-mask-image: linear-gradient(to right, #000, transparent 60%); mask-image: linear-gradient(to right, #000, transparent 60%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__in { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding-bottom: clamp(40px, 6vw, 90px); }
.hero__title { max-width: 17ch; font-size: clamp(2.7rem, 5.6vw, 5.8rem); font-weight: 600; line-height: 1.16; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.hero__title.sk:empty { width: min(620px, 100%); margin-inline: 0; }
.hero .sk--line:empty { margin-inline: 0; }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Badges stores sous le titre */
.hero__apps { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero__apps:empty { display: none; }
.hero__badge { display: block; border-radius: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hero__badge img { height: 50px; width: auto; }
.hero__badge:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgb(0 0 0 / .18); }

/* Boutons « À propos » / « Tout commence ici » */
.hlink { display: inline-flex; align-items: center; gap: 12px; height: 56px; border-radius: 999px; font-weight: 600; font-size: 1rem; transition: .25s var(--ease); }
.hlink__txt { display: inline-block; text-transform: lowercase; }
.hlink__txt::first-letter { text-transform: uppercase; }
.hlink svg { width: 20px; height: 20px; }
.hlink--ghost { padding: 0 24px 0 8px; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); }
.hlink--ghost .hlink__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); color: var(--brand); transition: .25s var(--ease); }
.hlink--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand-200), var(--shadow-md); transform: translateY(-2px); }
.hlink--ghost:hover .hlink__ico { background: var(--brand); color: #fff; }
.hlink--dark { padding: 0 8px 0 26px; color: #fff; background: var(--ink); box-shadow: 0 10px 24px rgb(22 18 19 / .25); }
.hlink--dark .hlink__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); transition: transform .25s var(--ease); }
.hlink--dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 14px 30px rgb(22 18 19 / .3); }
.hlink--dark:hover .hlink__go { transform: translateX(4px); }
.hero__phone { position: relative; align-self: center; display: flex; justify-content: center; padding-block: clamp(20px, 3vw, 48px) clamp(40px, 5vw, 72px); }
/* Barre de recherche */
.finder { width: min(760px, 100%); margin-top: 32px; }
.finder__label { margin-bottom: 12px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.finder__bar { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); text-align: left; }
.finder__svc { position: relative; flex-shrink: 0; }
.finder__svc-btn { display: flex; align-items: center; gap: 10px; height: 60px; max-width: 280px; padding: 0 22px 0 20px; border-radius: 999px; background: var(--soft); font-weight: 700; font-size: .98rem; color: var(--ink); transition: .2s; }
.finder__svc-btn svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand); }
.finder__svc-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder__svc-btn:hover { background: var(--brand-50); }
.finder__svc.is-set .finder__svc-btn { background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-200); }
.finder__list { position: absolute; top: calc(100% + 14px); left: 0; width: 340px; max-height: min(460px, 60vh); overflow: auto; padding: 8px; border-radius: var(--r-md);
                background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); z-index: 30; overscroll-behavior: contain;
                opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease); }
.finder__svc.is-open .finder__list { opacity: 1; visibility: visible; transform: none; }
.finder__grp { padding: 12px 12px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.finder__opt { display: block; width: 100%; padding: 11px 12px; border-radius: 12px; text-align: left; font-weight: 600; transition: .15s; }
.finder__opt:hover { background: var(--soft); }
.finder__opt.is-active { background: var(--brand-50); color: var(--brand); }
.finder__addr { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; }
.finder__pin { width: 24px; height: 24px; flex-shrink: 0; fill: var(--brand); }
.finder__addr input { flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.finder__addr input::placeholder { color: var(--muted); font-weight: 500; }
.finder__locate { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; color: var(--muted); transition: .2s; }
.finder__locate svg { width: 22px; height: 22px; fill: currentColor; }
.finder__locate:hover { color: var(--brand); background: var(--brand-50); }
.finder__locate.is-busy svg { animation: spin 1s linear infinite; color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.finder__go { display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); transition: .2s var(--ease); }
.finder__go svg { width: 26px; height: 26px; transition: transform .2s var(--ease); }
.finder__go:hover { background: var(--brand-ink); }
.finder__go:hover svg { transform: translateX(3px); }
.finder__ac { position: absolute; top: calc(100% + 22px); left: -8px; right: -74px; padding: 8px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); z-index: 30; }
.finder__ac button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; transition: .15s; }
.finder__ac button:hover { background: var(--soft); }
.finder__ac svg { width: 34px; height: 34px; flex-shrink: 0; padding: 8px; border-radius: 10px; background: var(--brand-50); fill: var(--brand); }
.finder__ac strong { display: block; font-weight: 700; color: var(--ink); }
.finder__ac small { display: block; color: var(--muted); font-size: .85rem; }
.finder__msg { margin-top: 12px; color: var(--brand); font-weight: 600; font-size: .92rem; }
.is-shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------------- Services ---------------- */
.services { padding: clamp(80px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.seg { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 34px auto 48px; padding: 6px; border-radius: 999px; background: var(--soft);
       box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg__btn { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; height: 50px; padding: 0 22px 0 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--muted); transition: .25s var(--ease); }
.seg__btn img { width: 26px; height: 26px; object-fit: contain; filter: grayscale(1); opacity: .55; transition: .25s; }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.seg__btn.is-active img { filter: none; opacity: 1; }

.panel { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.group + .group { margin-top: 44px; }
.group__title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.group__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--surface);
        box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 0 1px var(--brand-200); }
.card__ico { display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; border-radius: 18px; background: var(--brand-50); transition: .3s var(--ease); }
.card__ico img { width: 38px; height: 38px; object-fit: contain; transition: transform .3s var(--ease); }
.card:hover .card__ico { background: var(--brand-100); }
.card:hover .card__ico img { transform: scale(1.1) rotate(-4deg); }
.card__body { flex: 1; min-width: 0; padding-right: 22px; }
.card__body strong { display: block; margin-bottom: 4px; font-size: 1.06rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.card__body span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.card__go { position: absolute; top: 18px; right: 18px; color: var(--brand); opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.card__go svg { width: 20px; height: 20px; }
.card:hover .card__go { opacity: 1; transform: none; }

/* ---------------- Comment ça marche ---------------- */
.how { padding: clamp(60px, 8vw, 100px) 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; counter-reset: s; }
.steps::before { content: ''; position: absolute; top: 44px; left: 12.5%; right: 12.5%; border-top: 2px dashed var(--line); }
.step { position: relative; text-align: center; }
.step__ico { position: relative; display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 28px; background: var(--surface);
             box-shadow: var(--shadow-md), 0 0 0 6px var(--bg); }
.step__ico img { width: 48px; height: 48px; object-fit: contain; }
.step__ico b { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; box-shadow: 0 0 0 4px var(--bg); }
.step:nth-child(4n+1) .step__ico { background: #e3fbfa; }
.step:nth-child(4n+2) .step__ico { background: #e8edff; }
.step:nth-child(4n+3) .step__ico { background: #ffece4; }
.step:nth-child(4n+4) .step__ico { background: #fff5d6; }
.step strong { display: block; margin-bottom: 6px; font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.step p { max-width: 240px; margin-inline: auto; font-size: .95rem; color: var(--muted); }

/* ---------------- Inscription (bento) ---------------- */
.join { padding: clamp(60px, 8vw, 100px) 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.tile { grid-column: span 1; }
.tile--lg { grid-column: span 2; }
.tile a { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
          transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile a:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.tile__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.tile--lg .tile__img { aspect-ratio: 2 / 1; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile a:hover .tile__img img { transform: scale(1.05); }
.tile__foot { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 20px 20px 22px; }
.tile__foot strong { font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.tile--lg .tile__foot strong { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.tile__go { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--brand-50); color: var(--brand); transition: .3s var(--ease); }
.tile__go svg { width: 20px; height: 20px; }
.tile a:hover .tile__go { background: var(--brand); color: #fff; transform: rotate(-45deg); }
.tile--accent a { position: relative; background: radial-gradient(120% 90% at 100% 0%, #d4141a 0%, var(--brand) 45%, #5a0103 100%); box-shadow: var(--shadow-brand); }
.tile--accent a::before { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgb(255 255 255 / .08); }
.tile--accent .tile__foot { min-height: 220px; }
.tile--accent strong { color: #fff; font-size: 1.2rem; }
.tile--accent .tile__go { background: rgb(255 255 255 / .16); color: #fff; }
.tile--accent a:hover .tile__go { background: var(--surface); color: var(--brand); }

/* ---------------- Bandeau application ---------------- */
.apps { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) 0; }
.apps__card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.apps::before, .apps::after { content: ''; position: absolute; border-radius: 50%; border: 40px solid rgb(255 255 255 / .06); pointer-events: none; }
.apps::before { width: 460px; height: 460px; right: 14%; top: -300px; }
.apps::after { width: 320px; height: 320px; left: -120px; bottom: -200px; }
.apps__card::before { width: 380px; height: 380px; right: 18%; top: -220px; }
.apps__card::after { width: 260px; height: 260px; left: -90px; bottom: -150px; }
.apps__txt { position: relative; display: flex; align-items: center; gap: 22px; }
.apps__logo { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; box-shadow: 0 0 0 3px rgb(255 255 255 / .25), 0 10px 30px rgb(0 0 0 / .25); }
.apps__txt h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.apps__badges { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.apps__badges a { transition: transform .25s var(--ease); }
.apps__badges a:hover { transform: translateY(-3px); }
.apps__badges img { height: 54px; width: auto; }

/* ---------------- Footer ---------------- */
.ftr { background: #141011; color: #b9b0b1; padding-top: clamp(56px, 7vw, 84px); }
.ftr__cols { display: grid; grid-template-columns: repeat(3, max-content); justify-content: center; gap: clamp(48px, 7vw, 120px); padding-bottom: 48px; }
.ftr h4 { margin-bottom: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ftr li + li { margin-top: 12px; }
.ftr li a, .ftr__txt { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; line-height: 1.4; transition: color .2s; }
.ftr li a:hover { color: #fff; }
.ftr__ico { display: grid; place-items: center; width: 18px; color: #fff; opacity: .55; font-size: 15px; }
.ftr__social { display: flex; flex-wrap: wrap; gap: 8px; }
.ftr__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / .07); color: #fff; font-size: 17px; transition: .25s var(--ease); }
.ftr__social a:hover { background: var(--brand); transform: translateY(-3px); }
.ftr__bottom { padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / .08); font-size: .88rem; text-align: center; color: #857b7c; }

/* ==========================================================================
   Thèmes de section : blanc / noir / rouge
   ========================================================================== */
.theme-light { background: var(--surface); }

.theme-dark { background: #0f0c0d; color: #d6cfd0; }
.theme-dark .h2, .theme-dark .group__title { color: #fff; }
.theme-dark .lead { color: #a39a9b; }
.theme-dark .group__title::after { background: rgb(255 255 255 / .1); }
.theme-dark .seg { background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.theme-dark .seg__btn { color: #a39a9b; }
.theme-dark .seg__btn:hover { color: #fff; }
.theme-dark .seg__btn img { filter: grayscale(1) invert(1); opacity: .5; }
.theme-dark .seg__btn.is-active { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.theme-dark .seg__btn.is-active img { filter: brightness(0) invert(1); opacity: 1; }
.theme-dark .card { background: #1a1516; box-shadow: 0 0 0 1px rgb(255 255 255 / .07); }
.theme-dark .card:hover { background: #211a1b; box-shadow: 0 16px 40px rgb(0 0 0 / .45), 0 0 0 1px color-mix(in srgb, var(--brand) 60%, transparent); }
.theme-dark .card__ico { background: var(--surface); }
.theme-dark .card:hover .card__ico { background: var(--surface); }
.theme-dark .card__body strong { color: #fff; }
.theme-dark .card__body span { color: #a39a9b; }
.theme-dark .card__go { color: #ff6b6b; }

.theme-red { background: var(--brand); color: rgb(255 255 255 / .85);
             background-image: radial-gradient(60% 80% at 100% 0%, rgb(255 255 255 / .12), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgb(0 0 0 / .25), transparent 60%); }
.theme-red .h2 { color: #fff; }
.theme-red .lead { color: rgb(255 255 255 / .78); }
.theme-red .steps::before { border-top-color: rgb(255 255 255 / .3); }
.theme-red .step__ico { box-shadow: 0 12px 30px rgb(0 0 0 / .2), 0 0 0 6px rgb(255 255 255 / .12); }
.theme-red .step__ico b { background: var(--surface); color: var(--brand); box-shadow: 0 0 0 4px var(--brand); }
.theme-red .step strong { color: #fff; }
.theme-red .step p { color: rgb(255 255 255 / .78); }

/* ---------------- Retour en haut ---------------- */
.gotop { position: fixed; right: 24px; bottom: 100px; z-index: 40; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
         background: var(--surface); color: var(--brand); box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
         opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease); }
.gotop.is-visible { opacity: 1; visibility: visible; transform: none; }
.gotop:hover { background: var(--brand); color: #fff; }
.gotop svg { width: 24px; height: 24px; }

/* ---------------- Modale newsletter ---------------- */
.modal { margin: auto; width: min(460px, 100% - 32px); border: 0; border-radius: var(--r-lg); padding: 0; background: var(--surface); box-shadow: var(--shadow-lg); }
.modal[open] { animation: pop .3s var(--ease); }
.modal::backdrop { background: rgb(20 16 17 / .5); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal__box { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal__head h4 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.modal__x { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 1.6rem; line-height: 1; color: var(--muted); }
.modal__x:hover { background: var(--soft); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input { height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--soft); font: inherit; color: var(--ink); box-shadow: inset 0 0 0 1.5px transparent; transition: .2s; }
.field input:focus { outline: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand); }
.radios { display: flex; gap: 22px; }
.radios label { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.radios input { width: 18px; height: 18px; accent-color: var(--brand); }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__in { align-items: center; text-align: center; padding-bottom: 8px; }
  .hero__title, .hero .sk--line:empty, .hero__title.sk:empty { margin-inline: auto; }
  .hero__links, .hero__apps { justify-content: center; }
  .hero__phone .mock { width: min(80%, 340px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --hdr-h: 68px; }
  .hdr__logo { height: 30px; width: auto; border-radius: 0; }
  .hdr__burger { display: block; }
  .hdr__menu { position: fixed; inset: var(--hdr-h) 0 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px;
               padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; display: none; }
  .hdr.is-menu .hdr__menu { display: flex; animation: fadeUp .3s var(--ease); }
  .hdr__nav { flex-direction: column; align-items: stretch; gap: 1px; }
  .nav__link { width: 100%; height: 44px; justify-content: space-between; padding: 0 14px; font-size: .96rem; font-weight: 700; color: var(--ink); border-radius: 12px; }
  .hdr__side { flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; }
  .hdr__tools { gap: 8px; }
  .hdr__tools .dd { flex: 1; }
  .chip { width: 100%; height: 44px; justify-content: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .hdr__auth { flex-direction: column; }
  .hdr__auth .btn { height: 46px; font-size: .95rem; }
  .dd__panel, .mega { position: static; min-width: 0; transform: none; box-shadow: none; background: transparent; padding: 0; display: none; opacity: 1; visibility: visible; }
  .nav__dd .dd__panel { width: auto; max-width: none; }
  .nav__ddPanel .dd__item { white-space: normal; }     /* menu empilé : retour à la ligne autorisé */
  .dd.is-open .dd__panel { display: block; transform: none; }
  .dd.is-open .mega { display: grid; grid-template-columns: 1fr; transform: none; padding: 4px 0 8px 10px; }
  .hdr__tools .dd.is-open .dd__panel { margin-top: 6px; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  /* Langue + devise affichées EN HAUT dans la barre, À DROITE près du hamburger */
  /* flex-shrink:1 + min-width:0 : si la barre est trop étroite, ce sont les chips (langue/devise)
     qui rétrécissent, JAMAIS le burger (qui reste entier à droite, voir flex-shrink:0 plus bas). */
  .dd--bar { display: block; position: relative; flex-shrink: 1; min-width: 0; margin-left: 6px; }
  .dd--bar.dd--barfirst { margin-left: auto; }   /* pousse le groupe (langue+devise+burger) à droite */
  /* Quand le 1er outil est le bouton thème : sa règle globale .hdr__theme.dd--bar{margin-left:6px}
     a la même spécificité et, placée plus bas, écrasait le `auto` -> le groupe ne partait pas à
     droite. 3 classes (spécificité supérieure) pour garantir la poussée à droite. */
  .hdr__theme.dd--bar.dd--barfirst { margin-left: auto; }
  .hdr__burger.burger--grouped { margin-left: 8px; flex-shrink: 0; }   /* burger TOUJOURS entier, jamais rogné */
  .hdr__burger, .hdrAccBtn { flex-shrink: 0; }
  .dd--bar .chip { width: auto; min-width: 0; height: 38px; padding: 0 9px; gap: 5px; font-size: .82rem; overflow: hidden;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
  .dd--bar .chip img { width: 18px; height: 18px; }
  .dd--bar .dd__panel { position: absolute; top: calc(100% + 8px); right: 0; left: auto; min-width: 150px; margin-top: 0;
    padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: 0 14px 34px rgba(20,16,17,.16), 0 0 0 1px var(--line); z-index: 60; display: none; }
  .dd--bar.is-open .dd__panel { display: block; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .apps__card { flex-direction: column; align-items: flex-start; }
}

/* En-tête mobile étroit : tout doit tenir sur une ligne (menu utilisateur à GAUCHE
   + logo + langue + devise + menu application à DROITE). On réduit fortement les
   espacements (gap de la barre, marge entre langue/devise) et les tailles. */
@media (max-width: 680px) {
  .hdr__in { gap: 8px; }                                   /* marge entre langue et devise : 28px -> 8px */
  .hdr__logo { height: 28px; width: auto; }
  .hdr__in .hdr__burger, .hdr__in .hdrAccBtn { width: 38px; margin-right: 0; }
  .hdr__in .hdrAccBtn { margin-left: 0; }
  .dd--bar { margin-left: 4px; }                           /* marge réduite entre les deux chips */
  .hdr__burger.burger--grouped { margin-left: 6px; }
  .dd--bar .chip { height: 34px; padding: 0 7px; gap: 4px; font-size: .76rem; }
  .dd--bar .chip img { width: 16px; height: 16px; }
}

@media (max-width: 720px) {
  .hero__title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .finder__bar { flex-direction: column; align-items: stretch; gap: 0; padding: 6px; border-radius: var(--r-lg); }
  .finder__svc-btn { width: 100%; max-width: none; height: 56px; border-radius: 18px; }
  .finder__list { width: 100%; }
  .finder__addr { padding: 4px 4px 4px 14px; }
  .finder__addr input { height: 56px; }
  .finder__go { width: 100%; height: 56px; border-radius: 18px; }
  .finder__ac { left: -6px; right: -6px; top: calc(100% + 72px); }
  .seg { width: calc(100% + 32px); margin-inline: -16px; border-radius: 0; background: transparent; box-shadow: none; padding: 4px 16px; }
  .seg__btn { background: var(--soft); }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 16px; border-radius: var(--r-md); }
  .card__ico { width: 54px; height: 54px; border-radius: 16px; }
  .card__go { opacity: 1; transform: none; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile--lg { grid-column: span 1; }
  .tile--accent .tile__foot { min-height: 150px; }
  .ftr__cols { grid-template-columns: 1fr; gap: 32px; }
  .apps__txt { flex-direction: column; align-items: flex-start; }
  .gotop { right: 16px; bottom: 92px; width: 46px; height: 46px; }
}

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

/* Sous-menu « Professionnels » dans la nav (dropdown aligné à gauche) */
.nav__dd .dd__panel { left: 0; right: auto; min-width: 262px; width: max-content; max-width: 360px; }
/* Libellés « Devenir … » longs : une seule ligne (la pastille reste collée à droite) */
.nav__ddPanel .dd__item { white-space: nowrap; }
.nav__ddPanel .dd__item .nav__dot { flex: none; }
.nav__ddPanel button.dd__item { border: 0; background: transparent; cursor: pointer; color: inherit; font: inherit; }
.nav__ddPanel button.dd__item:hover { background: var(--soft); color: var(--brand); }

/* Pastille verte « pro connecté » (menu Professionnels) */
.nav__dot { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%;
  background: #1e9e5a; box-shadow: 0 0 0 3px rgba(30,158,90,.22); vertical-align: middle; flex-shrink: 0; }
.dd__item .nav__dot { margin-left: auto; }

/* Labels d'onglets / chips / boutons courts sur UNE SEULE ligne (toutes langues).
   Éléments auto-largeur ou en défilement -> pas de risque de débordement.
   (.btn a déjà white-space:nowrap par ailleurs.) */
.finder2__tab, .food__chip, .food__sort, .rst__vegBtn, .cko__tip,
.bk__pay-txt b, .cko__pay-txt b, .cko__cardTitle, .bk__cardTitle { white-space: nowrap; }

/* ============================ MODE SOMBRE (global, via data-theme) ============================
   Redefinit les tokens -> tout ce qui utilise var(--bg/--surface/--ink/--text/--line...) bascule.
   Les couleurs « en dur » des composants sont corrigees dans leurs CSS respectifs. */
:root[data-theme="dark"] {
  --brand: #ee4b45;                 /* rouge plus clair : LISIBLE en texte/accents ET sous le texte blanc des boutons */
  --brand-ink: color-mix(in srgb, var(--brand) 85%, #000);  /* survol : un peu plus soutenu */
  --brand-50: color-mix(in srgb, var(--brand) 16%, #1d1a19);
  --brand-100: color-mix(in srgb, var(--brand) 26%, #1d1a19);
  --brand-200: color-mix(in srgb, var(--brand) 42%, #1d1a19);
  --ink: #f4f0ec;
  --text: #d5cfca;
  --muted: #9a938e;
  --bg: #121011;
  --surface: #1d1a19;
  --soft: #272321;
  --line: #352f2d;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .35), 0 2px 8px rgb(0 0 0 / .3);
  --shadow-md: 0 2px 6px rgb(0 0 0 / .4), 0 12px 32px rgb(0 0 0 / .45);
  --shadow-lg: 0 8px 20px rgb(0 0 0 / .45), 0 30px 70px rgb(0 0 0 / .6);
  color-scheme: dark;
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--text); }
:root[data-theme="dark"] * { scrollbar-color: #4a433f #1d1a19; }

/* Bouton bascule thame (outils de l'en-tete) */
.hdr__theme { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--soft); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.hdr__theme:hover { background: var(--line); }
.hdr__theme .fa { font-size: 1.05rem; }

/* --- Mode sombre : cas structurels non couverts par la conversion des tokens --- */
:root[data-theme="dark"] .hdr.is-sticky,
:root[data-theme="dark"] .hdr.is-menu { background: rgb(29 26 25 / .9); box-shadow: 0 1px 0 var(--line); }
:root[data-theme="dark"] .home2 .hdr { background: var(--surface); }

/* Champs de formulaire (fond sombre, texte clair) */
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select { background: var(--soft); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: var(--muted); }

/* Zones d'image / placeholders clairs -> neutre sombre */
:root[data-theme="dark"] .acard__img,
:root[data-theme="dark"] .dish__img,
:root[data-theme="dark"] .cko__rImg,
:root[data-theme="dark"] .cko__ciImg,
:root[data-theme="dark"] .cko__vBox,
:root[data-theme="dark"] .accResto__cover,
:root[data-theme="dark"] .accDish__img { background: var(--soft); }

/* Barre basse / cartes du checkout qui avaient un blanc en dur -> surface */
:root[data-theme="dark"] .cko--one .cko__foot,
:root[data-theme="dark"] .cko__sheetBox,
:root[data-theme="dark"] .cko__resto { background: var(--surface); }
:root[data-theme="dark"] .cko--one .cko__body { background: var(--bg); }

/* --- Mode sombre : correctifs ciblés --- */
/* Bouton de mode SELECTIONNE (booking) : en sombre --ink devient clair -> texte blanc
   invisible. On passe l'actif en rouge marque (visible en clair comme en sombre). */
:root[data-theme="dark"] .bk__mode.is-active,
:root[data-theme="dark"] .bkMapTypes__list button.is-active { background: var(--brand); color: #fff; }
/* Vague en bas du heros : remplie en blanc en dur -> on la remplit en sombre (= fond surface). */
:root[data-theme="dark"] .h2hero::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='%231d1a19' d='M0,42 C240,86 480,2 720,30 C960,58 1200,8 1440,38 L1440,71 L0,71 Z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
}
/* Pastilles de note (fond vert clair) -> plus sombres en mode sombre */
:root[data-theme="dark"] .accResto__rating,
:root[data-theme="dark"] .accDish__rating,
:root[data-theme="dark"] .acard__rate { background: rgba(30,158,90,.18); color: #4fd389; }

/* Bouton de thème quand il est remonté dans la barre du haut (mobile) : taille alignée sur les chips. */
.hdr__theme.dd--bar { width: 38px; height: 38px; margin-left: 6px; border-radius: 50%; }
@media (max-width: 680px) { .hdr__theme.dd--bar { width: 34px; height: 34px; } .hdr__theme.dd--bar .fa { font-size: .95rem; } }

/* Menu mobile sur écran court : encore plus compact pour tenir sans scroll */
@media (max-width: 1180px) and (max-height: 760px) {
  .hdr__menu { gap: 8px; padding-top: 8px; }
  .hdr__nav { gap: 0; }
  .nav__link { height: 40px; font-size: .9rem; }
  .hdr__side { gap: 8px; }
  .chip { height: 42px; }
  .hdr__auth .btn { height: 42px; font-size: .92rem; }
}
