/* =============================================================
   GAÉ Finance - Design system Phase 16A (couche commune)
   Chargée en DERNIER sur les 5 pages pilotes 16B :
   site.css -> pages.css -> page.css -> system-16a.css

   Rôle : aligner les 5 pages sur le référentiel 16A sans
   réinventer un système parallèle. Compositions spécifiques =
   feuilles de page. Règles communes = ici.

   Fondations 16A : blanc = registre de contenu principal,
   crème = registre secondaire, marine = registre rupture.
   Rayons : 4px max (boutons/champs), 0 sur les photos.
   Or #C4A97D : accent uniquement, jamais fond.
   ============================================================= */

:root {
  /* Grille 16A : composition 1240px */
  --container: 1240px;
  --bg: #ffffff;
  --creme: #f7f5f1;
  --creme-deep: #f3efe7;
  --marine: #163867;
  --marine-deep: #10161f;
  --gold: #C4A97D;
  --radius-s: 4px;
}

/* ---------- Composition 1240px (élargit la composition,
   jamais la longueur de ligne) ---------- */
.container {
  width: min(var(--container), calc(100% - 40px));
}

/* Colonne de lecture : composée à gauche dans la grille,
   lecture contenue à 66ch. Fini le centrage étroit générique. */
.narrow {
  max-width: 1040px;
  margin-right: auto;
}

.narrow .richtext p,
.cess-copy p {
  max-width: 66ch;
}

/* ---------- Registres de fond ---------- */
body {
  background: #ffffff;
}

.section--alt {
  background: var(--creme);
}

.section--soft {
  background: var(--creme-deep);
}

.section {
  padding: 96px 0;
}

@media (max-width: 1024px) {
  .section { padding: 64px 0; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
}

/* ---------- Boutons : rayon 4px, plus de pilules ---------- */
.btn,
.btn-clean {
  border-radius: var(--radius-s);
  min-height: 48px;
  padding: 12px 26px;
}

.btn:hover { transform: none; }

/* Second bouton d'un même bloc d'actions : lien éditorial,
   pas un doublon de CTA. */
.service-hero__actions .btn-secondary,
.cta-band__actions .btn-secondary,
.contact-actions .btn-secondary {
  background: transparent;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(22, 56, 103, 0.4);
  text-underline-offset: 4px;
  padding: 12px 0;
}

.service-hero__actions .btn-secondary:hover,
.cta-band__actions .btn-secondary:hover,
.contact-actions .btn-secondary:hover {
  background: transparent;
  text-decoration-color: var(--gold);
  transform: none;
}

.section--dark .service-hero__actions .btn-secondary,
.service-hero__actions .btn-secondary,
.section--dark .cta-band__actions .btn-secondary,
.cta-band .btn-secondary {
  color: rgba(244, 247, 251, 0.92);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* Sommaire des Expertises : le hero-panel vit toujours sur le hero
   sombre - le kicker y passe en or, jamais en marine (16D). */
.hero-panel .mini-kicker,
.hero-panel .section-kicker {
  color: var(--gold);
}

/* ---------- Kickers : métadonnée typographique ---------- */
.eyebrow,
.section-kicker,
.mini-kicker,
.cess-head .section-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marine);
}

/* Kickers sur sections sombres : or, jamais marine (16D). */
:is(.section--dark, .cess-final, .acq-final, .ldf-final) :is(.eyebrow, .section-kicker, .mini-kicker) {
  color: var(--gold);
}

/* ---------- Photos : rayon 0, présentation brute ---------- */
img { border-radius: 0; }

/* ---------- Titres de section : échelle commune ---------- */
.section-head h2,
.cess-head h2,
.acq-head h2,
.ldf-head h2,
.val-leadmagnet__content h2,
.editorial-block h2,
.richtext h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- Listes FAQ : filets, pas de cartes ---------- */
.cess-faq__item,
.eq-faq__item {
  border-radius: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line-strong);
  box-shadow: none;
}

.cess-faq__item:last-child,
.eq-faq__item:last-child {
  border-bottom: 1px solid var(--line-strong);
}

/* ---------- Grilles communes : gaps homogènes ---------- */
.grid-2 { gap: 48px 64px; }
.grid-3 { gap: 48px 40px; }

/* ---------- Accessibilité ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--marine);
  outline-offset: 3px;
}

.section--dark :focus-visible,
.cess-final :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .cess-toc a:hover,
  .cess-linkcard:hover,
  .cess-expertise:hover {
    transform: none;
  }
}
