/* =========================================================
   Tyguide — site.css
   Tokens · base · chrome partagé · phare · ancres · tweaks
   ========================================================= */

@font-face {
  font-family: "League Spartan";
  src: url("./fonts/LeagueSpartan-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* -------- Tokens — palette imposée (4 couleurs) -------- */
:root {
  /* Palette officielle Tyguide — néo-brutalisme */
  --ty-paper:       #D1C7B5; /* Warm Cream — fond principal */
  --ty-cream-light: #DDD3C0; /* Alternance subtile, surfaces élevées */
  --ty-cream:       #BFB39E; /* Hairlines très discrets uniquement */
  --ty-olive-deep:  #3C4420; /* Olive profond — réservé au logo officiel et au phare */
  --ty-olive:       #6E6B41; /* Olive — titres & éléments de rassurance */
  --ty-mustard:      #B07E1E; /* Mustard Gold — boutons CTA, alertes */
  --ty-mustard-soft: #D9A24A; /* Variante lumière phare uniquement */
  --ty-mustard-deep: #8B6210;
  --ty-charcoal:   #382C23;  /* Charcoal Brown — texte, contours, ombres */
  --ty-charcoal-2: #5A4838;  /* Texte secondaire (variation) */
  --line:          #382C23;  /* Bordures brutalistes : charcoal partout */
  --line-strong:   #382C23;

  /* Multiplicateurs (panneau Tweaks) */
  --typescale-mult: 1;
  --space-mult: 1;

  /* Échelle d'espacement (base 4px) */
  --s-1:  calc(4px  * var(--space-mult));
  --s-2:  calc(8px  * var(--space-mult));
  --s-3:  calc(12px * var(--space-mult));
  --s-4:  calc(16px * var(--space-mult));
  --s-5:  calc(20px * var(--space-mult));
  --s-6:  calc(24px * var(--space-mult));
  --s-8:  calc(32px * var(--space-mult));
  --s-12: calc(48px * var(--space-mult));
  --s-16: calc(64px * var(--space-mult));
  --s-24: calc(96px * var(--space-mult));
  --s-32: calc(128px * var(--space-mult));

  /* Échelle typographique */
  --fs-eyebrow: calc(13px * var(--typescale-mult));
  --fs-body:    calc(17px * var(--typescale-mult));
  --fs-lede:    calc(21px * var(--typescale-mult));
  --fs-h3:      calc(26px * var(--typescale-mult));
  --fs-h2:      calc(38px * var(--typescale-mult));
  --fs-display: calc(64px * var(--typescale-mult));

  /* Rayons — néo-brutalisme : zéro arrondi sur les blocs */
  --r-sm: 0;
  --r-md: 0;
  --r-pill: 999px; /* uniquement pour pills + cercles */

  /* Ombres brutalistes — pleines, nettes, jamais floutées */
  --shadow-sm: 3px 3px 0 var(--ty-charcoal);
  --shadow-md: 5px 5px 0 var(--ty-charcoal);
  --shadow-lg: 8px 8px 0 var(--ty-charcoal);

  /* Easing */
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Header */
  --header-h: 72px;
}

/* -------- Reset léger -------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "League Spartan", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ty-charcoal);
  background: var(--ty-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ty-mustard); }

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* -------- Typographie -------- */
h1, h2, h3, h4 {
  font-family: "League Spartan", sans-serif;
  color: var(--ty-olive);
  margin: 0 0 var(--s-4);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p  { margin: 0 0 var(--s-4); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.45;
  color: var(--ty-charcoal-2);
  max-width: 60ch;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ty-mustard);
  display: inline-block;
  margin-bottom: var(--s-3);
}

.serif-num {
  font-feature-settings: "lnum";
  font-variant-numeric: lining-nums;
}

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.section { padding: var(--s-24) 0; border-bottom: 4px solid var(--ty-charcoal); }
.section--tight { padding: var(--s-16) 0; }
.section--paper { background: var(--ty-paper); }
.section--cream { background: var(--ty-cream-light); }
.section--olive { background: var(--ty-olive-deep); color: var(--ty-cream-light); }
.section--olive h1,
.section--olive h2,
.section--olive h3 { color: var(--ty-paper); }
.section--olive .lede { color: var(--ty-cream); }
.section--olive .eyebrow { color: var(--ty-mustard-soft); }

/* Section mustard — Mustard Gold #B07E1E, texte charcoal */
.section--mustard {
  background: var(--ty-mustard);
  color: var(--ty-charcoal);
}
.section--mustard h2,
.section--mustard h3,
.section--mustard h4 { color: var(--ty-charcoal); }
.section--mustard .lede { color: var(--ty-charcoal); opacity: 0.85; }
.section--mustard .eyebrow { color: var(--ty-charcoal); }
.section--mustard .method-card {
  background: var(--ty-olive);
  border-color: var(--ty-charcoal);
  color: var(--ty-paper);
}
.section--mustard .method-card h3 { color: var(--ty-paper); }
.section--mustard .method-card p  { color: var(--ty-cream-light); }
.section--mustard .method-card .num { color: var(--ty-mustard-soft); }
.section--mustard .stat { background: rgba(255, 255, 255, 0.22); }
.section--mustard .stat__big { color: var(--ty-charcoal); }
.section--mustard .stat__lbl { color: var(--ty-charcoal); opacity: 0.7; }
/* Éléments d'offre sur fond mustard */
.section--mustard .faq details { background: var(--ty-paper); }
.section--mustard .faq details[open] { background: var(--ty-cream-light); }
/* Headings dans les cartes (fond clair) sur section olive — override héritage */
.section--olive .use-case h4 { color: var(--ty-charcoal); }
.section--olive .ia-link-block__text h3 { color: var(--ty-charcoal); }

.divider-rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* -------- Boutons — Interrupteur mécanique -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-6);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: 0;
  border: 3px solid var(--ty-charcoal);
  line-height: 1;
  text-transform: none;
  transition: transform 100ms ease-out, box-shadow 100ms ease-out, background 100ms ease-out;
  position: relative;
}
.btn--primary {
  background: var(--ty-mustard);
  color: var(--ty-charcoal);
  box-shadow: 4px 4px 0 var(--ty-charcoal);
}
.btn--primary:hover,
.btn--primary:active {
  background: var(--ty-mustard);
  color: var(--ty-charcoal);
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ty-charcoal);
}
.btn--ghost {
  background: var(--ty-paper);
  color: var(--ty-charcoal);
  box-shadow: 4px 4px 0 var(--ty-charcoal);
}
.btn--ghost:hover,
.btn--ghost:active {
  background: var(--ty-cream-light);
  color: var(--ty-charcoal);
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ty-charcoal);
}
.btn--lg { padding: var(--s-4) var(--s-8); font-size: 17px; }

.btn .arrow { font-size: 1.1em; transition: transform 240ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Pills réassurance */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--ty-cream-light);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ty-charcoal);
  font-weight: 500;
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ty-mustard);
  display: inline-block;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--ty-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ty-charcoal);
}
.tag strong { color: var(--ty-mustard-deep); font-weight: 700; }

/* -------- Header sticky -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: box-shadow 240ms var(--ease), border-color 240ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(56, 44, 35, 0.06);
  border-bottom-color: var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 800;
  color: var(--ty-olive-deep);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ty-olive-deep); }
.brand .wordmark { font-size: 24px; line-height: 1; }
.brand .tagline {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ty-mustard);
  margin-top: 2px;
}
@media (max-width: 540px) {
  .brand .tagline { display: none; }
  .brand .wordmark { font-size: 22px; }
}

/* -------- Bandeau « audit gratuit » (Top Bar brutaliste) -------- */
.audit-strip {
  background: var(--ty-mustard);
  color: var(--ty-charcoal);
  padding: 12px 0;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
  font-weight: 600;
  border-bottom: 3px solid var(--ty-charcoal);
}
.audit-strip a {
  color: var(--ty-charcoal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 800;
  margin-left: 4px;
}
.audit-strip a:hover { color: var(--ty-olive-deep); }
.audit-strip strong { font-weight: 800; }

/* -------- Bandeau « aides régionales » — tampon officiel -------- */
.aides-bar {
  background: var(--ty-paper);
  border: 3px solid var(--ty-charcoal);
  border-radius: 0;
  padding: var(--s-4) var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
  box-shadow: 5px 5px 0 var(--ty-charcoal);
  position: relative;
}
.aides-bar::before {
  content: "RÉGION BRETAGNE";
  position: absolute;
  top: -10px; left: var(--s-6);
  background: var(--ty-paper);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ty-olive);
  border: 2px solid var(--ty-charcoal);
}
.aides-bar__badge {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ty-mustard);
  color: var(--ty-charcoal);
  border: 3px solid var(--ty-charcoal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.aides-bar__text { font-size: 14px; color: var(--ty-charcoal); line-height: 1.5; }
.aides-bar__text strong { color: var(--ty-olive-deep); font-weight: 700; }
.aides-bar__text small {
  display: block;
  font-size: 12px;
  color: var(--ty-charcoal-2);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* -------- Couverture géographique -------- */
.zones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-6);
}
.zone-pill {
  background: var(--ty-paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ty-charcoal);
}
.zone-pill.is-base {
  background: var(--ty-olive-deep);
  color: var(--ty-mustard-soft);
  border-color: var(--ty-olive-deep);
  font-weight: 700;
}

/* -------- Add-on Ty-Présence — brutaliste -------- */
.addon-strip {
  background: var(--ty-cream-light);
  border: 3px solid var(--ty-charcoal);
  border-radius: 0;
  padding: var(--s-6);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-6);
  align-items: center;
  margin-top: var(--s-16);
  box-shadow: 5px 5px 0 var(--ty-charcoal);
}
.addon-strip__num {
  width: 92px; height: 92px;
  border-radius: 0;
  background: var(--ty-olive);
  color: var(--ty-paper);
  border: 3px solid var(--ty-charcoal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-align: center;
  line-height: 1.2;
  padding: 6px;
}
.addon-strip__body h3 { font-size: 22px; margin-bottom: 4px; }
.addon-strip__body p { font-size: 15px; color: var(--ty-charcoal-2); margin: 0; max-width: 60ch; }
.addon-strip__price {
  font-size: 17px;
  font-weight: 800;
  color: var(--ty-mustard-deep);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.addon-strip__price small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ty-charcoal-2);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .addon-strip { grid-template-columns: 1fr; text-align: center; }
  .addon-strip__num { margin: 0 auto; }
  .addon-strip__price { text-align: center; }
}

.brand-svg { width: 36px; height: 36px; flex: none; display: block; }
.brand-svg img { width: 100%; height: 100%; display: block; }

/* « i » du wordmark avec point moutarde — comme sur le logo officiel */
.dot-i {
  position: relative;
  display: inline-block;
  font-style: normal;
}
.dot-i::before {
  content: "";
  position: absolute;
  top: 0.04em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.22em;
  height: 0.22em;
  background: var(--ty-mustard);
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ty-charcoal);
  padding: 6px 0;
  position: relative;
}
.nav a.is-active { color: var(--ty-olive-deep); font-weight: 700; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--ty-mustard);
  border-radius: 2px;
}
.nav .btn { padding: 10px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ty-cream-light);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ty-olive-deep);
  position: relative;
  border-radius: 2px;
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  6px; left: 0; }

/* Drawer mobile */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(82vw, 340px);
  background: var(--ty-paper);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 240ms var(--ease);
  z-index: 80;
  padding: var(--s-12) var(--s-6) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer a {
  font-size: 18px;
  font-weight: 600;
  color: var(--ty-olive-deep);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.nav-drawer .btn { margin-top: var(--s-4); }
.nav-drawer__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--ty-cream-light);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--ty-olive-deep);
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(56, 44, 35, 0.45);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* -------- Lighthouse rail (phare fixé) — base ancrée en bas, suit le footer au scroll -------- */
.lighthouse-rail {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 420px;
  /* Hauteur capée pour rester entièrement visible quand le footer apparaît */
  height: min(calc(100vh - var(--header-h) - 20px), 720px);
  pointer-events: none;
  z-index: 20;
  display: block;
  overflow: visible;
  will-change: transform;
}
.lighthouse-rail svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  overflow: visible;
}
.lighthouse-rail .palier { cursor: pointer; pointer-events: auto; transition: fill 240ms var(--ease); }
.lighthouse-rail .palier.is-active { fill: var(--ty-mustard); }

/* Rayons statiques */
.lighthouse-rail .ray {
  animation: rayPulse 1.6s ease-in-out infinite;
  fill: var(--ty-mustard-soft);
}
/* Halo extérieur très large, doux */
.lighthouse-rail .halo-outer {
  animation: haloOuterPulse 4s ease-in-out infinite;
}
/* Cône balayant : on anime aussi son opacité pour donner de la vie */
.lighthouse-rail .beam {
  animation: beamFlicker 3.4s ease-in-out infinite;
}
/* Lampe : halo intérieur radial + cœur brillant */
.lighthouse-rail .lamp-glow {
  animation: lampPulse 1.4s ease-in-out infinite;
}
.lighthouse-rail .lamp-core {
  animation: lampCorePulse 1.4s ease-in-out infinite;
  fill: #FFE9B3;
}

/* Rayons phare — animations fixes, choix définitif */

@keyframes rayPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes haloOuterPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
@keyframes beamFlicker {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
@keyframes lampPulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
@keyframes lampCorePulse {
  0%, 100% { opacity: 0.92; }
  50%      { opacity: 1; }
}

@media (max-width: 1099px) {
  .lighthouse-rail { display: none; }
}

/* -------- Ancres romaines — indicateur de scroll (toutes pages) -------- */
.anchors-rail {
  position: fixed;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 13px;
  pointer-events: auto;
}
/* on masque les numéros : juste de petits points discrets */
.anchors-rail a {
  display: block;
  width: 9px; height: 9px;
  font-size: 0;
  border-radius: 50%;
  border: 1.5px solid var(--ty-mustard);
  background: transparent;
  opacity: 0.45;
  transition: opacity 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}
.anchors-rail a:hover { opacity: 0.8; }
.anchors-rail a.is-active {
  opacity: 1;
  background: var(--ty-mustard);
  transform: scale(1.25);
}

@media (max-width: 1099px) {
  .anchors-rail { display: none; }
}

/* -------- Footer -------- */
.site-footer {
  background: var(--ty-olive-deep);
  color: var(--ty-cream);
  padding: var(--s-16) 0 var(--s-8);
  margin-top: 0;
  position: relative;
  z-index: 30; /* au-dessus du phare pour que le contenu footer reste lisible */
}
.site-footer h4 {
  color: var(--ty-paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.site-footer a { color: var(--ty-cream); }
.site-footer a:hover { color: var(--ty-mustard-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--s-8);
  align-items: start;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--s-2); font-size: 15px; }
.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--ty-cream); font-size: 14px; }
.footer-tel {
  font-size: 22px;
  font-weight: 700;
  color: var(--ty-mustard-soft);
  letter-spacing: -0.01em;
  margin-top: var(--s-2);
  display: block;
}
.footer-tel:hover { color: var(--ty-mustard-soft); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(209, 199, 181, 0.18);
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  font-size: 13px;
  color: var(--ty-cream);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* Bloc partenaires — discret, au-dessus de la barre copyright */
.footer-partners {
  margin-top: var(--s-8);
  font-size: 13px;
  color: var(--ty-cream);
  opacity: 0.9;
}
.footer-partners a { color: var(--ty-mustard-soft); font-weight: 600; }
.footer-partners a:hover { color: var(--ty-paper); text-decoration: underline; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* -------- Reveal au scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Cards générique — Brutalisme -------- */
.card {
  background: var(--ty-paper);
  border: 3px solid var(--ty-charcoal);
  border-radius: 0;
  padding: var(--s-6);
  box-shadow: 5px 5px 0 var(--ty-charcoal);
  transition: transform 100ms ease-out, box-shadow 100ms ease-out;
}
.card:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ty-charcoal);
}
.card--cream { background: var(--ty-cream-light); }

/* -------- Hero accueil — solide, brutaliste -------- */
.hero {
  position: relative;
  background: var(--ty-olive-deep);
  color: var(--ty-cream-light);
  padding: var(--s-24) 0 var(--s-16);
  overflow: hidden;
  border-bottom: 4px solid var(--ty-charcoal);
}
.hero h1 { color: var(--ty-paper); max-width: 14ch; }
.hero .lede { color: var(--ty-cream); margin-top: var(--s-6); max-width: 50ch; }
.hero .eyebrow { color: var(--ty-mustard-soft); }
.hero-cta {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-8);
  flex-wrap: wrap;
}
.hero .pills .pill {
  background: rgba(246, 241, 230, 0.08);
  border-color: rgba(209, 199, 181, 0.3);
  color: var(--ty-cream);
}

/* -------- Paliers (accueil) -------- */
.paliers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  align-items: end;
  margin-top: var(--s-8);
}
.palier-card {
  background: var(--ty-paper);
  border: 3px solid var(--ty-charcoal);
  border-radius: 0;
  padding: var(--s-6);
  position: relative;
  box-shadow: 5px 5px 0 var(--ty-charcoal);
  transition: transform 100ms ease-out, box-shadow 100ms ease-out;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.palier-card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ty-charcoal); }
.palier-card:nth-child(1) { transform: translateY(36px); }
.palier-card:nth-child(2) { transform: translateY(18px); }
.palier-card:nth-child(1):hover { transform: translate(2px, 38px); }
.palier-card:nth-child(2):hover { transform: translate(2px, 20px); }
.palier-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ty-olive-deep);
  color: var(--ty-mustard-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.palier-card h3 { font-size: 22px; margin-bottom: 6px; }
.palier-card .price {
  color: var(--ty-mustard-deep);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.palier-card__desc {
  font-size: 14px;
  color: var(--ty-charcoal-2);
  line-height: 1.5;
  margin: 0;
}
.palier-card ul {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 0;
}
.palier-card li {
  font-size: 15px;
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--ty-charcoal);
  border-bottom: 1px solid var(--line);
}
.palier-card li:last-child { border-bottom: 0; }
.palier-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ty-mustard);
  font-weight: 700;
}
.palier-card .btn { margin-top: var(--s-3); align-self: flex-start; }

/* -- Palier I : Mustard Gold -- */
.palier-card--mustard { background: var(--ty-mustard); }
.palier-card--mustard h3 { color: var(--ty-charcoal); }
.palier-card--mustard .price { color: var(--ty-charcoal); }
.palier-card--mustard .palier-card__desc { color: var(--ty-charcoal); opacity: 0.85; }
.palier-card--mustard li { color: var(--ty-charcoal); border-bottom-color: rgba(56,44,35,0.15); }
.palier-card--mustard li::before { color: var(--ty-charcoal); }
.palier-card--mustard .palier-num { background: var(--ty-charcoal); color: var(--ty-mustard-soft); border-color: var(--ty-charcoal); }
.palier-card--mustard .btn--ghost { border-color: var(--ty-charcoal); color: var(--ty-charcoal); }
.palier-card--mustard .btn--ghost:hover { background: rgba(56,44,35,0.1); }

/* -- Palier II : Charcoal Brown (centre) -- */
.palier-card--charcoal { background: var(--ty-charcoal); }
.palier-card--charcoal h3 { color: var(--ty-paper); }
.palier-card--charcoal .price { color: var(--ty-mustard-soft); }
.palier-card--charcoal .palier-card__desc { color: var(--ty-cream-light); }
.palier-card--charcoal li { color: var(--ty-cream-light); border-bottom-color: rgba(209,199,181,0.15); }
.palier-card--charcoal li::before { color: var(--ty-mustard-soft); }
.palier-card--charcoal .palier-num { background: var(--ty-mustard); color: var(--ty-charcoal); border-color: var(--ty-mustard-deep); }
.palier-card--charcoal .btn--ghost { background: var(--ty-paper); border-color: var(--ty-charcoal); color: var(--ty-charcoal); }
.palier-card--charcoal .btn--ghost:hover { background: var(--ty-cream-light); }

/* -- Palier III : Olive Green -- */
.palier-card--olive { background: var(--ty-olive); }
.palier-card--olive h3 { color: var(--ty-paper); }
.palier-card--olive .price { color: var(--ty-mustard-soft); }
.palier-card--olive .palier-card__desc { color: var(--ty-cream-light); }
.palier-card--olive li { color: var(--ty-cream-light); border-bottom-color: rgba(209,199,181,0.15); }
.palier-card--olive li::before { color: var(--ty-mustard-soft); }
.palier-card--olive .palier-num { background: var(--ty-charcoal); color: var(--ty-paper); border-color: var(--ty-charcoal); }
.palier-card--olive .btn--ghost { background: var(--ty-paper); border-color: var(--ty-charcoal); color: var(--ty-charcoal); }
.palier-card--olive .btn--ghost:hover { background: var(--ty-cream-light); }

@media (max-width: 880px) {
  .paliers { grid-template-columns: 1fr; }
  .palier-card,
  .palier-card:nth-child(1),
  .palier-card:nth-child(2) { transform: none; }
}

/* -------- Méthode (4 cards) -------- */
.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-8);
}
.method-card {
  background: var(--ty-cream-light);
  border: 3px solid var(--ty-charcoal);
  border-radius: 0;
  padding: var(--s-6);
  position: relative;
  box-shadow: 5px 5px 0 var(--ty-charcoal);
  transition: transform 100ms ease-out, box-shadow 100ms ease-out;
}
.method-card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ty-charcoal); }
.method-card .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--ty-mustard);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: var(--s-2);
  line-height: 1;
}
.method-card h3 { font-size: 19px; margin-bottom: 6px; }
.method-card p { font-size: 14px; color: var(--ty-charcoal-2); margin: 0; }

@media (max-width: 980px) {
  .method { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .method { grid-template-columns: 1fr; }
}

/* -------- Bloc Mathieu -------- */
.mathieu-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-12);
  align-items: center;
  margin-top: var(--s-6);
}
.mathieu-block .signature {
  font-size: 22px;
  font-weight: 700;
  color: var(--ty-olive-deep);
  margin-top: var(--s-6);
  font-style: italic;
  letter-spacing: -0.01em;
}
.mathieu-block .signature small {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ty-mustard);
  margin-top: 4px;
}
@media (max-width: 880px) {
  .mathieu-block { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* -------- Placeholder portrait/photo -------- */
.placeholder {
  position: relative;
  background: var(--ty-cream-light);
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-md);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--s-4);
  overflow: hidden;
  padding: var(--s-6);
  text-align: center;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 12px,
      rgba(110, 107, 65, 0.05) 12px 14px
    );
  pointer-events: none;
}
.placeholder__mono {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ty-olive-deep);
  color: var(--ty-mustard-soft);
  font-weight: 800;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.04em;
  z-index: 1;
}
.placeholder__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ty-charcoal-2);
  z-index: 1;
}
.placeholder--wide { aspect-ratio: 16/9; }
.placeholder--square { aspect-ratio: 1/1; }

/* -------- Témoignages -------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  margin-top: var(--s-8);
}
.testimonial {
  background: var(--ty-paper);
  border: 3px solid var(--ty-charcoal);
  border-radius: 0;
  padding: var(--s-6);
  box-shadow: 5px 5px 0 var(--ty-charcoal);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.testimonial__stars {
  color: var(--ty-mustard);
  font-size: 18px;
  letter-spacing: 2px;
}
.testimonial__quote {
  font-size: 17px;
  color: var(--ty-charcoal);
  line-height: 1.5;
}
.testimonial__author {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ty-charcoal-2);
}
@media (max-width: 880px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* -------- CTA final Mustard Gold avec box téléphone -------- */
.cta-final {
  background: var(--ty-mustard);
  color: var(--ty-charcoal);
  padding: var(--s-16) 0;
  position: relative;
  overflow: hidden;
  /* pas de border-top : le border-bottom de la section précédente suffit */
  border-bottom: 4px solid var(--ty-charcoal);
}
.cta-final h2 { color: var(--ty-charcoal); max-width: 18ch; margin-bottom: var(--s-4); }
.cta-final .lede { color: var(--ty-charcoal); opacity: 0.85; max-width: 50ch; }
.cta-final .eyebrow { color: var(--ty-charcoal); }
.cta-final-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
/* Tel-box cta-final (section VI homepage) — fond vert, texte blanc */
/* Ces règles ont priorité sur le .tel-box global grâce à la double spécificité */
@media (max-width: 880px) {
  .cta-final-grid { grid-template-columns: 1fr; }
}

/* -------- Responsive globaux -------- */
@media (max-width: 1099px) {
  :root { --fs-display: calc(54px * var(--typescale-mult)); }
}
@media (max-width: 880px) {
  :root {
    --fs-display: calc(42px * var(--typescale-mult));
    --fs-h2: calc(30px * var(--typescale-mult));
    --fs-h3: calc(22px * var(--typescale-mult));
    --fs-lede: calc(18px * var(--typescale-mult));
  }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: var(--s-12) 0; }
  .hero { padding: var(--s-16) 0 var(--s-12); }
}
@media (max-width: 540px) {
  :root { --fs-display: calc(36px * var(--typescale-mult)); }
  .container { padding: 0 var(--s-4); }
}

/* -------- Utilitaires -------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; }
.no-wrap { white-space: nowrap; }

/* -------- Mètre de chantier — barre de progression scroll -------- */
.scroll-meter {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--ty-mustard);
  z-index: 100;
  transition: width 80ms linear;
  pointer-events: none;
}

/* -------- Tampon officiel — badge Pass Commerce -------- */
.tampon {
  display: inline-block;
  padding: 8px 14px;
  background: var(--ty-paper);
  color: var(--ty-olive);
  border: 3px solid var(--ty-charcoal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--ty-charcoal);
}

/* -------- Hairline rule brutaliste -------- */
.divider-rule { background: var(--ty-charcoal); height: 3px; }

/* -------- Pills brutalistes -------- */
.pill {
  background: var(--ty-cream-light);
  border: 2px solid var(--ty-charcoal);
  border-radius: var(--r-pill);
  color: var(--ty-charcoal);
  font-weight: 600;
}
.tag {
  background: var(--ty-paper);
  border: 2px solid var(--ty-charcoal);
  border-radius: var(--r-pill);
  color: var(--ty-charcoal);
  font-weight: 600;
}

/* -------- Tel-box CTA final — brutaliste -------- */
.tel-box {
  background: var(--ty-mustard);
  border: 3px solid var(--ty-charcoal);
  border-radius: 0;
  padding: var(--s-6);
  text-align: center;
  color: var(--ty-charcoal);
  box-shadow: 6px 6px 0 var(--ty-charcoal);
}
.tel-box .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ty-charcoal);
  margin-bottom: var(--s-2);
  display: block;
}
.tel-box .tel {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ty-charcoal);
  line-height: 1;
  margin-bottom: var(--s-3);
}
.tel-box .tel:hover { color: var(--ty-olive-deep); }
.tel-box .hours {
  font-size: 13px;
  color: var(--ty-charcoal);
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Tel-box section VI (cta-final homepage) — fond vert, tout en blanc */
.cta-final .tel-box                { background: var(--ty-olive); color: var(--ty-paper); box-shadow: 5px 5px 0 var(--ty-charcoal); }
.cta-final .tel-box .label         { color: var(--ty-paper); }
.cta-final .tel-box .tel           { color: var(--ty-paper); }
.cta-final .tel-box .tel:hover     { color: var(--ty-mustard-soft); }
.cta-final .tel-box .hours         { color: var(--ty-paper); }

/* -------- Checklist expertise (google.html) -------- */
.expertise-checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-8);
}
.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-4);
  background: var(--ty-paper);
  border: 3px solid var(--ty-charcoal);
  box-shadow: 4px 4px 0 var(--ty-charcoal);
}
.expertise-item__check {
  flex: none;
  width: 28px; height: 28px;
  background: var(--ty-charcoal);
  color: var(--ty-paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-top: 1px;
}
.expertise-item__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ty-charcoal);
  line-height: 1.3;
}
@media (max-width: 880px) {
  .expertise-checklist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .expertise-checklist { grid-template-columns: 1fr; }
}

/* -------- Note conformité (plaques NFC) -------- */
.conformity-note {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  background: var(--ty-cream-light);
  border: 3px solid var(--ty-charcoal);
  border-left: 6px solid var(--ty-charcoal);
  box-shadow: 4px 4px 0 var(--ty-charcoal);
  padding: var(--s-4) var(--s-6);
  margin-top: var(--s-6);
}
.conformity-note__icon {
  font-size: 22px;
  flex: none;
  margin-top: 2px;
}
.conformity-note__text {
  font-size: 15px;
  color: var(--ty-charcoal);
  line-height: 1.5;
}
.conformity-note__text strong { color: var(--ty-olive-deep); font-weight: 700; }

/* -------- Portrait photo Mathieu -------- */
.mathieu-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 3px solid var(--ty-charcoal);
  box-shadow: 5px 5px 0 var(--ty-charcoal);
}

/* -------- Promo IA — bandeau accueil -------- */
.ia-promo-strip {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  background: var(--ty-charcoal);
  color: var(--ty-paper);
  box-shadow: 5px 5px 0 var(--ty-mustard);
  padding: var(--s-6) var(--s-8);
  margin-top: var(--s-8);
}
.ia-promo-strip__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ty-mustard);
  margin-bottom: var(--s-2);
}
.ia-promo-strip h3 {
  color: var(--ty-paper);
  font-size: var(--fs-lg);
  margin: 0 0 var(--s-2);
}
.ia-promo-strip p { margin: 0; opacity: .85; font-size: var(--fs-base); }
.ia-promo-strip__body { flex: 1; }
@media (max-width: 700px) {
  .ia-promo-strip { flex-direction: column; align-items: flex-start; }
  .ia-promo-strip > a { align-self: stretch; text-align: center; }
}

/* -------- Bloc lien interne IA (google.html + sites-web.html) -------- */
.ia-link-block {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  padding: var(--s-8);
  background: var(--ty-paper);
  border: 3px solid var(--ty-charcoal);
  box-shadow: 5px 5px 0 var(--ty-charcoal);
}
.ia-link-block__text { flex: 1; }
.ia-link-block__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ty-mustard-deep);
  display: block;
  margin-bottom: var(--s-2);
}
.ia-link-block__text h3 {
  font-size: var(--fs-xl);
  margin: 0 0 var(--s-3);
}
.ia-link-block__text p { margin: 0; color: var(--ty-charcoal); opacity: .85; }
@media (max-width: 700px) {
  .ia-link-block { flex-direction: column; }
  .ia-link-block > a { align-self: stretch; text-align: center; }
}

/* -------- Boutons sur fonds sombres (section--olive) -------- */
/* btn--ghost déjà fond paper + charcoal par défaut — on fixe l'ombre uniquement */
.section--olive .btn--ghost {
  background: var(--ty-paper);
  border-color: var(--ty-charcoal);
  color: var(--ty-charcoal);
  box-shadow: 4px 4px 0 var(--ty-charcoal);
}
.section--olive .btn--ghost:hover,
.section--olive .btn--ghost:active {
  background: var(--ty-cream-light);
  color: var(--ty-charcoal);
}
.section--olive .btn--primary {
  background: var(--ty-mustard);
  color: var(--ty-charcoal);
  border-color: var(--ty-charcoal);
  box-shadow: 4px 4px 0 var(--ty-charcoal);
}
.section--olive .btn--primary:hover {
  background: var(--ty-mustard-soft);
}

/* -------- Curseur niveau à bulle (cursor optionnel) -------- */
/*
  Pour activer le curseur "niveau à bulle" globalement, décommentez :
  body { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="14" viewBox="0 0 32 14"><rect x="1" y="1" width="30" height="12" fill="%23D1C7B5" stroke="%23382C23" stroke-width="2"/><circle cx="16" cy="7" r="3" fill="%236E6B41"/></svg>') 16 7, auto; }
  a, button, .btn, [role="button"] { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="14" viewBox="0 0 32 14"><rect x="1" y="1" width="30" height="12" fill="%23D1C7B5" stroke="%23382C23" stroke-width="2"/><circle cx="16" cy="7" r="4" fill="%236E6B41" stroke="%23382C23" stroke-width="1.5"/></svg>') 16 7, pointer; }
*/
