/* ============================================================
   River Side - Expertise comptable, audit et conseil (Lyon, Paris, Béziers)
   Gabarit des sites du groupe Numeris (modèle Otsar : en-tête, héros panneau
   sombre + photo fondue, pied), Poppins/Lato. Identité de cabinet-rs.com :
   anthracite #2C343B et orange #FF7F24, canyon orangé du bandeau d'accueil,
   photos d'architecture en gris pour les expertises, portraits en noir et blanc,
   accordéon des « Solutions pour ».
   ============================================================ */

:root {
  /* -- Couleurs (identité River Side) -- */
  --navy: #3a434b;         /* panneaux */
  --navy-dark: #2c343b;    /* anthracite de cabinet-rs.com */
  --navy-deep: #20262b;
  --accent: #ff7f24;       /* orange du logo River Side */
  --accent-dark: #b4500b;  /* même teinte, lisible sur blanc (4,9:1) */
  --accent-soft: rgba(255, 127, 36, .12);
  --accent-light: #ffa35f; /* orange sur fond anthracite (héros, bandes sombres) */
  --accent-ink: #2c343b;   /* texte posé sur l'orange (blanc illisible : 2,5:1) */
  --ciel: #f1f1f2;         /* gris clair des fonds de cabinet-rs.com */
  --gris: #e4e5e6;         /* gris des bandeaux */
  --vert: #ff7f24;         /* pastilles des listes à coches : orange River Side */
  --bg: #ffffff;
  --bg-soft: #f5f5f6;
  --text: #4a5056;
  --muted: #767c82;
  --line: #e6e7e9;
  --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(44, 52, 59, .08);
  --shadow-lg: 0 18px 50px rgba(44, 52, 59, .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: inherit; }
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: var(--accent-ink);
  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: inherit; }

/* ---------- 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: var(--accent-ink); }
.btn-accent:hover { background: #fff; border-color: #fff; color: var(--accent-dark); }
.section-white .btn-accent:hover, .section .btn-accent:hover { background: var(--navy-dark); border-color: var(--navy-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(44,52,59,.92) 18%, rgba(44,52,59,.45) 58%, rgba(44,52,59,.12) 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: inherit; }
.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: 1340px) {
  .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: var(--accent-ink);
    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; }


/* ---------- Gabarit Otsar : héros vidéo ---------- */
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ---------- Gabarit Otsar : pôles à pictogrammes ---------- */
.poles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.pole .pole-icon { width: 72px; height: 72px; color: var(--accent); margin-bottom: 1.4rem; }
.pole .pole-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pole h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.pole p { font-size: .97rem; margin-bottom: 1rem; }
.pole .text-link { font-size: .85rem; }
.centre { text-align: center; margin-top: 3rem; }

/* ---------- Gabarit Otsar : fond ciel, bloc texte + média arrondi ---------- */
.section-ciel { background: linear-gradient(180deg, var(--ciel) 0%, #ffffff 100%); }
.section-gris { background: var(--gris); }
.bloc-media { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.bloc-media h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.bloc-media h2 em, .mission-row h2 em, .bloc-bleu h2 em, .titre-bleu em { font-style: normal; color: inherit; }
.media-arrondie { position: relative; }
.media-arrondie img, .media-arrondie video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px 18px 18px 120px; box-shadow: var(--shadow-lg); display: block; background: var(--navy-dark); }
.media-arrondie .anneau { position: absolute; right: -60px; bottom: -60px; width: 190px; height: 190px; border: 22px solid var(--accent); border-radius: 50%; opacity: .95; pointer-events: none; }
.media-arrondie .lecture { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease), background .3s; }
.media-arrondie .lecture:hover { transform: translate(-50%, -50%) scale(1.06); background: var(--accent-dark); }
.media-arrondie .lecture svg { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.media-arrondie.is-playing .lecture { display: none; }
.membre-oec { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 1.6rem; font-size: .92rem; color: var(--muted); }
.membre-oec img { height: 34px; width: auto; }

/* ---------- Gabarit Otsar : chiffres à filets ---------- */
.chiffres-filets { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.chiffres-filets > div { padding: 2.6rem 1rem; border-left: 1px solid rgba(255, 127, 36, .22); }
.chiffres-filets > div:first-child { border-left: 0; }
.chiffres-filets .num { font-family: var(--f-title); font-size: clamp(2.4rem, 4.2vw, 3.4rem); font-weight: 700; color: var(--accent); line-height: 1; }
.chiffres-filets .label { margin-top: .6rem; color: var(--accent); font-weight: 700; font-size: .98rem; }

/* ---------- Gabarit Otsar : avis Google ---------- */
.avis-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.4rem; }
.avis-tete h2 { margin: 0; }
.google-note { text-align: right; font-size: .9rem; color: var(--text); }
.google-note .etoiles { color: #f5b301; font-size: 1.4rem; letter-spacing: .1em; display: block; }
.google-note strong { font-family: var(--f-title); color: var(--navy-dark); }
.avis-rangee { display: flex; gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; scrollbar-width: none; }
.avis-rangee::-webkit-scrollbar { display: none; }
.avis { flex: 0 0 min(440px, 86vw); scroll-snap-align: start; background: #fff; border-radius: 18px; padding: 2.2rem 2.2rem 2rem; box-shadow: 0 8px 26px rgba(44, 52, 59, .06); position: relative; }
.avis::before { content: '“'; position: absolute; left: 1.6rem; top: .6rem; font-family: var(--f-title); font-size: 4rem; line-height: 1; color: rgba(255, 127, 36, .12); }
.avis p { font-size: .98rem; margin-bottom: 1.4rem; position: relative; }
.avis .qui { font-family: var(--f-title); font-weight: 700; color: var(--accent); }
.fleches { display: flex; gap: .8rem; margin-top: 1.8rem; }
.fleche { width: 60px; height: 44px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.fleche:hover { background: var(--navy-dark); }
.fleche svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Gabarit Otsar : une actualité en grand + deux petites ---------- */
.actus-une { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.actu-grande, .actu-petite { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.actu-grande:hover, .actu-petite:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.actu-grande img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.actu-grande .corps, .actu-petite .corps { padding: 1.3rem 1.4rem 1.5rem; }
.actu-meta { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.actu-meta a, .actu-meta span.cat { color: var(--accent); font-weight: 700; }
.actu-meta .sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 0 .6rem; vertical-align: middle; }
.actu-grande h3 { font-size: 1.35rem; margin: 0; }
.actu-grande h3 a:hover, .actu-petite h3 a:hover { color: var(--accent); }
.actus-petites { display: grid; gap: 1.4rem; }
.actu-petite { display: grid; grid-template-columns: 215px 1fr; }
.actu-petite img { width: 100%; height: 100%; object-fit: cover; }
.actu-petite h3 { font-size: 1.08rem; margin: 0; }

/* ---------- Gabarit Otsar : rangées de missions à coches ---------- */
.mission-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2rem, 4vw, 3.4rem); }
.mission-row.reverse .mission-media { order: 2; }
.mission-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px 16px 16px 110px; box-shadow: var(--shadow-lg); }
.mission-row.reverse .mission-media img { border-radius: 16px 16px 110px 16px; }
.mission-row h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 2rem; font-size: .98rem; color: var(--navy-dark); }
.check-list li::before { content: ''; position: absolute; left: 0; top: .15rem; width: 20px; height: 20px; border-radius: 50%; background: var(--vert); }
.check-list li::after { content: ''; position: absolute; left: 6px; top: .5rem; width: 8px; height: 4px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.mission-intro { max-width: 620px; }
.pole-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.pole-nav a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; font-family: var(--f-title); font-size: .82rem; font-weight: 600; }
.pole-nav a:hover, .pole-nav a.current { background: #fff; color: var(--navy-dark); }

/* ---------- Gabarit Otsar : engagements ---------- */
.engagements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.engagement { border-top: 2px solid var(--accent-light); padding-top: 1.2rem; }
.engagement h3 { color: #fff; font-size: 1.1rem; margin-bottom: .4rem; }
.engagement p { color: rgba(255,255,255,.72); font-size: .95rem; margin: 0; }

/* ---------- Gabarit Otsar : carte contact ---------- */
.carte-contact { background: var(--ciel); border-radius: 22px; padding: clamp(2rem, 4vw, 3.4rem); display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.carte-contact form { background: #fff; border-radius: 16px; padding: 1.8rem; box-shadow: var(--shadow); }
.carte-contact h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.carte-contact .coord { margin-top: 1.4rem; display: grid; gap: .4rem; font-weight: 700; color: var(--navy-dark); }
.avatars { display: flex; margin-bottom: 1.2rem; }
.avatars img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -12px; box-shadow: var(--shadow); }
.avatars img:first-child { margin-left: 0; }

/* ---------- Gabarit Otsar : page cabinet ---------- */
.bloc-bleu { background: var(--accent); color: #fff; border-radius: 22px; padding: clamp(2rem, 4vw, 3.6rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.bloc-bleu h2 { color: #fff; margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.bloc-bleu h2 em { color: var(--accent-light); }
.bloc-bleu p { color: rgba(255,255,255,.88); margin: 0; }
.mots { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mots-media img { width: 100%; border-radius: 16px 16px 110px 16px; box-shadow: var(--shadow-lg); }
.mots-texte { position: relative; }
.mots-texte .guillemet { position: absolute; right: 0; top: -1.6rem; font-family: var(--f-title); font-size: 8rem; line-height: 1; color: rgba(255, 127, 36, .12); }
.mots-texte h2 { font-family: 'Poppins', var(--f-title); font-weight: 500; color: var(--accent); }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.8rem; }
.signatures strong { display: block; font-family: var(--f-title); color: var(--navy-dark); }
.signatures span { font-size: .88rem; color: var(--muted); }
.duo-textes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.duo-textes h3 { font-size: 1.5rem; }
.team-grid--quatre { grid-template-columns: repeat(4, 1fr); max-width: none; }
.team-card .role-associe { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; margin-top: .3rem; }

@media (max-width: 1000px) {
  .poles { grid-template-columns: 1fr 1fr; }
  .chiffres-filets { grid-template-columns: 1fr 1fr; }
  .chiffres-filets > div:nth-child(3) { border-left: 0; }
  .engagements { grid-template-columns: 1fr 1fr; }
  .team-grid--quatre { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .bloc-media, .mission-row, .carte-contact, .bloc-bleu, .mots, .duo-textes, .actus-une { grid-template-columns: 1fr; }
  .mission-row.reverse .mission-media { order: 0; }
  .media-arrondie .anneau { display: none; }
  .avis-tete { flex-direction: column; align-items: flex-start; }
  .google-note { text-align: left; }
  .actu-petite { grid-template-columns: 1fr; }
  .actu-petite img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .poles, .chiffres-filets, .engagements { grid-template-columns: 1fr; }
  .chiffres-filets > div { border-left: 0; border-top: 1px solid rgba(255, 127, 36, .22); }
  .chiffres-filets > div:first-child { border-top: 0; }
  .media-arrondie img, .media-arrondie video, .mission-media img, .mission-row.reverse .mission-media img, .mots-media img { border-radius: 16px; }
}

/* ---------- Cocon sémantique et pages locales (5 octobre 2026, gabarit commun : tools/cocon.py, tools/local_pages.py) ---------- */
.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); }
.sous-titre { font-size: 1.05rem; margin: 2.2rem 0 1rem; color: var(--navy-dark); }
.edit-row .sous-titre:first-child { margin-top: 0; }
.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 .eyebrow { margin: 0 0 .2rem; font-size: .68rem; }
.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 .eyebrow, a.tuile:focus-visible .eyebrow { color: var(--accent-light); }
a.tuile:hover .fleche, a.tuile:focus-visible .fleche { background: var(--accent); color: var(--navy-dark); border-color: var(--accent); }
@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; } }
.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; }

.hero-tag { color: var(--accent-light); font-weight: 600; margin-bottom: 1.1rem; }
.titre-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 3rem; align-items: start; margin-bottom: 2.2rem; }
.titre-row h2 { margin: 0; }
.titre-row .texte p { margin: 0 0 1rem; color: var(--muted); }
@media (max-width: 800px) { .titre-row { grid-template-columns: 1fr; } }
.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); }
[id] { scroll-margin-top: 96px; }

/* Envoi réussi : la confirmation prend la place du formulaire, dans son cadre (main.js, 20 octobre 2026) */
.form-confirmation {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .8rem; padding: 2.6rem 1.4rem; text-align: center;
  grid-column: 1 / -1; flex: 1 1 100%;   /* le formulaire peut être une grille ou une ligne flex */
  animation: form-confirmation-entree .45s ease-out both;
}
.form-confirmation:focus { outline: none; }
.form-confirmation-icone {
  width: 58px; height: 58px; fill: none; stroke: var(--accent);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.form-confirmation-icone path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: form-confirmation-coche .5s .25s ease-out forwards; }
.form-confirmation h3 { margin: .4rem 0 0; }
.form-confirmation p { margin: 0; max-width: 44ch; }
.form-confirmation-lien { margin-top: .5rem; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
@keyframes form-confirmation-entree { from { opacity: 0; transform: translateY(8px); } }
@keyframes form-confirmation-coche { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .form-confirmation { animation: none; }
  .form-confirmation-icone path { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================
   River Side : composants repris de l'identité de cabinet-rs.com (2 décembre 2026)
   ============================================================ */

/* Héros d'accueil : le canyon orangé reste visible à droite sous le voile anthracite */
.hero-home .hero-media img { opacity: .92; object-position: 70% center; }
.hero-home .hero-media::after { background: linear-gradient(100deg, rgba(44,52,59,.95) 20%, rgba(44,52,59,.62) 50%, rgba(44,52,59,.08) 100%); }
.hero-figures .fig strong, .chiffres-filets .num, .chiffres-filets .label { color: var(--accent-dark); }
.hero-figures .fig span { color: var(--navy-dark); }
.chiffres-filets .label { color: var(--navy-dark); }

/* Domaines d'expertise : tuiles photo (photos d'architecture en gris de l'ancien site), filet anthracite → orange au survol */
.exp-tuiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.exp-tuiles--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.exp-tuile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--navy-dark); color: #fff; }
.exp-tuile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .9s var(--ease), opacity .5s; opacity: .8; }
.exp-tuile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(44,52,59,.05) 25%, rgba(44,52,59,.9) 100%); }
.exp-tuile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 3; background: var(--navy-dark); transition: background .35s; }
.exp-tuile .corps { position: relative; z-index: 2; padding: 1.4rem 1.3rem 1.7rem; }
.exp-tuile h3 { color: #fff; font-size: 1.12rem; margin: 0 0 .45rem; }
.exp-tuile p { margin: 0; font-size: .9rem; line-height: 1.55; color: rgba(255,255,255,.84); }
.exp-tuile .plus { display: inline-block; margin-top: .9rem; font-family: var(--f-title); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-light); }
a.exp-tuile:hover img, a.exp-tuile:focus-visible img { transform: scale(1.05); opacity: .95; }
a.exp-tuile:hover::after, a.exp-tuile:focus-visible::after { background: var(--accent); }
.exp-tuile.is-current::after { background: var(--accent); }
@media (max-width: 1100px) { .exp-tuiles, .exp-tuiles--quatre { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .exp-tuiles, .exp-tuiles--quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } .exp-tuile { min-height: 300px; } }
@media (max-width: 480px) { .exp-tuiles, .exp-tuiles--quatre { grid-template-columns: 1fr; } .exp-tuile { min-height: 240px; } }

/* Solutions pour… : accordéon de volets photo (composant de l'ancien site, images « ACCORDEON-SOLUTIONS ») */
.accordeon { display: flex; gap: .6rem; height: clamp(440px, 46vw, 540px); }
.acc-item { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-dark); color: #fff; transition: flex-grow .6s var(--ease); }
.acc-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .5s; }
.acc-item::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(44,52,59,.05) 30%, rgba(44,52,59,.9) 100%); }
.acc-item::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 3; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.acc-court { position: absolute; z-index: 2; left: 50%; bottom: 1.5rem; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: var(--f-title); font-weight: 600; font-size: 1rem; white-space: nowrap; transition: opacity .3s; }
.acc-plein { display: block; position: absolute; z-index: 2; left: 0; bottom: 0; width: min(100%, 460px); min-width: 300px; padding: 1.7rem 1.7rem 1.9rem; opacity: 0; transform: translateY(12px); transition: opacity .4s .12s, transform .4s .12s; }
.acc-plein h3 { color: #fff; font-size: 1.3rem; margin-bottom: .45rem; }
.acc-plein p { color: rgba(255,255,255,.86); font-size: .95rem; margin: 0 0 1rem; }
.acc-lien { font-family: var(--f-title); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-light); }
.acc-item.is-open, .accordeon:hover .acc-item:hover, .accordeon .acc-item:focus-visible { flex-grow: 3.6; }
.accordeon:hover .acc-item.is-open:not(:hover), .accordeon:focus-within .acc-item.is-open:not(:focus-visible) { flex-grow: 1; }
.acc-item.is-open .acc-court, .accordeon:hover .acc-item:hover .acc-court, .acc-item:focus-visible .acc-court { opacity: 0; }
.accordeon:hover .acc-item.is-open:not(:hover) .acc-court, .accordeon:focus-within .acc-item.is-open:not(:focus-visible) .acc-court { opacity: 1; }
.acc-item.is-open .acc-plein, .accordeon:hover .acc-item:hover .acc-plein, .acc-item:focus-visible .acc-plein { opacity: 1; transform: none; }
.accordeon:hover .acc-item.is-open:not(:hover) .acc-plein, .accordeon:focus-within .acc-item.is-open:not(:focus-visible) .acc-plein { opacity: 0; }
.acc-item.is-open img, .accordeon:hover .acc-item:hover img, .acc-item:focus-visible img { opacity: .95; }
.acc-item.is-open::before, .accordeon:hover .acc-item:hover::before, .acc-item:focus-visible::before { transform: scaleX(1); }
.accordeon:hover .acc-item.is-open:not(:hover)::before { transform: scaleX(0); }
.acc-item.is-current .acc-court { color: var(--accent-light); }
@media (max-width: 900px) {
  .accordeon { flex-direction: column; height: auto; gap: .8rem; }
  .acc-item, .acc-item.is-open, .accordeon:hover .acc-item:hover { flex: none; min-height: 190px; }
  .acc-court { display: none; }
  .acc-plein, .accordeon:hover .acc-item.is-open:not(:hover) .acc-plein, .accordeon:focus-within .acc-item.is-open:not(:focus-visible) .acc-plein { position: relative; width: 100%; min-width: 0; opacity: 1; transform: none; padding: 4.5rem 1.4rem 1.5rem; }
  .acc-item::before { transform: scaleX(1); }
  .acc-item::after { background: linear-gradient(180deg, rgba(44,52,59,.35) 0%, rgba(44,52,59,.9) 70%); }
}

/* Les trois bureaux : photo de la ville en tête de carte */
.bureaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.bureau { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.bureau-media { aspect-ratio: 3 / 2; overflow: hidden; }
.bureau-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bureau:hover .bureau-media img { transform: scale(1.03); }
.bureau-corps { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.6rem; border-top: 5px solid var(--accent); }
.bureau-corps h3 { font-size: 1.35rem; margin: 0 0 .15rem; }
.bureau-corps .entite { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.bureau-corps address { font-style: normal; margin-bottom: .6rem; }
.bureau-corps .tel { font-weight: 700; color: var(--navy-dark); }
.bureau-corps .tel:hover { color: var(--accent-dark); }
.bureau-corps .text-link { margin-top: auto; padding-top: 1.1rem; }
@media (max-width: 900px) { .bureaux { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Colonnes à filets : sous-missions des expertises, « Vos enjeux / Nos solutions » des profils */
.colonnes-filets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.colonnes-filets--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.colonnes-filets > div { padding: .4rem clamp(1.2rem, 2.6vw, 2.4rem); border-left: 1px solid var(--line); }
.colonnes-filets > div:first-child { border-left: 0; padding-left: 0; }
.colonnes-filets h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.colonnes-filets > div > p { color: var(--muted); font-size: .96rem; }
.colonnes-filets .check-list li { font-size: .95rem; }
@media (max-width: 900px) {
  .colonnes-filets, .colonnes-filets--deux { grid-template-columns: 1fr; }
  .colonnes-filets > div { padding: 1.8rem 0 0; margin-top: 1.8rem; border-left: 0; border-top: 1px solid var(--line); }
  .colonnes-filets > div:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
}

/* Profil : volet photo vertical + « Vous êtes » */
.profil-duo { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.profil-duo .volet img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px 16px 16px 110px; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .profil-duo { grid-template-columns: 1fr; } .profil-duo .volet { max-width: 420px; } }

/* Mot du président et équipe : portraits en noir et blanc de l'ancien site, en pastilles (100 à 141 px à la source) */
.mot-president { max-width: 860px; margin-inline: auto; position: relative; }
.mot-president .guillemet { position: absolute; left: -.4rem; top: -3.2rem; font-family: var(--f-title); font-size: 7rem; line-height: 1; color: rgba(255, 127, 36, .25); }
.mot-president h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mot-president .chapeau { font-family: var(--f-title); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--navy-dark); }
.signature { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.signature img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.signature strong { display: block; font-family: var(--f-title); color: var(--navy-dark); }
.signature span { font-size: .88rem; color: var(--muted); }
.equipe-liste { display: grid; gap: 0; }
.membre { display: grid; grid-template-columns: 112px minmax(0, .9fr) minmax(0, 1.6fr); gap: 1.4rem 2.4rem; padding: 2rem 0; border-top: 1px solid var(--line); align-items: start; }
.membre:last-child { border-bottom: 1px solid var(--line); }
.membre img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.membre h3 { font-size: 1.15rem; margin: .3rem 0 .2rem; }
.membre .role { margin: 0; font-size: .9rem; color: var(--accent-dark); font-weight: 700; }
.membre .parcours { list-style: none; margin: .8rem 0 0; padding: 0; font-size: .88rem; color: var(--muted); }
.membre .parcours li { padding: .12rem 0; }
.membre .bio p { margin: 0 0 .8rem; font-size: .96rem; }
.membre .bio p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .membre { grid-template-columns: 84px minmax(0, 1fr); } .membre img { width: 76px; height: 76px; } .membre .bio { grid-column: 1 / -1; } }

/* Trois valeurs : la bande sombre des engagements sur trois colonnes */
.engagements--trois { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .engagements--trois { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .engagements--trois { grid-template-columns: 1fr; } }

/* Trois textes du cabinet */
.trio-textes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 3.4rem); }
.trio-textes h3 { font-size: 1.2rem; padding-top: 1.1rem; border-top: 3px solid var(--accent); }
@media (max-width: 900px) { .trio-textes { grid-template-columns: 1fr; } }

/* Carte contact : fond gris clair de cabinet-rs.com, avatars en noir et blanc */
.carte-contact { background: var(--ciel); }
.avatars img { filter: grayscale(1); }
.article-meta .badge { color: var(--accent-ink); }
.liens-ext::after { content: " ↗"; font-size: .8em; color: var(--muted); }
.tuiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tuiles--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tuiles--5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tuiles--5 { grid-template-columns: 1fr; } }
.footer-grid--cinq { grid-template-columns: 1.1fr 1.1fr .9fr 1.2fr 1.2fr; }
.footer-grid--cinq li strong { color: #fff; }
@media (max-width: 1080px) { .footer-grid--cinq { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 940px) { .footer-grid--cinq { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid--cinq { grid-template-columns: 1fr; } }
.links-grid--quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .links-grid--quatre { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .links-grid--quatre { grid-template-columns: 1fr; } }
.chiffres-filets p { font-size: .92rem; color: var(--muted); margin: .7rem auto 0; max-width: 28ch; }
.sous-titre a:hover { color: var(--accent-dark); }
/* Petites cartes d'actualité : l'image remplit sa colonne quelle que soit son orientation (visuels du groupe parfois verticaux) */
.actu-petite > a:first-child { position: relative; display: block; min-height: 150px; }
.actu-petite > a:first-child img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .actu-petite > a:first-child { min-height: 0; }
  .actu-petite > a:first-child img { position: static; aspect-ratio: 16 / 9; height: auto; }
}

/* ============================================================
   En-tête : outils de l'ancien cabinet-rs.com (2 décembre 2026) : recherche, langues, espace client MyRiverSide
   ============================================================ */
.header-inner { gap: 1.25rem; }
.main-nav a { padding: .6rem .55rem; }
.header-cta { letter-spacing: .08em; }
.outils { display: flex; align-items: center; gap: .25rem; flex: 0 0 auto; }
.outil {
  display: inline-flex; align-items: center; gap: .4rem; height: 40px; min-width: 40px; padding: 0 .55rem;
  border: 0; border-radius: 8px; background: transparent; color: var(--navy-dark); cursor: pointer;
  font-family: var(--f-title); font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  transition: background .25s, color .25s;
}
.outil:hover, .outil[aria-expanded="true"] { background: var(--bg-soft); color: var(--accent-dark); }
.outil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.outil-client .outil-texte { white-space: nowrap; }
.langues { position: relative; }
.langues-liste {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; min-width: 190px;
  list-style: none; margin: 0; padding: .4rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.langues.is-open .langues-liste { opacity: 1; visibility: visible; transform: none; }
.langues-liste a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 6px; font-size: .92rem; color: var(--navy-dark); }
.langues-liste a:hover { background: var(--bg-soft); color: var(--accent-dark); }
.langues-liste a[aria-current] { font-weight: 700; }
.langues-liste .code { font-family: var(--f-title); font-size: .7rem; font-weight: 700; color: var(--accent-dark); width: 1.6rem; }
/* Panneau de recherche, sous l'en-tête */
.recherche { border-top: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.recherche .container { padding-block: 1.1rem 1.4rem; }
.recherche input {
  width: 100%; padding: .95rem 1.1rem; font: inherit; font-size: 1.05rem; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft);
}
.recherche input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.recherche-resultats { list-style: none; margin: .6rem 0 0; padding: 0; max-height: min(60vh, 460px); overflow-y: auto; }
.recherche-resultats li a { display: block; padding: .7rem .4rem; border-bottom: 1px solid var(--line); }
.recherche-resultats li a strong { display: block; font-family: var(--f-title); font-weight: 600; color: var(--navy-dark); }
.recherche-resultats li a span { display: block; font-size: .88rem; color: var(--muted); }
.recherche-resultats li a:hover strong, .recherche-resultats li a:focus-visible strong { color: var(--accent-dark); }
.recherche-resultats .vide { padding: .8rem .4rem; color: var(--muted); }
@media (max-width: 1340px) {
  .outils { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .outil-client .outil-texte { display: none; }
}
@media (max-width: 480px) {
  .outils { gap: 0; }
  .outil { min-width: 36px; padding: 0 .4rem; }
  .outil[aria-haspopup] .outil-texte { display: none; }
  .brand img { height: 38px; }
}

/* ============================================================
   « Le cabinet River Side c'est… » : carte de France de l'ancien site, repères des bureaux, chiffres de part et d'autre
   ============================================================ */
.carte-bloc { display: grid; grid-template-columns: minmax(0, 1fr) 427px minmax(0, 1fr); align-items: center; gap: 2rem; margin-top: 1rem; }
.carte-bloc--seule { grid-template-columns: 427px; justify-content: center; }
.carte { position: relative; width: 427px; }
.carte-fond { display: block; width: 100%; height: auto; }
.carte-chiffres { display: grid; gap: 3.2rem; }
.carte-chiffres--gauche { text-align: right; }
.carte-chiffres--gauche .carte-chiffre:nth-child(2) { margin-right: 3rem; }
.carte-chiffres--droite .carte-chiffre:nth-child(2) { margin-left: 3rem; }
.carte-chiffre strong { display: block; font-family: var(--f-title); font-weight: 700; font-size: clamp(2.6rem, 4.4vw, 3.8rem); line-height: 1; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.carte-chiffre span { display: block; margin-top: .4rem; font-family: var(--f-title); font-size: 1.15rem; font-weight: 500; color: var(--navy-dark); }
.repere { position: absolute; z-index: 2; width: 0; height: 0; }
.repere:hover, .repere:focus-within, .repere.is-open { z-index: 6; }
.repere-bouton {
  position: absolute; left: -17px; bottom: 0; width: 34px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 4px 6px rgba(44, 52, 59, .35)); transition: transform .3s var(--ease);
  animation: repere-chute .7s var(--ease) both;
}
.repere:nth-of-type(2) .repere-bouton { animation-delay: .12s; }
.repere:nth-of-type(3) .repere-bouton { animation-delay: .24s; }
.repere-bouton svg { width: 100%; height: 100%; display: block; }
.repere-forme { fill: var(--navy-dark); }
.repere-point { fill: #fff; }
.repere:hover .repere-bouton, .repere:focus-within .repere-bouton, .repere.is-open .repere-bouton { transform: translateY(-4px) scale(1.08); }
.repere:hover .repere-point, .repere:focus-within .repere-point, .repere.is-open .repere-point { fill: var(--accent); }
@keyframes repere-chute { from { opacity: 0; transform: translateY(-26px); } }
.repere-fiche {
  position: absolute; top: -22px; transform: translateY(-50%); width: 360px;
  display: grid; grid-template-columns: 128px minmax(0, 1fr); background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, margin .3s var(--ease);
}
.repere--droite .repere-fiche { left: 30px; margin-left: 10px; }
.repere--gauche .repere-fiche { right: 30px; margin-right: 10px; }
.repere:hover .repere-fiche, .repere:focus-within .repere-fiche, .repere.is-open .repere-fiche { opacity: 1; visibility: visible; margin: 0; }
.repere-fiche img { width: 100%; height: 100%; object-fit: cover; }
.repere-fiche > div { padding: 1rem 1.1rem 1.05rem; font-size: .9rem; line-height: 1.5; }
.repere-fiche p { margin: 0 0 .45rem; }
.repere-fiche .ville { font-family: var(--f-title); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); margin: 0; }
.repere-fiche .entite { font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.repere-fiche .tel { font-weight: 700; color: var(--navy-dark); }
.repere-fiche .liens { display: flex; flex-direction: column; gap: .15rem; margin: 0; }
.repere-fiche .liens a { font-family: var(--f-title); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); }
.repere-fiche .liens a:hover { color: var(--navy-dark); }
.carte-liste { display: none; list-style: none; margin: 2rem 0 0; padding: 0; }
.carte-liste li { display: grid; gap: .15rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.carte-liste li:last-child { border-bottom: 1px solid var(--line); }
.carte-liste strong { font-family: var(--f-title); color: var(--accent-dark); text-transform: uppercase; letter-spacing: .06em; }
.carte-liste a[href^="tel"] { font-weight: 700; color: var(--navy-dark); }
@media (max-width: 1100px) {
  .carte-bloc { grid-template-columns: minmax(0, 1fr) 360px minmax(0, 1fr); gap: 1.2rem; }
  .carte { width: 360px; }
  .repere-fiche { width: 300px; grid-template-columns: 100px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .carte-bloc, .carte-bloc--seule { grid-template-columns: 1fr 1fr; justify-items: center; gap: 1.6rem 1rem; }
  .carte { grid-column: 1 / -1; grid-row: 2; width: min(100%, 360px); }
  .carte-chiffres { gap: 1.2rem; text-align: center; }
  .carte-chiffres--gauche { grid-column: 1; grid-row: 1; text-align: center; }
  .carte-chiffres--droite { grid-column: 2; grid-row: 1; }
  .carte-chiffres .carte-chiffre:nth-child(2) { margin: 0; }
  .carte-chiffre strong { font-size: 2.4rem; }
  .carte-chiffre span { font-size: 1rem; }
  .repere-fiche { display: none; }
  .repere-bouton { pointer-events: none; }
  .carte-liste { display: block; }
}
@media (prefers-reduced-motion: reduce) { .repere-bouton { animation: none; } }
/* En-tête resserré : logo, six rubriques, trois outils et le bouton tiennent dans 1 120 px */
.header-inner { gap: 1rem; }
.main-nav a { padding: .6rem .5rem; }
.header-cta { padding: .75rem 1.1rem; font-size: .72rem; letter-spacing: .06em; }
.outil { padding: 0 .45rem; }

/* ============================================================
   Logo d'origine et connexion MyRiverSide (2 décembre 2026, « un truc stylé pour le login »)
   ============================================================ */
/* L'en-tête s'élargit à 1 400 px : le logo d'origine (215 px) est plus large que celui de la charte */
.site-header > .container { max-width: 1400px; }
.site-header .brand img { height: 40px; width: auto; }
/* Bouton de connexion : pilule blanche, contour en dégradé orange / anthracite qui tourne lentement, vague du logo */
@property --angle-connexion { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.connexion {
  position: relative; isolation: isolate; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .6rem; height: 46px; padding: 0 1rem 0 .8rem;
  border-radius: 999px; background: #fff; color: var(--navy-dark);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.connexion::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.6px;
  background: conic-gradient(from var(--angle-connexion), var(--accent) 0deg, #ffd2b2 80deg, var(--navy-dark) 180deg, #ffd2b2 280deg, var(--accent) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: connexion-tour 7s linear infinite;
}
@keyframes connexion-tour { to { --angle-connexion: 360deg; } }
.connexion-vague { display: block; width: 42px; height: 16px; flex: none; }
.connexion-vague img { display: block; width: 42px; height: 16px; transform-origin: 0 50%; transition: transform .6s var(--ease), filter .35s; }
.connexion-texte { display: flex; flex-direction: column; font-family: var(--f-title); font-weight: 700; font-size: .84rem; line-height: 1.1; color: var(--accent-dark); white-space: nowrap; transition: color .35s; }
.connexion-texte small { font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .35s; }
.connexion:hover, .connexion:focus-visible { background: var(--navy-dark); box-shadow: 0 8px 22px rgba(44, 52, 59, .25); }
.connexion:hover::before, .connexion:focus-visible::before { animation-duration: 2.2s; }
.connexion:hover .connexion-texte, .connexion:focus-visible .connexion-texte { color: #fff; }
.connexion:hover .connexion-texte small, .connexion:focus-visible .connexion-texte small { color: var(--accent-light); }
.connexion:hover .connexion-vague img, .connexion:focus-visible .connexion-vague img { animation: vague-ondule 1.6s ease-in-out infinite; }
@keyframes vague-ondule { 0%, 100% { transform: scaleY(1) skewX(0); } 50% { transform: scaleY(.72) skewX(-8deg); } }
@media (max-width: 1340px) {
  .connexion { height: 42px; width: 42px; padding: 0; justify-content: center; }
  .connexion-texte { display: none; }
  .connexion-vague, .connexion-vague img { width: 30px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .connexion::before { animation: none; }
  .connexion:hover .connexion-vague img { animation: none; }
}
/* Pied : logo d'origine en blanc, mention du groupe à côté */
.footer-marque { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.site-footer .footer-marque .brand img { height: 44px; width: auto; }
.footer-groupe { padding-left: 1.4rem; border-left: 1px solid var(--line-ink); font-family: var(--f-title); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.footer-groupe:hover { color: var(--accent); }
/* Téléphone : logo d'origine réduit pour que loupe, langue, MyRiverSide et menu tiennent sur 350 px */
@media (max-width: 480px) {
  .site-header .brand img { height: 30px; }
  .header-inner { gap: .3rem; }
  .connexion { width: 38px; height: 38px; }
  .connexion-vague, .connexion-vague img { width: 26px; height: 10px; }
  .nav-toggle { padding: .45rem .3rem; }
}
@media (max-width: 360px) { .site-header .brand img { height: 26px; } }
/* Logo charte Numeris + ruban de lignes de la vague River Side (2 décembre 2026) ; le ruban ondule avec motion.js */
.site-header .brand img { height: 44px; }
.brand { display: flex; align-items: center; }
.logo-ruban { flex: none; width: 62px; height: 38px; margin-left: 2px; overflow: visible; }
.logo-ruban path { fill: none; stroke: var(--accent); stroke-width: 1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.site-footer .logo-ruban { width: 62px; height: 38px; }
@media (max-width: 480px) {
  .site-header .brand img { height: 32px; }
  .site-header .logo-ruban { width: 36px; height: 22px; margin-left: 2px; }
}
@media (max-width: 360px) { .site-header .brand img { height: 28px; } .site-header .logo-ruban { width: 30px; } }
/* En-tête : le logo par-dessus le ruban animé (Rayane, 2 décembre 2026 : « que sur l'entête »). Le ruban s'étire derrière
   tout le logo, allégé ; un liseré blanc détoure le logo pour que les lignes passent derrière les lettres sans les toucher.
   Le pied de page garde le ruban à côté du logo. */
.site-header .brand { position: relative; }
.site-header .brand img {
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 2.5px #fff);
}
.site-header .logo-ruban {
  position: absolute; z-index: 1; left: 8px; top: 50%; width: calc(100% + 20px); height: 62px;   /* centré sur le logo, un peu vers « RIVER SIDE » */
  margin: 0; transform: translateY(-50%); opacity: .5; pointer-events: none;
}
.site-header .brand:hover .logo-ruban { opacity: .7; transition: opacity .4s; }
@media (max-width: 480px) {
  .site-header .logo-ruban { left: 6px; width: calc(100% + 12px); height: 46px; margin: 0; }
}
@media (max-width: 360px) { .site-header .logo-ruban { width: calc(100% + 14px); } }
/* Prendre rendez-vous (questionnaire en cinq étapes, sur la mécanique de la page devis commune) : cinq repères sur une ligne */
.devis-form[data-form="rdv"] .devis-progression { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 641px) { .devis-form[data-form="rdv"] .devis-progression button { font-size: .76rem; } }
.devis-direct p strong { display: inline-block; min-width: 4.6rem; font-family: var(--f-title); color: var(--navy-dark); }
