/* Point Neutre — feuille de style unique */

/* Polices auto-hébergées : déposer les fichiers dans /fonts (voir fonts/LISEZMOI.txt).
   Tant qu'ils sont absents, les polices de repli système prennent le relais. */
@font-face {
  font-family: "Fraunces";
  src: url("../../fonts/Fraunces-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bleu: #16324F;
  --cuivre: #B87333;
  --cuivre-texte: #8F5626; /* cuivre assombri pour le texte : contraste AA sur fond clair */
  --ardoise: #5A6B7B;
  --fond: #F3F6FA;
  --blanc: #FFFFFF;
  --filet: #D5DDE6;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --largeur: 72rem;
  --marge: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--bleu);
  background: var(--blanc);
}

a { color: inherit; text-decoration-color: var(--cuivre); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 3px; border-radius: 2px; }

.saut { position: absolute; left: -999px; top: 0; background: var(--bleu); color: var(--blanc); padding: .5rem 1rem; }
.saut:focus { left: 1rem; }

.cadre { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }

/* En-tête */
.entete { border-bottom: 1px solid var(--filet); background: var(--blanc); }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.marque { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.marque svg { width: 2rem; height: 2rem; flex: none; }
.nav { display: flex; align-items: center; gap: 1.75rem; font-size: .9375rem; }
.nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ardoise); }
.nav a:hover { color: var(--bleu); }
.langue { padding-left: 1.5rem; border-left: 1px solid var(--filet); }
.langue a, .langue span { font-size: .875rem; }
.langue span { color: var(--bleu); font-weight: 600; }
@media (max-width: 52rem) { .nav ul { display: none; } .langue { border: 0; padding: 0; } }

/* Hero */
.hero { background: var(--fond); }
.hero .cadre { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; padding-top: clamp(3.5rem, 9vw, 7rem); padding-bottom: clamp(3.5rem, 9vw, 7rem); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 5.75rem); line-height: 1; letter-spacing: -0.025em; margin: 0; }
.hero .baseline { font-size: clamp(1.125rem, 2.2vw, 1.375rem); color: var(--ardoise); margin: 1rem 0 2rem; }
.hero .position { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.45; max-width: 30ch; margin: 0 0 2.5rem; }
.bouton { display: inline-block; background: var(--bleu); color: var(--blanc); text-decoration: none; padding: .85rem 1.4rem; border-radius: 2px; font-weight: 500; }
.bouton:hover { background: #0F2439; }

.etoile { width: 100%; max-width: 26rem; justify-self: center; }
.etoile .phase { stroke: var(--bleu); stroke-width: 3; stroke-linecap: round; fill: none; }
.etoile .borne { fill: var(--bleu); }
.etoile .anneau { fill: none; stroke: var(--filet); stroke-width: 1; }
.etoile .neutre { fill: var(--cuivre); }
.etoile .halo { fill: var(--fond); }
.etoile text { font-family: var(--sans); font-size: 13px; fill: var(--ardoise); }

/* Moment unique : les trois phases convergent vers le point neutre au chargement */
@media (prefers-reduced-motion: no-preference) {
  .etoile .phase { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.1s cubic-bezier(.3,.6,.2,1) forwards; }
  .etoile .phase:nth-of-type(2) { animation-delay: .12s; }
  .etoile .phase:nth-of-type(3) { animation-delay: .24s; }
  .etoile .neutre { transform-origin: 200px 200px; transform: scale(0); animation: point .5s cubic-bezier(.2,1.4,.4,1) 1.2s forwards; }
  @keyframes trace { to { stroke-dashoffset: 0; } }
  @keyframes point { to { transform: scale(1); } }
}

@media (max-width: 52rem) {
  .hero .cadre { grid-template-columns: 1fr; }
  .etoile { max-width: 10rem; order: -1; justify-self: start; margin-left: -1rem; }
}

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--filet); }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 1rem; }
.section .intro { color: var(--ardoise); max-width: 60ch; margin: 0 0 3rem; }
.deux { display: grid; grid-template-columns: 18rem 1fr; gap: 3rem; }
@media (max-width: 52rem) { .deux { grid-template-columns: 1fr; gap: 1rem; } }

/* Expertise : une ligne par domaine, titre à gauche, texte à droite */
.domaines { list-style: none; margin: 0; padding: 0; }
.domaines li { display: grid; grid-template-columns: 18rem 1fr; gap: 3rem; padding: 1.75rem 0; border-top: 1px solid var(--filet); }
.domaines li:last-child { border-bottom: 1px solid var(--filet); }
.domaines h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin: 0; }
.domaines p { margin: 0; max-width: 62ch; }
@media (max-width: 52rem) { .domaines li { grid-template-columns: 1fr; gap: .5rem; } }
.international { margin: 2.5rem 0 0; max-width: 62ch; color: var(--ardoise); }

/* Approche */
.approche { background: var(--fond); }
.citation { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.625rem); line-height: 1.5; max-width: 38ch; margin: 1.75rem 0 3.5rem; }
.methode { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.methode li { counter-increment: etape; border-top: 2px solid var(--bleu); padding-top: 1.25rem; }
.methode li::before { content: counter(etape); display: block; font-family: var(--serif); font-size: 1rem; color: var(--ardoise); margin-bottom: .5rem; }
.methode h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 .5rem; }
.methode p { margin: 0; color: var(--ardoise); }
@media (max-width: 52rem) { .methode { grid-template-columns: 1fr; gap: 2rem; } }

/* Parcours */
.parcours p { max-width: 62ch; margin: 0 0 1.25rem; }
.parcours p:last-child { margin-bottom: 0; }

/* Contact */
.contact .courriel { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -0.01em; word-break: break-word; }
.contact .courriel a { text-decoration-thickness: 2px; }

/* Pied */
.pied { background: var(--bleu); color: #C9D4E0; font-size: .8125rem; line-height: 1.6; padding: 2.5rem 0; }
.pied .cadre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.pied p { margin: 0; max-width: 70ch; }
.pied a { color: var(--blanc); }

/* Page texte (mentions légales) */
.page-texte { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-texte h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 5vw, 3rem); margin: 0 0 2.5rem; letter-spacing: -0.015em; }
.page-texte h2 { font-size: 1.125rem; font-weight: 600; margin: 2.5rem 0 .5rem; }
.page-texte p { max-width: 64ch; margin: 0 0 .75rem; }
.a-completer { background: #FDF1E4; color: var(--cuivre-texte); padding: 0 .3em; border-radius: 2px; font-weight: 500; }

/* ---- Site multipage ---- */
.nav a[aria-current="page"] { color: var(--bleu); text-decoration: underline; text-decoration-color: var(--cuivre); text-underline-offset: .45em; }

/* En-tête des pages intérieures */
.tete-page { background: var(--fond); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.tete-page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 1rem; }
.tete-page p { font-size: clamp(1.125rem, 2vw, 1.25rem); color: var(--ardoise); max-width: 56ch; margin: 0; }

/* Accueil : aperçu des domaines, deux colonnes de liens */
.apercu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.apercu li { border-top: 1px solid var(--filet); }
.apercu a { display: block; padding: 1.25rem 0 1.4rem; text-decoration: none; }
.apercu strong { display: block; font-weight: 600; font-size: 1.0625rem; margin-bottom: .25rem; }
.apercu span { color: var(--ardoise); font-size: .9375rem; }
.apercu a:hover strong { text-decoration: underline; text-decoration-color: var(--cuivre); text-underline-offset: .2em; }
@media (max-width: 52rem) { .apercu { grid-template-columns: 1fr; } }
.suite { margin: 2rem 0 0; }

/* Bandeau d'appel au contact */
.bandeau { background: var(--bleu); color: var(--blanc); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.bandeau .cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.bandeau p { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 0; max-width: 32ch; }
.bandeau .bouton { background: var(--blanc); color: var(--bleu); }
.bandeau .bouton:hover { background: var(--fond); }

.domaines li { scroll-margin-top: 1rem; }
.principes { margin-top: 4rem; }
.principes p { max-width: 62ch; }
.coord p { margin: 0 0 .5rem; }
.coord .libelle { color: var(--ardoise); font-size: .9375rem; margin-top: 1.75rem; }
.section .domaines .h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; margin: 0; }
.pied { border-top: 1px solid rgba(255,255,255,.14); }
