/* ==========================================================================
   Max-E Informatique — feuille de style du site public
   Charte : fond sombre, « vert Max-E » (couleur du « e » du logo), motif circuit imprimé.
   ========================================================================== */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* Couleurs : thème sombre par défaut ; les zones posées sur des photos restent toujours sombres */
:root, .tile-photo, .lightbox, .arcade {
  --bg: #0b0d0a;
  --bg-2: #10130e;
  --surface: #151912;
  --surface-2: #1b2017;
  --surface-3: #232a1e;
  --line: #262d21;
  --line-strong: #364030;
  --text: #eef3e8;
  --text-2: #b9c2b0;
  --text-3: #8a9581;
  --lime: #a3d54e;          /* vert Max-E : textes, icônes, filets */
  --lime-hi: #c3ec6e;
  --fill: #a3d54e;          /* vert Max-E : fonds de boutons */
  --fill-hi: #c3ec6e;
  --green: #3f8a2a;
  --green-deep: #1a3312;
  --ink-on-lime: #0d1508;
  --open: #a3d54e;
  --closing: #f2c14e;
  --closed: #ff7262;
  --vacation: #f2b84b;
  --info: #93d5ff;
  --wa: #25d366;
  --wa-ink: #d8fbe5;
  --warn-ink: #fbe3b4;
  --warn-ink-2: #e9d3a5;
  --pad: #4a5640;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .7);
  --shadow-strong: 0 20px 40px -12px rgba(0, 0, 0, .75);
  --map-filter: invert(.92) hue-rotate(180deg) saturate(.35) brightness(.88) contrast(.92);
  color-scheme: dark;
}
/* Mode clair : réglage de l'appareil (sauf choix « sombre ») ou choix explicite */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6ef; --bg-2: #ebefe4; --surface: #ffffff; --surface-2: #fafbf7; --surface-3: #e4eadb;
    --line: #dde3d3; --line-strong: #c4ceb6;
    --text: #12180e; --text-2: #434d3b; --text-3: #5f6a55;
    --lime: #3b7516; --lime-hi: #2f6312; --fill: #a3d54e; --fill-hi: #b6e269;
    --green: #2f6b14; --green-deep: #e2efcf; --ink-on-lime: #0d1508;
    --open: #3b7516; --closing: #8a5c00; --closed: #c0362a; --vacation: #8a5200; --info: #1f6aa0;
    --wa: #1fa855; --wa-ink: #0d5e30; --warn-ink: #6b4300; --warn-ink-2: #7d5a14; --pad: #b7c2a8;
    --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 22px 50px -26px rgba(30, 45, 15, .28);
    --shadow-strong: 0 18px 40px -14px rgba(30, 45, 15, .35);
    --map-filter: saturate(.55) contrast(.95);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f6ef; --bg-2: #ebefe4; --surface: #ffffff; --surface-2: #fafbf7; --surface-3: #e4eadb;
  --line: #dde3d3; --line-strong: #c4ceb6;
  --text: #12180e; --text-2: #434d3b; --text-3: #5f6a55;
  --lime: #3b7516; --lime-hi: #2f6312; --fill: #a3d54e; --fill-hi: #b6e269;
  --green: #2f6b14; --green-deep: #e2efcf; --ink-on-lime: #0d1508;
  --open: #3b7516; --closing: #8a5c00; --closed: #c0362a; --vacation: #8a5200; --info: #1f6aa0;
  --wa: #1fa855; --wa-ink: #0d5e30; --warn-ink: #6b4300; --warn-ink-2: #7d5a14; --pad: #b7c2a8;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 22px 50px -26px rgba(30, 45, 15, .28);
  --shadow-strong: 0 18px 40px -14px rgba(30, 45, 15, .35);
  --map-filter: saturate(.55) contrast(.95);
  color-scheme: light;
}
:root {
  /* Formes */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --glow: 0 0 0 1px color-mix(in srgb, var(--lime) 30%, transparent), 0 18px 50px -18px color-mix(in srgb, var(--lime) 35%, transparent);
  /* Typo */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* Mise en page */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: clamp(16px, .2vw + 15.2px, 17.5px); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
p, figure { margin: 0; }
h1, h2, h3, .h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 1rem + 2.9vw, 3.4rem); hyphens: manual; }
h2 { font-size: clamp(1.55rem, 1rem + 1.9vw, 2.55rem); }
h3, .h3 { font-size: clamp(1.05rem, .95rem + .35vw, 1.28rem); letter-spacing: -.012em; line-height: 1.25; }
strong { font-weight: 700; }
.accent { color: var(--lime); }
.mono { font-family: var(--font-mono); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: calc(var(--section) / 2); }
.section:last-of-type { padding-bottom: var(--section); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--fill); color: var(--ink-on-lime); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--fill); color: var(--ink-on-lime); }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* Étiquette « pastille de soudure + piste » */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65em; margin-bottom: 1rem;
  font: 600 .76rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime);
}
.pad { position: relative; width: 11px; height: 11px; border-radius: 50%; border: 2px solid currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 14%, transparent); margin-left: 26px; flex: none; }
.pad::before { content: ""; position: absolute; right: calc(100% + 2px); top: 50%; width: 24px; height: 2px; background: linear-gradient(90deg, transparent, currentColor); transform: translateY(-50%); }
.lead { margin-top: 1.1rem; max-width: 62ch; color: var(--text-2); font-size: clamp(1.02rem, .95rem + .3vw, 1.16rem); }
.fine { margin-top: 18px; font-size: .84rem; color: var(--text-3); }
.section-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .65em 1.15em; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: 700 .95rem/1.1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--fill); --btn-fg: var(--ink-on-lime); --btn-bd: transparent; box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--lime) 80%, transparent); }
.btn-primary:hover { --btn-bg: var(--fill-hi); }
.btn-ghost { --btn-bg: transparent; }
.btn-ghost:hover { --btn-bd: var(--lime); color: var(--lime-hi); }
.btn-whatsapp { --btn-bg: rgba(37, 211, 102, .1); --btn-bd: rgba(37, 211, 102, .45); --btn-fg: var(--wa-ink); }
.btn-whatsapp .ico { color: var(--wa); }
.btn-whatsapp:hover { --btn-bg: rgba(37, 211, 102, .18); }
.btn-lg { min-height: 52px; padding: .8em 1.4em; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: .5em .95em; font-size: .88rem; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); transition: background-color .2s, border-color .2s; }
.icon-btn .ico { width: 19px; height: 19px; }
.icon-btn.is-wa { color: var(--wa); border-color: rgba(37, 211, 102, .4); }
.icon-btn.is-wa:hover { background: rgba(37, 211, 102, .12); }

/* ---------- Statut ouvert / fermé ---------- */
[data-status="open"] { --status-c: var(--open); }
[data-status="closing"] { --status-c: var(--closing); }
[data-status="closed"] { --status-c: var(--closed); }
[data-status="vacation"] { --status-c: var(--vacation); }
.status-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--status-c, var(--closed)); flex: none; }
[data-status="open"] .status-dot::after, [data-status="closing"] .status-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--status-c); opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.status-pill {
  display: inline-flex; align-items: center; gap: .55em; min-height: 40px; padding: 0 .95em; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--status-c) 40%, var(--line-strong)); background: color-mix(in srgb, var(--status-c) 8%, transparent);
  font: 700 .74rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); text-decoration: none; white-space: nowrap;
}
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; color: var(--text-2); }
.status-line strong { color: var(--status-c); }
.status-line.is-large { margin-top: 1.4rem; font-size: 1.05rem; }
.status-line .sep { color: var(--text-3); }

/* ---------- Bandeau congés ---------- */

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: border-color .25s, background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); }
/* Menu mobile ouvert : sans flou, sinon l'en-tête devient le cadre du menu « fixed » (menu coupé à quelques lignes) */
.site-header:has(.mobile-menu:not([hidden])) { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: block; flex: none; color: var(--text); text-decoration: none; }
.brand svg { width: auto; height: 50px; }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: .55em .9em; border-radius: 999px; color: var(--text-2); font-weight: 650; font-size: .93rem; text-decoration: none; transition: color .15s, background-color .15s; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current] { color: var(--lime); background: color-mix(in srgb, var(--lime) 10%, transparent); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.mobile-menu { position: fixed; left: 0; right: 0; bottom: 0; top: var(--menu-top, var(--header-h)); z-index: 49; overflow-y: auto; background: var(--bg); padding: 12px 0 120px; }
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu li a { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 650 1.45rem/1.2 var(--font-display); letter-spacing: -.02em; text-decoration: none; }
.mobile-menu li a[aria-current] { color: var(--lime); }
.mobile-menu .mono { font-size: .78rem; font-weight: 600; color: var(--lime); }
.mobile-menu-foot { display: grid; gap: 10px; margin-top: 24px; color: var(--text-2); font-size: .95rem; }
.mobile-menu-foot p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mobile-menu-foot .ico { width: 18px; color: var(--lime); }

@media (max-width: 1160px) { /* même seuil dans site.js (fermeture du menu mobile) */
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .header-call span { display: none; }
  .header-call { width: 44px; min-height: 44px; padding: 0; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand svg { height: 42px; }
  .header-call { display: none; }
}

/* ---------- Choix du thème ---------- */
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--lime); color: var(--lime); }
.theme-toggle .ico { width: 20px; height: 20px; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .ico-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .ico-moon { display: block; }
}
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); font: 600 .8rem var(--font-body); cursor: pointer; }
.theme-switch button .ico { width: 15px; height: 15px; }
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
@media (max-width: 560px) { .header-actions .theme-toggle { display: none; } }

/* Facebook / Instagram à côté du téléphone (dans le menu sur téléphone) */
.header-social { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); transition: color .15s, border-color .15s; }
.header-social:hover { border-color: var(--lime); color: var(--lime); }
.header-social .ico { width: 19px; height: 19px; }
.mobile-menu-foot .mobile-socials { gap: 10px; }
.mobile-menu-foot .header-social .ico { width: 19px; color: currentColor; }
@media (max-width: 560px) { .header-actions .header-social { display: none; } }
/* Petit écran d'ordinateur : avec les réseaux, le numéro ne tient plus à côté du menu → bouton rond (icône seule) */
@media (min-width: 1161px) and (max-width: 1280px) {
  .header-actions:has(.header-social) .header-call span { display: none; }
  .header-actions:has(.header-social) .header-call { width: 44px; min-height: 44px; padding: 0; }
}

/* ---------- Motif circuit ---------- */
.hero-traces { position: absolute; inset: 0; z-index: -1; opacity: .6; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 75% 70% at 55% 45%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 75% 70% at 55% 45%, #000 25%, transparent 78%); }
.circuit { width: 100%; height: 100%; }
.circuit .trace path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.circuit .pads circle { fill: var(--bg); stroke: var(--pad); stroke-width: 1.5; }
.circuit .trace-pulse path { fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 46 1500; stroke-dashoffset: 1546; animation: run 8s linear infinite; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--lime) 90%, transparent)); }
.circuit .trace-pulse path:nth-child(2) { animation-duration: 10s; animation-delay: -3s; }
.circuit .trace-pulse path:nth-child(3) { animation-duration: 9s; animation-delay: -6s; }
.circuit .trace-pulse path:nth-child(4) { animation-duration: 11s; animation-delay: -1s; }
@keyframes run { to { stroke-dashoffset: 0; } }

/* ---------- Hero accueil ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(36px, 6vw, 84px) clamp(56px, 8vw, 104px); }
.hero::before { content: ""; position: absolute; z-index: -1; right: -15%; top: -25%; width: 70vw; height: 70vw; background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 14%, transparent), transparent 72%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(1.85rem, .9rem + 3.1vw, 3.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-proofs { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px clamp(18px, 3vw, 40px); margin: 2.4rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero-proofs strong { display: block; font: 700 1.12rem/1.2 var(--font-display); }
.hero-proofs span { font-size: .86rem; color: var(--text-3); }
.hero-visual { position: relative; }
.hero-photo { position: relative; aspect-ratio: 4 / 4.5; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 13, 10, .7), transparent 42%); }
/* Annonce ponctuelle (back-office › Annonce) : encadré au-dessus du titre de l'accueil, pas un bandeau */
.announce { --tone: var(--info); display: flex; align-items: flex-start; gap: 14px; max-width: 560px; margin: 0 0 1.8rem; padding: 14px 18px 14px 14px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--tone) 45%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 12%, var(--surface)), var(--surface) 70%); box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--tone) 70%, transparent); }
.announce.is-new { --tone: var(--lime); }
.announce.is-important { --tone: var(--closing); }
.announce.is-conges { --tone: var(--vacation); }
.announce-ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone); }
.announce-ico .ico { width: 21px; height: 21px; }
.announce-body { min-width: 0; }
.announce-tag { margin: 2px 0 0; color: var(--tone); font: 700 .66rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.announce-title { margin: 6px 0 0; font: 700 1.02rem/1.3 var(--font-display); }
.announce-text { margin: 4px 0 0; color: var(--text-2); font-size: .93rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
/* Bouton plein dans la couleur de l'annonce ; texte = fond de page, lisible dans les deux thèmes */
.announce-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 12px; padding: .5em 1.15em; border-radius: 999px; background: var(--tone); color: var(--bg); font: 700 .9rem/1.2 var(--font-body); text-align: center; text-decoration: none; transition: filter .2s, transform .18s var(--ease); }
.announce-link:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Badge « X ans d'atelier » + note Google en dessous, inclinés ensemble */
.hero-badges { position: absolute; top: 26px; left: -22px; display: grid; justify-items: start; gap: 10px; transform: rotate(-4deg); transform-origin: left top; }
.hero-badge {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px 14px 16px;
  border-radius: 20px; background: var(--fill); color: var(--ink-on-lime); box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--lime) 65%, transparent);
}
.hero-reviews {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 6px; padding: 8px 12px 8px 10px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .55); transition: border-color .2s, transform .2s;
}
a.hero-reviews:hover { border-color: var(--lime); transform: translateY(-1px); }
.hero-reviews .g-logo { width: 18px; height: 18px; flex: none; }
.g-score { font: 700 .98rem/1 var(--font-display); }
/* 5 étoiles de 16 px découpées par un masque ; la couche dorée en recouvre une partie selon la note */
.g-stars {
  display: block; width: 80px; height: 16px; flex: none; background: color-mix(in srgb, var(--text-3) 40%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6.1 6.6.9-4.8 4.6 1.2 6.6L12 17.6l-5.9 3.2 1.2-6.6-4.8-4.6 6.6-.9z'/%3E%3C/svg%3E") 0 0 / 16px 16px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6.1 6.6.9-4.8 4.6 1.2 6.6L12 17.6l-5.9 3.2 1.2-6.6-4.8-4.6 6.6-.9z'/%3E%3C/svg%3E") 0 0 / 16px 16px repeat-x;
}
.g-stars > span { display: block; height: 100%; background: #fbbc04; }
@media (forced-colors: active) { .g-stars { forced-color-adjust: none; background: GrayText; } .g-stars > span { background: CanvasText; } }
.hero-badge-num { font: 800 2.7rem/.85 var(--font-display); letter-spacing: -.04em; }
.hero-badge-txt { font: 700 .74rem/1.15 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
/* Clin d'œil rétro : un clic fait passer le badge en « LEVEL X » (site.js) */
button.hero-badge { border: 0; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease); }
button.hero-badge:hover { transform: translateY(-2px); }
.hero-badge.is-flipping { animation: badge-flip .34s var(--ease); }
@keyframes badge-flip { 50% { transform: perspective(400px) rotateX(90deg); } }
.hero-badge-num small { display: block; margin-bottom: 4px; font: 700 .62rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
/* Barre d'expérience en segments de 6 px, jusqu'au prochain anniversaire */
.xp-bar { display: block; width: 80px; height: 8px; margin-bottom: 6px; background: repeating-linear-gradient(90deg, color-mix(in srgb, currentColor 22%, transparent) 0 6px, transparent 6px 8px); }
.xp-bar > span { display: block; width: var(--xp); height: 100%; background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 8px); }
.hero-status {
  position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border-radius: 18px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-decoration: none;
}
.hero-status .status-dot { width: 11px; height: 11px; }
.hero-status strong { display: block; font: 700 1rem/1.25 var(--font-display); color: var(--status-c); }
.hero-status small { display: block; color: var(--text-2); font-size: .88rem; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-badges { left: 14px; top: -16px; }
}
@media (max-width: 560px) {
  .hero-proofs { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-badge-num { font-size: 2.1rem; }
}

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--lime) 50%, var(--line)); box-shadow: var(--glow); }
.tile-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile-photo:hover > img { transform: scale(1.045); }
.tile-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 10, .08) 0%, rgba(11, 13, 10, .55) 45%, rgba(11, 13, 10, .95) 100%); }
.tile-body { padding: clamp(20px, 2.4vw, 30px); }
.tile-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--lime) 35%, transparent); background: color-mix(in srgb, var(--lime) 12%, transparent); color: var(--lime); backdrop-filter: blur(6px); }
.tile h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem); }
.tile p { max-width: 46ch; margin-top: .5rem; color: var(--text-2); }
.tile .tile-hint { margin-top: 1rem; font: 600 .78rem/1.4 var(--font-mono); color: var(--lime); }
.tile-arrow { position: absolute; top: clamp(18px, 2.2vw, 26px); right: clamp(18px, 2.2vw, 26px); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(6px); transition: background-color .25s, color .25s, transform .3s var(--ease); }
.tile:hover .tile-arrow { background: var(--fill); color: var(--ink-on-lime); border-color: transparent; transform: rotate(45deg); }
.tile-ordi { grid-column: span 4; grid-row: span 2; min-height: 540px; }
.tile-phone { grid-column: span 2; grid-row: span 2; justify-content: space-between; background: radial-gradient(90% 60% at 70% 12%, color-mix(in srgb, var(--lime) 20%, transparent), transparent 62%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.tile-console, .tile-micro { grid-column: span 3; min-height: 330px; }
.tile-phone-art { order: -1; display: grid; flex: 1; place-items: center; padding-top: 36px; }
.phone-shape { position: relative; width: 116px; height: 226px; border-radius: 26px; border: 2px solid #46523c; background: linear-gradient(160deg, #1f2a17, #0d110b 62%); box-shadow: inset 0 0 0 6px #0b0d0a, 0 30px 60px -20px rgba(0, 0, 0, .85); transform: rotate(-8deg); transition: transform .5s var(--ease), background .5s; }
.phone-shape::before { content: ""; position: absolute; top: 13px; left: 50%; width: 34px; height: 8px; border-radius: 6px; background: var(--bg); transform: translateX(-50%); }
.phone-crack { position: absolute; inset: 7px; border-radius: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 200' fill='none' stroke='%23a3d54e' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M44 74 22 44 8 50M44 74 60 34 68 8M44 74 80 76 98 62M44 74 56 112 50 150 62 198M44 74 18 100 2 122M44 74 32 132 38 160M60 34 76 28M56 112 78 128'/%3E%3Ccircle cx='44' cy='74' r='3' fill='%23a3d54e'/%3E%3C/svg%3E") center / cover no-repeat; transition: opacity .5s; }
.tile-phone:hover .phone-shape { transform: rotate(-2deg) translateY(-6px); background: linear-gradient(160deg, #3c6a22, #142410 70%); }
.tile-phone:hover .phone-crack { opacity: 0; }
/* Tuile Smartphones avec photo favorite : même disposition que les autres tuiles photo (texte en bas) */
.tile-phone.is-photo { flex-direction: column; justify-content: flex-end; align-items: stretch; }
.brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 30px; color: var(--text-3); font-weight: 700; font-size: .95rem; }
.brands .mono { margin-right: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
/* Logos (back-office › Marques) : « mono » = silhouette dans la couleur du texte, « color » = pastille blanche */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo.is-mono { height: 22px; max-width: 112px; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; transition: color .2s; }
.brand-logo.is-mono:hover { color: var(--text); }
.brand-logo.is-color { height: 34px; padding: 6px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(18, 24, 14, .08); }
.brand-logo.is-color img { width: auto; height: 100%; max-width: 104px; object-fit: contain; }
@media (forced-colors: active) { .brand-logo.is-mono { forced-color-adjust: none; background-color: CanvasText; } }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-ordi, .tile-phone { grid-column: 1 / -1; grid-row: auto; }
  .tile-ordi { min-height: 420px; }
  .tile-phone { flex-direction: row; align-items: flex-end; min-height: 280px; }
  .tile-phone-art { order: 2; flex: 0 0 auto; padding: 24px 30px 24px 0; }
  .tile-console, .tile-micro { grid-column: span 1; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile-console, .tile-micro { grid-column: auto; }
  .tile-phone { flex-direction: column; align-items: stretch; }
  .tile-phone-art { order: -1; padding: 30px 0 0; }
  .phone-shape { width: 92px; height: 180px; }
}

/* ---------- Matériel à vendre ---------- */
.products { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: .5em; min-height: 42px; padding: .5em 1.05em; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-weight: 650; font-size: .9rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip[aria-pressed="true"] { background: var(--fill); border-color: transparent; color: var(--ink-on-lime); }
.chip-count { font: 600 .74rem var(--font-mono); opacity: .7; }
/* Bulles en lignes : 2 colonnes, vignette | infos | prix + appel */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.product[hidden] { display: none; }
.product-card {
  display: flex; height: 100%; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface-2), var(--surface)); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--lime) 45%, var(--line)); box-shadow: var(--glow); }
.product-media { position: relative; display: grid; flex: none; place-items: center; align-self: stretch; width: 116px; min-height: 116px; margin: 8px; overflow: hidden; border-radius: calc(var(--radius-lg) - 8px); background: radial-gradient(circle at 50% 35%, var(--surface-3), var(--bg-2) 78%); }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-ph { width: 42px; height: 42px; color: color-mix(in srgb, var(--lime) 70%, var(--text-3)); stroke-width: 1.3; }
/* Lignes 1fr de part et d'autre : les infos restent centrées verticalement sans étirer les pastilles */
.product-body { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto auto auto 1fr; column-gap: 18px; min-width: 0; padding: 14px 18px 14px 8px; }
.product-top, .product-name, .product-specs { grid-column: 1; }
.product-top { grid-row: 2; }
.product-name { grid-row: 3; }
.product-specs { grid-row: 4; align-items: center; }
.product-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.product-brand { font: 700 .7rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.product-state { padding: .32em .6em; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-2); font: 700 .62rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.state-neuf { color: var(--lime); }
.state-reconditionne { color: var(--info); }
.state-occasion { color: var(--closing); }
.product-name { margin-top: .4rem; font-size: 1.1rem; }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: .7rem 0 0; padding: 0; list-style: none; }
.product-specs li { display: inline-flex; align-items: center; gap: .45em; padding: .3em .7em; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-size: .8rem; font-weight: 650; }
.product-specs .ico { width: 14px; height: 14px; color: var(--text-3); }
.swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px var(--line-strong); }
.product-foot { display: flex; grid-column: 2; grid-row: 1 / -1; flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px; padding-left: 18px; border-left: 1px dashed var(--line-strong); }
.product-price { font: 700 1.4rem/1 var(--font-display); letter-spacing: -.03em; white-space: nowrap; }
.product-actions { display: flex; gap: 6px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .product-media { width: 88px; min-height: 88px; }
  .product-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding: 12px 14px 14px 4px; }
  .product-top, .product-name, .product-specs { grid-row: auto; }
  .product-foot { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px 0 0; border-left: 0; border-top: 1px dashed var(--line-strong); }
  .product-price { font-size: 1.25rem; }
}
.empty-state { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 28px; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); color: var(--text-2); }
.empty-state p { flex: 1 1 320px; }
.empty-state strong { color: var(--text); }
.empty-ico { width: 40px; height: 40px; color: var(--lime); }

/* ---------- Étapes ---------- */
.steps-list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps-list li { position: relative; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.steps-list li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 52px; left: 76px; right: -46px; height: 2px; background: linear-gradient(90deg, var(--lime), color-mix(in srgb, var(--lime) 15%, transparent)); }
.steps-list h3 { margin-bottom: .5rem; }
.steps-list p { color: var(--text-2); }
.step-n { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; border: 2px solid var(--lime); background: var(--bg); color: var(--lime); font: 700 .92rem var(--font-mono); box-shadow: 0 0 0 6px color-mix(in srgb, var(--lime) 8%, transparent); }
@media (max-width: 860px) {
  .steps-list { grid-template-columns: 1fr; }
  .steps-list li:not(:last-child)::after { top: 76px; left: 51px; right: auto; width: 2px; height: calc(100% - 48px + 18px); background: linear-gradient(180deg, var(--lime), color-mix(in srgb, var(--lime) 15%, transparent)); }
}

/* ---------- Galerie + visionneuse ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gallery-item.is-feature { grid-column: span 2; grid-row: span 2; }
.gallery-item a { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(11, 13, 10, .72); color: #eef3e8; backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.gallery-zoom .ico { width: 17px; height: 17px; }
.gallery-item a:hover .gallery-zoom, .gallery-item a:focus-visible .gallery-zoom { opacity: 1; }
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 8px; }
}
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.lightbox::backdrop { background: rgba(5, 6, 5, .93); backdrop-filter: blur(4px); }
.lightbox-inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 16px; }
.lightbox img { width: auto; height: auto; max-width: min(100%, 1280px); max-height: calc(100dvh - 160px); object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .65); }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(21, 25, 18, .88); color: var(--text); cursor: pointer; }
.lightbox-btn:hover { border-color: var(--lime); color: var(--lime); }
.lightbox-btn .ico { width: 22px; height: 22px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { top: 50%; left: 14px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 14px; transform: translateY(-50%); }
/* Légende (« 5/9 » + description) : lue par les lecteurs d'écran, jamais affichée */
.lightbox-caption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  /* Téléphone : flèches sous la photo pour ne pas la masquer (le balayage reste possible) */
  .lightbox-inner { padding: 64px 12px 84px; }
  .lightbox img { max-height: calc(100dvh - 180px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
}

/* ---------- Infos pratiques ---------- */
.info-card { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.info-main { padding: clamp(24px, 4vw, 52px); }
.info-address { display: flex; flex-direction: column; font-size: clamp(1.55rem, 1rem + 2vw, 2.5rem); }
.info-note { margin-top: .6rem; color: var(--text-2); }
.hours { display: grid; margin: 1.4rem 0 0; }
.hours-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: .78rem 0; border-top: 1px solid var(--line); }
.hours-row:last-child { border-bottom: 1px solid var(--line); }
.hours-row dt { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; color: var(--text-2); }
.hours-row dd { margin: 0; font: 600 .92rem var(--font-mono); text-align: right; white-space: nowrap; }
@media (max-width: 400px) { .hours-row { flex-wrap: wrap; gap: 2px 16px; } .hours-row dd { font-size: .86rem; } }
.hours-row.is-today dt, .hours-row.is-today dd { color: var(--text); }
.hours-row.is-today::before { content: ""; position: absolute; left: -16px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); transform: translateY(-50%); }
.hours-row.is-closed dd { color: var(--text-3); }
.today-tag { padding: .35em .55em; border-radius: 6px; background: color-mix(in srgb, var(--lime) 15%, transparent); color: var(--lime); font: 700 .62rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.info-notices { display: grid; gap: 8px; margin: 1rem 0 0; padding: 0; list-style: none; }
.info-notices li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-size: .9rem; }
.info-notices .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--lime); }
.info-notices .is-vacation { border-color: rgba(242, 184, 75, .4); color: var(--warn-ink); }
.info-notices .is-vacation .ico { color: var(--vacation); }
.info-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.8rem; }
.info-mail { display: flex; align-items: center; gap: 8px; margin-top: 1.2rem; color: var(--text-2); font-size: .92rem; }
.info-mail .ico { width: 17px; color: var(--text-3); }
.info-mail a { text-decoration: none; }
.info-mail a:hover { color: var(--lime); }
.info-map { position: relative; display: block; min-height: 440px; overflow: hidden; border-left: 1px solid var(--line); background: var(--surface-3); color: var(--text); text-decoration: none; }
/* Carte plus grande que le cadre (boutons OSM masqués) : max-width levé, sinon elle reste décalée de 70 px et le repère tombe à côté du magasin */
.info-map iframe { position: absolute; inset: -70px; width: calc(100% + 140px); max-width: none; height: calc(100% + 140px); border: 0; pointer-events: none; filter: var(--map-filter); }
.info-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 30%, color-mix(in srgb, var(--bg) 55%, transparent) 100%); }
.map-pin { position: absolute; z-index: 2; left: 50%; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--fill); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px color-mix(in srgb, var(--lime) 28%, transparent), 0 0 34px 8px color-mix(in srgb, var(--lime) 50%, transparent); }
.map-pin::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--lime); animation: ping 2.4s var(--ease) infinite; }
.map-pin-label { position: absolute; left: 50%; bottom: calc(100% + 16px); padding: .5em .8em; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); transform: translateX(-50%); font: 700 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.map-cta { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); font-weight: 700; transition: background-color .25s, color .25s; }
.info-map:hover .map-cta { background: var(--fill); color: var(--ink-on-lime); }
.map-credit { position: absolute; z-index: 2; top: 10px; right: 12px; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--text-3); font-size: .68rem; }
@media (max-width: 960px) {
  .info-card { grid-template-columns: 1fr; }
  .info-map { min-height: 320px; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .info-actions .btn { flex: 1 1 100%; }
  .hours-row.is-today::before { left: -10px; }
}

/* ---------- Pages internes ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(24px, 4vw, 52px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero.is-slim { padding-block: clamp(24px, 4vw, 52px); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero-media { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5em; margin: 0 0 1.4rem; padding: 0; list-style: none; color: var(--text-3); font-size: .85rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; color: var(--line-strong); }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.tag-list li { padding: .4em .85em; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: .82rem; font-weight: 650; }
@media (max-width: 960px) { .page-hero-grid { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.feature-grid.is-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.feature-grid.is-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.feature { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, transform .25s var(--ease); }
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; background: color-mix(in srgb, var(--lime) 12%, transparent); color: var(--lime); }
.feature h3 { margin-bottom: .5rem; font-size: 1.06rem; }
.feature p { color: var(--text-2); font-size: .95rem; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-grid > * { min-width: 0; }
.split-grid.is-top { align-items: start; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split-grid.is-reverse > :first-child { order: 2; }
.split-media { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); border: 1px solid var(--line-strong); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy > p { margin-top: 1rem; color: var(--text-2); }
.split-copy > p.fine { color: var(--text-3); }
.split-copy a { color: var(--lime); }
/* Liens dans le texte courant (maillage entre les pages) */
.feature p a, .callout p a, .fine a, .lead a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.split-copy .price-list { margin-top: 1.4rem; }
/* Photo facultative d'une section de tarifs (back-office › Tarifs › Photo de la section), sous le texte */
.price-photo { margin: 1.6rem 0 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); border: 1px solid var(--line-strong); }
.price-photo.is-wide { aspect-ratio: 16 / 9; }
.price-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .split-grid, .split-grid.is-top { grid-template-columns: minmax(0, 1fr); }
  .split-grid.is-reverse > :first-child { order: 0; }
}

.offer-list { display: grid; gap: 10px; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.offer { display: grid; grid-template-areas: "name price" "note price"; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.offer-name { grid-area: name; font-weight: 700; }
.offer-note { grid-area: note; color: var(--text-3); font: 500 .8rem var(--font-mono); }
.offer-price { grid-area: price; color: var(--lime); font: 700 1.2rem var(--font-display); white-space: nowrap; }

/* Tableaux de prix */
.table-card { overflow: hidden; margin-bottom: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.table-card.is-compact { padding: 6px 22px 10px; margin-bottom: 0; }
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table caption { padding: 20px 22px 14px; text-align: left; font: 700 1.1rem var(--font-display); }
.price-table thead th { padding: 12px 22px; border-block: 1px solid var(--line); background: var(--bg-2); color: var(--text-3); font: 600 .7rem/1 var(--font-mono); letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.price-table tbody th { font-weight: 550; text-align: left; }
.price-table tbody th, .price-table td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table td:nth-child(2) { color: var(--text-3); font-size: .88rem; white-space: nowrap; }
.price-table td:last-child, .price-table thead th:last-child { text-align: right; white-space: nowrap; }
.price-table td:last-child { color: var(--lime); font: 700 .95rem var(--font-mono); }
.price-table tbody tr:hover { background: color-mix(in srgb, var(--lime) 4%, transparent); }
@media (max-width: 640px) {
  .price-table thead { display: none; }
  .price-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .price-table td { padding: 0; border: 0; }
  .price-table caption { padding: 18px 18px 6px; }
}
.price-list { display: grid; margin: 0; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row dd { margin: 0; color: var(--lime); font: 700 .93rem var(--font-mono); white-space: nowrap; }
/* Prix masqué : texte de remplacement (« Sur devis ») en gris, pas en vert */
.price-row dd.is-muted, .price-table td.is-muted, .offer-price.is-muted { color: var(--text-3); font-family: var(--font-body); font-weight: 650; font-size: .9rem; }
.price-table.no-price td:last-child { color: var(--text-3); font: 400 .88rem var(--font-body); text-align: left; }
.table-note { padding: 0 22px 18px; margin-top: 10px; }
.price-row.is-head dt, .price-row.is-head dd { color: var(--text-3); font: 600 .7rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* Onglets tarifs */
.price-tabs { padding: 8px 22px 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.tab-list { display: none; }
.js .tab-list { display: flex; gap: 6px; margin: 0 -4px; padding: 10px 4px 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tab { flex: none; min-height: 38px; padding: .45em .95em; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-weight: 650; font-size: .84rem; white-space: nowrap; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--fill); border-color: transparent; color: var(--ink-on-lime); }
.tab-panel-title { margin: 18px 0 4px; font-size: 1rem; }
.js .tab-panel[data-hidden] { display: none; }
.js .tab-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tab-panel:focus-visible { outline-offset: 6px; }

/* Encadrés */
.callout { display: flex; align-items: flex-start; gap: 20px; padding: 26px 28px; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--bg-2); }
.callout p { margin-top: .4rem; color: var(--text-2); }
.callout-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--lime) 12%, transparent); color: var(--lime); }
/* Pages de marque (iPhone, Samsung) depuis la page Smartphones */
.brand-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.brand-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.brand-card:hover { border-color: color-mix(in srgb, var(--lime) 50%, var(--line)); transform: translateY(-3px); }
.brand-card h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); }
.brand-card p { color: var(--text-2); }
.brand-card-cta { display: inline-flex; align-items: center; gap: .5em; margin-top: auto; padding-top: 8px; color: var(--lime); font-weight: 700; }
.brand-card-cta .ico { width: 18px; height: 18px; transition: transform .2s; }
.brand-card:hover .brand-card-cta .ico { transform: translateX(3px); }
/* Questions fréquentes : <details> natifs, sans script */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0; padding: 0; list-style: none; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--lime); font: 600 1.35rem/1 var(--font-mono); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: var(--radius); }
.faq details > div { padding: 0 22px 20px; color: var(--text-2); }
.faq details > div a { color: var(--lime); }
.highlight-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-xl); border: 1px solid color-mix(in srgb, var(--lime) 30%, var(--line)); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--lime) 16%, transparent), transparent 50%), var(--surface); }
.highlight-card > div > p { max-width: 62ch; margin-top: 1rem; color: var(--text-2); }
.highlight-price { padding: 24px 30px; border-radius: var(--radius-lg); background: var(--fill); color: var(--ink-on-lime); text-align: center; }
.highlight-price span { display: block; font: 800 2.7rem/1 var(--font-display); letter-spacing: -.04em; }
.highlight-price small { font: 700 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.check-list { display: grid; gap: 10px; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--lime); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); border: 1px solid color-mix(in srgb, var(--lime) 30%, var(--line)); background: linear-gradient(135deg, var(--green-deep), var(--surface) 70%); }
.cta-band p { margin-top: .4rem; color: var(--text-2); }
.method-list { display: grid; gap: 22px; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.method-list li { display: flex; gap: 18px; }
.method-list .step-n { flex: none; margin: 0; }
.method-list h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.method-list p { color: var(--text-2); }
/* Professionnels : sous-traitance en marque blanche (page Micro-soudure) */
.pro-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); align-items: center; gap: clamp(24px, 4vw, 48px); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-xl); border: 1px solid color-mix(in srgb, var(--lime) 30%, var(--line)); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--lime) 14%, transparent), transparent 55%), var(--surface); }
.pro-copy > p:not(.eyebrow) { max-width: 62ch; margin-top: 1rem; color: var(--text-2); }
.pro-copy .check-list li { color: var(--text-2); }
.pro-copy .check-list strong { color: var(--text); }
.pro-aside { display: grid; gap: 12px; padding: clamp(20px, 2.5vw, 28px); border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--bg-2); }
.pro-aside p { color: var(--text-2); }
.pro-aside .btn { justify-content: center; }
.pro-badge { display: inline-flex; align-items: center; gap: .5em; justify-self: start; padding: .4em .8em; border-radius: 999px; background: color-mix(in srgb, var(--lime) 12%, transparent); color: var(--lime); font: 700 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.pro-badge .ico { width: 15px; height: 15px; }
@media (max-width: 900px) { .pro-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .highlight-card { grid-template-columns: 1fr; }
  .callout { flex-direction: column; }
}

/* À propos */
.years-mark { display: flex; align-items: center; gap: 18px; justify-self: end; }
.years-num { font: 800 clamp(7rem, 3rem + 13vw, 15rem)/.8 var(--font-display); letter-spacing: -.07em; background: linear-gradient(160deg, var(--lime-hi), var(--green) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.years-label { color: var(--text-2); font: 700 .88rem/1.25 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 960px) { .years-mark { justify-self: start; } }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.stat-grid li { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.stat-grid strong { display: block; color: var(--lime); font: 800 2.6rem/1 var(--font-display); letter-spacing: -.04em; }
.stat-grid span { color: var(--text-2); font-size: .92rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.member { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 24px; padding: 18px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface); }
.member-photo { display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: radial-gradient(circle at 30% 20%, var(--green-deep), var(--bg-2)); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initials { color: var(--lime); font: 800 3rem var(--font-display); }
.member-role { margin: .45rem 0 .8rem; color: var(--lime); font: 600 .74rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.member-body p:not(.member-role) { color: var(--text-2); }
@media (max-width: 520px) { .member { grid-template-columns: 1fr; } }

/* Texte long */
.prose { max-width: 760px; }
.prose h2 { margin: 2.2rem 0 .8rem; font-size: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; color: var(--text-2); }
.prose a { color: var(--lime); }
.prose strong { color: var(--text); }

/* 404 */
.not-found-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 2rem 0 0; padding: 0; list-style: none; }
.not-found-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .not-found-grid { grid-template-columns: 1fr; } }

/* Clin d'œil rétro : écran d'arcade « GAME OVER » (toujours sombre, comme un vrai écran) */
.arcade {
  position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; gap: 24px; padding: 22px 20px 34px;
  border-radius: 28px; border: 1px solid var(--line-strong); color: var(--lime); text-align: center;
  background: radial-gradient(120% 90% at 50% 40%, #13200c, #060805 75%);
  box-shadow: inset 0 0 0 8px #10140d, inset 0 0 70px rgba(0, 0, 0, .85), var(--shadow);
}
.arcade::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 3px); }
.arcade svg { display: block; width: auto; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lime) 65%, transparent)); }
.arcade-hud { display: flex; justify-content: space-between; gap: 12px; width: 100%; margin: 0 0 10px; padding-inline: 8px; color: var(--text-2); font: 600 .72rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.arcade-title { height: 42px; } /* 6 px par pixel de la police */
.arcade-continue { display: flex; align-items: center; gap: 16px; margin: 0; transition: opacity .3s; }
.arcade-continue svg { height: 28px; } /* 4 px par pixel */
.arcade.is-over .arcade-continue { opacity: .4; }
.arcade-coin {
  display: inline-flex; align-items: center; min-height: 46px; padding: .7em 1.4em; border: 2px solid var(--lime); border-radius: 4px;
  color: var(--lime); font: 700 .86rem/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s;
}
.arcade-coin:hover, .arcade.is-coin .arcade-coin { background: var(--fill); color: var(--ink-on-lime); }
.arcade.is-over:not(.is-coin) .arcade-coin { animation: blink 1s steps(1) 4; } /* 4 s de clignotement, puis fixe */
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 560px) {
  .arcade-title { height: 35px; }
  .arcade-continue svg { height: 21px; }
}

/* ---------- Pied de page ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: var(--bg-2); padding-bottom: env(safe-area-inset-bottom); }
.circuit-rule { position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 5%, var(--lime) 30%, transparent 55%); opacity: .7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 36px; padding-block: 56px 40px; }
.footer-brand p { max-width: 36ch; margin-top: 14px; color: var(--text-3); font-size: .92rem; }
.footer-title { margin-bottom: 16px; color: var(--text-3); font: 600 .72rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.footer-list, .footer-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: .94rem; }
.footer-list li { display: flex; align-items: flex-start; gap: 10px; }
.footer-list .ico { width: 18px; margin-top: 3px; color: var(--lime); }
.site-footer a { color: var(--text-2); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--lime); }
.hours-mini { display: grid; gap: 8px; margin: 0; font-size: .9rem; }
.hours-mini div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-3); }
.hours-mini dd { margin: 0; color: var(--text-2); font: 500 .84rem var(--font-mono); text-align: right; }
.hours-mini .is-today dt, .hours-mini .is-today dd { color: var(--lime); }
.socials { display: flex; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); }
.socials .ico { width: 19px; height: 19px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .82rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; } }

/* ---------- Barre d'actions mobile ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 6px; padding: 6px;
    border-radius: 22px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface-2) 90%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-strong);
    transition: transform .3s var(--ease);
  }
  .action-bar.is-hidden { transform: translateY(calc(100% + 24px)); }
  .action-bar-btn { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 16px; background: var(--bg-2); color: var(--text); font-weight: 700; font-size: .92rem; text-decoration: none; }
  .action-bar-btn.is-primary { background: var(--fill); color: var(--ink-on-lime); }
  .action-bar-btn .ico { width: 19px; height: 19px; }
  body { padding-bottom: 84px; }
}

/* ---------- Clins d'œil rétro (site.js) ---------- */
/* Le mot « drift » d'un titre dérive puis revient, comme un joystick usé */
.drift { position: relative; display: inline-block; }
.drift-word { display: inline-block; }
.drift.is-drifting .drift-word { animation: drift 1.6s var(--ease); }
@keyframes drift {
  15% { transform: translate(2px, 0) rotate(.5deg); }
  55%, 62% { transform: translate(18px, -4px) rotate(3deg); }
  72% { transform: translate(-3px, 1px) rotate(-1deg); }
  82% { transform: translate(1px, 0); }
}
/* Version douce si l'appareil demande moins d'animations : petit glissement, sans rotation ni rebond */
@keyframes drift-soft { 50%, 65% { transform: translate(12px, -2px); } }
.drift-bubble {
  position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 12px); translate: calc(-50% + var(--dx, 0px)) 0;
  padding: .55em .85em; border-radius: 12px; border: 1px solid var(--lime); background: var(--surface-2); box-shadow: var(--shadow-strong);
  color: var(--text); font: 600 .8rem/1.3 var(--font-mono); letter-spacing: 0; text-transform: none; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drift-bubble::after { content: ""; position: absolute; top: 100%; left: calc(50% - var(--dx, 0px)); width: 10px; height: 10px; border: inherit; border-width: 0 1px 1px 0; background: inherit; translate: -50% -50%; rotate: 45deg; }
.drift.has-bubble .drift-bubble { opacity: 1; }

/* Manette détectée : message « Player 1 » en bas de l'écran */
.player-toast {
  position: fixed; z-index: 60; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(360px, calc(100vw - 32px));
  padding: 16px 18px; border-radius: 18px; border: 1px solid var(--lime); background: var(--surface-2); color: var(--text);
  box-shadow: var(--shadow-strong), var(--glow); font-size: .92rem; line-height: 1.45; animation: player-in .4s steps(4) both;
}
.player-toast:empty { display: none; }
.player-toast p { margin: 0; }
.player-toast .player-title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--lime); font: 700 .8rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.player-dot { width: 9px; height: 9px; flex: none; background: var(--lime); box-shadow: 0 0 8px var(--lime); } /* un pixel carré */
.player-toast .player-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.player-actions a, .player-actions button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: .4em .9em; border-radius: 10px; font: 700 .85rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.player-go { background: var(--fill); color: var(--ink-on-lime); }
.player-close { border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); }
.player-close:hover { border-color: var(--lime); color: var(--lime); }
.player-toast kbd { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 50%; border: 1.5px solid currentColor; font: 700 .72rem/1 var(--font-mono); }
@keyframes player-in { from { transform: translateY(24px); opacity: 0; } }
@media (max-width: 760px) { .player-toast { left: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100vw - 20px); } } /* au-dessus de la barre d'actions */

/* Télé cathodique (taper « ps1 ») : écran 4:3 bombé, lignes de balayage, masque RVB, allumage et extinction */
.crt { padding: 0; border: 0; background: none; color: #e8f0dc; overflow: visible; max-width: none; max-height: none; }
.crt::backdrop { background: rgba(3, 4, 2, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.crt-tv {
  display: grid; gap: 14px; padding: 26px 26px 14px; border-radius: 34px;
  background: linear-gradient(160deg, #2c3027, #171a14 60%, #10120e);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 -2px 0 rgba(0, 0, 0, .6) inset, 0 0 0 1px #2f342a, 0 40px 90px -30px #000;
}
.crt-screen {
  position: relative; width: min(84vw, 860px, calc((100dvh - 150px) * 4 / 3)); aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 7% / 9%; background: #000; box-shadow: 0 0 0 6px #0b0c0a, 0 0 0 8px #262a22;
}
.crt-picture { position: absolute; inset: 0; animation: crt-on .9s cubic-bezier(.2, .7, .2, 1) both; }
.crt-picture::after { content: ""; position: absolute; inset: 0; background: #f4fff0; opacity: 0; pointer-events: none; animation: crt-flash .9s ease-out both; }
/* Vidéo 16:9 recadrée pour remplir l'écran 4:3, comme une télé de l'époque (les bords coupés sont unis) */
.crt-picture iframe { position: absolute; top: 0; left: -16.667%; width: 133.334%; max-width: none; height: 100%; border: 0; pointer-events: none; filter: saturate(1.25) contrast(1.1) brightness(1.06) blur(.35px); }
.crt.is-click .crt-picture iframe { pointer-events: auto; } /* lecture automatique bloquée : clic pour lancer */
.crt-fx {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; border-radius: inherit;
  background:
    radial-gradient(120% 95% at 50% 50%, transparent 58%, rgba(0, 0, 0, .55)), /* verre bombé : bords plus sombres */
    linear-gradient(155deg, rgba(255, 255, 255, .09), transparent 32%), /* reflet */
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px), /* lignes de balayage */
    repeating-linear-gradient(90deg, rgba(255, 40, 40, .05) 0 1px, rgba(40, 255, 40, .05) 1px 2px, rgba(40, 80, 255, .05) 2px 3px); /* masque RVB */
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .7), inset 0 0 8px rgba(0, 0, 0, .9);
  animation: crt-flicker .2s steps(2) infinite;
}
.crt-fx::after { content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 20%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .05), transparent); animation: crt-roll 7s linear infinite; }
.crt-osd { position: absolute; z-index: 3; top: 7%; left: 8%; color: #7dff6a; font: 700 clamp(14px, 2.4vw, 22px)/1 var(--font-mono); letter-spacing: .08em; text-shadow: 0 0 6px rgba(125, 255, 106, .8); pointer-events: none; }
.crt.is-osd-off .crt-osd, .crt.is-off .crt-osd { display: none; }
.crt-panel { display: flex; align-items: center; gap: 12px; padding-inline: 6px; }
.crt-brand { margin-right: auto; color: #8d9584; font: 800 .78rem/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; }
.crt-led { width: 8px; height: 8px; border-radius: 50%; background: #a3d54e; box-shadow: 0 0 8px #a3d54e; }
.crt-power { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #3a4033; background: linear-gradient(180deg, #2b3026, #1a1d17); color: #c9d2bf; cursor: pointer; }
.crt-power:hover { border-color: #a3d54e; color: #a3d54e; }
.crt-power svg { width: 18px; height: 18px; }
.crt.is-off .crt-picture { animation: crt-off .5s cubic-bezier(.6, 0, .8, .4) both; }
.crt.is-off .crt-picture::after { animation: crt-flash-off .5s both; }
.crt.is-off .crt-led { background: #3a3f35; box-shadow: none; }
@keyframes crt-on { 0% { transform: scale(0, .006); } 30% { transform: scale(1, .006); } 75%, 100% { transform: none; } }
@keyframes crt-flash { 0%, 30% { opacity: 1; } 75% { opacity: .25; } 100% { opacity: 0; } }
@keyframes crt-off { 50% { transform: scale(1, .006); } 85% { transform: scale(.02, .006); } 100% { transform: scale(0, 0); } }
@keyframes crt-flash-off { 45%, 100% { opacity: 1; } }
@keyframes crt-flicker { 50% { opacity: .96; } }
@keyframes crt-roll { to { top: 100%; } }
@media (max-width: 560px) {
  .crt-tv { padding: 14px 14px 10px; border-radius: 22px; gap: 10px; }
  .crt-screen { width: 86vw; }
}

/* Écran plat « HD ready » (taper « 360 ») : dalle 16:9 des années 2007, cadre noir laqué, bandeau argenté, pied,
   noirs un peu gris et fuites de rétroéclairage dans les coins ; allumage et extinction en fondu */
.lcd { padding: 0; border: 0; background: none; color: #e6e9ee; overflow: visible; max-width: none; max-height: none; }
.lcd::backdrop { background: rgba(3, 4, 6, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lcd-tv { display: grid; justify-items: center; }
.lcd-bezel {
  padding: 18px 18px 0; border-radius: 12px;
  background: linear-gradient(180deg, #24262b, #0c0d10 46%, #050506);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 0 0 1px #2c2f35, 0 40px 90px -30px #000;
}
.lcd-screen {
  position: relative; width: min(88vw, 960px, calc((100dvh - 190px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; box-shadow: 0 0 0 2px #000, 0 0 0 3px #1d1f23;
}
.lcd-screen::before { content: ""; position: absolute; inset: 0; background: #15171c; opacity: 0; animation: lcd-backlight .5s ease-out both; } /* rétroéclairage : noir « gris » */
.lcd-picture { position: absolute; inset: 0; animation: lcd-on .7s .3s ease-out both; }
/* Lecteur toujours à sa taille « ordinateur » (écran de 960 px), agrandi de 35 % puis réduit à l'écran réel (--fit, site.js) :
   les incrustations YouTube des bords (titre, « Plus de vidéos », logo) restent hors champ, même sur mobile */
.lcd-picture iframe { position: absolute; top: 50%; left: 50%; width: 1296px; max-width: none; height: 729px; border: 0; transform: translate(-50%, -50%) scale(var(--fit, 1)); pointer-events: none; filter: contrast(.94) brightness(1.05) saturate(1.12); }
.lcd.is-click .lcd-picture iframe { pointer-events: auto; } /* lecture automatique bloquée : clic pour lancer */
.lcd-fx {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .07), transparent 28% 72%, rgba(255, 255, 255, .03)), /* reflet de la dalle brillante */
    radial-gradient(28% 34% at 0 0, rgba(190, 205, 255, .1), transparent), /* fuites de rétroéclairage */
    radial-gradient(28% 34% at 100% 0, rgba(190, 205, 255, .08), transparent),
    radial-gradient(30% 36% at 0 100%, rgba(190, 205, 255, .08), transparent),
    radial-gradient(30% 36% at 100% 100%, rgba(190, 205, 255, .1), transparent),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); /* grille des pixels */
  mix-blend-mode: screen;
}
.lcd-osd {
  position: absolute; z-index: 3; top: 6%; left: 5%; display: grid; gap: 4px; padding: 8px 14px;
  border: 1px solid rgba(160, 190, 255, .55); border-radius: 4px; background: linear-gradient(180deg, rgba(30, 60, 140, .85), rgba(12, 28, 80, .85));
  font: 600 clamp(12px, 1.8vw, 18px)/1.1 system-ui, sans-serif; pointer-events: none;
}
.lcd-osd small { font-size: .7em; font-weight: 500; opacity: .8; }
.lcd.is-osd-off .lcd-osd, .lcd.is-off .lcd-osd { display: none; }
.lcd-chin {
  display: flex; align-items: center; gap: 14px; margin-inline: -18px; margin-top: 14px; padding: 10px 18px; border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #d6d9de, #a9aeb5 45%, #c6cad0); /* aluminium brossé */
  color: #3c4048; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.lcd-brand { margin-right: auto; font: 800 .78rem/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; }
.lcd-sticker {
  padding: 3px 8px; border-radius: 4px; background: linear-gradient(180deg, #fafbfc, #dfe2e6); border: 1px solid #8b9099;
  color: #1c1f25; font: 600 .7rem/1 system-ui, sans-serif; letter-spacing: .02em; box-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.lcd-sticker b { font-weight: 900; font-style: italic; }
.lcd-led { width: 7px; height: 7px; border-radius: 50%; background: #5aa8ff; box-shadow: 0 0 8px #5aa8ff; }
.lcd-power { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #8b9099; background: linear-gradient(180deg, #e9ebee, #b7bcc3); color: #3c4048; cursor: pointer; }
.lcd-power:hover { border-color: #2a6fd6; color: #2a6fd6; }
.lcd-power svg { width: 16px; height: 16px; }
.lcd-stand { width: 9%; height: 22px; background: linear-gradient(90deg, #08090b, #2a2d33 50%, #08090b); } /* col du pied */
.lcd-tv::after { content: ""; width: 34%; height: 12px; border-radius: 50% 50% 6px 6px / 100% 100% 6px 6px; background: linear-gradient(180deg, #2f3238, #0b0c0e); box-shadow: 0 14px 30px -10px #000; } /* socle */
.lcd.is-off .lcd-picture { animation: lcd-off .22s ease-in both; }
.lcd.is-off .lcd-screen::before { animation: lcd-backlight-off .4s .15s ease-in both; }
.lcd.is-off .lcd-led { background: #e0442f; box-shadow: 0 0 8px #e0442f; } /* veille */
@keyframes lcd-backlight { to { opacity: 1; } }
@keyframes lcd-backlight-off { from { opacity: 1; } to { opacity: 0; } }
@keyframes lcd-on { from { opacity: 0; } }
@keyframes lcd-off { to { opacity: 0; } }
@media (max-width: 560px) {
  .lcd-bezel { padding: 10px 10px 0; border-radius: 8px; }
  .lcd-screen { width: 90vw; }
  .lcd-chin { margin-inline: -10px; margin-top: 10px; padding: 8px 10px; gap: 10px; border-radius: 0 0 8px 8px; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  /* Exception : le « drift », déclenché par le visiteur lui-même, garde un mouvement court et léger */
  .drift.is-drifting .drift-word { animation: drift-soft 1.4s ease-in-out !important; }
  /* Télé « ps1 » : allumage et extinction en simple fondu blanc (sans repliement de l'image ni scintillement) */
  .crt-picture::after { animation: crt-flash .7s ease-out both !important; }
  .crt.is-off .crt-picture::after { animation: crt-flash-off .3s both !important; }
  /* Écran plat « 360 » : déjà un simple fondu, raccourci */
  .lcd-screen::before { animation: lcd-backlight .3s ease-out both !important; }
  .lcd-picture { animation: lcd-on .4s .2s ease-out both !important; }
  .lcd.is-off .lcd-picture { animation: lcd-off .2s ease-in both !important; }
  .lcd.is-off .lcd-screen::before { animation: lcd-backlight-off .25s .1s ease-in both !important; }
}
