/* ==========================================================
   iDoctor — landing page claire (blanc, anthracite, rouge en accent)
   Système décrit dans DESIGN.md (même dossier).
   Règle 60-30-10 : blanc cassé / gris anthracite / rouge iDoctor.
   ========================================================== */

:root {
  --canvas: #fcfcfb;          /* blanc cassé neutre, jamais #fff pur en fond de page */
  --surface: #f3f3f1;         /* sections alternées */
  --surface-raised: #ffffff;  /* cartes posées sur une surface */
  --hairline: #e3e3df;
  --input-border: #cfcfca;
  --input-border-hover: #a3a39e;
  --text: #1d1d1f;            /* anthracite, plus doux que le noir pur */
  --text-muted: #5c5c60;      /* AA sur canvas et surface */
  --accent: #d42a25;          /* fonds : boutons (texte blanc, contraste AA) */
  --accent-hover: #b8221e;
  --accent-text: #c4231e;     /* rouge lisible sur fond clair : mots en valeur, icônes, liens */
  --accent-soft: rgba(212, 42, 37, .07);
  --on-accent: #ffffff;
  --error: #b42318;
  --success: #1f7a4a;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Jost", system-ui, sans-serif;

  --radius: 6px;
  --container: 1280px;
  --gutter: 16px;
  --section-y: 88px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --section-y: 128px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em, .statement-text em {
  font-style: normal;
  color: var(--accent-text);
}

h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }

p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }

.muted { color: var(--text-muted); max-width: 52ch; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

.eyebrow {
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: var(--text);
  line-height: 1;
  font-size: 34px;            /* pilote toute la taille du logo */
}
.logo-word {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1em;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
}
.logo-o {
  display: inline-block;
  height: .79em;
  width: .58em;
  margin-inline: .01em;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  overflow: visible;
}
.logo-o path, .logo-o line { stroke: var(--accent-text); }
.logo-o--cap { height: .895em; }
.logo-o--cap circle { stroke: currentColor; }
.logo-o--cap .cap { fill: var(--accent-text); stroke: none; }
.logo-o--cap .cross { fill: var(--canvas); stroke: none; }
.logo-sub {
  font-weight: 500;
  font-size: .27em;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-top: .32em;
  margin-right: -.5em;        /* compense l'espacement de la dernière lettre */
  text-align: center;
}
.logo-tag {
  font-weight: 400;
  font-size: .205em;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .35em;
  text-align: center;
  white-space: nowrap;
}
.logo--footer { font-size: 44px; }

/* ---------- Bannière de fermeture (ajoutée par horaires.js, au-dessus de la navigation) ---------- */
.closure-banner {
  background: var(--accent);
  color: var(--on-accent);
  font-size: .95rem;
  line-height: 1.45;
}
.closure-banner p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  text-align: center;
  text-wrap: balance;
}
.closure-banner i { font-size: 1.15em; vertical-align: -.18em; margin-right: 8px; }
.closure-banner strong { font-weight: 600; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 10px;
}
.nav .logo { font-size: 84px; transition: font-size .3s var(--ease); }   /* logo doublé en haut de page */
.nav.is-scrolled .logo { font-size: 46px; }                                  /* réduit dès qu'on défile, pour garder de la place */
.nav .logo-tag { display: none; }

.nav-links { display: flex; gap: 28px; }
.nav-links a, .nav-phone {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; }

@media (hover: hover) {
  .nav-links a:hover, .nav-phone:hover { color: var(--text); }
}

.nav-links a, .nav-phone { white-space: nowrap; }
@media (max-width: 1279px) {
  .nav-links { gap: 20px; }
  .nav-phone span { display: none; }   /* entre 1080 et 1280 px : icône seule, pour laisser la place au menu */
}
@media (max-width: 1080px) { .nav-links { display: none; } }
@media (max-width: 640px) {
  .nav-phone span { display: none; }
  .nav .logo { font-size: 42px; }
  .nav.is-scrolled .logo { font-size: 38px; }
}
@media (max-width: 420px) {
  .nav-cta .btn { padding-inline: 14px; font-size: .9rem; }   /* laisse la place au logo agrandi */
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 500 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s var(--ease);
  user-select: none;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: transparent; border-color: var(--hairline); color: var(--text); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-secondary:hover { border-color: var(--accent-text); color: var(--accent-text); }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  font-weight: 500;
  text-decoration: none;
  margin-top: 20px;
}
.link i { transition: transform .3s var(--ease); }
@media (hover: hover) { .link:hover i { transform: translateX(4px); } }

/* ---------- Hero ---------- */
.hero { padding-block: 48px 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 64px;
  align-items: center;
  min-height: calc(100dvh - var(--nav-h) - 120px);
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero .lead {
  margin-top: 24px;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.status.is-open .status-dot { background: var(--success); }
.status.is-closed .status-dot { background: var(--accent-text); }

/* ---------- Estimateur ---------- */
.estimator {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 22px;
}
.est-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.est-title {
  font-size: 1.05rem;
  font-stretch: 100%;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.est-title i { color: var(--accent-text); font-size: 1.3rem; }
.est-badge {
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 4px 10px;
}

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend {
  font-weight: 500;
  font-size: .9rem;
  color: var(--text);
  padding: 0;
  margin-bottom: 8px;
}
.field > label { margin-bottom: 0; }

select, input:not([type="checkbox"]):not([type="radio"]), textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--canvas);
  color: var(--text);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  font: 400 1rem/1.4 var(--font-body);  /* 16px minimum : pas de zoom auto sur iOS */
  transition: border-color .2s, box-shadow .2s;
}
select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235c5c60' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
select option, select optgroup { background: var(--surface); color: var(--text); }
textarea { resize: vertical; min-height: 140px; }
@media (hover: hover) {
  select:hover, input:not([type="checkbox"]):hover, textarea:hover { border-color: var(--input-border-hover); }
}
select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Puces et sélecteur segmenté : radio masqué + label */
.chips, .segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented { flex-wrap: nowrap; }
.chip input, .seg input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.chip label, .seg label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
  user-select: none;
}
.seg { flex: 1; }
.seg label { width: 100%; justify-content: center; text-align: center; line-height: 1.15; }
.chip input:checked + label, .seg input:checked + label {
  border-color: var(--accent-text);
  background: var(--accent-soft);
  color: var(--text);
}
.chip input:focus-visible + label, .seg input:focus-visible + label {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}
.chip input:disabled + label, .seg input:disabled + label {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}
@media (hover: hover) {
  .chip input:not(:disabled):not(:checked) + label:hover,
  .seg input:not(:disabled):not(:checked) + label:hover { border-color: var(--input-border-hover); color: var(--text); }
}

#est-quality-wrap[hidden] { display: none; }

.est-result {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}
.est-label { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.est-price {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.est-price.is-na { font-size: 2rem; color: var(--text-muted); }
.est-price.is-na .est-cur { display: none; }
.est-cur { color: var(--accent-text); margin-left: .08em; }
.est-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: .9rem;
  color: var(--text-muted);
}
.est-meta i { color: var(--accent-text); }
.est-meta .sep { width: 1px; height: 14px; background: var(--hairline); margin-inline: 8px; }
.est-note { font-size: .85rem; color: var(--text-muted); }
.est-note a { color: var(--accent-text); }

/* Type d'appareil, marque et modèle */
.estimator [hidden] { display: none !important; }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.field-row:has(#est-model-wrap[hidden]) { grid-template-columns: 1fr; }
.segmented--types .seg label { flex-direction: column; gap: 4px; min-height: 64px; padding-block: 10px; }
.segmented--types .seg label i { font-size: 1.4rem; color: var(--text-muted); transition: color .2s; }
.segmented--types .seg input:checked + label i { color: var(--accent-text); }
.est-priced { display: grid; gap: 22px; }
.est-remark { margin-top: 8px; font-size: .85rem; color: var(--text-muted); }
.est-devis {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--hairline);
}
.est-devis p { color: var(--text); font-size: .95rem; }
@media (max-width: 400px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Faits ---------- */
.facts { border-block: 1px solid var(--hairline); }
.facts-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.facts-list li {
  padding: 32px 24px;
  display: grid;
  gap: 6px;
}
.facts-list li + li { border-left: 1px solid var(--hairline); }
.facts-list strong {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 750;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.facts-list span { color: var(--text-muted); font-size: .95rem; }

/* ---------- Lampe : le tube descend au défilement ----------
   Une seule photo, découpée en trois couches par clip-path :
   fils (0 à 6,25 %, étirés), tube (6,25 à 18,3 %, translaté), base (le reste).
   --p va de 0 à 1 pendant la traversée de la section (main.js). */
.lamp {
  --p: 0;
  --lamp-bg: #06070c;           /* noir mesuré sur la photo (appareils-red-tube.jpg) */
  position: relative;
  height: 160vh;               /* course courte : l'effet se joue sur 60vh de défilement */
  background: var(--lamp-bg);
  border-bottom: 1px solid var(--hairline);
}
.lamp-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.lamp-frame {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: max(100vw, 80svh);   /* sur mobile, la photo déborde des côtés pour garder le téléphone lisible */
  aspect-ratio: 2752 / 1536;
  --cord: #2e2c31;              /* couleur des deux fils de suspension sur la photo */
}
/* Prolonge les fils au-dessus de la photo jusqu'au haut de l'écran (écrans hauts) */
.lamp-frame::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: 100vh;
  background: linear-gradient(90deg,
    transparent calc(22.88% - .75px), var(--cord) calc(22.88% - .75px),
    var(--cord) calc(22.88% + .75px), transparent calc(22.88% + .75px),
    transparent calc(77.03% - .75px), var(--cord) calc(77.03% - .75px),
    var(--cord) calc(77.03% + .75px), transparent calc(77.03% + .75px));
}
.lamp-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.lamp-base {
  clip-path: inset(18.3% 0 0 0);
  filter: brightness(calc(1 + var(--p) * .3));
  /* haut fondu : quand la photo s'éclaircit, son noir ne fait pas de ligne sous le tube ;
     bas fondu : le sol de la photo est un peu plus clair que le fond, on le fond dans le noir */
  -webkit-mask-image: linear-gradient(to bottom, transparent 18.3%, #000 34%, #000 88%, transparent);
          mask-image: linear-gradient(to bottom, transparent 18.3%, #000 34%, #000 88%, transparent);
}
.lamp-cords {
  clip-path: inset(0 0 93.75% 0);
  transform-origin: 50% 0;
  transform: scaleY(calc(1 + var(--p) * 1.12));   /* suit le tube : 6,25 % x 2,12 = 6,25 % + 7 % */
}
.lamp-tube {
  clip-path: inset(6.25% 0 81.7% 0);
  mix-blend-mode: lighten;
  transform: translateY(calc(var(--p) * 7%));      /* part de sa place sur la photo et ne descend qu'un peu */
}
/* La lumière se rapproche : les appareils prennent la lumière rouge du tube.
   Mode « overlay » : le noir reste noir, seules les surfaces des appareils rougissent et s'éclairent. */
.lamp-glow {
  position: absolute;
  left: 0; right: 0;
  top: 18%; bottom: 0;
  background: radial-gradient(ellipse 55% 70% at 50% 55%, rgba(255, 50, 40, .95), rgba(255, 50, 40, 0) 75%);
  mix-blend-mode: overlay;
  opacity: calc(var(--p) * .5);   /* atténué le 28/10 : trop rouge en bas de course */
  pointer-events: none;
}
/* Le halo au sol s'intensifie */
.lamp-pool {
  position: absolute;
  left: 6%; right: 6%;
  top: 42%; bottom: -4%;
  background: radial-gradient(closest-side, rgba(217,43,38,.6), rgba(217,43,38,0));
  mix-blend-mode: screen;
  opacity: calc(var(--p) * .55);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .lamp { height: auto; }
  .lamp-stage { position: relative; height: auto; aspect-ratio: 2752 / 1536; }
  .lamp-frame { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section-head { margin-bottom: 56px; }

/* ---------- Avis clients (avis Google réels, texte non modifié) ---------- */
.section--rule { border-top: 1px solid var(--hairline); }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.reviews-score { display: grid; justify-items: end; text-align: right; gap: 2px; }
.reviews-note { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-stretch: 112%; }
.reviews-note strong { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.reviews-note span { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }
.reviews-count { color: var(--text-muted); font-size: .95rem; }
.reviews-score .link { margin-top: 8px; }
@media (max-width: 767px) { .reviews-score { justify-items: start; text-align: left; } }
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.review {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.review--long { grid-row: span 2; }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 1.05rem; line-height: 1.6; }
.review--long blockquote p {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.review blockquote p::before { content: "« "; color: var(--accent-text); }
.review blockquote p::after { content: " »"; color: var(--accent-text); }
.review figcaption {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.review-name { font-weight: 500; }
.review-src { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-muted); }

/* Mobile : les avis défilent horizontalement */
@media (max-width: 767px) {
  .reviews {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    padding-bottom: 8px;
    align-items: start;
  }
  .review { scroll-snap-align: start; }
  .review--long { grid-row: auto; }
}

/* ---------- Bento services ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}
.tile {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s var(--ease);
}
.tile h3 { margin-top: auto; padding-top: 32px; }
.tile p { color: var(--text-muted); margin-top: 10px; max-width: 46ch; }
.tile-icon { font-size: 1.9rem; color: var(--accent-text); }
.tile--hero {
  grid-column: span 4;
  grid-row: span 2;
  flex-direction: row;
  gap: 24px;
  overflow: hidden;
  position: relative;
}
.tile--hero .tile-body { display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.tile--hero h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.tile--wide { grid-column: span 3; }
.tile-art {
  width: 42%;
  max-width: 240px;
  align-self: center;
  flex-shrink: 0;
}
.art-frame { fill: none; stroke: var(--input-border); stroke-width: 2; }
.art-screen { fill: var(--canvas); stroke: var(--hairline); stroke-width: 1; }
.art-island { fill: var(--surface-raised); }
.art-crack {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 0;
}
.art-dot { fill: var(--accent-text); }
@media (hover: hover) { .tile:hover { border-color: var(--input-border-hover); } }

/* ---------- Déclaration ---------- */
.statement {
  background: var(--surface);
  border-block: 1px solid var(--hairline);
  padding-block: calc(var(--section-y) * .9);
}
.statement-text {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 750;
  font-size: clamp(1.9rem, 4.4vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-left: auto;
  text-wrap: balance;
}

/* ---------- Déroulé ---------- */
.process {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.process-head { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 20px; }
.process-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-block: 32px;
  border-top: 1px solid var(--hairline);
}
.process-list li:last-child { border-bottom: 1px solid var(--hairline); }
.process-list i { font-size: 1.8rem; color: var(--accent-text); padding-top: 2px; }
.process-list h3 { font-size: 1.7rem; }
.process-list p { color: var(--text-muted); margin-top: 8px; max-width: 46ch; }

/* ---------- Seconde vie ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hairline);
}
.split article { padding: 40px 40px 8px 0; }
.split article + article { padding-left: 40px; border-left: 1px solid var(--hairline); }
.split-icon { font-size: 2rem; color: var(--accent-text); margin-bottom: 24px; display: block; }
.split h3 { font-size: 1.6rem; }
.split p { color: var(--text-muted); margin-top: 12px; max-width: 48ch; }

/* ---------- Professionnels ---------- */
.pros {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 48px;
  align-items: end;
  padding: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(212, 42, 37, .07) 22px 23px),
    var(--surface-raised);
}
.pros h2 { margin-bottom: 20px; }
.pros-side { display: grid; gap: 24px; justify-items: start; }
.pros-zones { display: flex; gap: 10px; color: var(--text-muted); }
.pros-zones i { color: var(--accent-text); font-size: 1.2rem; margin-top: 3px; }

/* ---------- Montage PC gaming (accueil) ---------- */
.lead a { color: var(--accent-text); text-underline-offset: 3px; }
.gaming {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 64px;
  align-items: center;
}
.gaming h2 { margin-bottom: 20px; }
.gaming-lead { color: var(--text-muted); max-width: 58ch; }
.gaming-list { display: grid; gap: 12px; margin-top: 28px; }
.gaming-list li { display: flex; gap: 12px; color: var(--text-muted); max-width: 60ch; }
.gaming-list i { color: var(--accent-text); font-size: 1.25rem; margin-top: 3px; flex-shrink: 0; }
.gaming-list strong { color: var(--text); font-weight: 500; }
.gaming-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.gaming-tags li {
  font-size: .85rem;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text-muted);
}
.gaming-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.gaming-note { color: var(--text-muted); font-size: .9rem; margin-top: 14px; }
.gaming-art { width: 100%; max-width: 320px; justify-self: center; }
.gaming .pc-lights { margin-top: 0; width: 100%; max-width: 380px; justify-self: center; }
.gaming-fan { fill: none; stroke: var(--input-border); stroke-width: 1.5; }
.gaming-ram { fill: var(--accent-text); opacity: .85; }
.gaming-glow { stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .js .gaming-art .gaming-cable { stroke-dashoffset: 420; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
  .js .gaming-art.is-in .gaming-cable { stroke-dashoffset: 0; }
}
@media (max-width: 900px) {
  .gaming { grid-template-columns: 1fr; gap: 40px; }
  .gaming-art { max-width: 150px; justify-self: start; order: -1; }
  .gaming .pc-lights { max-width: 280px; justify-self: start; order: -1; }
}

/* ---------- Magasin ---------- */
.store {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.store-address {
  margin-top: 28px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
}
.store-access { margin-top: 24px; display: grid; gap: 12px; color: var(--text-muted); }
.store-access li { display: flex; gap: 12px; }
.store-access i { color: var(--accent-text); font-size: 1.2rem; margin-top: 3px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hours table { width: 100%; border-collapse: collapse; }
.hours caption {
  text-align: left;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.3rem;
  padding-bottom: 16px;
}
.hours th, .hours td {
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  text-align: left;
  font-weight: 400;
}
.hours td { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--hairline); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--text); font-weight: 500; }
.hours tr.is-today th::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-text);
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq-list details { border-top: 1px solid var(--hairline); }
.faq-list details:last-child { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-weight: 500;
  font-size: 1.1rem;
  min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 1.6px solid var(--accent-text);
  border-bottom: 1.6px solid var(--accent-text);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-list details p { color: var(--text-muted); padding-bottom: 24px; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.contact h2 { margin-bottom: 20px; }
.contact-direct { margin-top: 32px; display: grid; gap: 12px; }
.contact-direct li { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.contact-direct i { color: var(--accent-text); font-size: 1.3rem; }
.contact-direct a { text-decoration: none; }
@media (hover: hover) { .contact-direct a:hover { color: var(--accent-text); } }

.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.optional { color: var(--text-muted); font-weight: 400; font-size: .85em; margin-left: 4px; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input {
  width: 20px; height: 20px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}
.field--check label { font-weight: 400; color: var(--text-muted); }
.field--check .error { grid-column: 2; }
.error { color: var(--error); font-size: .88rem; }
.is-invalid { border-color: var(--error) !important; }
.contact-form .btn { justify-self: start; }
.form-success {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(31, 122, 74, .07);
  border: 1px solid rgba(31, 122, 74, .25);
  color: var(--success);
}
.form-success[hidden] { display: none; }

/* ---------- Pied de page ----------
   Seul bloc sombre de la page : il « pose » le bas du site.
   Les jetons sont redéfinis localement, le logo et les liens suivent. */
.footer {
  --canvas: #161618;
  --text: #f0efec;
  --text-muted: #a6a5a2;
  --hairline: #2c2c30;
  --accent-text: #ff5d55;
  background: var(--canvas);
  color: var(--text);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-title {
  font-family: var(--font-body);
  font-stretch: 100%;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer address, .footer p, .footer li { color: var(--text-muted); line-height: 1.9; }
.footer a { text-decoration: none; }
.footer ul a { display: inline-flex; align-items: center; gap: 8px; }
@media (hover: hover) { .footer a:hover { color: var(--text); } }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid var(--hairline);
  font-size: .9rem;
}

/* ---------- Bouton WhatsApp flottant (toutes les pages) ----------
   Vert WhatsApp volontairement : le visiteur doit reconnaître l'appli d'un coup d'œil.
   Seule exception à la règle « un seul rouge ». */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 70;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:active { transform: scale(.94); }
.wa-glyph { width: 32px; height: 32px; fill: currentColor; }   /* logo officiel WhatsApp (bulle + combiné) */
@media (hover: hover) { .wa-float:hover { background: #1ebe5b; transform: scale(1.06); } }
@media (max-width: 767px) {
  /* au-dessus de la barre « Appeler / Itinéraire / Tarifs » */
  .wa-float { right: 16px; bottom: calc(57px + 16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .wa-float .wa-glyph { width: 30px; height: 30px; }
}
@media print { .wa-float { display: none; } }

/* ---------- Barre d'actions mobile ---------- */
.quickbar { display: none; }

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-in {
    opacity: 0;
    transform: translateY(16px);
    animation: rise .9s var(--ease) forwards;
  }
  .js .hero-in:nth-child(1) { animation-delay: .05s; }
  .js .hero-in:nth-child(2) { animation-delay: .16s; }
  .js .hero-in:nth-child(3) { animation-delay: .27s; }
  .js .hero-in:nth-child(4) { animation-delay: .38s; }
  .js .estimator.hero-in { animation-delay: .45s; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Les LED du PC gaming s'allument en douceur quand la tour est bien visible, une seule fois */
  .js .pc-lights .pc-on { opacity: 0; }
  .js .pc-lights.lights-on .pc-on { animation: pc-lights-on 2.4s cubic-bezier(.45, 0, .25, 1) forwards; }

  /* La fissure se dessine quand la tuile apparaît */
  .js .tile--hero .art-crack { stroke-dashoffset: 420; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
  .js .tile--hero.is-in .art-crack { stroke-dashoffset: 0; }

  .est-price.is-updating { animation: bump .35s var(--ease); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes bump { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 24px; }
  .hero-grid, .process, .store, .faq, .contact, .pros { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { min-height: 0; }
  .process-head { position: static; }
  .pros { padding: 32px 24px; }
  .facts-list { grid-template-columns: 1fr 1fr; }
  .facts-list li:nth-child(3) { border-left: 0; }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile--hero, .tile--wide { grid-column: auto; grid-row: auto; }
  .tile--hero { flex-direction: column; }
  .tile-art { width: 100%; max-width: 160px; align-self: flex-start; order: -1; }
  .tile h3 { padding-top: 24px; }
  .split { grid-template-columns: 1fr; }
  .split article, .split article + article { padding: 32px 0 8px; border-left: 0; }
  .split article + article { border-top: 1px solid var(--hairline); }
  .form-row { grid-template-columns: 1fr; }
  .statement-text { margin-left: 0; }
  .estimator { padding: 20px; }

  .quickbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .quickbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 0;
    min-height: 56px;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
  }
  .quickbar a:first-child { color: var(--accent-text); }
  .quickbar i { font-size: 1.35rem; }
  body { padding-bottom: calc(57px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  .seg label { padding-inline: 8px; font-size: .85rem; }
  .facts-list { grid-template-columns: 1fr; }
  .facts-list li { border-left: 0 !important; }
  .facts-list li + li { border-top: 1px solid var(--hairline); }
}

/* ==========================================================
   Pages intérieures (tarifs, services, magasin)
   Mêmes jetons que l'accueil : blanc cassé, filets, un seul rouge.
   ========================================================== */

/* ---------- Fil d'Ariane ---------- */
.crumbs { padding-top: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--text-muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--input-border); }
.crumbs a { text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--accent-text); } }
.crumbs [aria-current] { color: var(--text); }

/* ---------- Ouverture de page ---------- */
.page-head { padding-block: 40px 72px; border-bottom: 1px solid var(--hairline); }
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 64px;
  align-items: end;
}
.page-head h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.page-head .lead { margin-top: 24px; font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; }
.page-head .hero-actions { margin-top: 32px; }
.page-facts { display: grid; border-top: 1px solid var(--hairline); }
.page-facts li { display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--hairline); color: var(--text-muted); }
.page-facts i { color: var(--accent-text); font-size: 1.2rem; transform: translateY(2px); }
.page-facts strong { color: var(--text); font-weight: 500; }

/* ---------- Texte courant ---------- */
.prose { max-width: 68ch; display: grid; gap: 18px; }
.prose p { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent-text); }
.prose h2 { margin-bottom: 8px; }
.prose h3 { margin-top: 16px; }
.prose ul { display: grid; gap: 10px; }
.prose li { display: flex; gap: 12px; color: var(--text-muted); }
.prose li i { color: var(--accent-text); font-size: 1.15rem; margin-top: 4px; flex-shrink: 0; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.two-col > :first-child { position: sticky; top: calc(var(--nav-h) + 40px); }

/* Page montage PC gaming : titre en haut à gauche, puis la photo et la liste côte à côte, la liste centrée sur la photo */
.pc-build {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  column-gap: 64px;
  row-gap: 0;
  align-items: center;
}
.pc-build > h2 { grid-column: 1 / -1; }
.pc-build .pc-lights { grid-column: 1; }
.pc-build > .prose { grid-column: 2; }

/* ---------- Tableaux de prix ---------- */
.price-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.price-search { display: grid; gap: 8px; width: min(100%, 360px); }
.price-search label { font-weight: 500; font-size: .9rem; }
.price-legend { font-size: .88rem; color: var(--text-muted); max-width: 52ch; }

.price-group { border-top: 1px solid var(--hairline); }
.price-group:last-of-type { border-bottom: 1px solid var(--hairline); }
.price-group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  min-height: 44px;
}
.price-group > summary::-webkit-details-marker { display: none; }
.price-group > summary h2, .price-group > summary h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
}
.price-group > summary .count { color: var(--text-muted); font-size: .9rem; margin-left: auto; white-space: nowrap; }
.price-group > summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-right: 1.6px solid var(--accent-text);
  border-bottom: 1.6px solid var(--accent-text);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s var(--ease);
}
.price-group[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.price-group[hidden] { display: none; }

.table-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface-raised);
}
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.price-table th, .price-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.price-table thead th {
  font-weight: 500;
  font-size: .82rem;
  color: var(--text-muted);
  background: var(--surface);
  vertical-align: bottom;
  white-space: normal;
  min-width: 96px;
  line-height: 1.3;
}
.price-table th[scope="row"], .price-table thead th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
}
.price-table th[scope="row"] { background: var(--surface-raised); font-weight: 500; color: var(--text); white-space: normal; min-width: 180px; }
.price-table thead th:first-child { z-index: 2; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td { font-variant-numeric: tabular-nums; color: var(--text); }
.price-table td.na { color: var(--input-border); }
.price-table td.devis { color: var(--text-muted); font-size: .88rem; }
.price-table .from { color: var(--text-muted); font-size: .82em; margin-right: 4px; }
.price-table tr[hidden] { display: none; }
@media (hover: hover) {
  .price-table tbody tr:hover th, .price-table tbody tr:hover td { background: var(--surface); }
}
.filter-empty { padding: 24px 0; color: var(--text-muted); }
.filter-empty[hidden] { display: none; }

/* ---------- Liens vers les autres pages ---------- */
.link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--hairline); }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  font-weight: 500;
}
.link-list a span { display: grid; gap: 2px; }
.link-list a small { color: var(--text-muted); font-weight: 400; font-size: .9rem; }
.link-list a i { color: var(--accent-text); transition: transform .3s var(--ease); }
@media (hover: hover) { .link-list a:hover { color: var(--accent-text); } .link-list a:hover i { transform: translateX(4px); } }

/* Bandeau d'appel en bas de page */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 32px;
  align-items: end;
  padding: 48px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(212, 42, 37, .07) 22px 23px),
    var(--surface-raised);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.cta-band p { margin-top: 14px; }
.cta-band .hero-actions { margin-top: 0; }

@media (max-width: 900px) {
  .page-head-grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .pc-build { grid-template-columns: 1fr; row-gap: 32px; }
  .pc-build .pc-lights, .pc-build > .prose { grid-column: 1; }
  .two-col > :first-child { position: static; }
  .cta-band { grid-template-columns: 1fr; padding: 32px 24px; }
}
@media (max-width: 767px) {
  .page-head { padding-block: 24px 56px; }
  .price-table th, .price-table td { padding: 10px 12px; }
  .price-table th[scope="row"] { min-width: 140px; }
}
.page-head + .section { padding-top: 64px; }
.table-note { margin: -16px 0 28px; }

/* ---------- Texte juridique (conditions générales) ---------- */
.toc { display: grid; gap: 2px; margin-top: 28px; font-size: .92rem; }
.toc a { display: block; padding: 6px 0; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--hairline); }
@media (hover: hover) { .toc a:hover { color: var(--accent-text); } }
.legal { max-width: 72ch; display: grid; gap: 14px; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 32px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 12px; }
.legal p, .legal li { color: var(--text-muted); font-size: .98rem; }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.legal .note { padding: 16px 20px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.legal .note a { color: var(--accent-text); }
@media (max-width: 900px) { .toc { display: none; } }

/* ---------- Formulaire : piège à robots et message d'erreur ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  display: flex; gap: 10px; align-items: center; padding: 16px;
  border-radius: var(--radius); background: rgba(180, 35, 24, .06);
  border: 1px solid rgba(180, 35, 24, .25); color: var(--error);
}
.form-error[hidden] { display: none; }

/* Estimateur : 4 types d'appareil (Téléphone, Tablette, Ordinateur, Console) sur 2 lignes sur mobile */
@media (max-width: 560px) {
  .segmented--types { flex-wrap: wrap; }
  .segmented--types .seg { flex: 1 1 calc(50% - 4px); }
}

/* PC gaming (accueil et page montage) : photo LED éteintes + photo LED allumées superposées, fond transparent */
.pc-lights { position: relative; margin-top: 40px; max-width: 440px; }
.pc-lights img { display: block; width: 100%; height: auto; }
.pc-lights .pc-on { position: absolute; inset: 0; }
@keyframes pc-lights-on {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Photos des pages intérieures (page carte mère) : colonne de gauche sous le titre */
.photo { margin: 32px 0 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.photo figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
@media (min-width: 900px) { .two-col .photo { max-width: 460px; } }

/* ---------- Bandeau cookies (cookies.js) : Accepter et Refuser au même niveau, comme l'exige l'APD ---------- */
.cookie-bar {
  position: fixed; z-index: 80; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  max-width: 520px; padding: 20px; display: grid; gap: 14px;
  background: var(--surface-raised); color: var(--text);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
  font-size: 15px; line-height: 1.5;
}
.cookie-bar p { margin: 0; color: var(--text-muted); }
.cookie-bar strong { color: var(--text); }
.cookie-bar a { color: var(--accent-text); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1 1 140px; justify-content: center; }
@media (max-width: 767px) {
  .cookie-bar { left: 12px; right: 12px; max-width: none; bottom: calc(57px + 12px + env(safe-area-inset-bottom)); }
}
@media print { .cookie-bar { display: none; } }
