/* ============================================================
   ACE Conseil - Audit & expertise comptable, golfe de Saint-Tropez
   Style des sites du groupe Numeris : marine + accent du cabinet
   (bleu lagon), Poppins/Lato, cartes blanches, bandes marines.
   Héros : photo pleine largeur sous voile marine, titre en bas.
   ============================================================ */

:root {
  /* -- Couleurs -- */
  --navy: #1e2f55;         /* panneaux */
  --navy-dark: #0d1c3f;    /* marine du groupe */
  --navy-deep: #0a1630;
  --accent: #37a8c0;       /* bleu lagon du logo ACE */
  --accent-dark: #1f7f93;  /* même teinte, lisible sur blanc */
  --accent-soft: rgba(55, 168, 192, .16);
  --accent-light: #8fd8e6; /* 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: var(--navy-dark);
  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: var(--navy-dark); }
.btn-accent:hover { background: #fff; border-color: #fff; color: var(--navy-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);
}
/* L'ombre au défilement est portée par un pseudo-élément dont seule l'opacité
   varie : animer box-shadow oblige le navigateur à repeindre l'en-tête. */
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .3s;
}
.site-header.scrolled::after { opacity: 1; }
.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 : photo pleine largeur, voile marine, titre en bas ----------
   Photo de mer sous un dégradé marine, quatre fines lignes verticales, grand
   titre en bas à gauche, mention en petites capitales espacées, texte d'accroche
   calé à droite. Le héros de l'accueil porte en plus une carte de chiffres. */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: min(62vh, 600px); background: var(--navy-dark); color: #fff; overflow: hidden;
}
.hero-home { min-height: min(86vh, 820px); }
.hero-media { position: absolute; inset: -6% 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .9; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,28,63,.18) 0%, rgba(13,28,63,.46) 42%, rgba(13,28,63,.86) 100%);
}
.hero-lines { position: absolute; inset: 0; pointer-events: none; }
.hero-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.13); }
.hero-lines span:nth-child(1) { left: 10%; }
.hero-lines span:nth-child(2) { left: 37%; }
.hero-lines span:nth-child(3) { left: 63%; }
.hero-lines span:nth-child(4) { left: 90%; }
.hero .container { position: relative; z-index: 2; width: 100%; padding-top: clamp(6rem, 12vw, 9rem); padding-bottom: clamp(2.6rem, 5vw, 4.2rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: 2.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-bottom: 0; }
.hero-home h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.hero .eyebrow { color: var(--accent-light); margin-bottom: 1.1rem; }
.hero h1 em { color: var(--accent-light); }
.hero-kicker {
  margin: 1.8rem 0 0; color: rgba(255,255,255,.6);
  font-family: var(--f-title); font-size: .72rem; font-weight: 600;
  letter-spacing: .4em; text-transform: uppercase; line-height: 2.1;
}
.hero-side p { color: rgba(255,255,255,.88); font-size: 1.04rem; max-width: 34ch; margin: 0 0 0 auto; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-side .actions { justify-content: flex-end; }

/* 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-dark);
  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 {
  position: relative; isolation: isolate;   /* contexte d'empilement : le ::after en z-index -1 reste dans la carte */
  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);
}
/* Ombre portée au survol en opacité seulement (pas d'animation de box-shadow). */
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .35s var(--ease);
}
.panel:hover { transform: translateY(-5px); }
.panel:hover::after { opacity: 1; }
.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); 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 minmax(0, 1fr); gap: .9rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
/* Emails longs (contact.saintemaxime@aceconseil.fr) : coupure autorisée plutôt que débordement. */
.cd-list a, .contact-office a, .footer-grid li, .links-group a { overflow-wrap: anywhere; }
.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); }

/* ---------- Page devis (assets/css/devis.css, commune aux sites, 19 octobre 2026) ----------
   devis.css lit déjà --accent, --navy-dark, --line… Deux réglages propres à ACE : le bleu lagon (--accent) est trop clair
   sous le chiffre blanc des étapes franchies et pour le contour des cartes cochées (contraste < 3:1), on prend sa
   version foncée ; le fond du récapitulatif suit le gris clair du site. */
.devis-layout { --devis-accent: var(--accent-dark); --devis-soft-bg: var(--bg-soft); }

/* ---------- 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-grid--four { grid-template-columns: repeat(4, 1fr); max-width: 1180px; }
.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);
}
.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); }

/* ---------- Bandeau de consentement (mesure d'audience, assets/js/analytics.js, 19 octobre 2026, repris de Bexco) ---------- */
.cookie-banner {
  position: fixed; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 95;
  display: flex; justify-content: flex-start; pointer-events: none;
}
/* L'attribut hidden (posé par analytics.js) doit gagner sur le display: flex ci-dessus. */
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  pointer-events: auto; width: 100%; max-width: 460px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.5rem 1.5rem;
}
.cookie-banner-title {
  font-family: var(--f-title); font-weight: 600; color: var(--navy-dark);
  font-size: 1rem; margin: 0 0 .5rem;
}
.cookie-banner-inner p { margin: 0; font-size: .92rem; line-height: 1.55; }
.cookie-banner-inner a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.1rem; }
.cookie-banner-actions .btn { padding: .8rem 1.3rem; }
@media (max-width: 620px) {
  .cookie-banner { left: .75rem; right: .75rem; bottom: .75rem; }
  .cookie-banner-actions .btn { flex: 1 1 0; justify-content: center; }
}
@media print { .cookie-banner { display: none; } }

/* Bouton habillé en lien : « Gérer les cookies » dans le pied de page */
.link-button {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit;
  letter-spacing: inherit; cursor: pointer;
}
.footer-bottom .link-button: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, .news-featured-media img, .news-card-media img,
  .panel, .panel::after, .team-card, .news-card, .btn, .btn .arrow, .text-link .arrow, .site-header::after { transition: none; }
  .panel:hover, .team-card:hover, .news-card:hover, .btn:hover { transform: 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: 1180px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: 98;
    background: #fff;
    padding: 120px var(--gutter) calc(3rem + env(safe-area-inset-bottom, 0px)); 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(--navy-dark);
    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 { min-height: min(56vh, 460px); }
  .hero-home { min-height: min(72vh, 640px); }
  .hero .container { padding-top: clamp(5rem, 14vw, 7rem); }
  .hero-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-side p { margin-left: 0; max-width: 46ch; }
  .hero-side .actions { justify-content: flex-start; }
  .hero-lines span:nth-child(2), .hero-lines span:nth-child(3) { display: none; }
  .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; }
  .hero-kicker { display: none; }
  .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, .team-grid--four { grid-template-columns: 1fr; max-width: 340px; }
}
@media (max-width: 900px) and (min-width: 621px) { .team-grid, .team-grid--four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) {
  .hero-figures { grid-template-columns: 1fr 1fr; }
}

/* ---------- 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);
}
.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; }

