/* gravitybrand.agency
   Direction : CLAIR ET DEMONSTRATIF, calee sur le modele getmysocial.com.
   Le principe : beaucoup de sections courtes, chacune une idee et un visuel qui MONTRE.
   Densite visee : ~58 mots par ecran. Corps a 18px. Fond blanc, un seul accent sature.
   Garde-fous : voir CLAUDE.md. Contrainte Meta : aucun montant, aucun symbole monetaire. */

/* ── Echelle typographique (25/08) ────────────────────────────────────────
   Avant : NEUF tailles, dont HUIT valeurs rem entre 15 et 19 px (.95 .98 1
   1.02 1.06 1.12 1.15 1.2). Un ecart d'un pixel ne se lit pas comme une
   intention, il se lit comme du desordre — d'ou l'impression de plusieurs
   polices alors qu'il n'y en a qu'une.
   Quatre valeurs. Toute nouvelle taille doit avoir une RAISON. */
:root{
  /* Echelle du systeme visuel D (20/09). Sept crans, chacun un role ecrit :
     une valeur absente de cette liste n'existe pas. */
  --t-label: .75rem;      /* 12 px — surtitres, etiquettes */
  --t-small: .875rem;     /* 14 px — pied de page, mentions, legendes */
  --t-body:  1.0625rem;   /* 17 px — texte courant */
  --t-lede:  1.1875rem;   /* 19 px — chapeau */
  --t-h3:    1.3125rem;   /* 21 px — titre de bloc */
  --t-h2:    clamp(1.45rem, 3.8vw, 2rem);
  --t-h1:    clamp(2.1rem, 6.5vw, 3.4rem);
  --t-article: 1.125rem;  /* 18 px — le corps d'un article, ou l'on lit longtemps */
  --lh-texte: 1.6; --lh-article: 1.65; --lh-titre: 1.06;
}

:root {
  --bg:       #FFFFFF;
  --bg-soft:  #F4F6F5;
  --bg-deep:  #0B3B33;   /* le bandeau plein, pour respirer */
  --ink:      #14171A;
  --ink-2:    #5A6260;
  --line:     #E4E8E6;
  --brand:    #0E7C66;   /* un seul accent, sature */
  --brand-d:  #0A5F4E;
  --brand-p:  #E7F3EF;   /* la teinte pale du meme accent */

  --font:   "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-titre: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --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;

  --wide: 72rem;
  --w-lecture: 36rem;    /* la mesure de lecture d'un article */
  --tap: 44px; --duree: 220ms;

  /* 🔴 Angles PAR ROLE (systeme D §4). L'ancien `--r: 14px` et les `999px`
     sont supprimes : l'arrondi uniforme est un interdit du depot que le code
     enfreignait depuis aout. */
  --r-interactif: 6px;   /* bouton, champ, onglet actif */
  --r-bloc: 0;           /* encadres, listes, images, bandeaux */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: var(--lh-texte);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

/* ---------- typo ---------- */
h1, h2, h3 { font-family: var(--f-titre); font-weight: 700; margin: 0 0 .5em;
             letter-spacing: -.03em; line-height: var(--lh-titre); text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -.015em; }

p { margin: 0 0 1rem; }
.lede { font-size: var(--t-lede); color: var(--ink-2); max-width: 32rem; }
a { color: var(--brand); text-underline-offset: .16em; }
a:hover { color: var(--brand-d); }
strong { font-weight: 700; }

.kicker {
  display: inline-block;
  font-size: var(--t-label); font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-p);
  padding: .45rem .85rem; border-radius: var(--r-bloc); margin: 0 0 1.1rem;
}

/* ---------- structure ---------- */
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
section { padding: clamp(3.25rem, 9vw, 5.5rem) 0; }
.center { text-align: center; }
.center .lede, .center p { margin-left: auto; margin-right: auto; }
/* Les titres aussi : .hero h1 borne sa largeur a 14ch, et text-align ne
   centre que le texte DANS la boite, pas la boite dans son parent. */
.center h1, .center h2 { margin-left: auto; margin-right: auto; }
.center .lede { max-width: 34rem; }

/* ---------- en-tete ---------- */
.masthead { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .masthead { backdrop-filter: blur(8px); } }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 62px; }
.wordmark { font-size: 1.06rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.wordmark span { color: var(--brand); }
.nav { display: flex; gap: .3rem; align-items: center; flex-wrap: nowrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: var(--t-small); font-weight: 500;
  padding: .55rem .6rem; min-height: 44px; display: inline-flex; align-items: center;
  white-space: nowrap; border-radius: var(--r-bloc); }
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.here { color: var(--ink); font-weight: 700; }

/* ---------- boutons : angles 6 px, libelle en Expanded ----------
   Blanc sur --brand ne passe le contraste qu'a 17 px en gras (systeme D §3). */
.btn { display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 1rem 1.9rem; border-radius: var(--r-interactif);
  font-family: var(--f-titre); font-size: var(--t-body); font-weight: 700; letter-spacing: -.01em;
  background: var(--brand); color: #fff; border: 2px solid var(--brand);
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease; }
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.center .btn-row { justify-content: center; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem); }
.hero-grid { display: grid; gap: clamp(2rem, 6vw, 3.5rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: var(--t-lede); }
.hero-art { justify-self: center; width: 100%; max-width: 19rem; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-art { justify-self: end; max-width: 21rem; }
}

/* ---------- cartes de benefices ---------- */
.cards { display: grid; gap: 1rem; margin-top: 2.25rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--bg-soft); border-radius: var(--r-bloc); padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid var(--line); }
.card .card-art { width: 100%; height: auto; display: block; margin-bottom: 1rem;
  border-radius: var(--r-bloc); background: #fff; border: 1px solid var(--line); }
.card p { color: var(--ink-2); margin: 0; font-size: var(--t-body); }

/* ---------- les trois etapes, chacune montree ---------- */
.steps3 { display: grid; gap: 2.5rem; margin-top: 2.5rem; counter-reset: st; }
@media (min-width: 56rem) { .steps3 { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.step { counter-increment: st; }
.step .step-art { width: 100%; height: auto; display: block; border-radius: var(--r-bloc);
  border: 1px solid var(--line); background: var(--bg-soft); margin-bottom: 1.15rem; }
.step-n { display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--mono); font-size: var(--t-label); font-weight: 600; margin-bottom: .7rem; }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-2); margin: 0; font-size: var(--t-body); }

/* ---------- bandeau plein ---------- */
.band { background: var(--bg-deep); color: #fff; }
.band h2 { color: #fff; }
.band p { color: var(--brand-p); }
.band .kicker { background: rgba(255,255,255,.13); color: var(--brand-p); }
.band .btn { background: #fff; color: var(--bg-deep); border-color: #fff; }
.band .btn:hover { background: #E7F3EF; border-color: #E7F3EF; color: var(--bg-deep); }
.band-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .1rem; }
@media (min-width: 46rem) { .band-list { grid-template-columns: repeat(2, 1fr); gap: .1rem 2.5rem; } }
.band-list li { display: flex; gap: .8rem; align-items: baseline;
  padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.14);
  font-weight: 600; font-size: var(--t-body); }
.band-list li::before { content: "\2713"; color: var(--brand-p); font-size: .9em; flex: none; }
.band-list em { font-style: normal; font-weight: 400; color: var(--brand-p); font-size: .9em; }

/* ---------- preuve ---------- */
/* Bandeau de suggestion de langue. Discret par construction : il propose,
   il ne bloque pas, et il disparait des que la personne a tranche. */
/* Bandeau de consentement. Refuser doit etre aussi simple qu'accepter
   (exigence CNIL) : les deux boutons ont donc le meme poids visuel, seule la
   couleur les distingue. Le bandeau ne bloque pas la page. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem;
  padding: 1rem 1.4rem; background: var(--bg-deep); color: var(--brand-p);
  font-size: var(--t-small); box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
.consent p { margin: 0; flex: 1 1 20rem; }
.consent a { color: var(--brand-p); }
.consent button { padding: .55rem 1.2rem; border-radius: var(--r-interactif); border: 0;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.consent-yes { background: var(--brand); color: #fff; }
.consent-yes:hover { background: var(--brand-d); }
.consent-no { background: rgba(255,255,255,.14); color: var(--brand-p); }
.consent-no:hover { background: rgba(255,255,255,.24); }
@media (max-width: 540px) { .consent p { flex-basis: 100%; } .consent button { flex: 1; } }

.langbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: .8rem 1.2rem; background: var(--brand-p); border-bottom: 1px solid var(--line);
  font-size: var(--t-small); }
.langbar p { margin: 0; flex: 1 1 16rem; color: var(--ink); }
.langbar-yes { display: inline-block; padding: .45rem 1rem; border-radius: var(--r-interactif);
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  white-space: nowrap; }
.langbar-yes:hover { background: var(--brand-d); }
.langbar-no { padding: .45rem .8rem; border: 0; background: none; color: var(--ink-2);
  font: inherit; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.langbar-no:hover { color: var(--ink); }
@media (max-width: 480px) { .langbar { font-size: .9rem; } .langbar p { flex-basis: 100%; } }

.embed { max-width: 44rem; margin: 2rem auto 0; border: 1px solid var(--line);
  border-radius: var(--r-bloc); overflow: hidden; background: var(--bg); }
.embed iframe { display: block; width: 100%; border: 0; background: var(--bg); }
@media (max-width: 640px) { .embed iframe { height: 900px; } }

.slot { border: 2px dashed var(--line); border-radius: var(--r-bloc); background: var(--bg-soft);
  padding: 2rem 1.5rem; margin-top: 1.5rem; text-align: center; }
.slot .slot-title { font-weight: 700; color: var(--ink); margin-bottom: .4rem; font-size: 1rem; }
.slot p { color: var(--ink-2); font-size: var(--t-small); margin: 0 auto; max-width: 30rem; }

.reg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
  background: var(--brand-p); border-radius: var(--r-bloc); padding: .7rem 1.3rem; margin-top: .3rem; }
.reg .reg-k { font-size: var(--t-label); font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand-d); }
.reg .reg-v { font-family: var(--mono); font-size: var(--t-small); color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 44rem; margin: 1.75rem auto 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-bloc); margin-bottom: .6rem;
  background: var(--bg); }
.faq details[open] { background: var(--bg-soft); }
.faq summary { cursor: pointer; padding: 1.05rem 3rem 1.05rem 1.2rem; position: relative;
  font-weight: 700; list-style: none; min-height: 44px; display: flex; align-items: center;
  font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; color: var(--brand);
  font-size: 1.35rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.2rem 1.15rem; color: var(--ink-2); margin: 0; font-size: var(--t-body); }

/* ---------- formulaire ---------- */
.form { max-width: 25rem; margin: 1.5rem auto 0; text-align: left; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 700; font-size: var(--t-small); margin-bottom: .35rem; }
.field input { width: 100%; min-height: 52px; padding: .8rem 1rem;
  font-family: var(--font); font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-interactif); background: var(--bg-soft); color: var(--ink); }
.field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field .hint { font-size: .87rem; color: var(--ink-2); margin: .3rem 0 0; }

/* ---------- pied ---------- */
.foot { background: var(--bg-soft); border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem; font-size: var(--t-small); }
.foot .cols { display: flex; flex-wrap: wrap; gap: 1rem 3.5rem; }
.foot a { color: var(--ink-2); text-decoration: none; display: flex; align-items: center;
  padding: .35rem 0; min-height: 44px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .legal { color: var(--ink-2); margin-top: 1.5rem; max-width: 48rem; font-size: .82rem; }

/* ---------- pages legales ---------- */
.doc { max-width: 36rem; }
.doc h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.doc dl { margin: 1.1rem 0; }
.doc dt { font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 1rem; }
.doc dd { margin: .15rem 0 0; }
.note { background: var(--brand-p); border-radius: var(--r-bloc); padding: 1.2rem 1.35rem;
  margin: 1.75rem 0; }
.note p:last-child { margin-bottom: 0; }

/* ---------- dessins ---------- */
.d-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.d-thin { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; }
.d-fill { fill: #fff; }
.d-soft { fill: var(--bg-soft); }
.d-pale { fill: var(--brand-p); }
.d-brand{ fill: var(--brand); }
.d-white{ fill: #fff; }
.d-tag  { font-family: var(--mono); font-size: 7.5px; fill: var(--ink-2); letter-spacing: .04em; }
.d-txt  { font-family: var(--font); font-size: 9px; fill: var(--ink); font-weight: 600; }

/* ---------- accessibilite ---------- */
.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff;
  padding: .8rem 1.2rem; z-index: 100; }
.skip:focus { left: 0; top: 0; color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 34rem) {
  .nav a { padding: .55rem .45rem; font-size: .9rem; }
  .foot .cols { gap: .5rem 2.5rem; }
}





/* 🔑 Une <img> porte un attribut height en dur (anti-saut de page).
   Sans height:auto, combine a width:100%, cet attribut devient la
   hauteur de rendu et l'image s'etire. */
img.hero-art { height: auto; border-radius: var(--r-bloc); }

/* Un hero sans visuel : une seule colonne, meme au-dela de 46rem, sinon la
   grille a deux colonnes laisserait une demi-page vide. Le titre peut alors
   prendre plus de large sans devenir une ligne interminable. */
.hero-seul { grid-template-columns: 1fr !important; max-width: 44rem; text-align: center; }
.hero-seul h1 { max-width: 18ch; margin-inline: auto; }
.hero-seul .lede { max-width: 30rem; margin-inline: auto; }
.hero-seul .btn-row { justify-content: center; }


/* ---------- liste a filets (systeme visuel D §5) ----------
   Elle remplace les trois cartes alignees, que le depot s'interdisait depuis
   aout et que le code servait quand meme. Intitule a gauche, phrase a droite,
   un filet entre les rangs, rien autour. */
.liste-filets { margin-top: var(--s-6); border-top: 1px solid var(--line); text-align: left; }
.liste-filets .rang {
  display: grid; gap: var(--s-2) var(--s-5);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.liste-filets .rang h3 { margin: 0; }
.liste-filets .rang p { margin: 0; color: var(--ink-2); }
.liste-filets .card-art { width: 100%; max-width: 14rem; height: auto; display: block; margin-bottom: var(--s-3); }
@media (min-width: 35rem) {
  .liste-filets .rang { grid-template-columns: 150px minmax(0, 1fr); align-items: start; }
  .liste-filets .rang h3 { grid-column: 1; }
  .liste-filets .rang .card-art,
  .liste-filets .rang p { grid-column: 2; }
}

/* ---------- les deux portes (23/09) ----------
   Chaque page porte un lien discret vers l'autre public : une marque qui
   tombe sur /work, une candidate qui tombe sur l'accueil. */
.porte { margin-top: var(--s-5); font-size: var(--t-small); color: var(--ink-2); }

/* Les etapes de /work : une liste numerotee a filets, pas des cartes. */
.etapes { list-style: none; counter-reset: etape; margin: var(--s-6) 0 0; padding: 0; }
.etapes li {
  counter-increment: etape;
  position: relative;
  padding: var(--s-5) 0 var(--s-5) var(--s-8);
  border-top: 1px solid var(--line);
}
.etapes li:last-child { border-bottom: 1px solid var(--line); }
.etapes li::before {
  content: counter(etape);
  position: absolute; left: 0; top: var(--s-5);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-p); color: var(--brand-d);
  font-family: var(--f-titre); font-weight: 700; font-size: var(--t-small);
  display: flex; align-items: center; justify-content: center;
}
