/* ==========================================================
   SYNATEEC — style.css
   Niveau d'animation : 1 (subtil) — syndicat / institutionnel
   Palette tirée du logo : vert FTC, bordeaux, magenta, bleu
   ========================================================== */

:root {
  --color-green: #1b6fb8;
  --color-green-deep: #0b2f5b;
  --color-maroon: #0f3b73;
  --color-magenta: #9a7418;
  --color-blue: #0b4a8f;
  --color-paper: #f4f9fd;
  --color-ink: #0f2238;
  --color-muted: #4a5f75;
  --color-line: #d3e0ec;
  --color-white: #ffffff;

  --font-heading: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.55rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.6vw, 5rem);

  --radius: 6px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-ink); color: #fff; padding: 0.6rem 1rem; z-index: 10000;
}
.skip-link:focus { left: 0; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  height: var(--header-h);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  transition: transform 0.35s ease;
  will-change: transform;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--color-green-deep); line-height: 1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 400; color: var(--color-muted); margin-top: 3px; }

.nav-list { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; align-items: center; }
.nav-list a {
  display: block; padding: 0.55rem 0.9rem; text-decoration: none; font-weight: 500;
  color: var(--color-ink); border-radius: var(--radius); position: relative;
}
.nav-list a:hover { color: var(--color-green-deep); }
.nav-list a[aria-current="page"] { color: var(--color-green-deep); }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 2px; height: 3px; background: var(--color-green);
}
.nav-list .nav-cta {
  background: var(--color-green); color: #fff; margin-left: 0.5rem;
}
.nav-list .nav-cta:hover { background: var(--color-green-deep); color: #fff; }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--color-line);
  background: var(--color-white); border-radius: var(--radius); cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--color-ink); transition: transform 0.3s ease, opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(320px, 86vw);
    background: var(--color-white); border-left: 1px solid var(--color-line);
    transform: translateX(100%); transition: transform 0.35s ease; will-change: transform;
    padding: 1.5rem; visibility: hidden;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav-list a { padding: 0.9rem 0.5rem; font-size: 1.1rem; border-bottom: 1px solid var(--color-line); border-radius: 0; }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--color-green); }
  .nav-list .nav-cta { margin: 1rem 0 0; text-align: center; border: 0; border-radius: var(--radius); }
}

.nav-list .lang-switch { font-size: 0.85rem; font-weight: 600; border: 1px solid var(--color-line); padding: 0.3rem 0.65rem; margin-left: 0.5rem; }
.nav-list .lang-switch:hover { border-color: var(--color-green); }
@media (max-width: 860px) { .nav-list .lang-switch { margin: 0.75rem 0 0; text-align: center; border-radius: var(--radius); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--color-green); color: #fff; }
.btn-primary:hover { background: #0b4a8f; }
.btn-light { background: #fff; color: var(--color-green-deep); }
.btn-light:hover { background: #e8f3fb; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { border-color: var(--color-green-deep); color: var(--color-green-deep); }
.btn-outline:hover { background: var(--color-green-deep); color: #fff; }

/* ---------- Hero : la balance (élément distinctif) ---------- */
.hero {
  background: var(--color-green-deep);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }
.hero h1 { color: #fff; margin-bottom: 0.45em; }
.hero-lead { font-size: var(--step-1); color: #d6ecfb; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-motto {
  list-style: none; padding: 1.25rem 0 0; margin: 2.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25); font-family: var(--font-heading); font-size: var(--step-1); font-style: italic;
}

.balance { width: 100%; max-width: 480px; margin-inline: auto; }
.balance .line { stroke: #fff; stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.balance .thin { stroke-width: 2.5; opacity: 0.8; }
.balance .pan { fill: rgba(255, 255, 255, 0.08); }
.balance .bolt { fill: #ffd23f; }
.balance .drop { fill: #5ab4ff; }
#beam { transform-origin: 200px 70px; animation: beam-settle 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both; }
#pan-l { transform-origin: 40px 70px; animation: pan-settle 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both; }
#pan-r { transform-origin: 360px 70px; animation: pan-settle 2.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both; }
@keyframes beam-settle { from { transform: rotate(-9deg); } to { transform: rotate(0deg); } }
@keyframes pan-settle  { from { transform: rotate(9deg); } to { transform: rotate(0deg); } }

/* ---------- Page header (pages intérieures) ---------- */
.page-hero { background: var(--color-green-deep); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero h1 { font-size: var(--step-3); color: #fff; max-width: 20ch; }
.page-hero p { color: #d6ecfb; font-size: var(--step-1); max-width: 56ch; margin: 0; }

/* ---------- Principes (liste éditoriale) ---------- */
.principles { border-top: 2px solid var(--color-ink); }
.principle {
  display: grid; gap: 0.5rem 3rem; padding-block: 2rem; border-bottom: 1px solid var(--color-line);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .principle { grid-template-columns: 0.8fr 1.2fr; align-items: baseline; } }
.principle h3 { font-size: var(--step-3); margin: 0; }
.principle:nth-child(1) h3 { color: var(--color-green); }
.principle:nth-child(2) h3 { color: var(--color-magenta); }
.principle:nth-child(3) h3 { color: var(--color-blue); }
.principle p { margin: 0; }

/* ---------- Bento actions ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .b-a { grid-column: span 4; grid-row: span 2; }
  .bento .b-b { grid-column: span 2; }
  .bento .b-c { grid-column: span 2; }
  .bento .b-d { grid-column: span 6; }
}
.bento article { padding: 1.75rem; border-radius: 14px; background: var(--color-white); border: 1px solid var(--color-line); }
.bento .b-a { background: var(--color-maroon); color: #fff; border-color: var(--color-maroon); display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; }
.bento .b-a h3 { font-size: var(--step-2); color: #fff; }
.bento .b-a p { color: #f0d9e5; }
.bento .b-d { background: #e3f1fb; border-color: #c4e0f5; display: grid; gap: 0.5rem 2rem; }
@media (min-width: 800px) { .bento .b-d { grid-template-columns: 0.5fr 1fr; align-items: center; } }
.bento article p { margin: 0; }
.bento .icon { width: 30px; height: 30px; margin-bottom: 1rem; color: var(--color-green); }
.bento .b-a .icon { color: #ff8fc0; }

/* ---------- Bloc affiliation ---------- */
.affil { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .affil { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.photo-slot {
  aspect-ratio: 4 / 3; border-radius: 14px; background: linear-gradient(135deg, var(--color-green) 0%, var(--color-maroon) 100%);
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); text-align: center; padding: 1.5rem; font-size: 0.95rem;
  position: relative; overflow: hidden;
}
.photo-slot svg { width: 56px; height: 56px; margin: 0 auto 0.75rem; opacity: 0.9; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--color-maroon); color: #fff; }
.cta-band .wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) { .cta-band .wrap { grid-template-columns: 1.4fr auto; gap: 4rem; } }
.cta-band h2 { font-size: var(--step-3); color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: #f0d9e5; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Pages intérieures : texte ---------- */
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 0.7fr 1.3fr; gap: 4rem; } }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.values li { padding-left: 1.25rem; border-left: 4px solid var(--color-green); }
.values li:nth-child(2) { border-color: var(--color-magenta); }
.values li:nth-child(3) { border-color: var(--color-blue); }
.values strong { display: block; font-family: var(--font-heading); font-size: var(--step-1); }

/* ---------- Footer ---------- */
.site-footer { background: #0a1a2e; color: #bccbdc; padding-top: 4rem; font-size: 0.97rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: #fff; margin: 0 0 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; color: #bccbdc; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; color: #fff; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.footer-brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.footer-lang { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.flag { width: 24px; height: 16px; border-radius: 2px; flex: none; }
.footer-bottom {
  margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; font-size: 0.88rem;
}
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.credit { opacity: 0.7; }

/* ---------- Boutons flottants ---------- */
.float-btn {
  position: fixed; right: 1.1rem; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.3s, transform 0.3s; will-change: transform, opacity;
}
.float-btn.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float { bottom: 1.1rem; width: 58px; height: 58px; background: #25d366; color: #fff; z-index: 9999; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.wa-float svg { width: 30px; height: 30px; }
.top-float { bottom: 5.4rem; width: 46px; height: 46px; background: var(--color-white); color: var(--color-ink); z-index: 9998; border: 1px solid var(--color-line); }
.top-float svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal (utilisé avec parcimonie) ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; will-change: transform, opacity; }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 404 (réservé phase 2) ---------- */

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================
   Ajouts v2 : stats, timeline, services, adhésion, contact, légal
   ========================================================== */

/* Emplacements photo : l'image couvre le fond; si elle manque, le fond reste */
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot > div { position: relative; z-index: 0; }
.photo-slot.tall { aspect-ratio: 3 / 4; }

/* Bandeau chiffres */
.stats { background: var(--color-paper); border-bottom: 1px solid var(--color-line); }
.stats dl { display: grid; gap: 0; margin: 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .stats dl { grid-template-columns: repeat(4, 1fr); } }
.stats .stat { padding: 2rem 1.25rem; border-left: 1px solid var(--color-line); }
.stats .stat:first-child { border-left: 0; }
@media (max-width: 859px) { .stats .stat:nth-child(3) { border-left: 0; } .stats .stat:nth-child(n+3) { border-top: 1px solid var(--color-line); } }
.stats dt { font-family: var(--font-heading); font-size: var(--step-3); font-weight: 700; color: var(--color-green-deep); line-height: 1; order: 0; }
.stats dd { order: 1; margin: 0.5rem 0 0; color: var(--color-muted); font-size: var(--step--1); }
.stats .stat { display: flex; flex-direction: column; }
.stats-note { font-size: 0.8rem; color: var(--color-muted); padding-bottom: 1.25rem; margin: 0; max-width: none; }

/* Entreprises */
.chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.35rem 0.8rem; border: 1px solid var(--color-line); border-radius: 999px; background: #fff; font-weight: 500; font-size: 0.92rem; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--color-green); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 0.45rem; width: 15px; height: 15px; background: var(--color-paper); border: 3px solid var(--color-green); border-radius: 50%; }
.timeline .year { font-family: var(--font-heading); font-weight: 700; font-size: var(--step-1); color: var(--color-green-deep); display: block; }
.timeline p { margin: 0.15rem 0 0; }

/* Liste de services numérotée */
.service-list { list-style: none; counter-reset: svc; padding: 0; margin: 0; border-top: 2px solid var(--color-ink); }
.service-list li { counter-increment: svc; display: grid; gap: 0.4rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--color-line); grid-template-columns: 1fr; }
@media (min-width: 800px) { .service-list li { grid-template-columns: 0.9fr 1.4fr; } }
.service-list h3 { margin: 0; font-size: var(--step-1); }
.service-list h3::before { content: counter(svc, decimal-leading-zero); display: block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--color-magenta); letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.service-list p { margin: 0; }

/* Secteurs */
.sectors { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
.sector h3 { margin: 1rem 0 0.35rem; }
.sector p { margin: 0; color: var(--color-muted); }
.sector .photo-slot { aspect-ratio: 4 / 3; }

/* Étapes d'adhésion */
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--color-green); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }
.steps strong { display: block; }
.steps p { margin: 0; color: var(--color-muted); }
.callout { margin-top: 2rem; padding: 1.25rem 1.5rem; border-left: 5px solid var(--color-magenta); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { margin: 0; }

/* Affiliations */
.affil-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.affil-list li { padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--color-line); border-radius: 10px; }
.affil-list strong { display: block; font-family: var(--font-heading); font-size: var(--step-1); color: var(--color-green-deep); }
.affil-list span { color: var(--color-muted); font-size: var(--step--1); }

/* Définitions (organisation) */
.org-list { margin: 0; display: grid; gap: 1rem; }
.org-list div { padding-bottom: 1rem; border-bottom: 1px solid var(--color-line); }
.org-list dt { font-weight: 600; font-family: var(--font-heading); font-size: var(--step-1); }
.org-list dd { margin: 0.2rem 0 0; color: var(--color-muted); }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; } }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--color-line); border-radius: 12px; }
.contact-card h3 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-magenta); margin: 0 0 0.4rem; font-weight: 600; }
.contact-card p, .contact-card a { margin: 0; font-size: 1.05rem; }
.contact-card a { display: block; text-decoration: none; padding: 0.15rem 0; }
.contact-card a:hover { color: var(--color-green); text-decoration: underline; }

.field { position: relative; margin-bottom: 1.25rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.4rem 0.9rem 0.5rem; font: inherit; color: var(--color-ink);
  background: #fff; border: 1.5px solid #b7c8da; border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field label {
  position: absolute; left: 0.9rem; top: 0.95rem; color: var(--color-muted); pointer-events: none;
  transition: transform 0.2s ease, font-size 0.2s ease, color 0.2s; transform-origin: left top;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-0.65rem); font-size: 0.75rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-green); outline: none; box-shadow: 0 0 0 3px rgba(27,111,184, 0.2); }
.field .err { display: none; color: #b00020; font-size: 0.85rem; margin-top: 0.3rem; }
.field.invalid input, .field.invalid textarea { border-color: #b00020; }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; }
.form-note { font-size: 0.85rem; color: var(--color-muted); margin-top: 1rem; }

.map-frame { border: 0; width: 100%; height: 420px; display: block; border-radius: 14px; background: #dce8f2; }
.map-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.map-hint { font-size: 0.88rem; color: var(--color-muted); margin: 0; }

/* Pages légales et 404 */
.legal { max-width: 780px; }
.legal h2 { font-size: var(--step-1); margin-top: 2.2em; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.notfound .big { font-family: var(--font-heading); font-size: clamp(5rem, 18vw, 11rem); font-weight: 700; color: var(--color-green); line-height: 1; margin: 0; }
.notfound p { margin-inline: auto; }

/* ==========================================================
   v3 : accueil cinématique, bandeaux photo par section
   ========================================================== */
.bg-img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: var(--pos, 50% 50%); }
@media (max-width: 800px) { .bg-img { object-position: var(--pos-m, var(--pos, 50% 50%)); } }
.hero-media, .band-media { position: absolute; inset: 0; z-index: -1; }

.eyebrow { display: flex; align-items: center; gap: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: #bfe2f8; margin: 0 0 1.25rem; }
.eyebrow::before { content: ""; width: 2.5rem; height: 3px; background: var(--color-green); }

/* Hero plein écran */
.hero-cine { position: relative; isolation: isolate; min-height: min(92svh, 880px); display: flex; align-items: center; background: var(--color-green-deep); color: #fff; overflow: hidden; padding-block: 5rem 8rem; }
.hero-cine .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,31,62,0.94) 0%, rgba(11,47,91,0.78) 42%, rgba(11,47,91,0.18) 100%), linear-gradient(0deg, rgba(7,31,62,0.65), transparent 35%); }
@media (max-width: 800px) { .hero-cine .hero-media::after { background: linear-gradient(0deg, rgba(7,31,62,0.93), rgba(7,31,62,0.6)); } .hero-cine { align-items: flex-end; } }
.hero-cine h1 { font-size: var(--step-4); max-width: 17ch; color: #fff; }
.hero-cine .hero-lead { max-width: 50ch; }

/* Chiffres flottants */
.stats.stats-float { position: relative; z-index: 2; margin-top: -4.75rem; background: transparent; border: 0; }
.stats-float .stats-card { background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(11,47,91, 0.18); padding: 0.5rem 0.5rem 0.25rem; }
.stats-float .stats-note { padding: 0.5rem 1.25rem 0.9rem; }

/* Triptyque des secteurs */
.triptych { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .triptych { grid-template-columns: repeat(3, 1fr); } }
.panel { position: relative; isolation: isolate; min-height: clamp(320px, 44vw, 520px); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; color: #fff; text-decoration: none; border-radius: 18px; overflow: hidden; }
.panel .bg-img { position: absolute; inset: 0; z-index: -2; transition: transform 0.9s ease; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,20,42,0.9) 0%, rgba(5,20,42,0.3) 55%, transparent 100%); }
.panel:hover .bg-img { transform: scale(1.05); }
.panel h3 { color: #fff; font-size: var(--step-2); margin: 0 0 0.35rem; }
.panel p { margin: 0; color: #e3f1fb; max-width: 34ch; }
.panel .more { margin-top: 1rem; font-weight: 600; font-size: 0.95rem; border-bottom: 2px solid var(--color-green); align-self: flex-start; }

/* Balance dans un panneau */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; } }
.balance-panel { background: var(--color-green-deep); border-radius: 24px; padding: 2.5rem; display: grid; place-items: center; position: relative; overflow: hidden; color: #fff; }
.balance-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 15%, rgba(27,111,184,0.5), transparent 60%); }
.balance-panel .balance { position: relative; }
.balance-panel:not(.is-in) #beam, .balance-panel:not(.is-in) #pan-l, .balance-panel:not(.is-in) #pan-r { animation-play-state: paused; }
.no-js .balance-panel #beam, .no-js .balance-panel #pan-l, .no-js .balance-panel #pan-r { animation-play-state: running; }
.balance-caption { position: relative; margin: 1.25rem 0 0; text-align: center; font-family: var(--font-heading); font-style: italic; color: #d6ecfb; font-size: var(--step-0); }

/* Bandeau photo avec cartes qui remontent */
.band { position: relative; isolation: isolate; color: #fff; padding-block: 5rem 9.5rem; overflow: hidden; background: var(--color-green-deep); }
.band .band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,47,91,0.93) 0%, rgba(11,47,91,0.6) 100%); }
.band h2 { color: #fff; max-width: 18ch; }
.band p { color: #d6ecfb; max-width: 52ch; margin: 0; }
.bento-pull { margin-top: -6rem; position: relative; z-index: 2; }
.bento-pull .bento article { box-shadow: 0 14px 36px rgba(11,47,91,0.1); }

/* CTA et page-hero avec photo */
.cta-band.cta-photo { position: relative; isolation: isolate; overflow: hidden; }
.cta-photo .band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,59,115,0.94) 0%, rgba(15,59,115,0.7) 100%); }
.page-hero.page-hero-photo { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4.5rem, 10vw, 8rem); }
.page-hero-photo .band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,31,62,0.94) 0%, rgba(11,47,91,0.7) 55%, rgba(11,47,91,0.3) 100%); }

/* Réglages hero (v3.1) : titre plus compact pour garder les boutons visibles */
.hero-cine h1 { font-size: clamp(2.2rem, 1.5rem + 2.7vw, 3.9rem); max-width: 21ch; }
.hero-cine { padding-block: 4rem 7.5rem; }

/* Empêche tout défilement horizontal (menu mobile hors écran, images recadrées) */
html, body { overflow-x: clip; }
@media (max-width: 860px) { .site-nav:not(.is-open) { pointer-events: none; } }

/* Hero accueil sur mobile : photo visible en haut, texte en dessous sur fond vert */
@media (max-width: 800px) {
  .hero-cine { display: block; min-height: 0; padding: 0; }
  .hero-cine .hero-media { position: relative; inset: auto; z-index: auto; height: 330px; }
  .hero-cine .hero-media::after { background: linear-gradient(0deg, var(--color-green-deep) 0%, rgba(11,47,91,0) 55%); }
  .hero-cine > .wrap { position: relative; padding-top: 0.25rem; padding-bottom: 7rem; }
  .hero-cine h1 { font-size: clamp(2rem, 8.2vw, 2.6rem); }
}

/* ==========================================================
   v3.2 "Transparence" : en-tête transparent, hero allégé,
   carte de chiffres, illustrations
   ========================================================== */

/* --- En-tête : transparent sur l'image, blanc au défilement --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent; will-change: auto;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
  --hc: #fff; --hb: #fff; --hc-sub: #d0e8f9; --hc-line: rgba(255, 255, 255, 0.5);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,31,62, 0.62), rgba(7,31,62, 0)); transition: opacity 0.3s ease;
}
.site-header.is-scrolled, .site-header.menu-open, .site-header.is-solid {
  background: #fff; border-bottom-color: var(--color-line); box-shadow: 0 6px 24px rgba(11,47,91, 0.08);
  --hc: var(--color-ink); --hb: var(--color-green-deep); --hc-sub: var(--color-muted); --hc-line: var(--color-line);
}
.site-header.is-scrolled::before, .site-header.menu-open::before, .site-header.is-solid::before { opacity: 0; }
.site-header.is-solid { position: sticky; }
.brand img { width: 46px; height: 47px; object-fit: contain; border-radius: 0; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); transition: filter 0.3s; }
.site-header.is-scrolled .brand img, .site-header.menu-open .brand img, .site-header.is-solid .brand img { filter: none; }
.brand-name { color: var(--hb); }
.brand-sub { color: var(--hc-sub); }
.nav-list a, .nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--hc); }
.nav-list a:hover { opacity: 0.8; }
.nav-list a[aria-current="page"]::after { background: #8fd0f5; }
.site-header.is-scrolled .nav-list a[aria-current="page"]::after, .site-header.is-solid .nav-list a[aria-current="page"]::after { background: var(--color-green); }
.nav-list .nav-cta, .nav-list .nav-cta:hover { color: #fff; opacity: 1; }
.nav-list .lang-switch { border-color: var(--hc-line); color: var(--hc); }
.burger { background: transparent; border-color: var(--hc-line); }
.burger span { background: var(--hc); }
@media (max-width: 860px) {
  .site-nav { background: #fff; box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12); overflow-y: auto; }
  .nav-list a, .nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--color-ink); opacity: 1; }
  .nav-list a[aria-current="page"] { color: var(--color-green); }
  .nav-list .lang-switch { color: var(--color-ink); border-color: var(--color-line); }
}

/* Espace pour l'en-tête fixe */
.page-hero { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); }
.page-hero.page-hero-photo { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)); padding-bottom: clamp(3.5rem, 8vw, 6rem); }

/* --- Hero accueil : titre plus petit, remonté, photo bien visible --- */
.hero-cine { align-items: flex-start; min-height: min(88svh, 800px); padding-top: calc(var(--header-h) + 3rem); padding-bottom: 9rem; }
.hero-cine .hero-media::after {
  background: linear-gradient(90deg, rgba(7,31,62, 0.9) 0%, rgba(11,47,91, 0.6) 34%, rgba(11,47,91, 0) 68%),
              linear-gradient(0deg, rgba(7,31,62, 0.55), transparent 28%);
}
.hero-cine h1 { font-size: clamp(1.85rem, 1.2rem + 2.1vw, 3rem); max-width: 24ch; margin-bottom: 0.4em; }
.hero-cine .hero-lead { font-size: var(--step-0); max-width: 46ch; }
.hero-cine .hero-actions { margin-top: 1.5rem; }
.hero-cine .hero-motto { margin-top: 2rem; font-size: var(--step-0); }
@media (max-width: 800px) {
  .hero-cine { display: block; min-height: 0; padding: 0; }
  .hero-cine .hero-media { position: relative; inset: auto; z-index: auto; height: 380px; }
  .hero-cine .hero-media::after { background: linear-gradient(0deg, var(--color-green-deep) 0%, rgba(11,47,91, 0) 60%); }
  .hero-cine > .wrap { position: relative; margin-top: -6.5rem; padding-top: 0; padding-bottom: 7rem; }
  .hero-cine h1 { font-size: clamp(1.65rem, 6.8vw, 2.1rem); }
  .hero-cine .hero-lead { font-size: 1rem; }
  .eyebrow { font-size: 0.7rem; margin-bottom: 0.9rem; }
}

/* --- Carte de chiffres --- */
.stats-float .stats-card { padding: 0; overflow: hidden; }
.stats-float dl { gap: 1px; background: var(--color-line); margin: 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .stats-float dl { grid-template-columns: repeat(4, 1fr); } }
.stats-float .stat { background: #fff; border: 0 !important; padding: 1.4rem 1.3rem 1.3rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.stat-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #e3f1fb; color: var(--color-green-deep); margin-bottom: 0.5rem; }
.stat-ic svg { width: 22px; height: 22px; }
.stats-float .stat:nth-child(2) .stat-ic { background: #f6ecd2; color: var(--color-magenta); }
.stats-float .stat:nth-child(3) .stat-ic { background: #e4ecf8; color: var(--color-blue); }
.stats-float .stat:nth-child(4) .stat-ic { background: #dfe9f6; color: var(--color-maroon); }
.stats-float dt { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); order: 0; line-height: 1.05; }
.stats-float dd { order: 1; margin: 0; font-size: 0.9rem; line-height: 1.35; }
.stats-float .stats-note { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; background: #eef6fc; font-size: 0.8rem; color: var(--color-muted); margin: 0; max-width: none; }
.stats-note svg { width: 16px; height: 16px; flex: none; }

/* --- Illustrations (tuiles) : un visuel de repli est toujours affiché, l'image le remplace --- */
.illus { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; display: grid; place-items: center; color: #fff; isolation: isolate; }
.illus::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle at 18% 18%, rgba(255,255,255,0.2), transparent 45%),
  radial-gradient(circle at 88% 88%, rgba(255,255,255,0.12), transparent 42%); }
.illus .illus-ic { width: 34%; max-width: 120px; height: auto; stroke-width: 1.2; opacity: 0.92; }
.illus img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tone-green { background: linear-gradient(135deg, #1b6fb8, #0b2f5b); }
.tone-magenta { background: linear-gradient(135deg, #9a7418, #0f3b73); }
.tone-blue { background: linear-gradient(135deg, #0b4a8f, #0b2f5b); }
.tone-maroon { background: linear-gradient(135deg, #12447d, #071f3e); }
.two-col .illus.side { margin-top: 1.5rem; max-width: 340px; }
@media (max-width: 899px) { .two-col .illus.side { aspect-ratio: 16 / 7; max-width: none; } }

/* Carte "Défendre chaque travailleur" : illustration en haut, texte en bas */
.bento .b-a { padding: 0; overflow: hidden; justify-content: flex-start; min-height: 0; }
.b-a .b-a-art { flex: 1; min-height: 190px; display: flex; }
.b-a .b-a-art .illus { border-radius: 0; aspect-ratio: auto; width: 100%; min-height: 190px; }
.b-a .b-a-body { padding: 1.5rem 1.75rem 1.75rem; }
.b-a .b-a-body .icon { margin-bottom: 0.6rem; }

/* Domaines d'action : une tuile par service */
.service-list li { grid-template-columns: 84px 1fr; align-items: start; gap: 0.35rem 1.1rem; }
.service-list li .illus { grid-row: span 2; aspect-ratio: 1 / 1; border-radius: 16px; }
.service-list li .illus .illus-ic { width: 46%; }
@media (min-width: 800px) {
  .service-list li { grid-template-columns: 132px 0.9fr 1.4fr; align-items: center; gap: 1.5rem 2rem; }
  .service-list li .illus { grid-row: auto; }
}
.notfound .illus { max-width: 340px; margin: 0 auto 1.5rem; }

/* ==========================================================
   v4.0 "Azur" : palette bleu ciel / bleu nuit / blanc + touches dorées
   ========================================================== */
:root { --color-sky: #8fd0f5; --color-azure: #3aa5e3; --color-gold: #c9a24b; --color-gold-deep: #9a7418; }

/* Tuiles d'illustration aux couleurs Azur */
.tone-green  { background: linear-gradient(135deg, #3aa5e3, #1b6fb8); }
.tone-magenta{ background: linear-gradient(135deg, #d6b35c, #9a7418); }
.tone-blue   { background: linear-gradient(135deg, #1b5ba8, #0b2f5b); }
.tone-maroon { background: linear-gradient(135deg, #12447d, #071f3e); }
.tone-sky    { background: linear-gradient(135deg, #a8e0fa, #56b6ea); color: #0b2f5b; }

/* Touches dorées */
.eyebrow { color: #d0e8f9; }
.eyebrow::before { background: var(--color-gold); }
.principles { border-top-color: var(--color-green-deep); }
.timeline { border-left-color: var(--color-gold); }
.timeline li::before { border-color: var(--color-gold); }
.steps li::before { background: var(--color-green-deep); }
.values li { border-left-color: var(--color-azure); }
.values li:nth-child(2) { border-color: var(--color-gold); }
.values li:nth-child(3) { border-color: var(--color-green-deep); }
.hero-motto li:not(:last-child)::after { content: ""; }

/* Navigation à 5 liens : un peu plus compacte */
@media (min-width: 861px) and (max-width: 1180px) {
  .nav-list a { padding: 0.5rem 0.55rem; font-size: 0.94rem; }
  .brand-sub { display: none; }
}

/* Citation centrale */
.pull { background: linear-gradient(180deg, #e8f4fc, #f4f9fd); text-align: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.pull .gold { display: block; width: 64px; height: 3px; background: var(--color-gold); margin: 0 auto 1.5rem; }
.pull-q { font-family: var(--font-heading); font-size: var(--step-3); line-height: 1.2; font-weight: 500; color: var(--color-green-deep); max-width: 26ch; margin: 0 auto 1.1rem; }
.pull-s { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; color: var(--color-gold-deep); margin: 0 auto; }

/* Témoignages */
.quotes { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: #fff; border: 1px solid var(--color-line); border-radius: 18px; padding: 1.75rem; margin: 0; display: flex; flex-direction: column; gap: 1.1rem; box-shadow: 0 10px 30px rgba(11, 47, 91, 0.07); }
.quote svg { width: 34px; height: 34px; color: var(--color-gold); }
.quote blockquote { margin: 0; font-family: var(--font-heading); font-size: var(--step-1); line-height: 1.4; font-style: italic; color: var(--color-ink); }
.quote figcaption { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; font-size: 0.92rem; color: var(--color-muted); line-height: 1.35; }
.quote figcaption strong { color: var(--color-ink); }
.quote .av { width: 44px; height: 44px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #3aa5e3, #0b2f5b); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 0.85rem; }

/* Page formations */
.t-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card { background: #fff; border: 1px solid var(--color-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.t-card .illus { border-radius: 0; aspect-ratio: 16 / 10; }
.t-card .body { padding: 1.25rem 1.4rem 1.5rem; }
.t-card h3 { margin: 0 0 0.4rem; font-size: var(--step-1); }
.t-card p { margin: 0; color: var(--color-muted); }
.aud { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .aud { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.aud > div { border-top: 3px solid var(--color-gold); padding-top: 1rem; }
.aud h3 { margin: 0 0 0.4rem; }
.aud p { margin: 0; color: var(--color-muted); }
.stats-line { display: grid; gap: 1px; background: var(--color-line); border-radius: 16px; overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 700px) { .stats-line { grid-template-columns: repeat(3, 1fr); } }
.stats-line > div { background: #fff; padding: 1.5rem 1.6rem; }
.stats-line strong { display: block; font-family: var(--font-heading); font-size: var(--step-3); color: var(--color-green-deep); line-height: 1.05; }
.stats-line span { color: var(--color-muted); font-size: 0.95rem; }


/* ==========================================================
   v4.1 "Azur Prisme" : le bleu ciel et le blanc (demande du client)
   portent la page ; les 3 couleurs du logo (vert, magenta, bordeaux)
   reviennent comme accents ; l'or reste un filet de luxe.
   ========================================================== */
:root {
  --logo-green: #0b9b4b;
  --logo-magenta: #b3125f;
  --logo-maroon: #4a0f2e;
  --color-magenta: #b3125f;   /* accent logo (était l'or en v4.0) */
  --color-maroon: #4a0f2e;    /* accent logo (était un bleu en v4.0) */
}

/* La devise : trois mots, trois couleurs du logo */
.principle:nth-child(1) h3 { color: var(--logo-green); }
.principle:nth-child(2) h3 { color: var(--logo-magenta); }
.principle:nth-child(3) h3 { color: var(--color-blue); }
.values li:nth-child(1) { border-color: var(--logo-green); }
.values li:nth-child(2) { border-color: var(--logo-magenta); }
.values li:nth-child(3) { border-color: var(--color-blue); }

/* Petits repères en magenta, validations en vert */
.service-list h3::before, .contact-card h3 { color: var(--logo-magenta); }
.callout { border-left-color: var(--logo-magenta); }
.stats-float .stat:nth-child(1) .stat-ic { background: #e3f1fb; color: var(--color-blue); }
.stats-float .stat:nth-child(2) .stat-ic { background: #fbe6f0; color: var(--logo-magenta); }
.stats-float .stat:nth-child(3) .stat-ic { background: #e1f4ea; color: var(--logo-green); }
.stats-float .stat:nth-child(4) .stat-ic { background: #f1e2ea; color: var(--logo-maroon); }

/* Blocs d'accent : bordeaux du logo sur fond ciel / blanc */
.bento .b-a { background: var(--logo-maroon); border-color: var(--logo-maroon); }
.cta-band { background: var(--logo-maroon); }
.cta-photo .band-media::after { background: linear-gradient(90deg, rgba(74,15,46,0.95) 0%, rgba(74,15,46,0.72) 100%); }
.cta-band p { color: #f0d9e5; }
.btn-light { color: var(--logo-maroon); }

/* Tuiles d'illustration : une teinte par couleur de la palette */
.tone-sky     { background: linear-gradient(135deg, #a8e0fa, #56b6ea); color: #0b2f5b; }
.tone-blue    { background: linear-gradient(135deg, #1b6fb8, #0b2f5b); }
.tone-navy    { background: linear-gradient(135deg, #12447d, #071f3e); }
.tone-green   { background: linear-gradient(135deg, #0b9b4b, #06472a); }
.tone-magenta { background: linear-gradient(135deg, #b3125f, #4a0f2e); }
.tone-maroon  { background: linear-gradient(135deg, #5a1438, #2a0719); }

/* v4.2 "Fresque" : proportions alignées sur les illustrations livrées */
.two-col .illus.side { aspect-ratio: 570 / 297; max-width: 380px; }
@media (max-width: 899px) { .two-col .illus.side { aspect-ratio: 570 / 297; max-width: none; } }
.notfound .illus { aspect-ratio: 570 / 297; max-width: 420px; }
.t-card .illus { aspect-ratio: 480 / 467; }
.b-a .b-a-art .illus img { object-position: center; }
