/* ============================================================
   La Compagnie des Comptes (LCDC) - Expert-comptable à Noisy-le-Grand et Antony
   Style des sites du groupe Numeris, sur le modèle Bexco : marine + accent du
   cabinet (orange du logo LCDC), Poppins/Lato, cartes blanches, bandes marines.
   Héros : panneau marine, photo fondue à droite, texte à gauche.
   ============================================================ */

:root {
  /* -- Couleurs -- */
  --navy: #1e2f55;         /* panneaux */
  --navy-dark: #0d1c3f;    /* marine du groupe */
  --navy-deep: #0a1630;
  --accent: #e84828;       /* orange du logo LCDC */
  --accent-dark: #c43a1c;  /* même teinte, lisible sur blanc */
  --accent-soft: rgba(232, 72, 40, .12);
  --accent-light: #f6a58e; /* accent sur fond marine (héros, bandes sombres) */
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --text: #4a5468;
  --muted: #7b8494;
  --line: #e4e8ee;
  --line-ink: rgba(255, 255, 255, .14);

  /* -- Typographies -- */
  --f-title: 'Poppins', system-ui, sans-serif;
  --f-body: 'Lato', system-ui, sans-serif;

  /* -- Rythme -- */
  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 6.5rem);
  --radius: 10px;
  --shadow: 0 6px 24px rgba(13, 28, 63, .08);
  --shadow-lg: 0 18px 50px rgba(13, 28, 63, .14);
  --ease: cubic-bezier(.25, .6, .25, 1);
  --dur: .7s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 {
  font-family: var(--f-title);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy-dark);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.13rem; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1.1em; }
.muted { color: var(--muted); }
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
::selection { background: var(--navy); color: #fff; }

/* ---------- Lien d'évitement (clavier) ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100%; z-index: 300;
  font-family: var(--f-title); font-size: .85rem; font-weight: 600;
  background: var(--accent); color: #fff;
  padding: .7rem 1.1rem; border-radius: 6px; box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 1rem; }

/* ---------- Filet accent sous les titres ---------- */
.total-rule {
  width: 54px; height: 4px; border: 0; border-radius: 2px;
  background: var(--accent); margin: 1.6rem auto 0;
  transform: scaleX(0); transform-origin: center;
  transition: transform .8s var(--ease);
}
.total-rule.is-in { transform: scaleX(1); }

/* ---------- Étiquettes ---------- */
.eyebrow {
  display: block;
  font-family: var(--f-title); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-dark); margin: 0 0 .9rem;
}
.section-dark .eyebrow, .section-navy .eyebrow { color: var(--accent-light); }
.section-dark h2 em, .section-navy h2 em { color: var(--accent-light); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-title); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .95rem 1.7rem; border-radius: 5px;
  border: 2px solid var(--navy); color: var(--navy);
  background: transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, transform .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #fff; border-color: #fff; color: var(--accent-dark); }
.section-white .btn-accent:hover, .section .btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 78px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.site-footer .brand img { height: 42px; }
.main-nav { margin-left: auto; overscroll-behavior: contain; }
.main-nav > ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .6rem .75rem;
  font-family: var(--f-title); font-size: .85rem; font-weight: 500;
  color: var(--navy-dark); white-space: nowrap;
  transition: color .25s;
}
.main-nav a:hover, .main-nav li.current > a { color: var(--accent-dark); }
.nav-phone { display: none; }
.header-cta { flex: 0 0 auto; padding: .75rem 1.4rem; }

/* Burger */
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: .6rem; }
.nav-toggle span {
  display: block; width: 25px; height: 3px; margin: 5px 0; border-radius: 2px;
  background: var(--navy-dark); transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Héros (gabarit de la v1 conservé) ----------
   Panneau marine, photo fondue à droite sous un dégradé marine → violet,
   texte à gauche centré verticalement : surtitre, titre, accroche, boutons. */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(88vh, 780px); background: var(--navy-dark); color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: -6% 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .42; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,28,63,.94) 18%, rgba(13,28,63,.55) 58%, rgba(123,66,250,.30) 100%);
}
.hero .container { position: relative; z-index: 2; width: 100%; padding-block: clamp(4rem, 8vw, 5.5rem); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 16ch; margin-bottom: 0; }
.hero-home h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.hero .eyebrow { color: var(--accent-light); margin-bottom: 1.1rem; }
.hero h1 em { color: var(--accent-light); }
.hero .lead { max-width: 56ch; font-size: 1.12rem; color: rgba(255,255,255,.86); margin-top: 1.4rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.page-hero { min-height: 360px; }
.page-hero .container { padding-block: clamp(3rem, 6vw, 4rem); }
.page-hero .lead { font-size: 1.04rem; }

/* Révélation ligne à ligne du titre */
.line { display: block; overflow: hidden; }
.line-inner { display: block; transform: translateY(110%); transition: transform .85s var(--ease); }
body.loaded .line-inner { transform: none; }
.line:nth-child(2) .line-inner { transition-delay: .1s; }
.line:nth-child(3) .line-inner { transition-delay: .2s; }
.hero [data-hero-fade] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s var(--ease) .4s, transform .8s var(--ease) .4s;
}
body.loaded .hero [data-hero-fade] { opacity: 1; transform: none; }

/* Carte de chiffres qui chevauche le héros de l'accueil */
.hero-figures {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.9rem 2rem;
  margin-top: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: calc(-1 * clamp(2.4rem, 4vw, 3.6rem) - var(--section) * .25);
}
.hero-figures .fig { text-align: center; }
.hero-figures .fig strong {
  display: block; font-family: var(--f-title); font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero-figures .fig span {
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--navy-dark);
}
.hero:has(.hero-figures) + .section { padding-top: calc(var(--section) * 1.35); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-dark { background: var(--navy-dark); color: rgba(255,255,255,.85); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-navy { background: var(--navy); color: rgba(255,255,255,.85); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-white { background: var(--bg-soft); }
.section-head { max-width: 660px; margin: 0 auto clamp(2.2rem, 4.5vw, 3.4rem); text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-dark .section-head p:not(.eyebrow),
.section-navy .section-head p:not(.eyebrow) { color: rgba(255,255,255,.7) !important; }

/* ---------- Rangées éditoriales ---------- */
.edit-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(2rem, 4vw, 3.2rem);
}
.edit-row.reverse .edit-media { order: 2; }
.edit-media { position: relative; }
.edit-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.edit-row h3, .edit-row h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.edit-row .eyebrow { margin-bottom: .5rem; }
.edit-row .lead { color: var(--muted); }
.edit-list { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; }
.edit-list li { position: relative; padding: .4rem 0 .4rem 1.7rem; font-size: .97rem; }
.edit-list li::before {
  content: ""; position: absolute; left: 0; top: .85rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-title); font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark);
}
.text-link .arrow { transition: transform .3s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }
.text-link:hover { color: var(--navy-dark); }
.section-dark .text-link, .section-navy .text-link { color: var(--accent); }
.section-dark .text-link:hover, .section-navy .text-link:hover { color: #fff; }

/* ---------- Révélation des images ---------- */
.img-reveal { overflow: hidden; border-radius: var(--radius); }
.img-reveal img { transform: scale(1.06); transition: transform 1s var(--ease); }
.img-reveal.is-in img { transform: scale(1); }

/* ---------- Manifeste ---------- */
.intro-duo { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.manifesto {
  font-family: var(--f-title); font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.4;
  color: var(--navy-dark); max-width: 24ch; margin: 0;
}
.manifesto em { color: var(--accent-dark); font-style: normal; }

/* ---------- Cartes ---------- */
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.9rem 1.7rem; display: flex; flex-direction: column; gap: .35rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.panel:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.panel h3 { margin-bottom: .3rem; }
.panel p { color: var(--muted); font-size: .94rem; margin: 0; }
.panel .text-link { margin-top: auto; padding-top: 1.2rem; }
.panel-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
}
.panel-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.panel-list li { position: relative; padding: .28rem 0 .28rem 1.4rem; font-size: .93rem; color: var(--text); }
.panel-list li::before { content: ""; position: absolute; left: 0; top: .78rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-ink);
  border-radius: var(--radius); padding: 1.7rem 1.4rem; text-align: center;
}
.stat .num {
  font-family: var(--f-title); font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1;
  color: var(--accent-light); font-variant-numeric: tabular-nums;
}
.stat .label { margin-top: .5rem; font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.65); }

/* ---------- Deux temps (présent / futur) ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.duo-card {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-ink);
  border-radius: var(--radius); padding: 2rem 1.9rem;
}
.duo-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.duo-card > p { color: rgba(255,255,255,.72); margin-bottom: 1rem; }
.duo-card .edit-list { margin: .6rem 0 0; }
.duo-card .edit-list li { color: rgba(255,255,255,.88); }

/* ---------- Clientèle : pastilles ---------- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.client {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem 1.4rem; text-align: center;
}
.client h3 { font-size: 1.02rem; margin: .8rem 0 .3rem; }
.client p { color: var(--muted); font-size: .9rem; margin: 0; }
.client .panel-icon { margin: 0 auto; }

/* ---------- Cabinets : deux fiches ---------- */
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); }
.office {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
}
.office-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.office-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.office:hover .office-media img { transform: scale(1.03); }
.office-media .dept {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--f-title); font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; color: var(--navy-dark);
  background: rgba(255,255,255,.92); border-radius: 4px; padding: .22rem .6rem;
}
.office-body { padding: 1.9rem 2rem 2rem; display: flex; flex-direction: column; flex: 1; }
.office-body h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.cd-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.cd-list li {
  display: grid; grid-template-columns: 96px 1fr; gap: .9rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.cd-list strong {
  font-family: var(--f-title); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark);
  padding-top: .15rem;
}
.cd-list a { color: var(--navy-dark); font-weight: 700; }
.cd-list a:hover { color: var(--accent-dark); }
.cd-contact {
  display: flex; align-items: center; gap: .9rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: .8rem 1rem; margin-bottom: 1.1rem;
}
.cd-contact img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: top; }
.cd-contact strong { display: block; font-family: var(--f-title); font-size: .95rem; color: var(--navy-dark); }
.cd-contact span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cd-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: auto; padding-top: .6rem; }
.cd-actions .btn { padding: .8rem 1.3rem; font-size: .72rem; }
.office-map iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(1) contrast(1.06); }

/* ---------- Bande CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 26ch; margin-inline: auto; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.2rem; }
.cta-band .sub { color: rgba(255,255,255,.7); max-width: 54ch; margin-inline: auto; }
.cta-band .eyebrow { text-align: center; }

/* ---------- Formulaires ---------- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; font-family: var(--f-title); font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--navy-dark);
  margin-bottom: .45rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; font: inherit; color: var(--text);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-success {
  border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 6px;
  padding: 1.1rem 1.3rem; margin-top: 1rem; font-size: .95rem; color: var(--navy-dark);
}
.form-error {
  border: 1px solid #d8a0a0; background: #fdf3f3; border-radius: 6px;
  padding: 1.1rem 1.3rem; margin-top: 1rem; font-size: .95rem; color: #8c2f2f;
}
.form-error a { color: inherit; }
.field.consent { display: flex; gap: .7rem; align-items: flex-start; }
.field.consent input { width: auto; flex: none; margin-top: .25rem; }
.field.consent label {
  font-family: var(--f-body); font-size: .86rem; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0;
}
.field.consent label a { color: var(--navy-dark); }
/* Envoi en cours : champs grisés et figés, bouton avec roue de chargement.
   Bloc commun à tous les sites du groupe (même code dans chaque style.css). */
form[aria-busy="true"] { cursor: progress; }
form[aria-busy="true"] label { opacity: .6; }
form[aria-busy="true"] :is(input, select, textarea):disabled {
  background: #eef1f5; border-color: #dde2ea; color: #6b7280; opacity: 1; cursor: progress;
}
form button[type="submit"]:disabled { opacity: .7; cursor: progress; transform: none; }
.spinner {
  display: inline-block; width: .85em; height: .85em; margin-right: .55em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-right-color: currentColor; opacity: .6; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); }
.contact-office { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.contact-office:first-of-type { border-top: 1px solid var(--line); }
.contact-office h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.contact-office p { margin: 0 0 .25rem; font-size: .95rem; }
.contact-office a { color: var(--navy-dark); font-weight: 700; }
.contact-office a:hover { color: var(--accent-dark); }

/* ---------- Liens utiles ---------- */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.links-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 1.7rem; }
.links-group h3 { margin-bottom: .9rem; }
.links-group ul { list-style: none; margin: 0; padding: 0; }
.links-group li { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.links-group li:last-child { border-bottom: 0; }
.links-group a { color: var(--navy-dark); font-weight: 700; }
.links-group a:hover { color: var(--accent-dark); }
.links-group small { display: block; color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: .85rem; overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-family: var(--f-title); font-weight: 600; font-size: 1rem; color: var(--navy-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%;
  transform: translateY(-50%); color: var(--accent-dark);
  font-family: var(--f-title); font-weight: 600; font-size: 1.35rem;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-a { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Page équipe ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1000px; margin-inline: auto; }
.team-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 660px; }
.team-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.team-card figcaption { padding: 1.15rem 1.3rem 1.25rem; text-align: center; }
.team-card h3 { margin-bottom: .15rem; font-size: 1.05rem; }
.team-card .role { margin: 0; font-size: .85rem; color: var(--muted); }
.role-associe { font-weight: 600; color: var(--accent-dark); text-transform: uppercase;
  font-size: .72rem !important; letter-spacing: .08em; margin-top: .25rem !important; }
.team-monogram { width: 100%; aspect-ratio: 3/4; display: flex; align-items: center;
  justify-content: center; background: linear-gradient(160deg, #f4f7f9, #e6ebf0); }
.team-monogram span { font-family: var(--f-title); font-size: 2.6rem; font-weight: 600;
  color: var(--navy-dark); opacity: .35; letter-spacing: .04em; }

/* ---------- Pages texte (mentions légales) ---------- */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.1rem; margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--navy-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-dark); }

/* ---------- Révélations au défilement ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); }
.footer-sign { padding-block: clamp(2.8rem, 5vw, 4rem) 0; }
.footer-sign p {
  font-family: var(--f-title); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff; line-height: 1.25; max-width: 22ch; margin: 0;
}
.footer-sign .footer-tagline { margin-top: 1.6rem; }
.footer-sign em { color: var(--accent); font-style: normal; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr;
  gap: 2.2rem; padding-block: clamp(2.2rem, 4vw, 3.2rem);
  border-bottom: 1px solid var(--line-ink); margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-ink);
}
.footer-grid .foot-title {
  font-family: var(--f-title); font-weight: 700; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; font-size: .92rem; }
.footer-grid .footer-affiliation { margin-top: .8rem; font-size: .85rem; opacity: .75; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.3rem 1.6rem;
  font-size: .78rem; color: rgba(255,255,255,.58);
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Accessibilité ---------- */
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.hero :focus-visible, .section-dark :focus-visible, .section-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line-inner, .hero [data-hero-fade], [data-reveal], .img-reveal img, .total-rule { transition: none !important; transform: none !important; opacity: 1 !important; }
  [data-parallax] { transform: none !important; }
  .office-media img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .links-grid { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 98;
    background: #fff;
    padding: 120px var(--gutter) 3rem; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .site-header.nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav a {
    font-size: 1.15rem; font-weight: 600; padding: .95rem .2rem;
    border-bottom: 1px solid var(--line); white-space: normal;
  }
  .header-cta { display: none; }
  .nav-phone { display: block; margin-top: 1.5rem; }
  .nav-phone a {
    border: 0; background: var(--accent); color: #fff;
    text-align: center; font-size: .85rem !important;
    letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
    border-radius: 6px; padding: 1rem !important;
  }
  body.nav-locked { overflow: hidden; }
}
@media (max-width: 940px) {
  .hero-home { min-height: min(72vh, 640px); }
  .page-hero { min-height: 0; }
  .hero-figures { grid-template-columns: 1fr 1fr; padding: 1.4rem; margin-bottom: 0; }
  .hero:has(.hero-figures) + .section { padding-top: var(--section); }

  .edit-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .edit-row.reverse .edit-media { order: 0; }
  .intro-duo { grid-template-columns: 1fr; }
  .duo-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .panel-grid, .links-grid, .client-grid { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
  .hero .actions .btn { width: 100%; justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .stats { grid-template-columns: 1fr; }
  .office-body { padding: 1.5rem 1.3rem 1.6rem; }
  .cd-list li { grid-template-columns: 80px 1fr; }
  .team-grid, .team-grid--two { grid-template-columns: 1fr; max-width: 340px; }
}
@media (max-width: 900px) and (min-width: 621px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) {
  .hero-figures { grid-template-columns: 1fr 1fr; }
}

/* ---------- Témoignages (Bexco) ---------- */
.temoignages { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.temoignage {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.9rem 1.8rem; display: flex; flex-direction: column;
}
.temoignage blockquote { margin: 0 0 1.2rem; font-size: 1rem; line-height: 1.7; color: var(--text); }
.temoignage .stars { color: var(--accent); letter-spacing: .1em; font-size: .95rem; margin-bottom: .4rem; }
.temoignage .who { margin-top: auto; font-family: var(--f-title); font-weight: 600; color: var(--navy-dark); font-size: .95rem; }
.temoignage .who small { display: block; font-family: var(--f-body); font-weight: 400; color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) { .temoignages { grid-template-columns: 1fr; } }
/* Besoins d'entrepreneur */
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.goal {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.4rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.goal:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.goal .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: .55rem; }
.goal strong { display: block; font-family: var(--f-title); font-weight: 600; color: var(--navy-dark); }
.goal small { color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .goals { grid-template-columns: 1fr; } }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow); }
.card-soft h3 { margin: .3rem 0 .6rem; }
.text-link.is-disabled { opacity: .5; cursor: default; }

/* ---------- Actualités et articles (gabarit commun aux sites du groupe, repris de SECAB) ---------- */
/* ---------- Actualités ---------- */
.news-intro { max-width: 700px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.news-intro h2 { margin-bottom: .65rem; }
.news-intro p { color: var(--muted); }
.news-intro a { color: var(--navy-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.news-intro a:hover { color: var(--accent-dark); }

.news-meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center;
  margin-bottom: 1rem;
  font-family: var(--f-title); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.news-meta span { color: var(--accent-dark); }
.news-meta time { color: var(--muted); }

.news-featured {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-lg);
}
.news-featured-media { display: block; min-height: 430px; overflow: hidden; }
.news-featured-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.news-featured:hover .news-featured-media img { transform: scale(1.025); }
.news-featured-body {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: clamp(2rem, 4vw, 3.4rem);
}
.news-featured-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.news-featured-body h2 a:hover { color: var(--accent-dark); }
.news-featured-body p { color: var(--muted); margin-bottom: 1.6rem; }

.news-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: clamp(1.2rem, 2.5vw, 2rem);
}
.news-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card-media { display: block; overflow: hidden; }
.news-card-media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .7s var(--ease);
}
.news-card:hover .news-card-media img { transform: scale(1.03); }
.news-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.4rem, 3vw, 2rem); }
.news-card h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.news-card h2 a:hover { color: var(--accent-dark); }
.news-card p { color: var(--muted); }
.news-card .text-link { margin-top: auto; padding-top: .7rem; }
.news-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.news-card--wide .news-card-media img { height: 100%; }

.news-all {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin-top: clamp(2.6rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line);
}
.news-all p { margin: 0; color: var(--muted); }
.news-all .btn { flex: 0 0 auto; }

/* ---------- Pages articles ---------- */
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  max-width: 780px; margin: 0 auto 2.4rem;
  font-size: .88rem; color: var(--muted);
}
.article-meta .badge {
  font-family: var(--f-title); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy-dark);
  background: var(--accent); border-radius: 4px; padding: .3rem .7rem;
}
.article-meta .badge-soft {
  font-family: var(--f-title); font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy-dark);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: .3rem .7rem;
}
.article-body { max-width: 780px; margin-inline: auto; }
.article-body .article-subtitle {
  font-family: var(--f-title); font-weight: 600; font-size: 1.3rem;
  color: var(--navy-dark); line-height: 1.4; margin-bottom: 1.4rem;
}
.article-body h2 { font-size: 1.45rem; margin: 2.4em 0 .7em; }
.article-body h3 { font-size: 1.12rem; margin: 1.9em 0 .55em; }
.article-body h4 { font-size: 1rem; margin: 1.6em 0 .5em; color: var(--navy-dark); }
.article-body hr {
  border: 0; width: 54px; height: 4px; border-radius: 2px;
  background: var(--accent); margin: 3rem auto;
}
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: 8px; }
.article-body table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
.article-body th {
  background: var(--navy-dark); color: #fff; text-align: left;
  font-family: var(--f-title); font-weight: 600; font-size: .8rem;
  letter-spacing: .04em; padding: .75rem .95rem;
}
.article-body td { padding: .68rem .95rem; border-top: 1px solid var(--line); vertical-align: top; }
.article-body tbody tr:nth-child(even) td { background: var(--bg-soft); }
.article-cta {
  max-width: 780px; margin: 3rem auto 0;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem;
  justify-content: space-between;
}
.article-cta p { margin: 0; max-width: 46ch; }


/* ---------- LCDC : implantations, villes, outils ---------- */
.agences { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); }
.agence {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.agence img { width: 100%; border-radius: 8px; }
.agence h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.agence p { margin: 0 0 .4rem; font-size: .95rem; }
.agence .dept { display: inline-block; font-family: var(--f-title); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .5rem; }
.villes { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.villes span, .villes a {
  padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-family: var(--f-title); font-size: .84rem; font-weight: 600; color: var(--navy-dark);
}
.outils { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.outil { display: flex; flex-direction: column; }
.outil .btn { margin-top: auto; align-self: flex-start; }
.outil .tag { font-family: var(--f-title); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 .5rem; }
.cartes-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 900px) { .outils { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .agences, .cartes-deux { grid-template-columns: 1fr; }
  .agence { grid-template-columns: 1fr; }
  .agence img { max-width: 300px; }
}
@media (max-width: 560px) { .outils { grid-template-columns: 1fr; } }

/* Retours Pastel du 25 et 28 septembre 2026 : mots orphelins en fin de carte (« anticipe », « mère »), trois cartes « ce qui nous distingue » */
.panel p, .card p, .news-card p, .edit-row p { text-wrap: pretty; }
.panel-grid-trois { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .panel-grid-trois { grid-template-columns: 1fr; } }

/* ============================================================
   Composants repris du site du groupe et de SECAB (30 septembre 2026) : patrons des grands
   groupes relevés le 24 septembre (Baker Tilly : portes d'entrée, tuiles blanches
   à flèche, section implantations sombre avec la France en points ; Cerfrance :
   chiffres à filets ; Exco : bande photo pleine largeur). Couleurs SECAB.
   ============================================================ */
:root { --radius-lg: 22px; }

/* Boutons en pilule, flèche cerclée */
.btn { border-radius: 999px; padding: .9rem 1.5rem .9rem 1.7rem; letter-spacing: .08em; }
.btn .arrow { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(13,28,63,.12); font-size: .9rem; }
.btn-solid .arrow { background: rgba(255,255,255,.2); }
.btn-light .arrow { background: rgba(255,255,255,.18); }
.btn-accent .arrow { background: rgba(13,28,63,.18); }

/* Deux portes d'entrée sous le héros */
.entrees { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: calc(-1 * clamp(2rem, 4vw, 3rem)); position: relative; z-index: 3; }
.entree { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.7rem 1.9rem; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.entree:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(13,28,63,.18); }
.entree h3 { font-size: 1.15rem; margin: 0 0 .35rem; color: var(--navy-dark); }
.entree p { margin: 0; color: var(--muted); font-size: .95rem; }
.entree .rond { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--navy-dark); display: grid; place-items: center; font-size: 1.1rem; transition: background .3s, color .3s, transform .3s var(--ease); }
.entree:hover .rond { background: var(--navy-dark); color: #fff; transform: translateX(3px); }
.section.section-entrees { padding-top: 0; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 800px) { .entrees { grid-template-columns: 1fr; margin-top: 1.5rem; } }

/* Titre à gauche, texte à droite */
.titre-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.titre-row h2 { margin: 0; max-width: 20ch; }
.titre-row .eyebrow { margin-bottom: .6rem; }
.titre-row .texte p { color: var(--muted); margin: 0 0 1.2rem; }
.titre-row .texte p:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .titre-row { grid-template-columns: 1fr; align-items: start; } }

/* Bande de chiffres à filets */
.section-chiffres { background: var(--bg-soft); }
.chiffres { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chiffre { padding: 1.7rem 1rem; text-align: center; border-left: 1px solid var(--line); }
.chiffre:first-child { border-left: 0; }
.chiffre strong { display: block; font-family: var(--f-title); font-weight: 700; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1; color: var(--navy-dark); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.chiffre span { display: block; margin-top: .6rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 1000px) { .chiffres { grid-template-columns: repeat(3, 1fr); } .chiffre { border-top: 1px solid var(--line); } .chiffre:nth-child(-n+3) { border-top: 0; } .chiffre:nth-child(4) { border-left: 0; } }
@media (max-width: 600px) { .chiffres { grid-template-columns: 1fr 1fr; } .chiffre:nth-child(odd) { border-left: 0; } .chiffre:nth-child(even) { border-left: 1px solid var(--line); } .chiffre:nth-child(-n+2) { border-top: 0; } .chiffre:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Tuiles blanches à titre, marine au survol */
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tuiles--3 { grid-template-columns: repeat(3, 1fr); }
.tuile { position: relative; display: flex; flex-direction: column; gap: .5rem; min-height: 190px; padding: 1.6rem 1.5rem 3.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.tuile h3 { font-size: 1.08rem; margin: 0; color: var(--navy-dark); transition: color .35s; }
.tuile p { margin: 0; font-size: .92rem; color: var(--muted); transition: color .35s; }
.tuile .fleche { position: absolute; right: 1.2rem; bottom: 1.2rem; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .9rem; color: var(--navy-dark); transition: background .35s, color .35s, border-color .35s; }
a.tuile:hover, a.tuile:focus-visible { background: var(--navy-dark); transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy-dark); }
a.tuile:hover h3, a.tuile:focus-visible h3 { color: #fff; }
a.tuile:hover p, a.tuile:focus-visible p { color: rgba(255,255,255,.78); }
a.tuile:hover .fleche, a.tuile:focus-visible .fleche { background: var(--accent); color: var(--navy-dark); border-color: var(--accent); }
.section-cycle { background: var(--bg-soft); }
@media (max-width: 900px) { .tuiles, .tuiles--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tuiles, .tuiles--3 { grid-template-columns: 1fr; } .tuile { min-height: 0; } }

/* Texte + média arrondi */
.split-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-photo .media { margin: 0; }
.split-photo .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split-photo h2 { margin-top: .4rem; }
.split-photo .texte p { color: var(--muted); }
.split-photo .texte .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
@media (max-width: 900px) { .split-photo { grid-template-columns: 1fr; } }

/* Bande photo pleine largeur (appel à l'action) */
.cta-photo { position: relative; color: #fff; overflow: hidden; background: var(--navy-dark); }
.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,28,63,.94) 0%, rgba(13,28,63,.78) 50%, rgba(13,28,63,.5) 100%); }
.cta-photo .container { position: relative; z-index: 2; padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.cta-photo h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 22ch; }
.cta-photo .sub { color: rgba(255,255,255,.82); max-width: 56ch; margin: 1rem 0 2rem; }
.cta-photo .actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   Moins de « maquette générée » (28 septembre 2026) : héros en bas-de-casse sans révélation
   ligne à ligne, fil d'Ariane à la place des surtitres, plus de numéros dans l'index des
   métiers, cartes sans effet de lévitation.
   ============================================================ */
.hero h1 { text-transform: none; letter-spacing: -.01em; max-width: 17ch; opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
body.loaded .hero h1 { opacity: 1; transform: none; }
.line-inner, .line:nth-child(2) .line-inner, .line:nth-child(3) .line-inner { transform: none; transition: none; }
.hero [data-hero-fade] { transition-delay: .2s; }
.hero-tag { font-family: var(--f-title); font-weight: 600; font-size: .95rem; color: var(--accent); margin: 0 0 1rem; }
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .88rem; color: rgba(255,255,255,.72); margin: 0 0 1.1rem; }
.fil a { color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.fil a:hover { color: #fff; }
.fil [aria-current] { color: #fff; }
.fil .sep { color: var(--accent); }
.metier-list a::before { display: none; }
.metier-list a { grid-template-columns: 1fr auto; }
.entree:hover, a.tuile:hover, a.tuile:focus-visible, .btn:hover, .cabinet:hover, .panel:hover, .news-card:hover, .team-card:hover { transform: none; }
.entree:hover .rond { transform: none; }
.section-head h2, .edit-row h3, .edit-row h2 { margin-top: 0; }
.cycle h3 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .hero h1 { opacity: 1; transform: none; transition: none; } }
.chiffres--4 { grid-template-columns: repeat(4, 1fr); }


/* LCDC : équipe centrée quel que soit le nombre de cartes, chiffres à filets sur fond clair */
.team-grid { justify-content: center; }
.team-grid--two { grid-template-columns: repeat(2, minmax(0, 300px)); max-width: none; }
.chiffres--4 { grid-template-columns: repeat(4, 1fr); }
.entree .rond { color: #fff; }
.entree:hover .rond { background: var(--navy-dark); }

/* ---------- Cocon sémantique et pages locales (5 octobre 2026, gabarit commun : tools/cocon.py, tools/local_pages.py) ---------- */
.sous-titre { font-size: 1.05rem; margin: 2.2rem 0 1rem; color: var(--navy-dark); }
.edit-row .sous-titre:first-child { margin-top: 0; }
.fiches-locales { display: grid; gap: 1.4rem; }
.fiche-locale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fiche-locale .fl-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.fiche-locale .fl-info { padding: 1.8rem 1.6rem; }
.fiche-locale .fl-info h3 { font-size: 1.3rem; margin: .3rem 0 .8rem; }
.fiche-locale .fl-info .dept { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--accent-dark); }
.fl-contact { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; }
.fl-contact img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.fl-contact strong { display: block; color: var(--navy-dark); }
.fl-contact span { font-size: .8rem; color: var(--muted); }
.fiche-locale .fl-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; filter: grayscale(1) contrast(1.05); }
.fiche-locale .cd-list li { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.fiche-locale .cd-list strong { font-family: var(--f-title); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); padding-top: .15rem; }
.cd-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.cd-tags span { font-family: var(--f-title); font-size: .7rem; font-weight: 600; letter-spacing: .05em; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .32rem .85rem; }
@media (max-width: 1000px) { .fiche-locale { grid-template-columns: 1fr 1fr; } .fiche-locale .fl-map { grid-column: 1 / -1; } .fiche-locale .fl-map iframe { min-height: 220px; } }
@media (max-width: 640px) { .fiche-locale { grid-template-columns: 1fr; } .fiche-locale .fl-media img { min-height: 180px; } }
.communes-chips, .metier-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.communes-chips a, .communes-chips span, .metier-chips a { display: inline-flex; align-items: baseline; gap: .35rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .88rem; color: var(--navy-dark); }
.communes-chips span { color: var(--muted); background: transparent; }
.communes-chips a:hover, .metier-chips a:hover { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); }
.communes-chips small { font-size: .74rem; color: var(--muted); }
.communes-chips a:hover small { color: rgba(255,255,255,.7); }
.communes-chips .chip-agence { background: var(--accent); border-color: var(--accent); font-weight: 600; }
.footer-grid .foot-cols { columns: 2; column-gap: 1.5rem; }

/* Valeurs sur fond clair (page Nous rejoindre) : .duo-card est conçue pour les sections sombres, texte blanc sur blanc sinon (5 octobre 2026). */
.section-white .duo-card, .section:not(.section-dark):not(.section-navy) .duo-card { background: var(--bg-soft); border: 1px solid var(--line); }
.section-white .duo-card h3, .section:not(.section-dark):not(.section-navy) .duo-card h3 { color: var(--navy-dark); }
.section-white .duo-card > p, .section:not(.section-dark):not(.section-navy) .duo-card > p { color: var(--text); }
.section-white .duo-card .edit-list li, .section:not(.section-dark):not(.section-navy) .duo-card .edit-list li { color: var(--text); }

/* Ancres (#noisy, #antony sur Contact) : l'en-tête fixe ne doit pas masquer la cible (5 octobre 2026). */
[id] { scroll-margin-top: 96px; }
