@charset "utf-8";

/* ---------------------------------------------------------------
   Cabinet Julie Soudaz
   Polices auto-hébergées, sous-ensemble français et anglais.
   Aucune requête vers un domaine tiers.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-var.woff2") format("woff2-variations");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------
   Jetons
   --------------------------------------------------------------- */

:root {
  --navy-900: #001b33;
  --navy-800: #002a4c;
  --navy-700: #003966;
  --navy-600: #054e85;
  --navy-500: #0a67ab;

  --gold-500: #bea57d;
  --gold-700: #8a7247;
  --gold-300: #d9c7a6;
  --gold-50:  #f5f0e6;

  --n-0:   #ffffff;
  --n-50:  #f6f8fa;
  --n-100: #edf1f5;
  --n-200: #dce4ec;
  --n-400: #93a4b4;
  --n-600: #55677a;
  --n-800: #24333f;
  --n-900: #0e1a24;

  --error:   #a6392c;
  --success: #2f6b4f;

  --serif: "Source Serif 4", Charter, Georgia, serif;
  --sans:  "Public Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --wrap: 1200px;
  --measure: 680px;
  --radius: 2px;

  --pad-x: 24px;
  /* Moitie du rythme vertical vise : deux sections adjacentes additionnent
     leurs paddings, on obtient 64 px en mobile et 96 px en desktop. */
  --sec-y: 32px;
}

@media (min-width: 1024px) {
  :root { --pad-x: 48px; --sec-y: 48px; }
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--n-0);
  color: var(--n-800);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--n-900);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: 30px; line-height: 1.12; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.3; }

@media (min-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}

p { margin: 0 0 var(--s-4); }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-600); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: var(--radius);
}

img, svg { max-width: 100%; height: auto; display: block; }

::selection { background: var(--gold-300); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); }
.measure { max-width: var(--measure); }
.section { padding-block: var(--sec-y); }
/* Les bandes colorees portent leur propre respiration : le changement de fond
   fait la separation, le padding sert le contenu a l'interieur. */
.section--tint, .section--dark { padding-block: calc(var(--sec-y) * 1.5); }
.section--tint { background: var(--n-50); border-block: 1px solid var(--n-200); }
.section--dark { background: var(--navy-900); color: var(--n-0); }
.section--dark h2 { color: var(--n-0); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-700); color: var(--n-0);
  padding: var(--s-3) var(--s-4); z-index: 300;
}
.skip:focus { left: 0; color: var(--n-0); }

/* ---------------------------------------------------------------
   Sur-titre
   --------------------------------------------------------------- */

.kicker {
  display: flex; align-items: center; gap: var(--s-4);
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-700);
  margin: 0 0 var(--s-6);
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--n-200); }
.section--dark .kicker { color: var(--gold-300); }
.section--dark .kicker::after { background: var(--navy-800); }

/* ---------------------------------------------------------------
   Boutons
   --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 28px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn--primary { background: var(--navy-700); color: var(--n-0); }
.btn--primary:hover { background: var(--navy-600); color: var(--n-0); }
.btn--secondary { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn--secondary:hover { background: var(--n-100); color: var(--navy-700); }
.btn--onDark { background: var(--n-0); color: var(--navy-700); }
.btn--onDark:hover { background: var(--gold-50); color: var(--navy-700); }
/* Secondaire posé sur fond sombre. A sa propre classe plutot qu'un style en
   ligne : celui-ci l'emportait sur la regle de survol et donnait du blanc
   sur blanc. */
.btn--ghostDark { background: transparent; border-color: var(--n-0); color: var(--n-0); }
.btn--ghostDark:hover { background: rgba(255, 255, 255, .14); border-color: var(--n-0); color: var(--n-0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------
   En-tête
   --------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--n-0); border-bottom: 1px solid var(--n-200);
}
.site-head__in {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 80px; padding-block: var(--s-3);
}
/* En dessous de 1024 px, le lockup complet (200 px) plus les actions ne
   tiennent pas dans 375 px. On bascule sur le monogramme seul, comme prevu
   au brief : recadrage de viewBox, aucun trace modifie. */
.site-head__logo { flex: none; display: block; }
.site-head__logo .lockup { display: none; width: 200px; }
.site-head__logo .mono { display: block; height: 34px; width: auto; }

@media (min-width: 1024px) {
  .site-head__logo .lockup { display: block; }
  .site-head__logo .mono { display: none; }
}

.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-nav { display: flex; gap: var(--s-5); margin-inline: auto; }
}
.site-nav a {
  font-size: 15px; font-weight: 600; color: var(--n-800);
  padding-block: var(--s-2); border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy-700); }
.site-nav a[aria-current="page"] { color: var(--navy-700); border-bottom-color: var(--gold-500); }

.head-actions { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }
.head-actions .btn { padding: 11px 20px; }
/* En mobile la barre d'action ancree en bas porte deja le rendez-vous :
   inutile de le repeter dans un en-tete a l'etroit. */
.head-actions .btn { display: none; }
@media (min-width: 1024px) {
  .head-actions { margin-left: 0; }
  .head-actions .btn { display: inline-flex; }
}

/* C'est un <p> : sans cette remise a zero, sa marge basse de 16 px le
   decale de 8 px vers le haut dans l'en-tete centre. */
.lang {
  display: flex; align-items: center; gap: var(--s-1);
  margin: 0;
  font-size: 14px; color: var(--n-600);
}
.lang [aria-current] { color: var(--navy-700); font-weight: 600; }
.lang span { color: var(--n-400); }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--n-200); border-radius: var(--radius);
}
.burger i { display: block; height: 1.5px; background: var(--navy-700); }
@media (min-width: 1024px) { .burger { display: none; } }

.mobile-nav { border-top: 1px solid var(--n-200); background: var(--n-0); }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--s-4) 0; }
.mobile-nav a { display: block; padding: var(--s-3) 0; font-size: 17px; font-weight: 600; }

/* ---------------------------------------------------------------
   Barre d'action mobile
   --------------------------------------------------------------- */

.action-bar {
  position: sticky; bottom: 0; z-index: 90;
  display: flex; gap: var(--s-3);
  padding: var(--s-3) var(--pad-x);
  background: var(--n-0); border-top: 1px solid var(--n-200);
  box-shadow: 0 -6px 18px rgba(0, 27, 51, .10);
}
.action-bar .btn { flex: 1; }
@media (min-width: 1024px) { .action-bar { display: none; } }

/* ---------------------------------------------------------------
   Accueil
   --------------------------------------------------------------- */

/* Ouverture de page : le haut reste genereux, le bas suit le rythme commun. */
.hero { padding-top: calc(var(--sec-y) * 2); padding-bottom: var(--sec-y); }
.hero h1 { font-size: 36px; line-height: 1.05; letter-spacing: -.015em; }
@media (min-width: 1024px) { .hero h1 { font-size: 56px; } }
.hero__lede {
  font-family: var(--serif); font-size: 19px; line-height: 1.5;
  color: var(--n-600); max-width: 62ch; margin: var(--s-5) 0 var(--s-6);
}
@media (min-width: 1024px) { .hero__lede { font-size: 21px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__note { margin: var(--s-5) 0 0; font-size: 15px; color: var(--n-600); }

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  display: block; padding: var(--s-6);
  border: 1px solid var(--n-200); border-radius: var(--radius);
  color: var(--n-800);
}
.card:hover { border-color: var(--gold-500); color: var(--n-800); }
.card p { font-size: 15px; color: var(--n-600); margin: var(--s-3) 0 var(--s-5); }
.card__more { font-size: 15px; font-weight: 600; color: var(--navy-700); }

/* Périmètre : deux colonnes de poids strictement égal */
.scope { display: grid; gap: var(--s-7); }
@media (min-width: 768px) {
  .scope { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .scope__out { border-left: 1px solid var(--n-200); padding-left: var(--s-7); }
}
.scope h2 { margin-bottom: var(--s-5); }
.scope ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.scope li { display: flex; gap: var(--s-3); font-size: 17px; line-height: 1.5; }
.scope li::before {
  content: ""; flex: none; width: 5px; height: 5px;
  background: var(--gold-500); margin-top: 10px;
}
.scope__note { margin: var(--s-5) 0 0; font-size: 15px; color: var(--n-600); }
.scope__note a { border-bottom: 1px solid var(--gold-500); }

.proof { display: grid; gap: 1px; background: var(--navy-800); }
.proof div { background: var(--navy-900); padding: var(--s-4) 0; }
@media (min-width: 768px) {
  .proof { grid-template-columns: repeat(4, 1fr); }
  /* Padding des deux cotes pour que le texte ne colle pas au filet.
     La premiere colonne garde son bord gauche aligne sur le conteneur. */
  .proof div { padding: var(--s-4) var(--s-6); }
  .proof div:first-child { padding-left: 0; }
}
.proof dt {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-300); margin-bottom: var(--s-2);
}
.proof dd { margin: 0; font-size: 15px; color: var(--n-0); }

.why { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 768px) { .why { grid-template-columns: 1fr 380px; } }
.why img { width: 100%; border-radius: var(--radius); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 1px solid var(--n-200); padding-top: var(--s-4); }
.steps b {
  display: block; font-family: var(--sans); font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 600; color: var(--gold-700); margin-bottom: var(--s-2);
}
.steps h3 { margin-bottom: var(--s-2); }
.steps p { font-size: 15px; color: var(--n-600); margin: 0; }

.fee-card {
  background: var(--gold-50); border-left: 3px solid var(--gold-500);
  padding: var(--s-6);
}
.fee-card h3 { margin-bottom: var(--s-3); }
.fee-card p { font-size: 15px; color: var(--n-800); margin: 0 0 var(--s-4); }
.fee-card ul { margin: 0; padding-left: 20px; font-size: 15px; color: var(--n-600); }
.fee-card li { margin-bottom: var(--s-2); }

/* ---------------------------------------------------------------
   Page de compétence
   --------------------------------------------------------------- */

.crumb { font-size: 14px; color: var(--n-600); padding-block: var(--s-4); }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; }
.crumb li::after { content: "›"; margin-left: var(--s-2); color: var(--n-400); }
.crumb li:last-child::after { content: ""; }

.prose { max-width: var(--measure); }
.prose p { font-size: 17px; }
.prose ul { margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.prose ul li { display: flex; gap: var(--s-3); margin-bottom: var(--s-3); }
.prose ul li::before {
  content: ""; flex: none; width: 5px; height: 5px;
  background: var(--gold-500); margin-top: 10px;
}

.facts { display: grid; gap: 0; margin: 0; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: var(--s-1); padding-block: var(--s-3); border-bottom: 1px solid var(--n-200); }
@media (min-width: 640px) { .facts > div { grid-template-columns: 190px 1fr; gap: var(--s-4); } }
.facts dt { font-size: 15px; font-weight: 600; color: var(--n-900); }
.facts dd { margin: 0; font-size: 15px; color: var(--n-600); }

.faq details { border-bottom: 1px solid var(--n-200); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-4) 0; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; color: var(--n-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "›"; color: var(--gold-700); font-size: 20px; transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(-90deg); }
.faq p { max-width: var(--measure); font-size: 16px; color: var(--n-600); padding-bottom: var(--s-4); margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--n-200); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th {
  text-align: left; font-size: 12px; letter-spacing: .11em; text-transform: uppercase;
  font-weight: 600; color: var(--n-600); background: var(--n-100);
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--n-200); white-space: nowrap;
}
td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--n-200); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--n-900); }
.quote { background: var(--gold-50); border-left: 3px solid var(--gold-500); padding: var(--s-6); margin: 0 0 var(--s-6); max-width: 760px; }
.quote p { font-family: var(--serif); font-size: 18px; line-height: 1.5; margin: 0 0 var(--s-3); }
.quote cite { font-style: normal; font-size: 14px; color: var(--n-600); }

/* ---------------------------------------------------------------
   Formulaire
   --------------------------------------------------------------- */

.form { max-width: var(--measure); }
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.field > label { font-size: 15px; font-weight: 600; color: var(--n-900); }
/* Les cases et boutons radio ne sont pas des champs de saisie : les exclure,
   sinon ils héritent des 48 px de hauteur et se décalent du texte. */
.field input:not([type="radio"]):not([type="checkbox"]),
.field textarea,
.field select {
  font-family: var(--sans); font-size: 16px; color: var(--n-800);
  padding: 0 var(--s-4); height: 48px;
  border: 1px solid var(--n-200); border-radius: var(--radius); background: var(--n-0);
}
.field textarea { height: auto; min-height: 140px; padding: var(--s-3) var(--s-4); resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy-700); }
.field .hint { font-size: 14px; color: var(--n-600); }
.field .err { font-size: 14px; color: var(--error); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--error); }

.choices { display: flex; flex-direction: column; gap: var(--s-2); }
.choice {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--n-200); border-radius: var(--radius); cursor: pointer;
  font-size: 16px;
}
.choice:hover { border-color: var(--gold-500); }
/* 4 px cale le centre du contrôle sur celui de la première ligne de texte,
   pour une interligne de 26,4 px. */
.choice input {
  flex: none; width: 18px; height: 18px; margin: 4px 0 0;
  accent-color: var(--navy-700);
}
.choice:has(input:checked) { border-color: var(--navy-700); background: var(--n-50); }

.consent-row { display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-5); font-size: 15px; color: var(--n-600); }
.consent-row input { margin: 4px 0 0; accent-color: var(--navy-700); }

.notice {
  background: var(--gold-50); border-left: 3px solid var(--gold-500);
  padding: var(--s-5); margin-bottom: var(--s-5);
}
.notice h3 { margin-bottom: var(--s-2); font-family: var(--sans); font-size: 15px; }
.notice p { font-size: 15px; margin: 0 0 var(--s-3); }
.notice p:last-child { margin-bottom: 0; }
.notice--ok { background: #eef5f1; border-left-color: var(--success); }
.notice--err { background: #f8ecea; border-left-color: var(--error); }

.form-steps { display: flex; gap: var(--s-2); margin-bottom: var(--s-6); }
.form-steps span { flex: 1; height: 2px; background: var(--n-200); }
.form-steps span[data-done] { background: var(--gold-500); }

/* ---------------------------------------------------------------
   Carte
   --------------------------------------------------------------- */

.map { border: 1px solid var(--n-200); border-radius: var(--radius); overflow: hidden; }
.map svg { width: 100%; height: auto; display: block; }
.map__foot {
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; align-items: center;
  padding: var(--s-3) var(--s-4); border-top: 1px solid var(--n-200);
  font-size: 13px; color: var(--n-600); background: var(--n-50);
}

/* ---------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------- */

.site-foot { background: var(--navy-900); color: var(--n-0); border-top: 1px solid var(--gold-500); }
.site-foot .wrap { padding-block: var(--s-8); }
.site-foot__cols { display: grid; gap: var(--s-7); }
@media (min-width: 768px) { .site-foot__cols { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }
.site-foot img { width: 200px; margin-bottom: var(--s-4); }
.site-foot h2 {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300);
  margin-bottom: var(--s-4);
}
.site-foot p, .site-foot li { font-size: 15px; color: var(--n-400); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-foot a { color: var(--n-0); }
.site-foot a:hover { color: var(--gold-300); }
.site-foot__base {
  border-top: 1px solid var(--navy-800); margin-top: var(--s-7); padding-top: var(--s-5);
  font-size: 13px; color: var(--n-400);
}

/* ---------------------------------------------------------------
   Préférences système
   --------------------------------------------------------------- */

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

@media print {
  .site-head, .action-bar, .site-foot, .burger { display: none; }
  body { font-size: 12pt; }
}
