/* ==========================================================================
   CASTOR DIGITAL — Système de design "chantier"
   Palette dérivée du logo : brun castor, orange sécurité, acier, béton, noir
   ========================================================================== */

:root {
  /* Couleurs */
  --noir:        #15130f;   /* Noir chantier (warm black) */
  --noir-soft:   #211e18;
  --acier:       #26272a;   /* Acier / sections sombres */
  --acier-line:  #383a3e;
  --orange:      #f2941d;   /* Orange sécurité (accent principal) */
  --orange-deep: #d9760a;   /* Orange foncé (hover CTA) */
  --orange-soft: #fdf0db;   /* Orange très clair (fonds doux) */
  --brun:        #8a5a30;   /* Brun castor */
  --brun-deep:   #5b3a1f;
  --beton:       #ecebe6;   /* Béton clair (fonds) */
  --beton-mid:   #d7d4cc;   /* Béton moyen (bordures) */
  --beton-dark:  #b4b0a6;
  --papier:      #f7f5f1;   /* Papier / off-white */
  --blanc:       #ffffff;
  --gris-txt:    #57544c;   /* Texte secondaire */
  --gris-txt-d:  #b9b6ac;   /* Texte secondaire sur fond sombre */

  /* Typographie */
  --display: "Anton", "Arial Narrow", sans-serif;
  --cond:    "Oswald", "Arial Narrow", sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Mesures */
  --maxw: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 2px 8px rgba(21,19,15,.08);
  --shadow:    0 8px 30px rgba(21,19,15,.12);
  --shadow-lg: 0 20px 60px rgba(21,19,15,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--noir);
  background: var(--blanc);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ----------------------------- Typo ----------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: .98; letter-spacing: .5px; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-family: var(--cond); font-weight: 600; font-size: 1.15rem; letter-spacing: .3px; }
p  { color: var(--gris-txt); }
strong { color: var(--noir); font-weight: 700; }

.eyebrow {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .82rem;
  color: var(--orange-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--orange);
  display: inline-block;
}
.eyebrow.light { color: var(--orange); }

/* ----------------------------- Layout ----------------------------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--beton { background: var(--beton); }
.section--papier { background: var(--papier); }
.section--noir { background: var(--noir); color: var(--beton); }
.section--noir h1, .section--noir h2, .section--noir h3 { color: var(--blanc); }
.section--noir p { color: var(--gris-txt-d); }
.section--noir strong, .split-panel strong { color: var(--blanc); }
.section--noir .card strong, .split-panel .card strong { color: var(--noir); }

/* Grille "plan" sur fonds sombres */
.section--noir, .blueprint {
  background-color: var(--noir);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(242,148,29,.05) 39px, rgba(242,148,29,.05) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(242,148,29,.05) 39px, rgba(242,148,29,.05) 40px);
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { font-size: 1.12rem; margin-top: 18px; }
.center .eyebrow { justify-content: center; }

/* ------------------------ Bande de signalisation (signature) ------------------------ */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(135deg,
    var(--noir) 0, var(--noir) 22px,
    var(--orange) 22px, var(--orange) 44px);
  border-top: 2px solid var(--noir);
  border-bottom: 2px solid var(--noir);
}
.hazard--thin { height: 8px; border: none; }

/* ----------------------------- Boutons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--cond); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 15px 30px; border-radius: var(--radius);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  border: 2px solid transparent; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--orange); color: var(--noir); box-shadow: 0 4px 0 var(--orange-deep); }
.btn--primary:hover { background: var(--orange-deep); color: var(--blanc); transform: translateY(-2px); box-shadow: 0 6px 0 #a85a07; }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--orange-deep); }
.btn--dark { background: var(--noir); color: var(--blanc); }
.btn--dark:hover { background: var(--acier); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--noir); border-color: var(--noir); }
.btn--ghost:hover { background: var(--noir); color: var(--blanc); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.btn--lg { padding: 18px 38px; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beton-mid);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--noir); }
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 10px; }
.site-header > .container { max-width: 1340px; padding: 0 22px; }
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; }
.brand-name { font-family: var(--display); font-size: 1.5rem; line-height: .92; letter-spacing: .5px; text-transform: uppercase; color: var(--noir); }
.brand-name span { color: var(--orange-deep); }
.brand-tag { display: block; font-family: var(--cond); font-size: .64rem; letter-spacing: 2px; color: var(--gris-txt); text-transform: uppercase; font-weight: 600; margin-top: 3px; }

.main-nav ul { display: flex; align-items: center; gap: 0; }
.main-nav a {
  font-family: var(--cond); font-weight: 600; text-transform: uppercase;
  letter-spacing: .3px; font-size: .95rem; padding: 9px 10px; border-radius: 6px;
  color: var(--noir-soft); transition: color .18s var(--ease), background .18s var(--ease); position: relative;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.main-nav a:hover { color: var(--orange-deep); background: var(--orange-soft); }
.main-nav a.active { color: var(--orange-deep); }
.main-nav a.active::after {
  content:""; position:absolute; left:13px; right:13px; bottom:4px; height:2px; background: var(--orange); border-radius: 2px;
}
.header-cta { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.header-phone {
  font-family: var(--cond); font-weight: 600; font-size: 1.02rem;
  display: inline-flex; align-items: center; gap: 8px; color: var(--noir);
  padding: 8px 4px; transition: color .18s var(--ease);
}
.header-phone:hover { color: var(--orange-deep); }
.header-phone svg { width: 18px; height: 18px; color: var(--orange-deep); }

/* Dropdown services */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); margin-left: 3px; opacity: .7;
}
.has-dropdown:hover > a::after, .has-dropdown:focus-within > a::after { transform: rotate(225deg) translateY(-2px); }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0;
  background: var(--blanc); border: 1px solid var(--beton-mid); border-top: 3px solid var(--orange); border-radius: 10px;
  min-width: 320px; padding: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 8px; letter-spacing: .3px; color: var(--noir); }
.dropdown a:hover { background: var(--orange-soft); color: var(--orange-deep); }
.dropdown a span { font-family: var(--body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--gris-txt); line-height: 1.4; }
.dropdown a:hover span { color: var(--brun-deep); }
.dropdown a::after { display: none !important; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; align-items: center; border-radius: 8px; }
.burger:hover { background: var(--orange-soft); }
.burger span { width: 26px; height: 3px; background: var(--noir); transition: transform .3s var(--ease), opacity .3s; border-radius: 2px; }
.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  background-color: var(--noir);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(242,148,29,.05) 47px, rgba(242,148,29,.05) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(242,148,29,.05) 47px, rgba(242,148,29,.05) 48px);
  color: var(--beton);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .8rem; color: var(--noir); background: var(--orange);
  padding: 7px 15px; border-radius: 100px; margin-bottom: 26px;
}
.hero h1 { color: var(--blanc); }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-sub { font-size: 1.22rem; color: var(--gris-txt-d); margin: 24px 0 34px; max-width: 540px; }
.hero .btn-row { margin-bottom: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-family: var(--cond); font-weight: 500; font-size: .92rem; color: var(--beton); }
.hero-trust-item svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-badge {
  background: var(--blanc); border: 4px solid var(--noir); border-radius: 50%;
  width: min(380px, 80%); aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  position: relative; box-shadow: 0 0 0 9px var(--orange), 0 22px 44px rgba(0,0,0,.42);
}
.hero-badge img { width: 66%; height: 66%; object-fit: contain; }
.hero-float {
  position: absolute; background: var(--blanc); color: var(--noir);
  border: 2px solid var(--noir); border-radius: var(--radius-lg);
  padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 11px;
}
.hero-float .num { font-family: var(--display); font-size: 1.7rem; color: var(--orange-deep); line-height: 1; }
.hero-float .lbl { font-family: var(--cond); font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; line-height: 1.1; color: var(--gris-txt); }
.hero-float--1 { top: 8%; left: -6%; }
.hero-float--2 { bottom: 10%; right: -8%; }

/* ----------------------------- Bandeau confiance ----------------------------- */
.trustbar { background: var(--noir); border-bottom: 0; }
.trustbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 44px; padding-top: 26px; padding-bottom: 26px; }
.trustbar p { color: var(--gris-txt-d); font-family: var(--cond); text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; margin: 0; }
.trustbar strong { color: var(--orange); }

/* ----------------------------- Cartes ----------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--blanc); border: 2px solid var(--noir); border-radius: var(--radius-lg);
  padding: 32px; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  position: relative; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico {
  width: 56px; height: 56px; border-radius: var(--radius); background: var(--orange-soft);
  border: 2px solid var(--noir); display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.card .ico svg { width: 28px; height: 28px; color: var(--orange-deep); }
.card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card p { font-size: .98rem; }
/* Light cards keep dark-on-light text even when placed inside dark sections */
.section--noir .card, .split-panel .card { color: var(--noir); }
.section--noir .card p, .split-panel .card p { color: var(--gris-txt); }
.section--noir .card h1, .section--noir .card h2, .section--noir .card h3, .section--noir .card h4 { color: var(--noir); }
.card .stat-num { font-family: var(--display); color: var(--orange-deep); line-height: 1; letter-spacing: .5px; }
.card .card-link { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .88rem; color: var(--orange-deep); margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link svg { transform: translateX(4px); }

.card--dark { background: var(--acier); border-color: var(--acier-line); color: var(--beton); }
.card--dark h3 { color: var(--blanc); }
.card--dark p { color: var(--gris-txt-d); }

/* Cartes services avec numéro */
.svc-card { position: relative; overflow: hidden; }
.svc-card .svc-num {
  position: absolute; top: -6px; right: 14px; font-family: var(--display);
  font-size: 5.5rem; color: var(--beton); line-height: 1; z-index: 0; opacity: .8;
}
.svc-card > * { position: relative; z-index: 1; }

/* ----------------------------- Méthode (étapes chantier) ----------------------------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.step { background: var(--acier); border: 2px solid var(--acier-line); border-radius: var(--radius-lg); padding: 30px 26px; position: relative; }
.step-num {
  font-family: var(--display); font-size: 1.5rem; color: var(--noir); background: var(--orange);
  width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; border: 2px solid var(--noir);
}
.step h3 { color: var(--blanc); font-size: 1.3rem; margin-bottom: 10px; }
.step .step-fr { font-family: var(--cond); text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; color: var(--orange); margin-bottom: 6px; display: block; }
.step p { color: var(--gris-txt-d); font-size: .95rem; }

/* ----------------------------- Réassurance ----------------------------- */
.reassure-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.reassure {
  text-align: center; padding: 30px 18px; border: 2px solid var(--noir);
  border-radius: var(--radius-lg); background: var(--blanc);
}
.reassure .r-ico { width: 50px; height: 50px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--orange-deep); }
.reassure .r-ico svg { width: 40px; height: 40px; }
.reassure h4 { margin-bottom: 8px; }
.reassure p { font-size: .98rem; }

/* ----------------------------- Chiffres ----------------------------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; align-items: start; }
.stat { text-align: center; }
.stats--3 { grid-template-columns: repeat(3,1fr); max-width: 880px; margin: 0 auto; }
.stat .stat-num { font-family: var(--display); font-size: clamp(2.8rem,5vw,4rem); color: var(--orange); line-height: 1; }
.stat .stat-lbl { font-family: var(--cond); text-transform: uppercase; letter-spacing: 1px; font-size: .95rem; margin-top: 8px; color: var(--gris-txt); }
.section--noir .stat .stat-lbl { color: var(--gris-txt-d); }

/* ----------------------------- Témoignages ----------------------------- */
.testi {
  background: var(--blanc); border: 2px solid var(--noir); border-radius: var(--radius-lg);
  padding: 32px; height: 100%; display: flex; flex-direction: column;
}
.testi .stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 16px; font-size: 1.1rem; }
.testi blockquote { font-size: 1.05rem; color: var(--noir); font-weight: 500; line-height: 1.55; flex-grow: 1; }
.testi blockquote::before { content: "« "; color: var(--orange-deep); }
.testi blockquote::after { content: " »"; color: var(--orange-deep); }
.testi .testi-author { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--beton-mid); }
.testi .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brun); color: var(--blanc);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 1.1rem; flex-shrink: 0;
}
.testi .testi-author .name { font-family: var(--cond); font-weight: 600; font-size: 1rem; color: var(--noir); line-height: 1.2; }
.testi .testi-author .role { font-size: .82rem; color: var(--gris-txt); }

/* ----------------------------- FAQ ----------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 2px solid var(--noir); border-radius: var(--radius-lg); margin-bottom: 14px; background: var(--blanc); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-family: var(--cond); font-weight: 600; font-size: 1.12rem; color: var(--noir);
}
.faq-q .plus { flex-shrink: 0; width: 26px; height: 26px; position: relative; transition: transform .3s; }
.faq-q .plus::before, .faq-q .plus::after { content:""; position:absolute; background: var(--orange-deep); border-radius: 2px; }
.faq-q .plus::before { top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); transition: transform .3s; }
.faq-item.open .plus::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 24px 24px; color: var(--gris-txt); }

/* ----------------------------- CTA band ----------------------------- */
.cta-band { background: var(--orange); position: relative; overflow: hidden; }
.cta-band::before {
  content:""; position:absolute; inset:0;
  background: repeating-linear-gradient(135deg, transparent 0, transparent 60px, rgba(21,19,15,.05) 60px, rgba(21,19,15,.05) 120px);
}
.cta-band .container { position: relative; text-align: center; }
.cta-band h2 { color: var(--noir); }
.cta-band p { color: var(--brun-deep); font-size: 1.15rem; max-width: 620px; margin: 18px auto 32px; font-weight: 500; }
.cta-band .btn--dark:hover { background: var(--noir-soft); }

/* ----------------------------- Listes check ----------------------------- */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 13px; color: var(--noir); }
.checklist li svg { width: 22px; height: 22px; color: var(--orange-deep); flex-shrink: 0; margin-top: 2px; }
.section--noir .checklist li { color: var(--beton); }
.split-panel .checklist li { color: var(--beton); }

/* ----------------------------- Split (image + texte) ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { border: 2px solid var(--noir); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--beton); }
.split-panel {
  background: var(--noir); border: 2px solid var(--noir); border-radius: var(--radius-lg);
  padding: 44px; color: var(--beton);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(242,148,29,.07) 31px, rgba(242,148,29,.07) 32px),
                    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(242,148,29,.07) 31px, rgba(242,148,29,.07) 32px);
}
.split-panel h3 { color: var(--blanc); }

/* ----------------------------- Métiers (tags) ----------------------------- */
.metiers { display: flex; flex-wrap: wrap; gap: 12px; }
.metier-tag {
  font-family: var(--cond); font-weight: 500; text-transform: uppercase; letter-spacing: .8px;
  font-size: .88rem; padding: 9px 18px; border: 2px solid var(--noir); border-radius: 100px;
  background: var(--blanc); color: var(--noir); transition: background .2s, color .2s, transform .2s;
}
.metier-tag:hover { background: var(--orange); transform: translateY(-2px); }

/* ----------------------------- Réalisations ----------------------------- */
.case-card { border: 2px solid var(--noir); border-radius: var(--radius-lg); overflow: hidden; background: var(--blanc); transition: transform .25s var(--ease), box-shadow .25s var(--ease); height: 100%; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-thumb { aspect-ratio: 16/10; background: var(--noir); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(242,148,29,.08) 23px, rgba(242,148,29,.08) 24px),
                    repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(242,148,29,.08) 23px, rgba(242,148,29,.08) 24px);
}
.case-thumb .case-emoji { font-size: 3.4rem; }
.case-thumb .case-cat { position: absolute; top: 14px; left: 14px; font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .72rem; background: var(--orange); color: var(--noir); padding: 5px 12px; border-radius: 100px; }
.case-body { padding: 26px; }
.case-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.case-loc { font-family: var(--cond); text-transform: uppercase; letter-spacing: 1px; font-size: .76rem; color: var(--gris-txt); margin-bottom: 14px; }
.case-results { display: flex; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--beton-mid); }
.case-results .cr-num { font-family: var(--display); font-size: 1.7rem; color: var(--orange-deep); line-height: 1; }
.case-results .cr-lbl { font-size: .76rem; color: var(--gris-txt); line-height: 1.2; }

/* ----------------------------- Blog ----------------------------- */
.post-card { border: 2px solid var(--noir); border-radius: var(--radius-lg); overflow: hidden; background: var(--blanc); transition: transform .25s var(--ease), box-shadow .25s var(--ease); height: 100%; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16/9; background: #fff; border-bottom: 3px solid var(--orange); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-thumb img { width: 46%; max-width: 168px; height: auto; }
.post-thumb--beton, .post-thumb--noir, .post-thumb--orange, .post-thumb--brun { background: #fff; }

/* ----------------------------- Article ----------------------------- */
.article { padding: clamp(36px,5vw,64px) 0 clamp(48px,7vw,88px); }
.article-wrap { max-width: 740px; margin: 0 auto; }
.article-cover { aspect-ratio: 24/9; background: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--noir); border-bottom-width: 5px; border-bottom-color: var(--orange); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 38px; }
.article-cover img { width: 26%; max-width: 200px; height: auto; }
.article-meta { font-family: var(--cond); text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; color: var(--gris-txt); margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.article-meta .cat { color: var(--orange-deep); font-weight: 600; }
.prose { font-size: 1.1rem; line-height: 1.75; color: var(--noir-soft); }
.prose > p { margin-bottom: 22px; }
.prose h2 { font-size: clamp(1.6rem,3.4vw,2.3rem); margin: 44px 0 16px; }
.prose h3 { font-size: clamp(1.25rem,2.4vw,1.55rem); margin: 30px 0 12px; }
.prose strong { color: var(--noir); font-weight: 700; }
.prose a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.prose a.btn { text-decoration: none; }
.prose a.btn--primary { color: var(--noir); }
.prose a.btn--dark, .prose a.btn--dark:hover { color: var(--blanc); }
.prose a.btn--primary:hover { color: var(--noir); }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 0; display: grid; gap: 13px; }
.prose ul li { position: relative; padding-left: 26px; list-style: none; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 9px; height: 9px; background: var(--orange); border: 1.5px solid var(--noir); border-radius: 2px; transform: rotate(45deg); }
.prose ol { counter-reset: c; }
.prose ol li { position: relative; padding-left: 44px; list-style: none; counter-increment: c; min-height: 28px; padding-top: 2px; }
.prose ol li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 28px; height: 28px; background: var(--noir); color: var(--orange); font-family: var(--cond); font-weight: 600; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.takeaways { background: var(--beton); border-left: 5px solid var(--orange); border-radius: 10px; padding: 26px 30px; margin: 36px 0; }
.takeaways h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; font-size: 1.15rem; }
.takeaways ul { margin: 0; }
.article-back { font-family: var(--cond); text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; color: var(--gris-txt); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.article-back:hover { color: var(--orange-deep); }
.afaq-list { display: grid; gap: 12px; margin: 8px 0 10px; }
.afaq { border: 2px solid var(--beton-mid); border-radius: 10px; background: var(--papier); overflow: hidden; }
.afaq summary { cursor: pointer; padding: 18px 22px; font-family: var(--cond); font-weight: 600; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--noir); }
.afaq summary::-webkit-details-marker { display: none; }
.afaq summary::after { content: "+"; font-size: 1.5rem; color: var(--orange-deep); flex-shrink: 0; transition: transform .2s var(--ease); line-height: 1; }
.afaq[open] summary::after { transform: rotate(45deg); }
.afaq[open] summary { border-bottom: 1px solid var(--beton-mid); }
.afaq-a { padding: 16px 22px 20px; }
.afaq-a p { font-size: 1.02rem; margin: 0; color: var(--noir-soft); }
.post-body { padding: 26px; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { font-family: var(--cond); text-transform: uppercase; letter-spacing: 1px; font-size: .74rem; color: var(--orange-deep); margin-bottom: 12px; display: flex; gap: 10px; }
.post-body h3 { font-size: 1.28rem; margin-bottom: 10px; line-height: 1.05; }
.post-body p { font-size: .95rem; flex-grow: 1; }
.post-body .card-link { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; color: var(--orange-deep); margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; }
.post-body .card-link svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.post-card:hover .card-link svg { transform: translateX(4px); }
.article-back svg { width: 15px; height: 15px; transform: rotate(180deg); }

/* ----------------------------- Forms ----------------------------- */
.form-wrap { background: var(--blanc); border: 2px solid var(--noir); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; font-size: .82rem; margin-bottom: 7px; color: var(--noir); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 2px solid var(--beton-mid); border-radius: var(--radius);
  font-family: var(--body); font-size: 1rem; color: var(--noir); background: var(--papier); transition: border .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: var(--blanc); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--gris-txt); margin-top: 6px; }
.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--gris-txt); }
.form-consent input { width: auto; margin-top: 4px; }

.contact-aside { display: grid; gap: 18px; align-content: start; }
.contact-line { display: flex; align-items: center; gap: 15px; padding: 18px; border: 2px solid var(--noir); border-radius: var(--radius-lg); background: var(--blanc); }
.contact-line .cl-ico { width: 46px; height: 46px; border-radius: var(--radius); background: var(--orange-soft); border: 2px solid var(--noir); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--orange-deep); }
.contact-line .cl-ico svg { width: 22px; height: 22px; }
.contact-line .cl-lbl { font-family: var(--cond); text-transform: uppercase; letter-spacing: 1px; font-size: .72rem; color: var(--gris-txt); }
.contact-line .cl-val { font-family: var(--cond); font-weight: 600; font-size: 1.05rem; color: var(--noir); }

/* ----------------------------- Page hero (interne) ----------------------------- */
.page-hero {
  background-color: var(--noir);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(242,148,29,.05) 47px, rgba(242,148,29,.05) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(242,148,29,.05) 47px, rgba(242,148,29,.05) 48px);
  color: var(--beton); padding: clamp(50px,7vw,84px) 0; }
.breadcrumb { font-family: var(--cond); text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; color: var(--gris-txt-d); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--orange); }
.page-hero h1 { color: var(--blanc); max-width: 900px; }
.page-hero p { color: var(--gris-txt-d); font-size: 1.2rem; max-width: 680px; margin-top: 20px; }
.page-hero .btn-row { margin-top: 32px; }
/* Page hero with mascot */
.page-hero .container { position: relative; }
.page-hero__castor {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 232px; max-width: 30%; height: auto;
  background: #fff; border: 2px solid var(--noir); border-radius: 20px; padding: 16px;
  box-shadow: 0 16px 30px rgba(0,0,0,.4); pointer-events: none;
}
.page-hero.has-castor h1, .page-hero.has-castor p { max-width: 600px; }

/* Beaver illustration — always on a clean white panel */
.castor-illu {
  display: block; width: 100%; max-width: 280px; height: auto;
  background: #fff; border: 2px solid var(--noir); border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow);
}
.castor-illu--sm { max-width: 180px; padding: 16px; }
.castor-figure { display: flex; justify-content: center; }
.castor-badge {
  width: clamp(108px,16vw,150px); height: auto; flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.18));
}

/* Signs / "vous reconnaissez-vous" */
.signs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.signs-grid li { display: flex; gap: 12px; align-items: flex-start; color: var(--noir-soft); font-size: 1.02rem; line-height: 1.45; }
.signs-grid li svg { width: 22px; height: 22px; color: var(--orange-deep); flex-shrink: 0; margin-top: 2px; }

/* Comparison "Sans / Avec" */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--noir); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.compare__col { padding: 30px clamp(20px,3vw,34px); }
.compare__col--bad { background: var(--beton); }
.compare__col--good { background: var(--noir);
  background-image: repeating-linear-gradient(0deg,transparent,transparent 39px,rgba(242,148,29,.06) 39px,rgba(242,148,29,.06) 40px),repeating-linear-gradient(90deg,transparent,transparent 39px,rgba(242,148,29,.06) 39px,rgba(242,148,29,.06) 40px);
}
.compare__head { font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; font-size: .92rem; margin-bottom: 20px; display: flex; align-items: center; gap: 9px; }
.compare__col--bad .compare__head { color: var(--gris-txt); }
.compare__col--good .compare__head { color: var(--orange); }
.compare__list { display: grid; gap: 14px; }
.compare__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 1rem; line-height: 1.45; }
.compare__col--bad li { color: var(--gris-txt); }
.compare__col--good li { color: var(--beton); }
.compare__mark { flex-shrink: 0; width: 21px; height: 21px; margin-top: 1px; }
.compare__col--bad .compare__mark { color: #b9362b; }
.compare__col--good .compare__mark { color: var(--orange); }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--noir); color: var(--gris-txt-d); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand .brand-name { color: var(--blanc); }
.footer-brand p { color: var(--gris-txt-d); font-size: .95rem; margin: 18px 0; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border: 2px solid var(--acier-line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--beton); transition: background .2s, color .2s, border-color .2s; }
.footer-social a:hover { background: var(--orange); color: var(--noir); border-color: var(--orange); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: var(--blanc); font-family: var(--cond); text-transform: uppercase; letter-spacing: 1.5px; font-size: .9rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: .95rem; color: var(--gris-txt-d); transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.site-footer .btn--primary { color: var(--noir); }
.site-footer .btn--primary:hover { color: var(--noir); }
.footer-cities { font-size: .9rem; line-height: 1.85; color: #a8a59b; border-top: 1px solid var(--acier-line); padding: 22px 0; }
.footer-cities strong { color: var(--gris-txt-d); }
.footer-bottom { border-top: 1px solid var(--acier-line); padding: 24px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .85rem; }
.footer-bottom a:hover { color: var(--orange); }

/* ----------------------------- Reveal animation ----------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 1370px) {
  .brand-tag { display: none; }
}
@media (max-width: 1180px) {
  .main-nav a { padding: 10px 10px; font-size: .92rem; letter-spacing: .2px; }
}
@media (max-width: 1040px) {
  .header-phone { display: none; }
  .header-bar { gap: 14px; }
}
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-badge { width: min(300px, 70%); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split-media { order: 0; }
  .compare { grid-template-columns: 1fr; }
  .signs-grid { grid-template-columns: 1fr; gap: 12px; }
  .page-hero__castor { position: static; transform: none; display: block; width: 168px; max-width: 52%; margin: 30px auto 0; }
  .page-hero.has-castor h1, .page-hero.has-castor p { max-width: 900px; }
  .grid-4, .stats, .reassure-grid, .steps { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.nav-mobile-cta { display: none; }
@media (max-width: 880px) {
  .site-header { backdrop-filter: none; background: var(--blanc); }
  .main-nav, .header-phone, .header-cta .btn { display: none; }
  .burger { display: flex; }
  .main-nav.open {
    display: block; position: fixed; top: 81px; left: 0; right: 0; bottom: 0;
    background: var(--blanc); padding: 20px 22px 40px; overflow-y: auto; border-top: 1px solid var(--beton-mid);
  }
  .main-nav.open ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav.open a { padding: 16px 14px; font-size: 1.2rem; border-bottom: 1px solid var(--beton); border-radius: 0; }
  .main-nav.open a.active::after { display: none; }
  .main-nav.open .has-dropdown > a::after { margin-left: auto; }
  .main-nav.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: none; border-top: none; box-shadow: none; padding: 4px 0 8px 14px; min-width: 0; }
  .main-nav.open .dropdown a { font-size: 1.02rem; border: none; padding: 12px 14px; }
  .main-nav.open .dropdown a span { font-size: .92rem; }
  .nav-mobile-cta { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
  .nav-mobile-cta .btn { width: 100%; justify-content: center; }
  .nav-mobile-phone {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--cond); font-weight: 600; font-size: 1.2rem; color: var(--noir);
    padding: 14px; border: 1px solid var(--beton-mid); border-radius: 8px;
  }
  .nav-mobile-phone svg { width: 20px; height: 20px; color: var(--orange-deep); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .stats, .reassure-grid, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-float--1 { left: 0; top: 0; }
  .hero-float--2 { right: 0; bottom: 0; }
  .hero-float { padding: 9px 13px; gap: 9px; }
  .hero-float .num { font-size: 1.4rem; }
  .hero-float .lbl { font-size: .72rem; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .header-cta .btn { padding: 11px 18px; font-size: .9rem; }
}

/* ---- Mobile polish ---- */
@media (max-width: 760px) {
  .section { padding: 50px 0; }
  .hero-inner { padding: 38px 0 46px; gap: 34px; }
  .hero-sub { font-size: 1.1rem; margin: 20px 0 28px; }
  .page-hero { padding: 38px 0 42px; }
  .page-hero .btn-row { margin-top: 26px; }
  /* mascotte visible sur mobile, centrée sous le texte */
  .page-hero__castor {
    display: block; position: static; transform: none; right: auto; top: auto;
    width: 168px; max-width: 56%; margin: 26px auto 0; padding: 14px;
  }
  .page-hero.has-castor h1, .page-hero.has-castor p { max-width: 100%; }
  .article-cover { aspect-ratio: 16/9; }
  .article-cover img { width: 40%; max-width: 150px; }
  .compare__col { padding: 24px 20px; }
  .section-head { margin-bottom: 6px; }
  .castor-illu { max-width: 220px; }
}
@media (max-width: 460px) {
  .afaq summary { font-size: 1rem; padding: 15px 16px; }
  .afaq-a { padding: 14px 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
}

/* Focus visible */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--orange); color: var(--noir); font-family: var(--cond); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; padding: 12px 20px; border-radius: 6px;
  transition: top .2s var(--ease); box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; outline: 3px solid var(--noir); outline-offset: 2px; }
#contenu { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px;
}
