/* =========================================================
   YM DIGITAL — style.css
   Direction « Pignon sur rue » · mobile first
   Breakpoints : 768 / 1024 / 1280 px
   Espacements : 4 8 12 16 24 32 48 64 80 96 120 px
   ========================================================= */

/* Police Archivo hébergée sur le site (licence SIL OFL, voir fonts/OFL-Archivo.txt) :
   aucune connexion à Google Fonts. Fichier variable : graisse 400–800, largeur 62–125 %. */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #050505;
  --white: #F4F4F4;
  --silver: #BBBBBB;
  --anth: #1B1B1B;
  --line: #2B2B2B;
  --line-2: #3A3A3A;
  --dash: #6A6A6A;
  --ok: #5BBF8A;
  --err: #F07470;
  --warn: #E8B55A;
  --ink-2: #3A3A3A;
  /* Couleurs qui changent avec le thème */
  --pure: #FFFFFF;
  --hdr-bg: rgba(5, 5, 5, 0.92);
  --closed: #9A9A9A;
  --muted: #9A9A9A;
  --dash-2: #4A4A4A;
  --in-bg: #FFFFFF;
  --in-err: #B3261E;
  --stage-bg: radial-gradient(120% 90% at 30% 20%, #1E1E1E, #070707 70%);
  --tone-bg: radial-gradient(100% 70% at 12% 0%, #191919, #070707 72%);
  --drawer-shadow: 0 24px 48px rgba(0, 0, 0, .55);
  --desk-bg: #0d0d0d;
  --desk-bar: #1B1B1B;
  --desk-line: #2B2B2B;
  --desk-dot: #3A3A3A;
  --desk-pill: #0D0D0D;
  --car-btn: rgba(5, 5, 5, .75);
  --car-btn-h: rgba(27, 27, 27, .9);
  --progress-from: #8A8A8A;
  --font: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --gutter: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 4px; }
[id] { scroll-margin-top: 96px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; padding: 12px 16px; background: var(--white); color: var(--black); font-weight: 600; border-radius: 8px; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */
.h1 { font-stretch: 125%; font-weight: 700; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-stretch: 125%; font-weight: 700; font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.02em; }
.h3 { font-stretch: 112%; font-weight: 600; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); line-height: 1.2; }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--silver); max-width: 62ch; }
.txt { font-size: 1rem; color: var(--silver); max-width: 65ch; }
.wide { font-stretch: 125%; }
.slogan { font-stretch: 112%; font-weight: 500; font-size: 1rem; color: var(--silver); }
.tbc { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px dashed var(--dash); border-radius: 4px; font-size: 0.875rem; font-weight: 500; line-height: 1.3; color: var(--silver); }
.tbc-ink { color: var(--ink-2); border-color: #6E6E6E; }

/* ---------- Boutons (mats) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--pure); }
.btn-line { color: var(--white); border-color: var(--line-2); background: transparent; }
.btn-line:hover { border-color: var(--silver); }
.btn-ink { background: var(--black); color: var(--white); }
.btn-ink:hover { background: var(--anth); }
.lnk-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.lnk-arrow:hover { text-decoration-color: var(--white); }

/* ---------- En-tête ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--hdr-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.hdr-l { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand svg { width: 32px; height: auto; fill: var(--white); flex: none; }
.brand span { font-stretch: 125%; font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; white-space: nowrap; }
/* Bouton devis toujours visible dans la bande du haut (mobile et tablette) */
.hdr-cta { margin-left: auto; min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; white-space: nowrap; }
@media (max-width: 539px) {
  .hdr-in { gap: 8px; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--white); cursor: pointer; }
.burger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav { display: none; }
.nav .lnk { display: flex; align-items: center; color: var(--silver); transition: color .15s ease; }
.nav .lnk:hover { color: var(--white); }
/* Tiroir (pages et guides) : mobile et ordinateur */
.drawer { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; display: grid; gap: 8px; max-height: calc(100dvh - 96px); overflow-y: auto; padding: 16px 20px; background: var(--stage-bg); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--drawer-shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity .22s var(--ease, ease), transform .22s var(--ease, ease), visibility 0s linear .22s; }
.drawer.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .22s var(--ease, ease), transform .22s var(--ease, ease), visibility 0s; }
.drawer-t { font-size: 0.875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--silver); }
.drawer-l { display: grid; list-style: none; border-top: 1px solid var(--line); }
.drawer-l li:last-child .dlnk { border-bottom: 0; padding-bottom: 0; }
.dlnk { display: grid; gap: 4px; min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dlnk b { font-size: 1rem; font-weight: 600; color: var(--white); }
.dlnk span { font-size: 0.875rem; color: var(--silver); }
.dlnk:hover b { text-decoration: underline; text-underline-offset: 4px; }
.burger svg path { transition: d .22s var(--ease, ease); }
.burger[aria-expanded="true"] svg path { d: path("M6 6l12 12M18 6L6 18M12 12h0"); }

/* ---------- Haut de page ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero-media { position: relative; height: 240px; overflow: hidden; background: var(--black); }
.hero-media img { height: 100%; width: auto; max-width: none; }
/* Mobile et tablette : léger fondu en bas du logo pour qu’il ne « flotte » pas */
.hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(to bottom, transparent, var(--black)); pointer-events: none; }
.hero-body { padding: 16px var(--gutter) 48px; }
.hero-txt { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.cta { display: flex; flex-direction: column; gap: 12px; }
.cta .btn { width: 100%; }
.for { font-size: 1rem; color: var(--silver); padding-top: 24px; border-top: 1px solid var(--line); max-width: 58ch; }

/* ---------- Sections ---------- */
.sec { padding-block: 48px; border-bottom: 1px solid var(--line); }
.head { display: grid; gap: 16px; margin-bottom: 32px; }

/* Horaires */
.hours { display: grid; gap: 48px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tbl caption { caption-side: bottom; text-align: left; padding-top: 16px; font-size: 0.9375rem; color: var(--silver); }
.tbl th, .tbl td { padding: 16px 8px 16px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: middle; }
.tbl thead th { font-size: 0.9375rem; color: var(--silver); border-bottom-color: var(--line-2); }
.tbl tbody th { font-weight: 600; }
.tbl .shop { color: var(--silver); }
.tbl .closed { color: var(--closed); }
.tbl .site { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tbl .site i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.night { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.clock { font-stretch: 125%; font-weight: 700; font-size: 3rem; line-height: 1; }
.checks { display: flex; flex-direction: column; gap: 16px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 12px; height: 7px; margin-top: 8px; border-left: 1.5px solid var(--white); border-bottom: 1.5px solid var(--white); transform: rotate(-45deg); }

/* La carte */
.board { border: 1px solid var(--line-2); border-radius: 4px; padding: 32px 16px; }
.board-top { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; font-stretch: 125%; font-weight: 600; font-size: 1.125rem; }
.board-top::before, .board-top::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.menu { display: grid; gap: 48px; }
.grp { display: flex; flex-direction: column; gap: 32px; }
.grp .h3 { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mi { display: flex; flex-direction: column; gap: 8px; }
.mi-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.mi-row h4 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.mi-row .dots { display: none; }
.mi-row .price { width: 100%; font-size: 1rem; color: var(--silver); white-space: nowrap; }
.mi p { font-size: 1rem; color: var(--silver); max-width: 52ch; }
.board-foot { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.board-foot p { font-size: 1rem; color: var(--silver); max-width: 65ch; }
.board-foot strong { color: var(--white); font-weight: 600; }
.board-foot .btn { width: 100%; }
.pay-note { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; margin-top: 12px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--white); font-size: 0.9375rem; font-weight: 600; transition: border-color .2s ease, background-color .2s ease; }
.pay-note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.pay-note:hover { border-color: var(--silver); background: var(--line); }
.pay-note:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* Vitrines */
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.875rem; color: var(--white); background: var(--black); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; }
.status .on { background: var(--ok); }
.status .draft { border: 1px solid var(--silver); }

/* L'agence */
.steps { display: grid; gap: 16px; }
.ticket { background: var(--ticket, var(--anth)); padding: 32px 24px; display: flex; flex-direction: column; gap: 16px;
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.ticket .no { font-stretch: 125%; font-weight: 700; font-size: 2rem; line-height: 1; color: var(--silver); padding-bottom: 16px; border-bottom: 1px dashed var(--dash-2); }
.ticket h3 { font-size: 1.1875rem; font-weight: 600; }

/* Contact */
.ct { display: grid; gap: 24px; }
.paper { background: var(--white); color: var(--black); padding: 32px 16px; display: flex; flex-direction: column; gap: 16px;
  -webkit-mask: radial-gradient(circle 6px at 8px 0, transparent 98%, #000) top / 16px 51% repeat-x, radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom / 16px 51% repeat-x;
          mask: radial-gradient(circle 6px at 8px 0, transparent 98%, #000) top / 16px 51% repeat-x, radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom / 16px 51% repeat-x; }
.paper :focus-visible { outline-color: var(--black); }
.paper-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-bottom: 16px; border-bottom: 1px dashed #6E6E6E; }
.paper-top .h3 { font-stretch: 125%; font-weight: 700; }
.paper-top p { font-size: 0.9375rem; color: var(--ink-2); }
.fg { display: grid; gap: 16px; }
.f { display: flex; flex-direction: column; gap: 8px; }
.f label { font-size: 1rem; font-weight: 600; }
.f label small { font-size: 1rem; font-weight: 400; color: var(--ink-2); }
.in { width: 100%; min-height: 48px; padding: 12px 16px; background: var(--in-bg); color: var(--black); border: 1px solid #6E6E6E; border-radius: 8px; font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none; }
textarea.in { min-height: 88px; resize: vertical; }
.in[aria-invalid="true"] { border-color: var(--in-err); border-width: 2px; }
.selw { position: relative; }
.selw::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.selw .in { padding-right: 48px; }
.err { font-size: 0.9375rem; font-weight: 600; color: var(--in-err); }
.check-wrap { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--black); flex: none; }
.check a { color: var(--black); text-decoration: underline; text-underline-offset: 4px; }
.paper-foot { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 16px; border-top: 1px dashed #6E6E6E; }
.paper-foot p { font-size: 0.9375rem; color: var(--ink-2); }
.msg { padding: 16px; border-radius: 8px; font-size: 1rem; font-weight: 600; }
.msg.is-ok { background: #E3F4EA; color: #14532D; border: 1px solid #2F7D50; }
.msg.is-err { background: #FBE9E8; color: #8A1C15; border: 1px solid #B3261E; }
.side { display: flex; flex-direction: column; gap: 24px; }
.opt { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.opt h3 { font-stretch: 112%; font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.opt .btn { width: 100%; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 1rem; font-weight: 600; }
.socials a:hover { border-color: var(--silver); }
.socials a { gap: 8px; }
.btn-wa .ico { width: 20px; height: 20px; flex: none; fill: currentColor; }
.ftr-col .btn-wa { align-self: flex-start; }
.socials .ico { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* ---------- Pied de page ---------- */
.ftr { padding-block: 48px 24px; overflow: hidden; }
.giant { font-stretch: 125%; font-weight: 800; font-size: clamp(2.5rem, 10vw, 9rem); line-height: 0.9; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px var(--dash-2); white-space: nowrap; margin-bottom: 48px; text-align: center; }
.ftr-grid { display: grid; gap: 32px; padding-bottom: 48px; }
.ftr-col { display: flex; flex-direction: column; gap: 16px; }
.ftr-col h2 { font-stretch: 112%; font-size: 1rem; font-weight: 600; }
.ftr-col ul { display: flex; flex-direction: column; gap: 4px; }
.ftr-col li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; min-height: 44px; font-size: 1rem; color: var(--silver); }
.ftr-col .li-wa { padding-block: 4px; }
.ftr-col .num { color: var(--white); }
.ftr-col a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; }
.ftr-col .ico { width: 20px; height: 20px; flex: none; margin-right: 12px; fill: currentColor; }
.ftr-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { display: grid; gap: 32px; padding-top: 32px; text-align: center; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--silver); }
.legal-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.legal-col:first-child { grid-column: 1 / -1; }
@media (max-width: 479px) { .legal-nav { grid-template-columns: 1fr; } }
.legal-t { margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.legal ul { display: grid; list-style: none; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-copy { padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.legal a:hover { color: var(--white); }

/* ---------- Pages simples (légales, 404) ---------- */
.page-simple .hdr-in .btn { min-height: 44px; padding: 8px 16px; }
.doc { padding-block: 64px; }
.doc .wrap { display: flex; flex-direction: column; gap: 24px; }
.doc .wrap > * { max-width: 880px; }
.doc-wide .wrap > * { max-width: none; }
.doc .h3 { margin-top: 24px; }
.doc-title { font-size: clamp(1.75rem, 0.9rem + 4vw, 3.5rem); overflow-wrap: break-word; }
.doc .txt a, .doc .lead a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.dl { display: grid; gap: 12px; }
.dl dt { color: var(--silver); font-size: 1rem; }
.dl dd { font-size: 1rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pay-tbl { width: 100%; max-width: 560px; margin-block: 16px 24px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; font-size: 1rem; line-height: 1.5; }
.pay-tbl th, .pay-tbl td { padding: 12px 16px; text-align: left; }
.pay-tbl thead { background: color-mix(in srgb, var(--white) 6%, transparent); }
.pay-tbl th { color: var(--silver); font-size: 0.875rem; font-weight: 600; }
.pay-tbl td { color: var(--white); border-top: 1px solid var(--line); }
.pay-tbl td + td { font-weight: 600; }
.ftr-simple { padding-block: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   ≥ 768 px — tablette
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .hdr-in { min-height: 80px; }
  .hero-media { height: 400px; }
  .hero-body { padding: 24px var(--gutter) 64px; }
  .cta { flex-direction: row; flex-wrap: wrap; }
  .cta .btn { width: auto; }
  .sec { padding-block: 64px; }
  .head { margin-bottom: 48px; }
  .board { padding: 48px 32px; }
  .mi-row { flex-wrap: nowrap; }
  .mi-row .dots { display: block; flex: 1; min-width: 24px; border-bottom: 1px dotted var(--dash); transform: translateY(-4px); }
  .mi-row .price { width: auto; }
  .board-foot { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .board-foot .btn { width: auto; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .ticket { padding: 32px; }
  .paper { padding: 32px 48px; }
  .fg { gap: 16px 24px; }
  .fg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f.full { grid-column: 1 / -1; }
  .paper-foot { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side .opt:last-child { grid-column: 1 / -1; }
  .opt { padding: 32px; }
  .opt .btn { width: auto; align-self: flex-start; }
  .ftr { padding-block: 64px 32px; }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding-bottom: 64px; }
  .legal-nav { grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: center; column-gap: 48px; }
  .legal-col:first-child { grid-column: auto; }
  .doc { padding-block: 96px; }
}

/* =========================================================
   ≥ 1024 px — ordinateur : logo à gauche, texte à droite
   ========================================================= */
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
  .hdr-in > .burger { order: 6; }
  .legal-nav { column-gap: 96px; }
  .hdr-cta { display: none; }
  .nav { display: flex; flex-direction: row; align-items: center; gap: 32px; }
  .nav .lnk { min-height: 44px; font-size: 1rem; }
  .drawer { left: auto; right: var(--gutter); width: 400px; padding: 24px; }
  .dlnk { padding: 16px 0; }
  .dlnk b { font-size: 1.0625rem; }
  .hero { height: 44vw; max-height: 680px; overflow: hidden; }
  .hero-media { position: absolute; top: 0; left: 0; height: 100%; }
  .hero-media::after { content: none; }
  .hero-body { position: relative; height: 100%; margin-left: min(47vw, 812px); padding: 32px var(--gutter) 32px 0; display: flex; align-items: center; }
  .hero-txt { max-width: 600px; }
  .hero .h1 { font-size: clamp(2.5rem, 0.6rem + 3vw, 4.25rem); }
  .hero .lead { font-size: 1rem; }
  .hero .for { display: none; }
  /* Le haut de page a déjà son propre espace sous le texte */
  .hero + .sec { padding-top: 48px; }
  .head { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 64px; align-items: end; }
  .head .h2 { grid-column: span 2; }
  .hours { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; align-items: start; }
  .hours-tbl { grid-column: span 2; }
  .night { padding: 32px; }
  .board { padding: 64px; }
  .board-top { margin-bottom: 48px; }
  .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
    .ct { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .paper { grid-column: span 2; }
  .side { display: flex; flex-direction: column; }
  .ftr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   ≥ 1280 px — grand écran
   ========================================================= */
@media (min-width: 1280px) {
  :root { --gutter: 48px; }
  .hero { height: 42vw; }
  .hero-body { margin-left: min(45vw, 812px); padding-right: 48px; }
  .hero-txt { gap: 32px; }
  .hero .lead { font-size: 1.125rem; }
  .sec { padding-block: 80px; }
}

/* ≥ 1440 px : place pour la ligne de cible sous les boutons */
@media (min-width: 1440px) {
  .hero .for { display: block; }
}

/* =========================================================
   Animations — actives seulement avec JS et sans
   « réduire les animations » (classe .anim posée dans le head)
   ========================================================= */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }

/* ---------- Écran d'ouverture ---------- */
.intro { display: none; }
.anim:not(.intro-seen) .intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--black); color: var(--white);
  clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease);
  /* Filet de sécurité : l'écran s'efface même si le script échoue. */
  animation: intro-safety 0s 5s forwards;
}
.anim.intro-done .intro { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-in { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; text-align: center; }
.intro-mark { width: 96px; height: auto; animation: intro-pop .8s var(--ease) both; }
.intro-shine { animation: intro-shine 1.1s .45s var(--ease) both; }
.intro-word { display: flex; gap: .35em; overflow: hidden; font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.1; letter-spacing: .04em; }
.intro-word span { display: inline-block; animation: intro-rise .8s var(--ease) both; animation-delay: .25s; }
.intro-word span + span { animation-delay: .38s; }
.intro-slo { font-stretch: 112%; font-size: 1rem; color: var(--silver); animation: intro-fade .6s .75s ease both; }
@keyframes intro-pop { from { opacity: 0; transform: scale(.5) rotate(-12deg); } }
@keyframes intro-rise { from { transform: translateY(110%); } }
@keyframes intro-fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes intro-shine { from { transform: rotate(20deg) translateX(0); } to { transform: rotate(20deg) translateX(1100px); } }
@keyframes intro-safety { to { clip-path: inset(0 0 100% 0); pointer-events: none; } }
.anim:not(.intro-done) body { overflow: hidden; }

/* ---------- Barre de progression de lecture ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 250; background: linear-gradient(90deg, var(--progress-from), var(--white)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- Entrée du haut de page ---------- */
.anim .hdr { transform: translateY(-100%); transition: transform .7s var(--ease) .1s; }
.anim .hero-media img { opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 1.6s var(--ease); }
.anim .hero-txt > * { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s var(--ease); }
.anim .hero-txt > :nth-child(1) { transition-delay: .15s; }
.anim .hero-txt > :nth-child(3) { transition-delay: .55s; }
.anim .hero-txt > :nth-child(4) { transition-delay: .7s; }
.anim .hero-txt > :nth-child(5) { transition-delay: .85s; }
.anim .hero-txt > .h1 { opacity: 1; transform: none; }
.anim.intro-done .hdr,
.anim.intro-done .hero-media img,
.anim.intro-done .hero-txt > * { opacity: 1; transform: none; }


/* ---------- Titres mot par mot ---------- */
.anim [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.anim [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--d, 0s)); }
.anim [data-split].is-in .w > span { transform: none; }
.anim .hero-txt .h1 { --d: .3s; }

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

/* ---------- Petites interactions ---------- */
.btn { transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.ticket { transition: transform .3s var(--ease); }
.ticket:hover { transform: translateY(-4px); }
.mi-row h4 { transition: color .2s ease; }
.mi:hover .mi-row h4 { color: var(--pure); }
.mi .dots { transition: border-color .3s ease; }
.mi:hover .dots { border-color: var(--silver); }
.anim .site i { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(91,191,138,.5); } 60% { box-shadow: 0 0 0 6px rgba(91,191,138,0); } }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .ticket:hover { transform: none; }
}
/* Filet de sécurité : si le script ne démarre pas, le haut de page s'affiche quand même. */
.anim:not(.intro-done) .hdr,
.anim:not(.intro-done) .hero-media img,
.anim:not(.intro-done) .hero-txt > * { animation: show-safety 0s 5s forwards; }
@keyframes show-safety { to { opacity: 1; transform: none; } }
.ftr-col .btn-wa .ico { margin-right: 0; }
.ftr-col .btn-wa:hover { text-decoration: none; }

/* =========================================================
   Vitrines : carrousel ordinateur + mobile
   ========================================================= */
.car { position: relative; }
.car:focus { outline: none; }
.car-view { overflow: hidden; touch-action: pan-y; cursor: grab; transition: height .4s var(--ease, ease); }
.car-view.is-drag { cursor: grabbing; }
.car-track { display: flex; align-items: flex-start; transition: transform .6s var(--ease, ease); will-change: transform; }
.car-view.is-drag .car-track { transition: none; }
.slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; gap: 24px; user-select: none; -webkit-user-select: none; }
.slide img { -webkit-user-drag: none; }

/* Scène : écran d'ordinateur + téléphone */
.stage { position: relative; container-type: inline-size; aspect-ratio: 16 / 9.4; border: 1px solid var(--line); border-radius: 12px; background: var(--stage-bg); overflow: hidden; }
.dev-desk { position: absolute; left: 14%; top: 7%; width: 72%; border-radius: 1.2cqw; overflow: hidden; background: var(--desk-bg); border: 1px solid var(--desk-dot); box-shadow: 0 2.4cqw 5cqw rgba(0,0,0,.6); }
.dev-desk .bar { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: .6cqw; height: 3cqw; padding: 0 1.2cqw; background: var(--desk-bar); border-bottom: 1px solid var(--desk-line); }
.dev-desk .bar i { width: .8cqw; height: .8cqw; border-radius: 50%; background: var(--desk-dot); }
.dev-desk .bar span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 30%; text-align: center; padding: .25cqw 1.4cqw; border-radius: 999px; background: var(--desk-pill); color: var(--silver); font-size: 1.15cqw; line-height: 1.4; white-space: nowrap; }
.scr { position: relative; overflow: hidden; }
.dev-desk .scr { aspect-ratio: 16 / 9; }
.scr > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dev-desk { z-index: 1; }
/* Téléphone : vrai cadre d’iPhone posé par-dessus l’écran, toujours devant l’ordinateur */
.dev-mob { position: absolute; z-index: 2; right: 5%; bottom: 6%; width: 19%; aspect-ratio: 759 / 1568; filter: drop-shadow(0 2.4cqw 3cqw rgba(0,0,0,.7)); }
.dev-mob .frame { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.dev-mob .scr { position: absolute; left: 4.6%; right: 4.5%; top: 1.8%; bottom: 1.85%; border-radius: 11% / 5%; background: #000; }
.dev-mob .scr > img, .dev-mob .dest { object-fit: fill; }
/* Barre d’état (heure, réseau, batterie) : le site commence sous l’encoche, comme dans la vidéo.
   Under Gear, L’Éthique et les logiciels ont une barre à leurs couleurs ; L’Éthique reste en plein écran. */
.sbar { position: absolute; left: 0; right: 0; top: 0; z-index: 4; height: calc(6.4% + 2px); padding-bottom: 2px; display: flex; align-items: center; justify-content: space-between; padding-inline: 11% 8%; background: var(--sb-bg); color: var(--sb-fg); font-size: .75cqw; font-weight: 600; letter-spacing: .01em; }
.sb-ic { display: flex; align-items: center; gap: .25cqw; }
.sb-ic svg { height: .55cqw; width: auto; fill: currentColor; }
.sb-ic svg:last-child { height: .6cqw; }
.sb-dest { opacity: 0; }
.has-sbar > img, .has-sbar .dest { position: absolute; left: 0; top: 6.4%; height: 93.6%; }
@media (max-width: 767px) {
  .sbar { font-size: 1.9cqw; }
  .sb-ic { gap: .6cqw; }
  .sb-ic svg { height: 1.4cqw; }
  .sb-ic svg:last-child { height: 1.55cqw; }
}

@media (max-width: 767px) {
  .stage { aspect-ratio: 1 / 1.14; }
  .dev-desk { left: 4%; top: 6%; width: 74%; }
  .dev-mob { width: 48%; right: 5%; bottom: 4%; }
}
/* Curseur et clic */
.cur { position: absolute; left: var(--x); top: var(--y); z-index: 5; width: 2.6cqw; opacity: 0; pointer-events: none; }
.cur svg { width: 100%; height: auto; fill: #fff; stroke: #050505; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 .3cqw .6cqw rgba(0,0,0,.5)); }
.ring { position: absolute; left: var(--x); top: var(--y); z-index: 4; width: 4cqw; height: 4cqw; margin: -2cqw 0 0 -2cqw; border-radius: 50%; border: .25cqw solid #fff; opacity: 0; pointer-events: none; }
.ring-m { width: 3cqw; height: 3cqw; margin: -1.5cqw 0 0 -1.5cqw; }

/* Écran de destination (vraie maquette : collection ou réservation) */
.dest { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; pointer-events: none; }

/* Infos sous la scène */
.slide-info { display: grid; gap: 16px; }
.si-name { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.si-txt { display: flex; flex-direction: column; gap: 8px; }

/* Navigation posée sur la scène : flèches sur les côtés, points centrés sous l’écran d’ordinateur */
.car-ctrl { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 16 / 9.4; container-type: inline-size; pointer-events: none; z-index: 6; }
.car-ctrl > * { pointer-events: auto; }
.car-btn { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--car-btn); color: var(--white); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.car-prev { left: max(8px, 1.5cqw); }
.car-next { right: max(8px, 1.5cqw); }
.car-btn:hover { border-color: var(--silver); background: var(--car-btn-h); }
.car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.car-dots { position: absolute; left: 50%; top: calc(53.2cqw - 22px); transform: translateX(-50%); display: flex; gap: 4px; }
.car-dots button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; padding: 0; }
.car-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--silver); transition: background-color .2s ease, width .3s var(--ease, ease); }
.car-dots button[aria-current="true"]::before { width: 28px; border-radius: 999px; background: var(--white); border-color: var(--white); }

@media (max-width: 767px) {
  /* Sur téléphone, la navigation passe sous la scène : flèche, points, flèche */
  .slide .stage { margin-bottom: 48px; }
  .car-ctrl { box-sizing: content-box; aspect-ratio: 1 / 1.14; padding-bottom: 56px; }
  .car-btn { top: auto; bottom: 0; margin-top: 0; }
  .car-prev { left: 0; }
  .car-next { right: 0; }
  .car-dots { top: auto; bottom: 2px; }
}
@media (min-width: 1024px) {
  .slide-info { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; align-items: start; }
  .si-txt { grid-column: span 2; }
}

/* ---------- Animation de la scène (jouée sur la diapositive visible) ---------- */
.anim .slide.is-active .cur { animation: cur 9s infinite; }
.anim .slide.is-active .dev-desk .ring { animation: ring-d 9s infinite; }
.anim .slide.is-active .ring-m { animation: ring-m 9s infinite; }
.anim .slide.is-active .dest-d { animation: dest-d 9s infinite; }
.anim .slide.is-active .dest-m, .anim .slide.is-active .sb-dest { animation: dest-m 9s infinite; }

@keyframes cur {
  0% { opacity: 0; transform: translate(14cqw, 10cqw); }
  4% { opacity: 1; }
  16% { transform: translate(0, 0); }
  18% { transform: translate(0, 0) scale(.82); }
  20% { opacity: 1; transform: translate(0, 0) scale(1); }
  28%, 100% { opacity: 0; transform: translate(1cqw, 1cqw); }
}
@keyframes ring-d { 0%, 17% { opacity: 0; transform: scale(.3); } 18% { opacity: .9; } 26%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes ring-m { 0%, 17% { opacity: 0; transform: scale(.3); } 18% { opacity: .9; } 26%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes dest-d { 0%, 21% { opacity: 0; transform: translateY(6%); } 27%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
@keyframes dest-m { 0%, 21% { opacity: 0; transform: translateY(6%); } 27%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: none; } }
/* Téléphones avec barre d'état : simple fondu, sans glissement (évite de voir l'écran du dessous entre la barre et la page) */
@keyframes dest-m-fade { 0%, 21% { opacity: 0; } 27%, 88% { opacity: 1; } 95%, 100% { opacity: 0; } }
.anim .slide.is-active .has-sbar .dest-m, .anim .slide.is-active .has-sbar .sb-dest { animation-name: dest-m-fade; }

/* =========================================================
   Pop-up de réservation d’appel (agenda Google)
   ========================================================= */
.bk { width: min(760px, calc(100% - 32px)); height: min(860px, calc(100% - 32px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--anth); color: var(--white); overflow: hidden; }
.bk[open] { display: flex; flex-direction: column; }
.bk::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.bk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 16px; border-bottom: 1px solid var(--line); }
.bk-title { font-stretch: 112%; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 600; line-height: 1.2; }
.bk-intro { margin-top: 8px; font-size: 0.9375rem; color: var(--silver); max-width: 60ch; }
.bk-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--white); cursor: pointer; transition: border-color .2s ease; }
.bk-close:hover { border-color: var(--silver); }
.bk-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bk-frame { flex: 1; min-height: 0; background: #FFFFFF; }
.bk-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.bk-alt { padding: 12px 24px; font-size: 0.9375rem; color: var(--silver); border-top: 1px solid var(--line); }
.bk-alt a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.anim .bk[open] { animation: bk-in .25s var(--ease) both; }
@keyframes bk-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 767px) {
  .bk { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .bk-head { padding: 16px; }
  .bk-alt { padding: 12px 16px; }
}

/* ---------- Mobile : page plus courte (< 768px) ---------- */
.d-s { display: none; }
.opt-m { display: none; }
@media (max-width: 767px) {
  /* Haut de page : logo plus bas */
  .hero-media { height: 180px; }
  /* Mode sombre : logo chromé entier, centré (image dédiée au mobile) */
  .hero-media picture { display: block; height: 100%; }
  .hero-media .hero-d { margin-inline: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
  :root[data-theme="light"] .hero-media picture { display: none; }
  .hero .slogan { text-align: center; }
  /* Mode clair : le monogramme occupe la moitié gauche de l'image (centre à 27 % de sa largeur) */
  .hero-media .hero-l { margin-left: calc(50% - 180px * 1.7778 * .27); -webkit-mask-image: linear-gradient(to right, transparent, #000 16%); mask-image: linear-gradient(to right, transparent, #000 16%); }

  /* Horaires : 2 lignes au lieu de 7 */
  .tbl .wd { display: none; }
  .tbl .d-l { display: none; }
  .tbl .d-s { display: inline; white-space: nowrap; }
  .hours { gap: 32px; }
  .night { gap: 16px; }
  .clock { font-size: 2.25rem; }
  .checks { gap: 12px; }

  /* Carte des services : liste dépliable */
  .menu { gap: 32px; }
  .grp { gap: 0; }
  .grp .h3 { margin-bottom: 8px; }
  .mi { gap: 0; border-bottom: 1px solid var(--line); }
  .grp .mi:last-child { border-bottom: 0; }
  .mi-row h4 { width: 100%; }
  .mi-tg { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; padding: 8px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  .mi-tg i { position: relative; flex: none; width: 14px; height: 14px; }
  .mi-tg i::before, .mi-tg i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--silver); transition: transform .2s ease; }
  .mi-tg i::after { transform: rotate(90deg); }
  .mi.is-open .mi-tg i::after { transform: rotate(0deg); }
  .mi .mi-tg ~ p, .mi:has(.mi-tg) p { display: none; padding-bottom: 16px; }
  .mi.is-open:has(.mi-tg) p { display: block; }
  .board-foot { margin-top: 32px; }

  /* Méthode : numéro et titre sur la même ligne */
  .ticket { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 8px 16px; padding: 24px; }
  .ticket .no { font-size: 1.5rem; padding-bottom: 0; border-bottom: 0; }
  .ticket .txt { grid-column: 1 / -1; padding-top: 12px; border-top: 1px dashed var(--dash-2); }

  /* Contact : une seule carte WhatsApp + appel, réseaux dans le bas de page */
  .opt-d { display: none; }
  .opt-m { display: flex; }
  .opt-m .btn { width: 100%; }

  /* Bas de page compact */
  .giant { display: none; }
  .ftr-col .li-wa { display: none; }
  .ftr-col li { min-height: 32px; }
  .ftr-soc ul { flex-direction: row; gap: 12px; }
  .ftr-soc a { justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; }
  .ftr-soc .ico { margin-right: 0; }
  .ftr-soc .lbl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Curseur de la maquette PC : pointe au bon endroit sur mobile et tablette */
@media (max-width: 1023px) {
  .cur { line-height: 0; }
  .cur svg { display: block; }
}

/* Liens dans la phrase d'intro du contact (WhatsApp, appel) */
.ct-lnk { display: inline; padding: 0; background: none; border: 0; font: inherit; color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.ct-lnk:hover { text-decoration-thickness: 2px; }
.nw { white-space: nowrap; }

/* =========================================================
   Mode clair : le noir devient blanc, le blanc devient noir
   ========================================================= */
:root[data-theme="light"] {
  color-scheme: light;
  --black: #F4F4F4;
  --white: #0A0A0A;
  --silver: #4D4D4D;
  --anth: #E4E4E4;
  --line: #D6D6D6;
  --line-2: #BDBDBD;
  --dash: #8F8F8F;
  --ok: #1F8A55;
  --err: #B3261E;
  --pure: #000000;
  --hdr-bg: rgba(244, 244, 244, 0.92);
  --closed: #6B6B6B;
  --muted: #5E5E5E;
  --dash-2: #B5B5B5;
  --in-bg: #141414;
  --in-err: #F07470;
  --stage-bg: radial-gradient(120% 90% at 30% 20%, #FFFFFF, #E2E2E2 70%);
  --tone-bg: radial-gradient(100% 70% at 12% 0%, #FFFFFF, #E8E8E8 72%);
  --drawer-shadow: 0 16px 40px rgba(0, 0, 0, .14);
  --desk-bg: #F2F2F2;
  --desk-bar: #E6E6E6;
  --desk-line: #D4D4D4;
  --desk-dot: #C4C4C4;
  --desk-pill: #FFFFFF;
  --car-btn: rgba(244, 244, 244, .85);
  --car-btn-h: rgba(228, 228, 228, .95);
  --progress-from: #8A8A8A;
  --ink-2: #C9C9C9;
  --ticket: #0A0A0A;
}
/* Tickets « Méthode » en noir, comme le ticket du devis */
:root[data-theme="light"] .ticket { color: #F4F4F4; }
:root[data-theme="light"] .ticket .no { color: #BDBDBD; }
:root[data-theme="light"] .ticket .txt { color: #C9C9C9; }
:root[data-theme="light"] .ticket .no,
:root[data-theme="light"] .ticket .txt { border-color: #6E6E6E; }
:root { color-scheme: dark; }
/* Le logo chromé et la photo du haut passent en version claire */
:root[data-theme="light"] .hero-media .hero-d { display: none; }
:root[data-theme="light"] .hero-media .hero-l { display: block; }
.hero-media .hero-l { display: none; }
:root[data-theme="light"] .intro-mark { filter: invert(1); }

:root[data-theme="light"] .dev-desk { box-shadow: 0 2.4cqw 5cqw rgba(0, 0, 0, .18); }
:root[data-theme="light"] .dev-mob { filter: drop-shadow(0 2.4cqw 3cqw rgba(0, 0, 0, .3)); }
:root[data-theme="light"] .bk::backdrop { background: rgba(0, 0, 0, .45); }

/* Bouton rond mode sombre / mode clair */
.theme-tg { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; transition: border-color .2s ease; }
.theme-tg:hover { border-color: var(--silver); }
.theme-tg svg { width: 22px; height: 22px; transition: transform .6s var(--ease); }
.theme-tg circle { fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-tg path { fill: currentColor; }
:root[data-theme="light"] .theme-tg svg { transform: rotate(180deg); }
.page-simple .theme-tg { margin-left: 0; }
@media (min-width: 1024px) {
  .hdr-in > .theme-tg { order: 5; }
  .hdr-in > .nav { margin-left: auto; }
}

/* Transition de couleur : cercle qui s'agrandit depuis le bouton */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-fade, .theme-fade body { transition: background-color .3s ease, color .3s ease; }
@media (prefers-reduced-motion: reduce) {
  .theme-tg svg { transition: none; }
}

/* Très petits écrans : le bouton devis devient « Devis » pour laisser la place au bouton de thème */
.cta-s { display: none; }
@media (max-width: 359px) {
  .hdr-cta .cta-l { display: none; }
  .hdr-cta .cta-s { display: inline; }
}

/* Champ piège anti-spam : invisible pour les visiteurs */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fond « studio » (le même que derrière les maquettes) : carte 23 h et cartes de contact */
.night, .opt, .doc-cta { background: var(--stage-bg); }

/* PC : le ticket de devis descend jusqu'en bas de la colonne de droite et respire davantage */
@media (min-width: 1024px) {
  .ct { align-items: stretch; }
  .paper { padding: 48px; gap: 24px; }
  .paper .fg { flex: 1; gap: 24px; grid-template-rows: auto auto 1fr; }
  .paper .f.full { display: flex; flex-direction: column; }
  .paper .f.full textarea { flex: 1; min-height: 140px; }
  .side { justify-content: space-between; }
}

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 16px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.qa summary:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 4px; }
.qa-ico { position: relative; flex: none; width: 16px; height: 16px; }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--white); transition: transform .2s var(--ease, ease); }
.qa-ico::after { transform: rotate(90deg); }
.qa[open] .qa-ico::after { transform: rotate(0deg); }
.qa .txt { padding: 0 0 24px; }
@media (min-width: 768px) { .qa summary h3 { font-size: 1.125rem; } }
@media (prefers-reduced-motion: reduce) { .qa-ico::before, .qa-ico::after { transition: none; } }

/* Pages de contenu (satellites) */
.crumbs { font-size: 0.875rem; color: var(--silver); }
.crumbs a { color: var(--silver); text-decoration: underline; text-underline-offset: 4px; }
.crumbs a:hover { color: var(--white); }
.doc .list { display: grid; gap: 12px; padding-left: 24px; }
.doc ul.list { list-style: disc; }
.doc ol.list { list-style: decimal; }
.doc .list li::marker { color: var(--dash); }
.doc .list strong, .doc .txt strong, .doc .lead strong { color: var(--white); font-weight: 600; }
.doc-cta { display: grid; gap: 16px; margin-top: 24px; padding: 32px 24px; border: 1px solid var(--line); border-radius: 12px; }
.doc-cta .h3 { margin-top: 0; }
@media (min-width: 768px) { .doc-cta { padding: 48px; } }
@media (min-width: 1024px) {
  .page-simple .hdr-cta { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer.is-open { transform: none; transition: opacity .15s linear, visibility 0s linear .15s !important; }
  .drawer.is-open { transition: opacity .15s linear, visibility 0s; }
  .burger svg path { transition: none; }
}

/* Réalisations : captures d'écran */
.shots { display: grid; gap: 16px; }
.shots img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--stage-bg); }
@media (min-width: 768px) { .shots { grid-template-columns: 1fr 1fr; } }
.dlnk[aria-current="page"] b { text-decoration: underline; text-underline-offset: 4px; }

/* Accueil : sections teintées en alternance pour marquer le passage d'une partie à l'autre */
.sec-tone { background: var(--tone-bg); border-top: 1px solid var(--line); }
/* FAQ : chaque question dans une carte légèrement teintée */
.faq { gap: 8px; border-top: 0; }
.qa { padding: 0 24px; background: var(--stage-bg); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s ease; }
.qa:hover, .qa[open] { border-color: var(--line-2); }
.qa summary { margin-inline: -24px; padding-inline: 24px; border-radius: 12px; -webkit-user-select: none; user-select: none; }
.qa summary:focus-visible { outline-offset: -2px; border-radius: 12px; }
.qa .txt { overflow: hidden; }

/* Offres de suivi */
.plans { display: grid; gap: 32px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px 24px 24px; background: var(--stage-bg); border: 1px solid var(--line); border-radius: 12px; }
.plan-hl { border-color: var(--white); box-shadow: var(--drawer-shadow); }
.plan-badge { position: absolute; top: 0; left: 24px; transform: translateY(-50%); padding: 4px 12px; border-radius: 999px; background: var(--white); color: var(--black); font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.plan-top { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan-name { font-stretch: 112%; font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font-stretch: 125%; font-weight: 700; font-size: clamp(2rem, 1.7rem + 1.2vw, 2.5rem); line-height: 1; letter-spacing: -0.02em; }
.plan-price span { color: var(--silver); font-size: 1rem; }
.plan-then { color: var(--silver); font-size: 0.875rem; line-height: 1.5; }
.plan-then strong { color: var(--white); font-weight: 600; }
.plan-old { color: var(--muted); text-decoration-thickness: 1px; }
.plan-eng { display: inline-block; margin-right: 4px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; color: var(--white); }
.feats { display: grid; gap: 8px; flex: 1; align-content: start; font-size: 1rem; line-height: 1.5; }
.feat { display: flex; gap: 12px; align-items: flex-start; color: var(--white); }
.feat-ic { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--white); }
.feat-no { color: var(--muted); }
.feat-no .feat-ic { color: var(--muted); }
.plan .btn { width: 100%; }
.plan-cta { display: grid; gap: 4px; justify-items: center; }
.plan-wa { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; color: var(--silver); text-decoration: underline; text-underline-offset: 4px; }
.plan-wa:hover { color: var(--white); }
.plan-tva { margin-top: 24px; text-align: center; font-size: 0.875rem; color: var(--silver); }
.plan-cond { display: grid; gap: 16px; max-width: 75ch; margin: 48px auto 0; padding-top: 32px; border-top: 1px solid var(--line); color: var(--silver); font-size: 0.9375rem; line-height: 1.6; }
.plan-cond-t { color: var(--white); font-size: 1.125rem; font-weight: 600; }
.plan-cond ul { display: grid; gap: 8px; padding-left: 24px; list-style: disc; }
.plan-cond li::marker { color: var(--dash); }
.plan-cond a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
/* Mobile et tablette : carrousel qui défile tout seul (pause au toucher) */
@media (max-width: 1023px) {
  .plans { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 16px 16px 8px; margin-inline: -16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 min(86%, 400px); scroll-snap-align: start; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .plans { padding-inline: 24px; margin-inline: -24px; scroll-padding-inline: 24px; }
  .plan { flex-basis: min(60%, 400px); }
}
.plans-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.plans-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.plans-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); transition: width .2s ease, background-color .2s ease; }
.plans-dot[aria-current="true"]::before { width: 24px; background: var(--white); }
.plans-dot:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; border-radius: 999px; }
@media (min-width: 1024px) {
  .plans-dots { display: none; }
  /* Grille commune : chaque ligne d'avantage a la même hauteur dans les trois cartes */
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(12, auto) auto; column-gap: 24px; row-gap: 8px; }
  .plan { display: grid; grid-template-rows: subgrid; grid-row: span 14; row-gap: 8px; padding: 32px 24px 16px; }
  .plan-top { margin-bottom: 8px; }
  .feats { display: grid; grid-row: span 12; grid-template-rows: subgrid; gap: 8px; }
  .plan-cta { margin-top: 16px; align-self: end; }
}
@media (min-width: 1280px) { .plans { column-gap: 32px; } .plan { padding-inline: 32px; } }
@media (prefers-reduced-motion: reduce) { .plans { scroll-behavior: auto; } .plans-dot::before { transition: none; } }
/* Page Offres de suivi */

.suivi-page { padding-block: 16px 48px; }

/* FAQ en catégories */
.faq-tabs { position: relative; display: none; flex-wrap: wrap; width: fit-content; max-width: 100%; gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--line-2); border-radius: 24px; }
.js .faq-tabs { display: flex; }
.faq-tab { position: relative; z-index: 1; min-height: 44px; padding: 12px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--silver); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: color .2s ease .05s; }
.faq-tab:hover { color: var(--white); }
.faq-tab[aria-selected="true"] { color: var(--black); }
.faq-tab:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.tab-ind { position: absolute; z-index: 0; top: 0; left: 0; width: var(--w, 0); height: var(--h, 0); transform: translate(var(--x, 0), var(--y, 0)); border-radius: 999px; background: var(--white); }
.faq-tabs.is-ready .tab-ind { transition: transform .28s var(--ease, ease), width .28s var(--ease, ease), height .28s var(--ease, ease); }
.faq-more { max-width: 860px; margin-top: 32px; text-align: center; }
/* Le bouton « Voir toutes les questions » se place au milieu de l'espace libre sous les questions */
.js .faq-zone { display: flex; flex-direction: column; }
.js .faq-zone .faq-more { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; min-height: 144px; margin-top: 0; }
/* L'espace sous le bouton remplace le bas de la section : le bouton est centré entre les questions et la section suivante */
.js .sec:has(.faq-zone) { padding-bottom: 0; }
@media (min-width: 768px) { .js .faq-zone .faq-more { min-height: 176px; } }
@media (min-width: 1024px) { .js .faq-zone .faq-more { min-height: 208px; } }
.faq-page { padding-block: 16px 48px; }
/* Les 3 listes occupent la même case : la hauteur ne change pas d'une catégorie à l'autre */
.js .faq-stack { display: grid; max-width: 860px; }
.js .faq-stack > .faq { grid-area: 1 / 1; align-self: start; }
.js .faq-stack > .faq.is-off { visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .faq-tabs.is-ready .tab-ind, .faq-tab { transition: none; } }
@media (max-width: 374px) { .faq-tab { padding: 12px 16px; } }
.faq + .faq { margin-top: 8px; }
.js .faq + .faq { margin-top: 0; }
.faq[hidden] { display: none; }

/* Étape 3 : lien vers les offres de suivi (le ticket reste sombre dans les deux thèmes) */
.ticket-btn { margin-top: auto; align-self: flex-start; border-color: rgba(244, 244, 244, .4); color: inherit; }
.ticket-btn:hover { border-color: rgba(244, 244, 244, .8); }
.ticket-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 767px) { .ticket-btn { grid-column: 1 / -1; width: 100%; margin-top: 8px; } }
/* Page « Création de site internet » : deux grandes parties */
.doc .h2s { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); font-stretch: 112%; font-weight: 700; font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.15; }
.doc [id] { scroll-margin-top: 96px; }

/* Bascule site vitrine / boutique en ligne */
.pane-tabs { position: relative; display: none; width: fit-content; max-width: 100%; padding: 4px; gap: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.js .pane-tabs { display: flex; }
.pane-tab { min-height: 44px; padding: 12px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--silver); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.pane-tab:hover { color: var(--white); }
.pane-tab { position: relative; z-index: 1; }
.pane-tab[aria-selected="true"] { color: var(--black); }
.no-js .pane-tab[aria-selected="true"] { background: var(--white); }
.pane-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: var(--white); }
.pane-tabs.is-ready .pane-ind { transition: transform .28s var(--ease, ease), width .28s var(--ease, ease); }
.pane-tab { transition: color .2s ease .05s; }
@keyframes pane-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pane-enter { animation: pane-in .28s var(--ease, ease) both; }
@media (prefers-reduced-motion: reduce) {
  .pane-tabs.is-ready .pane-ind, .pane-tab { transition: none; }
  .pane-enter { animation: none; }
}
.pane-tab:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.pane { display: flex; flex-direction: column; gap: 24px; }
.pane[hidden] { display: none; }
.js .pane > .h2s:first-child { margin-top: 8px; padding-top: 0; border-top: 0; }
@media (max-width: 374px) { .pane-tab { padding: 12px 16px; font-size: 0.9375rem; } }

/* Offres de suivi : en-tête compact pour voir les 3 offres d'un coup sur ordinateur */
@media (min-width: 1024px) {
  .doc-compact { padding-top: 48px; }
  .doc-compact > .wrap:first-child { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; row-gap: 8px; align-items: end; }
  .doc-compact > .wrap:first-child .crumbs { grid-column: 1 / -1; }
  .doc-compact > .wrap:first-child .lead { font-size: 1rem; max-width: 52ch; justify-self: end; text-align: right; }
  .doc-compact .suivi-page { padding-top: 32px; }
  .doc-compact .plan-price b { font-size: 2.25rem; }
  .doc-compact .plan-cta { margin-top: 8px; }
}
@media (min-width: 1024px) {
  .doc-compact .plan { padding-top: 24px; row-gap: 8px; }
  .doc-compact .feats { row-gap: 8px; line-height: 1.4; }
  .doc-compact .plans { row-gap: 8px; }
  .doc-compact .suivi-page { padding-top: 24px; }
}
.pay-note { white-space: nowrap; }
.pay-s { display: none; }
@media (max-width: 374px) { .pay-l { display: none; } .pay-s { display: inline; } }

/* FAQ mobile : les 3 catégories sur une seule ligne */
@media (max-width: 767px) {
  .faq-tabs { flex-wrap: nowrap; border-radius: 999px; }
  .faq-tab { padding: 12px 16px; white-space: nowrap; }
  .ft-long { display: none; }
}
@media (max-width: 374px) {
  .faq-tab { padding: 12px 12px; font-size: 0.9375rem; }
  .ft-long2 { display: none; }
}

/* Pas de zoom sur mobile (pincement et double appui) */
html { touch-action: pan-x pan-y; }

/* Offres de suivi sur mobile et tablette : cartes courtes, visibles en entier d'un coup d'œil */
@media (max-width: 1023px) {
  .doc-compact { padding-top: 24px; }
  .doc-compact > .wrap:first-child { gap: 8px; }
  .doc-compact > .wrap:first-child .crumbs, .doc-compact > .wrap:first-child .lead { display: none; }
  .doc-compact .suivi-page { padding-top: 0; }
  .doc #plans { scroll-margin-top: 64px; }
  .plan { gap: 12px; padding: 24px 24px 12px; }
  .plan-top { gap: 4px; padding-bottom: 12px; }
  .plan-price b { font-size: 2rem; }
  .feats { gap: 4px; font-size: 0.9375rem; line-height: 1.45; }
  .feat { gap: 8px; }
  .feat-ic { width: 18px; height: 18px; }
  .feat-no { display: none; }
  .plan-cta { gap: 0; }
}
/* Sur ordinateur, l'ancre #plans descend juste assez pour voir les cartes en entier, en gardant le titre si possible */
@media (min-width: 1024px) { .doc #plans { scroll-margin-top: max(96px, calc(100vh - 712px)); } }
.plan-wa-ic { display: none; }
@media (max-width: 1023px) {
  .plan-price b { font-size: 1.875rem; }
  .plan-cta .btn { padding-inline: 16px; }
  .cta-word { display: none; }
  .plan-cta { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; align-items: center; }
  .plan-wa { justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--white); text-decoration: none; }
  .plan-wa:hover { border-color: var(--silver); }
  .plan-wa-ic { display: block; width: 22px; height: 22px; fill: currentColor; }
  .plan-wa-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Pied de page : même espace entre les 3 colonnes, et texte aligné sous les titres */
.ftr-col > .txt { padding-top: 8px; max-width: 36ch; }
@media (min-width: 1024px) {
  .ftr-grid { grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: center; column-gap: 96px; }
}

/* FAQ de l'accueil : tout est centré */
#faq.sec .head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
#faq.sec .head .h2 { grid-column: auto; }
#faq.sec .head .txt { max-width: 64ch; text-wrap: balance; }
#faq.sec .faq-tabs { margin-inline: auto; }
#faq.sec .faq-zone, #faq.sec .faq-stack, #faq.sec .faq-more { max-width: 860px; margin-inline: auto; width: 100%; }

/* Premium : titre et bouton chromés (rappel du logo) */
.plan-chrome { width: fit-content; background: linear-gradient(100deg, #8E8E8E 0%, #FFFFFF 22%, #B9B9B9 42%, #F2F2F2 58%, #7C7C7C 78%, #E6E6E6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .plan-chrome { background-image: linear-gradient(100deg, #3A3A3A 0%, #8C8C8C 22%, #2A2A2A 42%, #9A9A9A 58%, #1E1E1E 78%, #6E6E6E 100%); }
.btn-chrome { border: 1px solid transparent; background: var(--stage-bg) padding-box, linear-gradient(100deg, #7C7C7C, #FFFFFF 30%, #9A9A9A 55%, #F2F2F2 75%, #6E6E6E) border-box; color: var(--white); }
.btn-chrome:hover { background: linear-gradient(100deg, rgba(255,255,255,.06), rgba(255,255,255,.14) 40%, rgba(255,255,255,.04)) padding-box, var(--stage-bg) padding-box, linear-gradient(100deg, #8E8E8E, #FFFFFF 30%, #B0B0B0 55%, #FFFFFF 75%, #7C7C7C) border-box; }
:root[data-theme="light"] .btn-chrome { background: var(--stage-bg) padding-box, linear-gradient(100deg, #2A2A2A, #9A9A9A 30%, #3A3A3A 55%, #8C8C8C 75%, #1E1E1E) border-box; }
:root[data-theme="light"] .btn-chrome:hover { background: linear-gradient(100deg, rgba(0,0,0,.03), rgba(0,0,0,.08) 40%, rgba(0,0,0,.02)) padding-box, var(--stage-bg) padding-box, linear-gradient(100deg, #1E1E1E, #8C8C8C 30%, #2A2A2A 55%, #9A9A9A 75%, #111111) border-box; }
#h-hero { text-wrap: balance; }
.nowrap { white-space: nowrap; }

/* =========================================================
   Page « Logiciels sur mesure »
   ========================================================= */
.lsm .wrap > .casc, .lsm .wrap > .seq, .lsm .wrap > .lsm-shots, .lsm .wrap > .lsm-feats, .lsm .wrap > .lsm-phones { max-width: none; }
.lsm .cta { margin-top: 8px; }

/* Cascade 3D des écrans du back-office (recréée d’après la vidéo) */
.casc { display: grid; gap: 16px; margin: 24px 0 0; }
.casc-view { position: relative; container-type: inline-size; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--stage-bg); }
.casc-mask { perspective: 1800px; perspective-origin: 50% 20%; }
.casc-mask { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 72%, transparent 100%); }
.casc-plane { position: absolute; left: 50%; top: -8%; width: 140%; transform: translateX(-38%) rotateX(32deg) rotateZ(-6deg); transform-origin: 50% 0; }
.casc-track { display: flex; flex-direction: column; }
.casc-set { display: flex; flex-direction: column; gap: 2.4cqw; padding-bottom: 2.4cqw; }
.casc-set img { display: block; width: 100%; height: auto; border-radius: 1.2cqw; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, .55); }
.anim .casc-track { animation: casc-up 60s linear infinite; }
@keyframes casc-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.casc-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 0.9375rem; color: var(--silver); }
.casc-txt { max-width: 70ch; }
@media (min-width: 768px) {
  .casc-view { aspect-ratio: 16 / 9; }
  .casc-plane { width: 60%; top: -14%; transform: translateX(-62%) rotateX(42deg) rotateZ(-10deg); }
  .casc-mask { perspective: 2400px; }
  .casc-cap { flex-direction: row; align-items: center; gap: 16px; }
}
:root[data-theme="light"] .casc-set img { border-color: rgba(0, 0, 0, .1); box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, .16); }

/* Réservation : téléphone animé + étapes */
.seq { display: grid; gap: 32px; align-items: center; margin-top: 8px; }
.seq-phone { position: relative; container-type: inline-size; width: min(280px, 76vw); aspect-ratio: 759 / 1568; margin-inline: auto; }
.seq-phone .frame { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
.seq-scr { position: absolute; left: 4.6%; right: 4.5%; top: 1.8%; bottom: 1.85%; overflow: hidden; border-radius: 11% / 5%; background: #FFF; }
.seq-scr > img { position: absolute; left: 0; top: 6.4%; width: 100%; height: 93.6%; object-fit: fill; opacity: 0; transition: opacity .3s ease; }
.seq-scr > img.is-on { opacity: 1; }
.seq-phone .sbar { font-size: 4.2cqw; }
.seq-phone .sb-ic { gap: 1.4cqw; }
.seq-phone .sb-ic svg { height: 3.1cqw; }
.seq-phone .sb-ic svg:last-child { height: 3.4cqw; }
.seq-side { display: grid; gap: 24px; }
.seq-steps { display: grid; gap: 8px; list-style: none; }
.seq-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; align-items: start; width: 100%; min-height: 48px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--white); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.seq-step:hover { border-color: var(--line-2); }
.seq-step[aria-current="step"] { border-color: var(--silver); background: var(--stage-bg); }
.seq-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 600; font-size: 0.9375rem; transition: background-color .2s ease, color .2s ease; }
.seq-step[aria-current="step"] .seq-n { background: var(--white); color: var(--black); border-color: var(--white); }
.seq-t { display: grid; gap: 4px; }
.seq-t b { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.seq-t span { font-size: 0.9375rem; color: var(--silver); line-height: 1.5; }
.seq-note { margin: 0; }
@media (min-width: 1024px) {
  .seq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .seq-phone { width: min(300px, 100%); }
}
:root[data-theme="light"] .seq-phone { filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .2)); }

.lsm-shots figure { display: grid; gap: 12px; margin: 0; }
.lsm-shots figcaption, .lsm-phones figcaption { font-size: 0.9375rem; color: var(--silver); }

/* Fonctions du back-office */
.lsm-feats { display: grid; gap: 16px; list-style: none; margin-top: 8px; }
.lsm-feats li { display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--stage-bg); }
.lsm-feats h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.lsm-feats p { font-size: 1rem; color: var(--silver); }
@media (min-width: 768px) { .lsm-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lsm-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Back-office sur téléphone */
.lsm-phones { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 64%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.lsm-phones figure { display: grid; gap: 12px; justify-items: center; margin: 0; scroll-snap-align: center; }
.lsm-phones img { display: block; width: 100%; max-width: 260px; height: auto; border: 1px solid var(--line-2); border-radius: 24px; }
@media (min-width: 768px) {
  .lsm-phones { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 24px; }
}

.grp > .lnk-arrow { align-self: flex-start; }
@media (max-width: 1023px) {
  /* Téléphone et étapes visibles ensemble : étapes compactes, seule l’étape en cours garde sa phrase */
  .seq { gap: 24px; }
  .seq-phone { width: min(240px, 64vw); }
  .seq-step { padding: 8px 12px; align-items: center; }
  .seq-step:not([aria-current="step"]) .seq-t span { display: none; }
}

/* Accueil : diapositive « Réservation de table », parcours complet en plusieurs écrans */
.story .dev-desk .scr > img.fr { position: absolute; inset: 0; }
.story .scr > img.fr { opacity: 0; transition: opacity .25s ease; }
.story .scr > img.fr.is-on { opacity: 1; }
.anim .slide.story.is-active .cur { animation: none; }
.story .cur { opacity: 0; transition: left .7s var(--ease), top .7s var(--ease), opacity .2s ease; }
.story .cur.on { opacity: 1; }
.story .cur svg { transition: transform .12s ease; transform-origin: 20% 10%; }
.story .cur.press svg { transform: scale(.82); }
.anim .slide.story.is-active .ring { animation: none; }
.anim .slide.story.is-active .ring.pop { animation: ring-pop .5s ease-out; }
@keyframes ring-pop { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.8); } }

/* Pas de flash noir entre deux écrans : l’écran précédent reste affiché sous le nouveau pendant le fondu */
.story .scr > img.fr.is-on, .seq-scr > img.is-on { z-index: 2; }
.story .scr > img.fr.was, .seq-scr > img.was { opacity: 1; z-index: 1; transition: none; }
.story .ring, .story .cur { z-index: 6; }
/* Notification de l’e-mail de confirmation */
.ntf { position: absolute; z-index: 5; display: flex; align-items: flex-start; gap: .7em; padding: .75em .9em; border-radius: .9em; background: rgba(250, 250, 250, .97); color: #111; box-shadow: 0 .6em 1.8em rgba(0, 0, 0, .28); border: 1px solid rgba(0, 0, 0, .08); line-height: 1.3; opacity: 0; transform: translateY(-40%); transition: opacity .3s ease, transform .35s var(--ease); pointer-events: none; }
.ntf.on { opacity: 1; transform: none; }
.ntf-ic { flex: none; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: .6em; background: #1F6FEB; }
.ntf-ic svg { width: 1.4em; height: 1.4em; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.ntf-t { display: grid; gap: .1em; min-width: 0; flex: 1; }
.ntf-t b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-t span { font-weight: 600; }
.ntf-t small { font-size: .9em; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-tm { flex: none; font-size: .85em; color: #777; }
.dev-desk .ntf { top: 4%; right: 2%; width: 36%; font-size: .78cqw; }
.dev-mob .ntf { top: 8%; left: 3.5%; right: 3.5%; font-size: .62cqw; }
@media (max-width: 767px) {
  .dev-desk .ntf { font-size: 1.05cqw; width: 44%; }
  .dev-mob .ntf { font-size: 1.55cqw; }
}

/* Safari iOS : pendant le glissement du carrousel, le téléphone passait derrière l’ordinateur.
   Chaque appareil a sa propre couche, le téléphone toujours au-dessus. */
.stage { isolation: isolate; }
.dev-desk { -webkit-transform: translateZ(0); transform: translateZ(0); }
.dev-mob { -webkit-transform: translateZ(0); transform: translateZ(0); z-index: 3; }

/* Liens du menu (La carte, Créations, Contact) : le titre de la section arrive juste sous l’en-tête */
#carte, #creations, #contact { scroll-margin-top: calc(var(--hdr-h, 65px) + 8px - 48px); }
@media (min-width: 540px) { :root { --hdr-h: 81px; } }
@media (min-width: 768px) { #carte, #creations, #contact { scroll-margin-top: calc(var(--hdr-h) + 8px - 64px); } }
@media (min-width: 1280px) {
  #carte, #contact { scroll-margin-top: 8px; }
  #creations { scroll-margin-top: 24px; }
}

/* Cascade : sur mobile, les écrans du back-office en version téléphone (lisibles), sur ordinateur en version ordinateur */
.casc-m { display: none; }
@media (max-width: 767px) {
  .casc-d { display: none; }
  .casc-m { display: flex; }
  .casc-view { aspect-ratio: 3 / 4; }
  .casc-plane { top: -2%; width: 50%; transform: translateX(-50%) rotateX(20deg) rotateZ(-4deg); }
  .casc-m .casc-set { gap: 6cqw; padding-bottom: 6cqw; }
  .casc-m .casc-set img { border-radius: 4cqw; }
  .anim .casc-track { animation-duration: 30s; }
}

/* Pied de page : le grand « YM DIGITAL » reste centré même s’il est plus large que la colonne */
.giant { display: flex; justify-content: center; }

/* Pied de page : tout est centré, comme les liens du bas */
.ftr-col { align-items: center; text-align: center; }
.ftr-col ul { align-items: center; }
.ftr-col li { justify-content: center; }
.ftr-col > .txt { margin-inline: auto; }
.ftr-col .btn-wa { align-self: center; }
.ftr-soc ul { justify-content: center; }

/* Pied de page : le haut et le bas utilisent exactement les mêmes 3 colonnes, centres alignés */
@media (min-width: 768px) {
  .ftr-grid, .legal-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; column-gap: 32px; }
  .legal-col:first-child { grid-column: auto; }
}

/* Défilement fluide (Lenis) */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
