/* =============================================================
   GAÉ Finance - Feuille de style de la page d'accueil
   Phase 13C : refonte design accueil (référence : /cabinet/ 13B)
   Principes : typographie et filets avant boîtes, compositions
   ouvertes, blanc dominant, or rare (chiffres, détails).
   Les styles communs header/nav/footer sont dans assets/css/site.css.
   ============================================================= */

:root {
  --bg: #f7f5f1;
  --bg-alt: #f1ede6;
  --text: #16181d;
  --muted: #5d6470;
  --line: rgba(22, 24, 29, 0.12);
  --line-strong: rgba(22, 24, 29, 0.2);
  --accent: #163867;
  --accent-dark: #10161f;
  --gold: #C4A97D;
  --gold-ink: #8a6a3b;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Ancres sous le header sticky */
section[id] { scroll-margin-top: 108px; }

/* ---------- Boutons (reprise sobre du gabarit existant) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-s, 4px);
  font-size: 0.97rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text);
}

/* ---------- Rythme des sections ---------- */
.section {
  padding: 116px 0;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 20ch;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 32px 56px;
  align-items: end;
  margin-bottom: 52px;
}

.section-intro,
.section-side {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.75;
}

.section-intro { margin: 22px 0 0; max-width: 58ch; }

/* Lien éditorial (flèche) */
.inline-link,
.section-more a,
.expertise-link,
.hero-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--accent);
}

.inline-link::after,
.section-more a::after,
.expertise-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.inline-link:hover::after,
.section-more a:hover::after,
.expertise-link:hover::after {
  transform: translateX(3px);
}

.inline-link { margin-top: 26px; }
.section-more { margin: 34px 0 0; }

/* ---------- Hero : photo, composition sobre ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(16, 22, 34, 0.5) 0%, rgba(16, 22, 34, 0.28) 45%, rgba(16, 22, 34, 0.7) 100%),
    url('gae-finance.jpg') 58% 42% / cover no-repeat;
}

.hero-inner {
  width: min(var(--container), calc(100% - 40px));
  padding: 170px 0 112px;
}

.hero-kicker {
  display: block;
  margin-bottom: 24px;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 21ch;
  color: #ffffff;
}

.hero-lead {
  margin: 30px 0 0;
  max-width: 62ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 40px;
}

.hero .btn-primary {
  background: #ffffff;
  color: var(--text);
}

.hero .btn-primary:hover {
  background: var(--gold);
  color: #fff;
}

.hero-link {
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.hero-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

/* ---------- Équipe : séquence horizontale, trois personnes en groupe (16B-3A) ----------
   Une même zone, trois portraits alignés sur une même ligne de base.
   Les associés fondateurs légèrement plus présents, Romane Pillot
   pleinement intégrée au groupe. Photos brutes (rayon 0). */
.team-portraits {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1.06fr) minmax(0, 0.88fr);
  gap: 0 48px;
  align-items: end;
}

.portrait-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.portrait-name {
  margin: 20px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.portrait-role {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---------- Expertises : filets et typographie, composition en appendice 16B ---------- */
.expertise-list {
  display: grid;
}

.expertise-item {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.expertise-item h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.expertise-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  max-width: 52ch;
}

.expertise-link {
  margin-top: 14px;
}

/* ---------- Méthode : respiration (fond blanc 13C-ter) ---------- */
#methode {
  padding: 132px 0;
}

/* 16B-3A : lecture synthétique du cheminement, typographique et
   discrète (flèches fines, ni stepper ni timeline). Le tableau
   détaillé reste l'élément principal. */
#methode .section-head {
  margin-bottom: 28px;
}

.method-synopsis {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 0;
  margin: 0 0 36px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.method-synopsis span {
  white-space: nowrap;
}

.method-synopsis span + span::before {
  content: "→";
  margin: 0 12px;
  color: var(--gold);
  letter-spacing: 0;
}

.method-rows {
  border-bottom: 1px solid var(--line);
}

.method-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 4fr) minmax(0, 7fr);
  gap: 10px 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.method-num {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-ink);
  line-height: 1.7;
}

.method-row h3 {
  font-size: 1.15rem;
}

.method-row h3 a {
  color: inherit;
}

.method-row h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.method-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- Opérations : registre de mandats, dense (13C-ter) ---------- */
.deal-rows {
  border-bottom: 1px solid var(--line);
}

.deal-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 8px 56px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.deal-id h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.deal-region {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

.deal-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.deal-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold-ink);
}

/* ---------- Contact : conclusion, rupture sombre ----------
   (bloc restaure - regression CSSdetectee puis corrige en Phase 14) */
.contact-band {
  background: linear-gradient(180deg, #182536 0%, #10161f 100%);
  color: #f2f6fb;
}

.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px 96px;
  align-items: start;
}

.contact-band + .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 16B-3A : compaction de la zone Contact avant footer (hauteur
   réduite d'environ 30 %, aucune coordonnée supprimée) */
#contact.contact-band {
  padding: 64px 0;
}

@media (max-width: 1024px) {
  #contact.contact-band { padding: 56px 0; }
}

@media (max-width: 768px) {
  #contact.contact-band { padding: 44px 0; }
}

.contact-band .section-kicker {
  color: rgba(242, 246, 251, 0.6);
}

.contact-band h2 {
  color: #ffffff;
  max-width: 14ch;
}

.contact-band .section-intro {
  color: rgba(242, 246, 251, 0.75);
}

.contact-band .section-intro {
  margin-top: 16px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.contact-band .btn-primary {
  background: #ffffff;
  color: var(--text);
}

.contact-band .btn-primary:hover {
  background: var(--gold);
  color: #fff;
}

.contact-band .btn-secondary {
  background: transparent;
  color: #f2f6fb;
  border-color: rgba(242, 246, 251, 0.35);
}

.contact-band .btn-secondary:hover {
  border-color: rgba(242, 246, 251, 0.85);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: block;
  color: rgba(242, 246, 251, 0.72);
  font-size: 0.96rem;
  line-height: 1.6;
}

.contact-list li + li {
  margin-top: 10px;
}

/* Phase 14 : bas de section en deux colonnes editoriales pleine largeur -
   coordonnees pratiques a gauche, confidentialite contenue a droite */
.contact-info {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 88px;
  align-items: start;
  margin-top: 16px;
  border-top: 1px solid rgba(242, 246, 251, 0.2);
  padding-top: 8px;
}

.contact-info-practical {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  min-width: 0;
}

.contact-info-note {
  min-width: 0;
  max-width: 42ch;
}

.info-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(242, 246, 251, 0.16);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row span,
.contact-info-note > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(242, 246, 251, 0.55);
}

.contact-info-note > span {
  padding-top: 12px;
}

.info-row div,
.contact-info-note > div {
  color: rgba(242, 246, 251, 0.88);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* ---------- Lead magnet : rupture marine, experience Victor (13C-quater) ----------
   Le simulateur embarque a ete retire : le CTA ouvre l'experience dediee Victor.
   URL isolee dans le HTML pour le passage en production. */
.estimate-band {
  background: linear-gradient(180deg, #163867 0%, #10161f 100%);
  color: #f2f6fb;
}

.estimate-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px 96px;
  align-items: center;
}

.estimate-kicker {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.estimate-band h2 {
  color: #ffffff;
  max-width: 16ch;
}

.estimate-intro {
  margin: 22px 0 0;
  max-width: 56ch;
  color: rgba(242, 246, 251, 0.78);
  line-height: 1.75;
}

.estimate-points {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.estimate-points li {
  padding: 13px 0;
  border-top: 1px solid rgba(242, 246, 251, 0.14);
  color: rgba(242, 246, 251, 0.85);
  font-size: 0.98rem;
  line-height: 1.6;
}

.estimate-points li:first-child {
  border-top: 0;
  padding-top: 0;
}

.estimate-action h3 {
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.estimate-cta {
  background: #ffffff;
  color: var(--text);
}

.estimate-cta:hover {
  background: var(--gold);
  color: #fff;
}

.estimate-note {
  margin: 18px 0 0;
  max-width: 40ch;
  color: rgba(242, 246, 251, 0.55);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ---------- Équipe sur crème : chapitre humain entre deux contrastes ---------- */
#equipe {
  background: var(--bg-alt);
}

/* ---------- Header (gabarit conservé) ---------- */
@media (min-width: 721px) {
  .btn-clean {
    min-height: 46px;
    padding: 0 22px;
    border-radius: var(--radius-s, 4px);
    font-size: 0.96rem;
    font-weight: 600;
    box-shadow: none;
  }
}

/* ---------- Responsive ---------- */

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

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }

  .hero { min-height: auto; }
  .hero-inner { padding: 140px 0 72px; }

  .team-portraits {
    gap: 0 28px;
  }

  #methode {
    padding: 84px 0;
  }

  .contact-split,
  .estimate-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info-practical {
    grid-template-columns: 1fr;
  }

  .contact-info-note {
    max-width: none;
    margin-top: 8px;
  }

  .contact-info-note > span {
    padding-top: 12px;
  }

  .expertise-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .method-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 20px;
  }

  .method-row p { grid-column: 2; }

  .deal-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

}

@media (max-width: 720px) {
  .btn-clean {
    min-height: 42px;
    padding: 0 18px;
    border-radius: var(--radius-s, 4px);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: none;
  }

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .section { padding: 68px 0; }

  .hero-inner { padding: 120px 0 56px; }

  h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  h2 { max-width: none; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-portraits {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 440px;
  }

  .contact-actions .btn {
    width: 100%;
    white-space: normal;
  }
}
/* =============================================================
   Phase 16B + 16B-3A - Composition pilote sur le design system 16A
   (couche system-16a.css chargée après cette feuille)
   ============================================================= */

/* Équipe : registre crème (alternance blanc / crème / marine) */
#equipe {
  background: var(--creme-deep, #f3efe7);
}

/* Expertises : composition éditoriale sur grille 12 colonnes.
   16B-3A : écarts verticaux resserrés, axes gauche et droite
   partagés pour lire les 4 expertises comme un même ensemble.
   Densités variées : une entrée structurante, trois entrées
   rythmées en décalé léger. Jamais quatre blocs identiques. */
#expertises .section-head {
  margin-bottom: 40px;
}

.expertise-list {
  grid-template-columns: repeat(12, 1fr);
  gap: 44px 0;
}

.expertise-item { border-top: 1px solid var(--line-strong); }

.expertise-item:nth-child(1) {
  grid-column: 1 / span 7;
}

.expertise-item:nth-child(1) h3 {
  font-size: 1.6rem;
}

.expertise-item:nth-child(1) p {
  max-width: 58ch;
  font-size: 1rem;
}

.expertise-item:nth-child(2) {
  grid-column: 9 / span 4;
  margin-top: 36px;
}

.expertise-item:nth-child(3) {
  grid-column: 1 / span 5;
}

.expertise-item:nth-child(4) {
  grid-column: 8 / span 5;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .expertise-item:nth-child(n) {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .expertise-item:nth-child(1) h3 { font-size: 1.32rem; }
}

/* Méthode : numérotation réelle (ordre des temps) en serif */
.method-num {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--gold);
}

/* Opérations : chiffres clés en serif, un seul langage chiffré */
.deal-kpis {
  font-family: Georgia, "Times New Roman", serif;
}

/* Contact : un seul CTA plein, le téléphone devient lien éditorial
   (traité par system-16a.css via .contact-actions .btn-secondary) */
