/* ==========================================================================
   SARL TOKI – feuille de style commune
   Palette : bleu du logo, bleu nuit, jaune chantier pour les actions
   ========================================================================== */

:root {
  --blue: #0033cc;
  --blue-dark: #0129a4;
  --blue-light: #8aa8ff;
  --ink: #08164a;
  --ink-2: #0f2368;
  --ink-3: #1b3585;
  --text: #1f2b4d;
  --muted: #4d5976;
  --paper: #e6eaf1;
  --paper-2: #d6deeb;
  --card: #f8fafd;
  --white: #ffffff;
  --line: #c3cee2;
  --accent: #ffc21a;
  --accent-dark: #e0a600;
  --radius: 10px;
  --shadow: 0 12px 34px rgba(8, 22, 68, 0.16);
  --header-h: 76px;
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
.ico { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--ink); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--ink); padding: .7rem 1.1rem; font-weight: 700; border-radius: 6px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: .95rem 1.6rem; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 8px 22px rgba(255, 194, 26, .35); }
.btn-primary:hover { background: #ffd24d; color: var(--ink); }
.btn-outline { border-color: rgba(255, 255, 255, .7); color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-outline:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(8, 22, 68, .12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); width: min(100% - 2.5rem, 1320px); }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav-list { display: flex; align-items: center; gap: 1.3rem; }
.nav-list a {
  position: relative; display: inline-block; padding: .4rem 0; white-space: nowrap;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .7rem 1.2rem; font-size: .95rem; }

.burger {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: 8px;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 0;
}
.burger span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1199px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.2rem;
    padding: 1.5rem 1.25rem 2rem; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 1rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav .btn { padding: 1rem; font-size: 1.05rem; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white); background: var(--ink);
  min-height: min(88vh, 820px); display: flex; align-items: center; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: slow-zoom 24s ease-out both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 14, 46, .88) 0%, rgba(5, 14, 46, .68) 48%, rgba(5, 14, 46, .25) 100%),
    linear-gradient(0deg, rgba(5, 14, 46, .7) 0%, rgba(5, 14, 46, 0) 38%);
}
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { padding-block: 5rem 6.5rem; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1.2rem;
  font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 38px; height: 3px; background: currentColor; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .08);
  font-size: .92rem; font-weight: 600; backdrop-filter: blur(4px);
}
.chips svg { width: 1.05rem; height: 1.05rem; color: var(--accent); flex: none; }

/* ---------- Chiffres ---------- */
.stats { background: var(--ink); color: var(--white); position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.1rem 1rem; text-align: center; border-left: 1px solid rgba(255, 255, 255, .1); }
.stat:first-child { border-left: 0; }
.stat-num { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .5em; color: var(--accent); margin-left: .12em; font-weight: 800; }
.stat-label { display: block; margin-top: .55rem; font-size: .92rem; color: rgba(255, 255, 255, .72); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--paper); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .86); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .75); }
.eyebrow-blue { color: var(--blue); }

/* ---------- Cartes expertises ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 14px rgba(8, 22, 68, .08); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-num {
  position: absolute; left: 1rem; top: 1rem; background: var(--accent); color: var(--ink);
  font-weight: 800; font-size: .85rem; letter-spacing: .08em; padding: .35rem .7rem; border-radius: 4px;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.8rem; }
.card-body h3 { font-size: 1.4rem; font-weight: 800; }
.card-body p { color: var(--muted); }
.card-list { margin: .2rem 0 1.4rem; }
.card-list li { position: relative; padding-left: 1.5rem; margin-bottom: .35rem; font-weight: 600; font-size: .98rem; }
.card-list li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: .6rem; height: .6rem; background: var(--blue); transform: rotate(45deg); }
.card-link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.3rem; border-radius: 8px; background: var(--blue); color: var(--white);
  font-weight: 700; text-decoration: none; transition: background-color .2s;
}
.card-link:hover { background: var(--blue-dark); color: var(--white); }
.card-link svg { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.card-link:hover svg { transform: translateX(5px); }

/* Ordinateur : une bande large par prestation, image et texte en alternance */
@media (min-width: 961px) {
  .cards { grid-template-columns: 1fr; gap: 1.8rem; }
  .card { flex-direction: row; min-height: 340px; }
  .card:nth-child(even) { flex-direction: row-reverse; }
  .card:hover { transform: translateY(-4px); }
  .card-img { flex: 0 0 46%; aspect-ratio: auto; }
  .card-img img { position: absolute; inset: 0; }
  .card-body { justify-content: center; padding: 2.4rem 3.2rem; }
  .card-body h3 { font-size: 1.9rem; }
  .card-body p { font-size: 1.1rem; max-width: 520px; }
  .card-list { margin-bottom: 1.8rem; }
  .card-link { margin-top: 0; }
}

@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
/* ---------- Atouts ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why-item { padding: 1.8rem 1.5rem; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); }
.why-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: rgba(255, 194, 26, .14); color: var(--accent); margin-bottom: 1.1rem; }
.why-icon svg { width: 28px; height: 28px; }
.why-item h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .45rem; }
.why-item p { margin: 0; font-size: .98rem; color: rgba(255, 255, 255, .72); }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Mosaïque photos ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.showcase-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.showcase-text p { color: var(--muted); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: .9rem; }
.mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); box-shadow: 0 2px 14px rgba(8, 22, 68, .12); }
.mosaic figure:nth-child(1) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem .8rem;
  color: var(--white); font-size: .85rem; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(0deg, rgba(5, 14, 46, .85), rgba(5, 14, 46, 0));
}
.ticks { margin: 1.4rem 0 2rem; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; font-weight: 600; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--blue);
  -webkit-mask: none; mask: none;
}
.ticks li::after {
  content: ""; position: absolute; left: .47rem; top: .42em; width: .38rem; height: .72rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .mosaic { grid-template-rows: 190px 190px; }
}

/* ---------- Méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 4.2rem; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0; z-index: 1;
  width: 3.1rem; height: 3.1rem; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); font-weight: 800; font-size: 1.25rem; border-radius: 50%;
}
.step::after { content: ""; position: absolute; top: 1.55rem; left: 3.1rem; right: -1rem; height: 2px; background: rgba(255, 255, 255, .22); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: .4rem; }
.step p { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .72); }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .step { padding: 0 0 0 4.6rem; min-height: 3.2rem; }
  .step::after { top: 3.1rem; bottom: -1.6rem; left: 1.5rem; right: auto; width: 2px; height: auto; }
}

/* ---------- Histoire ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story-img { position: relative; }
.story-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.story-badge {
  position: absolute; right: -1rem; bottom: -1.4rem; background: var(--blue); color: var(--white);
  padding: 1.1rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; line-height: 1.1;
}
.story-badge strong { display: block; font-size: 2.3rem; font-weight: 800; }
.story-badge span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.story h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.story p { color: var(--muted); }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .story-badge { right: .8rem; } }

/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.zones h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.zone-title { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin: 0 0 .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; }
.tags li {
  padding: .5rem .95rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-weight: 600; font-size: .96rem; color: var(--ink);
}
.tags li.is-home { background: var(--blue); border-color: var(--blue); color: var(--white); }
.tags.soft li { background: transparent; border-style: dashed; color: var(--muted); }
.zones { grid-template-columns: 1fr 1.05fr; align-items: center; }
.zone-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.zone-cta address { font-style: normal; color: var(--muted); line-height: 1.5; }
.zone-cta address strong { color: var(--ink); }

/* Carte des zones */
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow); }
.map-svg { display: block; width: 100%; height: auto; border-radius: 8px; background: linear-gradient(160deg, #eef3ff, #dfe8ff); }
.map-near path { fill: #cbd8f5; stroke: #fff; stroke-width: 2; }
.map-idf path { fill: var(--blue); stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; transition: fill .2s; cursor: default; }
.map-idf path:hover { fill: #2a58ff; }
.map-idf path.is-home { fill: var(--blue-dark); }
.map-idf path.is-home:hover { fill: #1743d6; }
.map-labels text { fill: #fff; font: 800 18px var(--font); text-anchor: middle; dominant-baseline: central; pointer-events: none; paint-order: stroke; stroke: rgba(5, 14, 46, .45); stroke-width: 3px; stroke-linejoin: round; }
.map-pin .dot { fill: var(--accent); stroke: #fff; stroke-width: 3.5; }
.map-pin .pulse { fill: var(--accent); opacity: .55; transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.2s ease-out infinite; }
.map-pin .leader { fill: none; stroke: var(--ink); stroke-width: 2; }
.map-pin .callout rect { fill: var(--ink); }
.map-pin .callout text { fill: #fff; font: 700 19px var(--font); text-anchor: middle; }
@keyframes pin-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }
.map-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: .9rem .4rem .2rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.map-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.map-legend .sw { width: .95rem; height: .95rem; border-radius: 4px; flex: none; }
.map-legend .sw-pin { background: var(--accent); border-radius: 50%; border: 2px solid var(--ink); }
.map-legend .sw-idf { background: var(--blue); }
.map-legend .sw-near { background: #cbd8f5; }
@media (max-width: 900px) { .zones { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 8px 24px rgba(8, 22, 68, .09); border-color: var(--blue); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 3.4rem 1.2rem 1.4rem; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: .7rem; height: .7rem;
  border: solid var(--blue); border-width: 0 3px 3px 0; transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Bandeau devis + formulaire ---------- */
.contact {
  position: relative; isolation: isolate; color: var(--white); background: var(--ink); overflow: hidden;
}
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(5, 14, 46, .94) 0%, rgba(5, 14, 46, .86) 55%, rgba(5, 14, 46, .72) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.contact-lead { color: rgba(255, 255, 255, .82); font-size: 1.12rem; }
.contact-list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list svg { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: rgba(255, 194, 26, .16); color: var(--accent); flex: none; }
.contact-list small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 700; }
.contact-list a, .contact-list span.v { color: var(--white); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.form-card { background: var(--white); color: var(--text); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.3rem); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.form-card h3 { font-size: 1.4rem; font-weight: 800; }
.form-sub { color: var(--muted); font-size: .96rem; margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fbfbfc;
  border: 1.5px solid #cdd2d9; border-radius: 8px; padding: .8rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 51, 204, .14); background: var(--white); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #c62828; }
.req { color: #c62828; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: .4rem 0 1.2rem; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; font-size: 1.08rem; }
.form-note { margin: .9rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 8px; font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: #e6f6ec; color: #14532d; }
.form-status.is-error { display: block; background: #fdeaea; color: #7f1d1d; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Pied de page ---------- */
.site-footer { background: #040b22; color: rgba(255, 255, 255, .7); padding-top: 4rem; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { height: 58px; width: auto; margin-bottom: 1.1rem; }
.site-footer .footer-title { color: var(--white); font-size: .88rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font-size: .88rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.footer-bottom li { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-zones { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.6rem 1.2rem; }
.footer-zones .footer-title { margin-bottom: .8rem; }
.footer-zones ul { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.footer-zones li { margin: 0; font-size: .92rem; }

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.page-hero { min-height: 0; }
.page-hero .hero-inner { padding-block: clamp(3rem, 7vw, 5rem) clamp(3.2rem, 7vw, 5.2rem); max-width: 800px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: .9rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

/* Grilles de points forts */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.fgrid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.fgrid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; }
.feature .why-icon { background: rgba(0, 51, 204, .09); color: var(--blue); }
.feature h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .45rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) { .fgrid, .fgrid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fgrid, .fgrid.cols-2, .fgrid.cols-4 { grid-template-columns: 1fr; } }

.story.reverse .story-img { order: 2; }
@media (max-width: 900px) { .story.reverse .story-img { order: 0; } }
.story ul.ticks { margin-bottom: 1.4rem; }

/* Chronologie verticale */
.timeline { position: relative; max-width: 760px; margin: 0; padding: 0 0 0 2.2rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 3px; background: var(--blue); opacity: .35; border-radius: 2px; }
.timeline li { position: relative; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -2.2rem; top: .35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--accent); border: 3px solid var(--blue); }
.timeline h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .3rem; }
.timeline .when { display: block; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .2rem; }
.timeline p { margin: 0; color: var(--muted); }

/* Bandeau d'appel à l'action */
.cta-band { background: linear-gradient(110deg, var(--ink), var(--ink-2)); color: var(--white); padding-block: clamp(2.8rem, 6vw, 4rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: .4rem; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Cartes de départements et d'articles */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.dept-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem 1.3rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); color: var(--ink); }
.dept-card .code { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--blue); }
.dept-card strong { font-size: 1.1rem; }
.dept-card span.sub { color: var(--muted); font-size: .92rem; }
.dept-card.is-home { background: var(--blue); border-color: var(--blue); color: var(--white); }
.dept-card.is-home .code, .dept-card.is-home span.sub { color: rgba(255, 255, 255, .85); }
.dept-card.is-home:hover { color: var(--white); }
@media (max-width: 1000px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dept-grid { grid-template-columns: 1fr; } }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.article-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--text); }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.article-card h3 { font-size: 1.2rem; font-weight: 800; }
.article-card p { color: var(--muted); font-size: .98rem; }
.article-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--blue); }
.article-card .more svg { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.article-card:hover .more svg { transform: translateX(5px); }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Texte d'article */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 800; margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; font-weight: 800; margin-top: 1.6rem; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.3rem; list-style: disc; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--blue); }
.prose .note { margin: 1.6rem 0; padding: 1.1rem 1.3rem; border-left: 4px solid var(--blue); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: .98rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .98rem; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--ink); color: var(--white); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0 0 1.2rem; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--ink); color: rgba(255, 255, 255, .85); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.aside-card h2, .aside-card h3 { color: var(--white); font-size: 1.25rem; font-weight: 800; }
.aside-card .btn { width: 100%; margin-top: .6rem; }
.aside-card .btn + .btn { margin-top: .7rem; }
.related { margin-top: 3rem; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .aside-card { position: static; } }

.map-card.is-solo { max-width: 640px; margin-inline: auto; }
.map-idf path.is-current { fill: var(--accent); }
.map-idf path.is-current:hover { fill: #ffd24d; }
.map-labels text.is-current { fill: var(--ink); stroke: rgba(255, 255, 255, .6); }

.thanks { text-align: center; max-width: 640px; margin-inline: auto; }
.thanks .btn { margin-top: 1rem; }
.error-page { text-align: center; }
.error-page .big { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; color: var(--blue); margin-bottom: .2rem; }

/* ---------- Barre d'appel mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--ink); box-shadow: 0 -6px 24px rgba(0, 0, 0, .3); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem .5rem; font-weight: 800; text-decoration: none; font-size: 1rem; }
  .mobile-bar svg { width: 1.2rem; height: 1.2rem; }
  .mobile-bar .call { color: var(--white); }
  .mobile-bar .quote { background: var(--accent); color: var(--ink); }
  body { padding-bottom: 3.6rem; }
}

/* ---------- Apparition au défilement (uniquement si JS actif) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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