/* ==============================================================================
   REFONTE VISUELLE 2026 (v2) : « Brique & papier »
   Direction éditoriale et artisanale : papier chaud, encre, rouge brique
   (clin d'œil à la brique toulousaine), orange du logo, émeraude.
   Aplats nets, bordures d'encre, ombres décalées façon impression, titres serif.
   Aucun flou, aucune image : tout est en CSS, animations limitées à
   transform / opacity pour rester légères.
   Couche chargée après main.css : pour revenir à l'ancien design, retirer le
   <link> vers refonte.css dans les pages.
   ============================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2');
}

:root {
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Papier et encre */
  --bg-body: #F8F3EA;
  --bg-primary: #F8F3EA;
  --bg-surface: #FFFDF8;
  --text-main: #1C1714;
  --text-body: #4A423B;
  --text-muted: #6E655C;
  --border-color: #E3D9CA;
  --border-subtle: #E3D9CA;
  --border-focus: #C9BAA4;
  --edge: #1C1714;                 /* trait d'encre : bordures et ombres décalées */

  /* Rouge brique (remplace l'indigo) */
  --color-primary: #B8352B;
  --accent-web: #B8352B;
  --accent-web-text: #A52C23;
  --accent-web-light: #F7E3DD;
  --on-accent: #FFFFFF;

  /* Émeraude et orange conservés */
  --color-accent: #14D6B5;
  --accent-sys: #14D6B5;
  --accent-sys-text: #0B7A6A;
  --accent-sys-light: #DDF1EA;
  --accent-cta: #F59A23;
  --accent-cta-hover: #E88A10;
  --cta-text: #1C1714;

  --grad-text: linear-gradient(var(--accent-web-text), var(--accent-web-text));
  --bg-inverse: #1C1210;
  --grid-line: rgba(28, 23, 20, 0.04);
  --glass: rgba(248, 243, 234, 0.92);
  --card-highlight: transparent;

  --radius: 12px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Motif brique (SVG minuscule, ~250 octets, jamais téléchargé à part) */
  --brick-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Cpath d='M0 .5H32M0 8.5H32M.5 0V8M16.5 0V8M8.5 8V16M24.5 8V16' stroke='%23F8F3EA' stroke-opacity='.28' fill='none'/%3E%3C/svg%3E");
  --brick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16'%3E%3Cpath d='M0 .5H32M0 8.5H32M.5 0V8M16.5 0V8M8.5 8V16M24.5 8V16' stroke='%23B8352B' stroke-opacity='.4' fill='none'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-body: #15100E;
    --bg-primary: #15100E;
    --bg-surface: #1F1815;
    --text-main: #F6EFE6;
    --text-body: #D8CEC2;
    --text-muted: #A39789;
    --border-color: #3A2F29;
    --border-subtle: #3A2F29;
    --border-focus: #5A4A40;
    --edge: #B5A494;
    --accent-web: #F28B7D;
    --accent-web-text: #F59B8E;
    --accent-web-light: rgba(242, 139, 125, 0.14);
    --on-accent: #1C0F0C;
    --accent-sys-light: rgba(20, 214, 181, 0.12);
    --accent-sys-text: #2FE0C2;
    --bg-inverse: #0D0908;
    --grid-line: rgba(255, 255, 255, 0.04);
    --glass: rgba(21, 16, 14, 0.92);
  }
}

:root[data-theme="dark"] {
  --bg-body: #15100E;
  --bg-primary: #15100E;
  --bg-surface: #1F1815;
  --text-main: #F6EFE6;
  --text-body: #D8CEC2;
  --text-muted: #A39789;
  --border-color: #3A2F29;
  --border-subtle: #3A2F29;
  --border-focus: #5A4A40;
  --edge: #B5A494;
  --accent-web: #F28B7D;
  --accent-web-text: #F59B8E;
  --accent-web-light: rgba(242, 139, 125, 0.14);
  --on-accent: #1C0F0C;
  --accent-sys-light: rgba(20, 214, 181, 0.12);
  --accent-sys-text: #2FE0C2;
  --bg-inverse: #0D0908;
  --grid-line: rgba(255, 255, 255, 0.04);
  --glass: rgba(21, 16, 14, 0.92);
}

/* --- Typographie --- */
body { line-height: 1.65; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { letter-spacing: -0.01em; }

.hero-subtitle { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); max-width: 60ch; }
.section-desc { font-size: 1.0625rem; max-width: 62ch; }
.section-header.text-center .section-desc { margin-left: auto; margin-right: auto; }

::selection { background: var(--accent-web); color: var(--on-accent); }

/* Étiquettes et petits intitulés : texte sans serif */
.footer-heading, .step-number, .sim legend, .milestone-label, .badge { font-family: var(--font-body); }

/* Numérotation éditoriale des sections (décorative) */
body { counter-reset: sec; }
.section-header h2::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero) " /";
  content: counter(sec, decimal-leading-zero) " /" / "";
  display: block;
  margin-bottom: 10px;
  font: 700 0.75rem/1 var(--font-body);
  letter-spacing: 0.16em;
  color: var(--accent-web-text);
}

.section-header.text-center h2::before { text-align: center; }

/* --- Barre haute --- */
.topbar { background: var(--bg-inverse); border-bottom: 0; color: #F8F3EA; }
.topbar-notice { letter-spacing: 0.02em; }

/* --- En-tête : papier, trait d'encre au défilement, barre de progression --- */
.site-header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 200ms var(--ease);
}

.site-header.is-scrolled { box-shadow: none; border-bottom-color: var(--edge); }

.nav-container { gap: var(--space-sm); }
.nav-menu { gap: 4px; }
.theme-toggle { margin-left: 0; border-radius: 8px; border-width: 1.5px; border-color: var(--edge); }
.theme-toggle:hover { background: var(--accent-web-light); color: var(--accent-web-text); border-color: var(--edge); }
.mobile-nav-toggle { border-radius: 8px; border: 1.5px solid var(--edge); }

@media (max-width: 1440px) { .brand-tag { display: none; } }

.nav-link {
  border-radius: 0;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-body);
  background-image: linear-gradient(var(--accent-web), var(--accent-web));
  background-repeat: no-repeat;
  background-position: 12px calc(100% - 2px);
  background-size: 0 2px;
  transition: background-size 250ms var(--ease), color 150ms ease-out;
}

.nav-link:hover { background-color: transparent; color: var(--text-main); background-size: calc(100% - 24px) 2px; }
.nav-link.active { background-color: transparent; color: var(--text-main); font-weight: 600; border-bottom: 0; background-size: calc(100% - 24px) 2px; }

@media (max-width: 1180px) {
  .nav-menu { border-radius: 0; box-shadow: 0 6px 0 var(--edge); background-color: var(--bg-primary); border-bottom: 1px solid var(--edge); }
  .nav-link { padding: 14px 0; background-image: none; }
}

@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--accent-web);
    transform-origin: left;
    transform: scaleX(0);
    animation: read-progress linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
}

@keyframes read-progress { to { transform: scaleX(1); } }

/* --- Boutons : trait d'encre + ombre décalée, façon sérigraphie --- */
.btn {
  border-radius: 8px;
  border: 2px solid var(--edge);
  padding: 12px 22px;
  box-shadow: 3px 3px 0 var(--edge);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), background-color 150ms ease-out, color 150ms ease-out;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--edge); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--edge); }
.btn-lg { padding: 15px 30px; font-size: 1.0625rem; }
.btn-sm { padding: 8px 16px; }

.btn-cta { background: var(--accent-cta); color: #1C1714; border-color: var(--edge); }
.btn-cta:hover { background: var(--accent-cta); color: #1C1714; filter: none; }

.btn-web { background: var(--accent-web); color: var(--on-accent); border-color: var(--edge); }
.btn-web:hover { background: var(--accent-web); color: var(--on-accent); }

.btn-sys { border-color: var(--edge); }
.btn-sys:hover { filter: none; }

.btn-secondary { background: var(--bg-surface); color: var(--text-main); border-color: var(--edge); }
.btn-secondary:hover { background: var(--accent-web-light); color: var(--text-main); border-color: var(--edge); }

.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { background: transparent; box-shadow: none; transform: none; color: var(--accent-web-text); }
.btn-ghost:active { transform: none; box-shadow: none; }

/* Supprime le reflet « shimmer » hérité */
.btn-cta::after, .btn-primary::after { display: none; }

/* --- Sections --- */
.section { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); border-bottom: 0; }
.section--page-top { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.section.bg-surface { background-color: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section-header { margin-bottom: clamp(32px, 5vw, 56px); }

.badge {
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1.5px solid var(--edge);
  background: var(--bg-surface);
  color: var(--text-main);
}

.badge-web { background: var(--accent-web-light); color: var(--accent-web-text); border-color: var(--accent-web); }
.badge-sys { background: var(--accent-sys-light); color: var(--accent-sys-text); border-color: var(--accent-sys-text); }
.badge-featured { background: #FCE3BC; color: #6B3A04; border-color: #6B3A04; }
.badge-neutral { background: var(--bg-surface); color: var(--text-body); border-color: var(--border-focus); }

/* --- HÉROS : papier + motif brique en filigrane --- */
.hero-hub {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 104px);
  background-color: var(--bg-primary);
  background-image: none;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--brick);
  -webkit-mask-image: linear-gradient(105deg, transparent 38%, rgba(0, 0, 0, 0.9) 100%);
  mask-image: linear-gradient(105deg, transparent 38%, rgba(0, 0, 0, 0.9) 100%);
  opacity: 0.55;
  animation: none;
  filter: none;
  width: auto;
  height: auto;
  border-radius: 0;
  right: 0;
  top: 0;
}

.hero-hub::after { display: none; }

.status-badge {
  border-radius: 6px;
  border: 1.5px solid var(--edge);
  background: var(--bg-surface);
  box-shadow: 3px 3px 0 var(--edge);
  padding: 7px 14px;
  margin-bottom: var(--space-lg);
}

.hero-title { margin-bottom: var(--space-md); }

/* Mot clé : surligneur dessiné à la main (plus de dégradé) */
.text-gradient {
  background: linear-gradient(transparent 62%, rgba(184, 53, 43, 0.2) 62%, rgba(184, 53, 43, 0.2) 94%, transparent 94%) no-repeat 0 0 / 100% 100%;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--accent-web-text);
  animation: marker-in 900ms var(--ease) 500ms both;
  padding: 0 2px;
}

:root[data-theme="dark"] .text-gradient { background-image: linear-gradient(transparent 62%, rgba(242, 139, 125, 0.28) 62%, rgba(242, 139, 125, 0.28) 94%, transparent 94%); }

@keyframes marker-in { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

.hero-reassurance { margin-top: var(--space-lg); }
.hero-reassurance svg { color: var(--accent-sys-text); }

/* Entrée en scène du héros (transform + opacité uniquement) */
.hero-intro > * { animation: rise 700ms var(--ease) backwards; }
.hero-intro > :nth-child(1) { animation-delay: 40ms; }
.hero-intro > :nth-child(2) { animation-delay: 140ms; }
.hero-intro > :nth-child(3) { animation-delay: 240ms; }
.hero-intro > :nth-child(4) { animation-delay: 340ms; }
.hero-intro > :nth-child(5) { animation-delay: 440ms; }
.perf-card { animation: rise 800ms var(--ease) 300ms backwards; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Carte performance : fiche posée avec ombre rouge décalée */
.perf-card {
  border-radius: 12px;
  border: 2px solid var(--edge);
  background: var(--bg-surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 8px 8px 0 var(--accent-web);
  transform: none;
}

.perf-card:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--accent-web); }
.perf-card-bar { background: var(--bg-primary); border-bottom: 2px solid var(--edge); }
.perf-card-bar span { background: transparent; border: 1.5px solid var(--edge); }
.perf-card-bar em { border-radius: 4px; border-color: var(--border-focus); }
.perf-row { border-bottom: 1px dashed var(--border-focus); }

.perf-note { margin: 0; padding: 12px var(--space-md); font-size: 0.75rem; line-height: 1.5; color: var(--text-muted); background: var(--bg-primary); border-top: 2px solid var(--edge); }

.perf-value { background: none; -webkit-text-fill-color: currentColor; color: var(--accent-web-text) !important; font-family: var(--font-heading); }
.perf-ok { border-radius: 4px; }

/* --- Double volet d'orientation --- */
.hub-card {
  border-radius: 12px;
  padding: clamp(24px, 3vw, 40px);
  border: 2px solid var(--edge);
  background: var(--bg-surface);
  box-shadow: 6px 6px 0 var(--edge);
  overflow: hidden;
  isolation: isolate;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}

.hub-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--edge); border-color: var(--edge); }

.hub-card--web, .hub-card--sys { border-top: 2px solid var(--edge); background: var(--bg-surface); }
.hub-card--web::before, .hub-card--sys::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; z-index: 1; }
.hub-card--web::before { background: var(--accent-web); }
.hub-card--sys::before { background: var(--color-accent); }
.hub-card--compact { background: var(--bg-surface); }

.hub-icon-wrap { width: 48px; height: 48px; border-radius: 8px; border: 2px solid var(--edge); margin-top: 8px; }
.hub-card--web .hub-icon-wrap { background: var(--accent-web); color: var(--on-accent); box-shadow: none; }
.hub-card--sys .hub-icon-wrap { background: var(--color-accent); color: #04261F; box-shadow: none; }

.hub-card-title { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.hub-card-meta { border-radius: 6px; background: var(--bg-primary); border-color: var(--border-focus); }

/* --- Bandeau « 3 zéros » --- */
.zeros { background: var(--bg-surface); border-top: 0; border-bottom: 1px solid var(--border-subtle); }
.zeros-grid { padding-top: var(--space-xl); padding-bottom: var(--space-xl); gap: var(--space-lg); }

.zeros-grid strong {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--accent-web-text);
  margin-bottom: 8px;
}

.zeros-grid span { font-size: 0.9375rem; }
.zeros-grid li + li { border-left: 1px solid var(--edge); }

/* --- Timeline : carrés d'encre, trait qui se dessine --- */
.timeline-num {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bg-surface);
  background: var(--edge);
  box-shadow: 3px 3px 0 var(--accent-web);
}

.timeline li { padding-left: 64px; }
.timeline li::before {
  left: 21px;
  top: 52px;
  bottom: -32px;
  width: 0;
  height: auto;
  background: none;
  border-left: 2px dashed var(--border-focus);
  opacity: 1;
  transform-origin: top;
}

.timeline h3 { font-size: 1.25rem; }

@media (min-width: 860px) {
  .timeline li { padding: 64px 0 0; }
  .timeline li::before {
    left: 52px;
    right: -24px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 0;
    border-left: 0;
    border-top: 2px dashed var(--border-focus);
    transform-origin: left;
  }
}

.js-reveal .timeline li::before { transform: scale(0); }
.js-reveal .timeline li.is-visible::before { animation: draw-line 900ms var(--ease) 250ms both; }
@keyframes draw-line { to { transform: scale(1); } }

/* --- Cartes : même langage que les boutons --- */
.card, .service-card, .feature-item, .case-study {
  border-radius: 12px;
  border: 1.5px solid var(--border-focus);
  background: var(--bg-surface);
  box-shadow: none;
  padding: clamp(20px, 2.4vw, 32px);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), border-color 150ms ease-out;
}

.card::before, .service-card::before { display: none; }

.card:hover, .service-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--edge);
  box-shadow: 4px 4px 0 var(--edge);
}

:root[data-theme="dark"] .card:hover, :root[data-theme="dark"] .service-card:hover { border-color: var(--edge); box-shadow: 4px 4px 0 var(--edge); }

.commit-grid h3 { background: none; -webkit-text-fill-color: currentColor; color: var(--accent-web-text); font-size: 1.25rem; }

.rhythm-note {
  border-radius: 12px;
  border: 1.5px solid var(--edge);
  border-left: 8px solid var(--accent-web);
  background: var(--bg-surface);
  box-shadow: none;
  padding-left: var(--space-md);
}

.rhythm-note::before { display: none; }

.manifesto-box { border-radius: 12px; border: 2px solid var(--edge); border-left: 8px solid var(--accent-web); box-shadow: 6px 6px 0 var(--edge); }
.manifesto-box::before { display: none; }

.feature-icon { border-radius: 8px; width: 44px; height: 44px; border: 1.5px solid var(--edge); transition: transform 200ms var(--ease); }
.card:hover .feature-icon { transform: rotate(-6deg); }
.feature-icon--web { background: var(--accent-web-light); color: var(--accent-web-text); }
.callout--sys, .notice { border-radius: 8px; border: 1.5px solid var(--border-focus); border-left: 6px solid var(--accent-web); background: var(--bg-surface); }
.notice--sys, .callout--sys { border-left-color: var(--color-accent); }

/* --- Tarifs --- */
.section--pricing { background-color: var(--bg-primary); background-image: none; border-top: 1px solid var(--border-subtle); position: relative; }
.section--pricing::after { display: none; }


.service-price { font-size: clamp(2.5rem, 3.6vw, 3rem); font-family: var(--font-heading); font-weight: 600; }
.service-price-amount { letter-spacing: -0.03em; }
.service-price-note, .service-price-prefix { font-family: var(--font-body); letter-spacing: normal; }
.service-card-header { border-bottom: 1.5px dashed var(--border-focus); }

.service-timing { border-radius: 6px; background: var(--accent-web-light); border: 0; color: var(--accent-web-text); font-weight: 600; }

.deliverable-item svg { width: 20px; height: 20px; padding: 3px; border-radius: 4px; background: var(--accent-sys-light); color: var(--accent-sys-text); stroke-width: 2.6; }
.service-card--web .deliverable-item svg { background: var(--accent-web-light); color: var(--accent-web-text); }
.deliverable-item { font-size: 0.9375rem; margin-bottom: 12px; }

.service-card--featured {
  border: 2px solid var(--accent-web);
  background: var(--bg-surface);
  box-shadow: 6px 6px 0 var(--accent-web);
  transform: none;
}

.service-card--featured:hover { border-color: var(--accent-web); box-shadow: 8px 8px 0 var(--accent-web); transform: translate(-2px, -2px); }

@media (min-width: 960px) {
  .service-card--featured { transform: translateY(-10px); }
  .service-card--featured:hover { transform: translate(-2px, -12px); }
}

.featured-flag {
  border-radius: 4px;
  background: var(--accent-web);
  color: var(--on-accent);
  padding: 6px 12px;
  top: -14px;
  box-shadow: none;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  transform: rotate(-2deg);
}

.offer-strip, .upsell-banner { border-radius: 12px; border: 1.5px solid var(--edge); box-shadow: 4px 4px 0 var(--edge); background: var(--bg-surface); position: relative; overflow: hidden; }
.offer-strip::before, .upsell-banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--accent-web); }
.upsell-banner::before { background: var(--color-accent); }

/* --- Simulateur, tableau, formulaires --- */
.sim { border-radius: 12px; border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--edge); }
.sim label { border-radius: 8px; border-width: 1.5px; border-color: var(--border-focus); }
.sim label:hover { border-color: var(--edge); }
.sim label:has(input:checked) { border-color: var(--accent-web); background: var(--accent-web-light); box-shadow: 3px 3px 0 var(--accent-web); }
.sim-total { border-radius: 8px; background: var(--accent-web-light); }
.sim-total strong { background: none; -webkit-text-fill-color: currentColor; color: var(--accent-web-text); font-family: var(--font-heading); }

.comparison-table-wrap { border-radius: 12px; border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--edge); }
.comparison-table th { background: var(--accent-web-light); color: var(--accent-web-text); font-family: var(--font-body); }
.comparison-table td:nth-child(3) { background: var(--accent-sys-light); }

.diagnostic-wrapper { border-radius: 12px; border: 2px solid var(--edge); box-shadow: 8px 8px 0 var(--edge); padding: clamp(24px, 4vw, 48px); }
.step-nav { border-bottom: 2px solid var(--edge); }
.step-number { border-radius: 6px; width: 28px; height: 28px; border: 1.5px solid var(--edge); background: var(--bg-surface); color: var(--text-main); }
.step-indicator.active .step-number { background: var(--accent-web); color: var(--on-accent); border-color: var(--edge); box-shadow: none; }
.step-indicator.completed .step-number { background: var(--color-accent); border-color: var(--edge); color: #04261F; }
.step-indicator.active { color: var(--accent-web-text); }
.step-indicator.completed { color: var(--accent-sys-text); }

.choice-card { border-radius: 10px; border: 1.5px solid var(--border-focus); background: var(--bg-surface); transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), border-color 150ms ease-out, background-color 150ms ease-out; }
.choice-card:hover { transform: translate(-2px, -2px); border-color: var(--edge); box-shadow: 4px 4px 0 var(--edge); background: var(--bg-surface); }
.choice-card.selected, .choice-card:has(input:checked) { border-color: var(--accent-web); background: var(--accent-web-light); box-shadow: 4px 4px 0 var(--accent-web); }
.choice-card::after { background-color: var(--accent-web); border-radius: 4px; }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--accent-web); outline-offset: 3px; }

.form-input, .form-textarea, .form-select {
  border-radius: 8px;
  border: 1.5px solid var(--edge);
  background: var(--bg-surface);
  padding: 12px 14px;
  transition: box-shadow 150ms var(--ease), border-color 150ms ease-out;
}

.form-input:hover, .form-textarea:hover, .form-select:hover { border-color: var(--accent-web); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--edge); box-shadow: 3px 3px 0 var(--accent-web); outline: none; }
.form-label { font-weight: 700; }

/* Cases et boutons de sélection : rouge brique, même trait d'encre que le reste */
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent-web); }

.sim input[type="radio"],
.sim input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  vertical-align: -4px;
  background-color: var(--bg-surface);
  border: 2px solid var(--edge);
  cursor: pointer;
  transition: background-color 150ms ease-out, box-shadow 150ms ease-out;
}

.sim input[type="radio"] { border-radius: 50%; }
.sim input[type="checkbox"] { border-radius: 5px; }

.sim input[type="radio"]:checked {
  background-color: var(--bg-surface);
  box-shadow: inset 0 0 0 4px var(--bg-surface), inset 0 0 0 10px var(--accent-web);
  border-color: var(--accent-web);
}

.sim input[type="checkbox"]:checked {
  background-color: var(--accent-web);
  border-color: var(--accent-web);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15.5 5.5 8 13.5 4.5 10'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}

:root[data-theme="dark"] .sim input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231C0F0C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15.5 5.5 8 13.5 4.5 10'/%3E%3C/svg%3E"); }

.alert, .confirmation-card { border-radius: 8px; }
.confirmation-icon { border-radius: 8px; border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--color-accent); }

/* Pages juridiques : mise en page éditoriale */
.legal-content { max-width: 780px; }
.legal-content h1 { margin-bottom: var(--space-xs); }
.legal-content h2 { font-size: 1.5rem; margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: 2px solid var(--edge); }
.legal-content a { color: var(--accent-web-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.legal-content ul { list-style: none; padding-left: 0; }
.legal-content ul li { position: relative; padding-left: 22px; }
.legal-content ul li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 8px; height: 8px; background: var(--accent-web); }

.pill { border-radius: 6px; padding: 7px 14px; background: var(--bg-surface); border: 1.5px solid var(--edge); box-shadow: 2px 2px 0 var(--edge); font-weight: 500; }
.todo-marker { border-radius: 4px; }

/* --- Bande finale : rouge très sombre, brique en filigrane --- */
.section--dark {
  --edge: #F8F3EA;
  --accent-web-text: #F59B8E;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #2A1410;
  color: #E9DFD2;
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--brick);
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 90%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 90%);
}

.section--dark h2 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); color: #FFF8EE; }
.section--dark .section-desc { color: #E9DFD2; }
.section--dark .btn-cta { border-color: #F8F3EA; box-shadow: 3px 3px 0 #F8F3EA; }
.section--dark .btn-cta:hover { box-shadow: 5px 5px 0 #F8F3EA; }

/* --- Pied de page : bande de briques --- */
.site-footer { position: relative; background: #1C1210; border-top: 0; padding-top: calc(var(--space-2xl) + 16px); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 16px; background-color: #A32F25; background-image: var(--brick-light); background-size: 32px 16px; }
.footer-heading { font-size: 0.75rem; letter-spacing: 0.14em; color: #F8F3EA; }
.footer-links a, .footer-legal-links a { transition: color 150ms ease-out, padding-left 150ms var(--ease); }
.footer-links a:hover { color: #FFFFFF; padding-left: 6px; }
.footer-legal-links a:hover { color: #FFFFFF; }
.footer-contact-item svg { color: #F59A23; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.12); }

/* --- Apparition progressive au défilement (activée par main.js) --- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* --- Accessibilité --- */
:focus-visible { outline: 3px solid var(--accent-web); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .hero-intro > *, .perf-card, .text-gradient, .sc-float, .launch-slot { animation: none; }
  .scene-track::after { display: none; }
  .scene-sticky { position: static; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js-reveal .timeline li::before { transform: none; }
  .site-header::after { animation: none; transform: scaleX(0); }
}

@media (max-width: 600px) {
  .btn-lg { padding: 14px 22px; }
  .hero-actions .btn { width: 100%; }
  .perf-card { box-shadow: 5px 5px 0 var(--accent-web); }
}

/* ==============================================================================
   SCÈNE SVG : le site s'assemble bloc par bloc au défilement
   La progression --p (0 à 1) est posée par main.js ; sans JS, la scène s'affiche
   déjà assemblée (--p vaut 1 par défaut).
   ============================================================================== */
.scene { padding-top: 0; padding-bottom: 0; }
.scene-track { position: relative; }
/* Espace de défilement pendant lequel la scène reste épinglée : doit être DANS le contenu de la piste (un padding ne compte pas pour sticky) */
.scene-track::after { content: ""; display: block; height: max(1100px, 150vh); }

.scene-sticky {
  position: sticky;
  top: 88px;
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.scene-copy { margin-bottom: 0; }

@media (min-width: 900px) {
  .scene-sticky { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: var(--space-2xl); top: 96px; padding-top: var(--space-2xl); }
}

@media (max-width: 899px) {
  .scene-track::after { height: max(800px, 120vh); }
  .scene-copy .section-desc { font-size: 0.9375rem; }
  .scene-copy h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
}

.scene-svg { display: block; width: 100%; height: auto; overflow: visible; }

.sc-win { fill: var(--bg-surface); stroke: var(--edge); stroke-width: 3; }
.sc-sh { fill: var(--edge); }
.sc-line { fill: none; stroke: var(--edge); stroke-width: 2.5; }
.sc-dot { fill: none; stroke: var(--edge); stroke-width: 2; }
.sc-url { fill: var(--bg-primary); stroke: var(--border-focus); stroke-width: 1.5; }
.sc-card { fill: var(--bg-primary); stroke: var(--edge); stroke-width: 2.5; }
.sc-bar { fill: var(--border-focus); }
.sc-ink { fill: var(--edge); }
.sc-red { fill: var(--accent-web); }
.sc-redblock { fill: var(--accent-web); stroke: var(--edge); stroke-width: 2.5; }
.sc-orange { fill: var(--accent-cta); stroke: var(--edge); stroke-width: 2; }
.sc-amber { fill: var(--accent-cta); }
.sc-green { fill: var(--color-accent); }
.sc-footer { fill: #1C1210; stroke: var(--edge); stroke-width: 2.5; }
.sc-foot-bar { fill: #A39789; }
.sc-chev { fill: none; stroke: var(--on-accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.sc-live { font: 700 12px var(--font-body); letter-spacing: 0.12em; fill: var(--text-main); }

/* Rang de chaque bloc (pas de style="" en ligne : la politique de sécurité de l'hébergement l'interdit) */
.sc-i0 { --i: 0; }
.sc-i1 { --i: 1; }
.sc-i2 { --i: 2; }
.sc-i3 { --i: 3; }
.sc-i4 { --i: 4; }
.sc-i5 { --i: 5; }
.sc-i6 { --i: 6; }
.sc-i7 { --i: 7; }
.sc-chev--thin { stroke-width: 3.5; }

/* Chaque bloc « tombe » à son tour : t va de 0 à 1 entre i/9 et (i+1)/9 de la progression */
.sc-b {
  --t: clamp(0, calc(var(--p, 1) * 9 - var(--i, 0)), 1);
  opacity: var(--t);
  transform: translateY(calc((1 - var(--t)) * -64px));
}

/* ==============================================================================
   BARRE FIXE MOBILE : « Appeler » (si un numéro est renseigné) + « Devis »
   ============================================================================== */
.mobile-bar { display: none; }

@media (max-width: 768px) {
  .mobile-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-primary);
    border-top: 2px solid var(--edge);
    transform: translateY(110%);
    transition: transform 250ms var(--ease);
  }

  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { flex: 1; padding: 11px 14px; white-space: nowrap; }
  .mobile-bar [hidden] { display: none; }
  body.has-mobile-bar .site-footer { padding-bottom: calc(var(--space-xl) + 76px); }
}

@media (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }

/* ==============================================================================
   PAGE 404 : il manque un bloc à cette adresse
   ============================================================================== */
.err-svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto var(--space-lg); overflow: visible; }
.sc-slot { fill: none; stroke: var(--edge); stroke-width: 2.5; stroke-dasharray: 8 7; }
.sc-404 { font: 600 64px var(--font-heading); fill: var(--accent-web-text); letter-spacing: -0.03em; }
.sc-float { animation: float-block 3.2s ease-in-out infinite alternate; }
@keyframes float-block { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-14px) rotate(-1deg); } }
.sc-float { transform-box: fill-box; transform-origin: center; }

/* ==============================================================================
   FINITIONS
   ============================================================================== */

/* Césures : lignes de titres équilibrées, plus de mot orphelin en fin de paragraphe */
h1, h2, h3, .hero-subtitle, .section-desc { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Cartes de tarifs côte à côte : les montants s'alignent sur une même ligne */
@media (min-width: 960px) {
  .grid-3 > .service-card .service-card-header > p.text-muted { min-height: 4.95em; }
  .grid-2--pricing > .service-card .service-card-header > p.text-muted { min-height: 3.4em; }
  /* Deux formules côte à côte : la carte conseillée n'est plus surélevée, les montants restent alignés */
  .grid-2--pricing > .service-card--featured { transform: none; }
  .grid-2--pricing > .service-card--featured:hover { transform: translate(-2px, -2px); }
}

@media (min-width: 769px) and (max-width: 959px) {
  .grid-2--pricing > .service-card .service-card-header > p.text-muted { min-height: 6.6em; }
}

@media (min-width: 960px) and (max-width: 1140px) {
  .grid-3 > .service-card .service-card-header > p.text-muted { min-height: 6.6em; }
}


/* Cadre pour votre portrait : <img class="portrait" src="..." alt="..."> */
.portrait {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid var(--edge);
  border-radius: 12px;
  box-shadow: 8px 8px 0 var(--accent-web);
  background: var(--bg-primary);
}

/* Formulaire : option « à ajouter » et échéances indisponibles selon le projet */
.choice-card input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-grid--single { grid-template-columns: 1fr; margin-bottom: var(--space-md); }

.step-subhead {
  margin: var(--space-md) 0 var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.choice-lock { display: none; margin-top: 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-web-text); }

.choice-card.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bg-primary);
  border-style: dashed;
}

.choice-card.is-disabled:hover { transform: none; box-shadow: none; border-color: var(--border-focus); background: var(--bg-primary); }
.choice-card.is-disabled .choice-badge { display: none; }
.choice-card.is-disabled .choice-lock { display: block; }
.timing-note { margin: calc(-1 * var(--space-xs)) 0 var(--space-md); font-size: 0.8125rem; }

/* Lien « En savoir plus » sous le bouton des cartes de tarifs */
.card-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-web-text);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.card-more svg { transition: transform 150ms var(--ease); }
.card-more:hover { color: var(--text-main); }
.card-more:hover svg { transform: translateX(4px); }

/* Les liens d'ancre (cartes de la page Conception web) ne passent pas sous l'en-tête fixe */
.service-card[id], section[id] { scroll-margin-top: 110px; }

/* Bandeau « tout est à votre nom » : un texte + un bouton */
@media (min-width: 769px) { .offer-strip { grid-template-columns: 1fr auto; } }

/* Cartes « réalisation » et « offre de lancement » : chacune garde sa hauteur (pas de vide dans la plus courte) */
.case-study { align-self: start; }

/* Offre de lancement : sous les deux formules, sur toute la largeur de la grille et centrée */
.grid-2--pricing > .case-study {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 720px;
}

/* Compteur de l'offre de lancement : une pastille par place (pleine = attribuée) */
.launch-counter { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1.5px dashed var(--border-focus); }

.launch-counter-head { margin: 0 0 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 0.9375rem; color: var(--text-body); }

.launch-counter-head strong {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-web-text);
}

.launch-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.launch-slot {
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent-web);
  border-radius: 6px;
  background: var(--accent-web-light);
  animation: slot-pop 400ms var(--ease) backwards;
  animation-delay: calc(var(--n, 0) * 45ms);
}

.launch-slot.is-taken { border-color: var(--edge); background: var(--edge); }

@keyframes slot-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }

/* Page « Sensibilisation cybersécurité » : tarifs et programme minuté */
.price-lines { list-style: none; margin: var(--space-sm) 0 8px; padding: 0; display: grid; gap: 6px; }
.price-lines li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 0.9375rem; color: var(--text-body); }
.price-lines strong { font-family: var(--font-heading); font-size: 1.875rem; line-height: 1.1; letter-spacing: -0.03em; color: var(--text-main); }

.programme-title { margin: 0 0 12px; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.programme { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.programme li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }

.programme-time {
  display: inline-flex;
  justify-content: center;
  padding: 4px 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-web-text);
  background: var(--accent-web-light);
  border: 1.5px solid var(--edge);
  border-radius: 6px;
}

.programme li strong { display: block; font-size: 0.9375rem; color: var(--text-main); }
.programme li div > span { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.5; color: var(--text-body); }

/* Détail des formules : panneau qui s'ouvre sous la rangée de cartes (main.js) */
.detail-panels { margin-top: var(--space-xl); display: grid; gap: var(--space-md); }

.detail-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
  padding: 10px 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font: 600 0.9375rem var(--font-body);
  color: var(--accent-web-text);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.js-details .detail-toggle { display: flex; }
.detail-toggle svg { transition: transform 200ms var(--ease); }
.detail-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.detail-toggle:hover { color: var(--text-main); }

.detail-panel {
  grid-column: 1 / -1;
  scroll-margin-top: 110px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--bg-surface);
  border: 2px solid var(--edge);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--edge);
}

.js-details .detail-panel:not(.is-open) { display: none; }
.detail-panel.is-open { animation: rise 350ms var(--ease) backwards; }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.detail-head h3 { margin: 0; font-size: clamp(1.375rem, 2.4vw, 1.75rem); }

.detail-close {
  display: none;
  flex-shrink: 0;
  padding: 6px 14px;
  font: 600 0.875rem var(--font-body);
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1.5px solid var(--edge);
  border-radius: 8px;
  cursor: pointer;
}

.js-details .detail-close { display: inline-flex; }
.detail-close:hover { background: var(--accent-web-light); }

.detail-intro { max-width: 70ch; margin: 0 0 var(--space-lg); color: var(--text-body); }

.detail-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg) var(--space-xl); }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 1fr; } }

.detail-block h4 { margin: 0 0 12px; font: 700 0.75rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

.detail-list, .detail-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.detail-list li, .detail-steps li { position: relative; font-size: 0.9375rem; line-height: 1.5; color: var(--text-body); }
.detail-list li { padding-left: 28px; }

.detail-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-sys-text);
  background: var(--accent-sys-light);
  border-radius: 4px;
}

.detail-list--need li::before { content: ""; width: 8px; height: 8px; top: 8px; left: 5px; background: var(--accent-web); border-radius: 2px; }
.detail-list--no li::before { content: "\2715"; color: var(--accent-web-text); background: var(--accent-web-light); }

.detail-steps { counter-reset: step; }
.detail-steps li { padding-left: 34px; counter-increment: step; }

.detail-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font: 700 0.75rem var(--font-body);
  color: var(--bg-surface);
  background: var(--edge);
  border-radius: 6px;
}

.detail-note { margin: 12px 0 0; padding-top: 10px; font-size: 0.875rem; color: var(--text-body); border-top: 1px dashed var(--border-focus); }

.detail-terms {
  list-style: none;
  margin: var(--space-lg) 0 var(--space-sm);
  padding: var(--space-md) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px var(--space-md);
  border-top: 2px solid var(--edge);
}

.detail-terms li { font-size: 0.875rem; color: var(--text-body); }
.detail-terms strong { display: block; color: var(--text-main); }

/* Questions fréquentes (menus déroulants natifs, accessibles sans JavaScript) */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--bg-primary); border: 1.5px solid var(--border-focus); border-radius: 12px; transition: box-shadow 150ms var(--ease), border-color 150ms ease-out; }
.faq-item[open] { background: var(--bg-surface); border-color: var(--edge); box-shadow: 4px 4px 0 var(--edge); }

.faq-item summary {
  position: relative;
  padding: 16px 52px 16px 18px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-web-text);
}

.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--text-body); }

@media print {
  .detail-toggle, .detail-close { display: none !important; }
  .js-details .detail-panel:not(.is-open) { display: block; }
  .detail-panel { box-shadow: none; }
}

/* Lien d'évitement : visible uniquement au clavier */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--accent-cta);
  border: 2px solid var(--edge);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--edge);
  transition: top 150ms var(--ease);
}

.skip-link:focus { top: 12px; color: var(--text-main); }
main:focus { outline: none; }

/* Impression : pages sobres, sans menus ni décors (CGV, mentions légales, devis) */
@media print {
  .topbar, .site-header, .site-footer, .mobile-bar, .skip-link, .scene, .theme-toggle,
  .hero-hub::before, .section--dark::before, .btn-row, .nav-cta { display: none !important; }

  html, body { background: #FFFFFF !important; color: #000000 !important; }
  body { font-size: 11pt; line-height: 1.5; display: block; }
  h1, h2, h3 { color: #000000; page-break-after: avoid; }
  .section, .section--page-top, .section.bg-surface { padding: 0 0 12pt; border: 0; background: #FFFFFF !important; }
  .container { max-width: none; padding: 0; }
  .card, .legal-content, .hub-card, .service-card { box-shadow: none !important; border: 1px solid #999999 !important; break-inside: avoid; }
  [data-reveal], .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
  .legal-content h2 { border-top: 1px solid #999999; margin-top: 18pt; }
  .legal-content a[href^="http"]::after, .legal-content a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444444; }
  .todo-marker { background: none; border: 0; color: #000000; }
}
