/* Formavie — famille confiance-sobre : vert sapin, gris neutres, Source Serif 4 pour les titres, Nunito Sans pour le texte, rayons de 8 px ; le premier écran est le calendrier des sessions en demi-teinte. */
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --sapin: #123d35; --encre: #0d1f1b; --ardoise: #36413e; --acier: #596460; --brume: #dde4e0; --fond: #f1f5f3; --papier: #ffffff; --orange: #ec652b; --orange-texte: #b0440f; --ligne: #c3ccc7;
  --police: "Nunito Sans", "Segoe UI", system-ui, sans-serif; --titre: "Source Serif 4", Georgia, serif;
  --t-1: clamp(2.15rem, 1.3rem + 3.6vw, 4rem); --t-2: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); --t-3: 1.25rem;
  --e-1: 8px; --e-2: 16px; --e-3: 24px; --e-4: 32px; --e-6: 48px; --e-8: 64px; --section: clamp(56px, 6vw + 24px, 112px);
  --largeur: 1200px; --gouttiere: clamp(16px, 4vw, 40px); --r: 8px; --ease: cubic-bezier(.16, 1, .3, 1);
  --ombre: 0 1px 3px rgba(0, 0, 0, .1), 0 12px 28px -12px rgba(0, 0, 0, .25);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--ardoise); font-family: var(--police); font-size: 1.0625rem; line-height: 1.62; padding-bottom: 76px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--ligne); text-decoration-thickness: 1.5px; text-underline-offset: .22em; } a:hover { text-decoration-color: var(--sapin); }
h1, h2, h3 { font-family: var(--titre); font-weight: 500; margin: 0; color: var(--sapin); text-wrap: balance; }
h1 { font-size: var(--t-1); line-height: 1.04; letter-spacing: -.025em; } h2 { font-size: var(--t-2); line-height: 1.12; letter-spacing: -.02em; margin-bottom: var(--e-3); } h3 { font-size: var(--t-3); line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0 0 var(--e-2); max-width: 64ch; } b { font-weight: 600; color: var(--encre); }
:focus-visible { outline: 2px solid var(--sapin); outline-offset: 3px; border-radius: 4px; }
button, select { font: inherit; cursor: pointer; }
.contenu { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
section { padding-block: var(--section); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lien-saut { position: absolute; left: -999px; top: 8px; background: var(--sapin); color: #fff; padding: 8px 12px; border-radius: var(--r); } .lien-saut:focus { left: 8px; z-index: 60; }

.entete { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--brume); }
.entete .contenu { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); min-height: 72px; }
.marque { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; line-height: 1.15; color: var(--sapin); }
.marque-points { grid-row: span 2; width: 40px; height: 20px; fill: var(--sapin); }
.marque small { font-weight: 400; font-size: .75rem; color: var(--acier); letter-spacing: 0; }
.menu { display: none; gap: var(--e-3); align-items: center; margin: 0; padding: 0; list-style: none; }
.menu a:not(.bouton) { text-decoration: none; font-size: .9375rem; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color 200ms var(--ease), color 200ms var(--ease); } .menu a:not(.bouton):hover, .menu a[aria-current] { color: var(--sapin); border-color: var(--sapin); }
.menu-bouton { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--sapin); color: var(--sapin); border-radius: var(--r); padding: 0 14px; min-height: 44px; font-weight: 500; } .menu-bouton svg { width: 20px; height: 20px; }
.menu-mobile { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); background: #fff; } .menu-mobile[data-ouvert] { grid-template-rows: 1fr; border-top: 1px solid var(--brume); }
.menu-mobile > div { overflow: hidden; } .menu-mobile ul { margin: 0; padding: var(--e-1) var(--gouttiere) var(--e-3); list-style: none; } .menu-mobile a { display: block; padding: 14px 0; text-decoration: none; font-size: 1.125rem; border-bottom: 1px solid var(--brume); color: var(--sapin); }

.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; background: var(--sapin); color: #fff; border: 1.5px solid var(--sapin); border-radius: var(--r); font-weight: 500; text-decoration: none; text-align: center; transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease), transform 160ms var(--ease); }
.bouton:hover { background: #0a2a25; box-shadow: var(--ombre); } .bouton:active { transform: translateY(1px); } .bouton:disabled { opacity: .45; cursor: not-allowed; }
.bouton-grand { min-height: 54px; padding-inline: 28px; }
.bouton-contour { background: transparent; color: var(--sapin); } .bouton-contour:hover { background: var(--sapin); color: #fff; }
.lien { font-weight: 500; color: var(--sapin); padding: 12px 0; }

.hero { background: var(--fond); padding-block: var(--e-4) var(--e-6); overflow: clip; border-bottom: 1px solid var(--brume); }
.hero-grille { display: grid; gap: var(--e-4); align-items: center; }
.hero h1 .ligne { display: block; } .hero h1 .ligne > span { display: block; }
.chapo { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); margin: var(--e-3) 0; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-1) var(--e-4); }
.hero-texte { display: contents; } .hero h1 { order: 0; } .hero-data { order: 1 !important; } .hero .chapo { order: 2; margin: 0; } .hero-actions { order: 3; }
.hero-data { background: #fff; border: 1px solid var(--brume); border-radius: var(--r); padding: var(--e-2); order: 1; }
.hd-tete { display: grid; gap: 2px; margin-bottom: var(--e-2); } .hd-tete p { margin: 0; max-width: none; }
.hd-t { font-family: var(--titre); font-size: 1.25rem; font-weight: 500; color: var(--sapin); } .hd-l { font-size: .8125rem; line-height: 1.4; color: var(--acier); }
.hd-grille { display: grid; grid-template-columns: 1.1rem repeat(8, minmax(0, 1fr)); gap: 2px 0; }
.hd-grille:empty { display: none; }
.hd-col { font-size: .625rem; line-height: 1.15; color: var(--acier); text-align: center; padding-bottom: 4px; align-self: end; }
.hd-lig { font-size: .6875rem; font-weight: 700; color: var(--acier); display: grid; place-items: center; }
.hd-point { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0; margin: 0; border: 0; background: none; color: inherit; }
.hd-point::after { content: ""; width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--ligne); }
.hd-point.passe::after { opacity: .45; }
.hd-session { cursor: pointer; border-radius: 50%; }
.hd-session::after { display: none; }
.hd-session::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc((.3 + .5 * var(--k)) * 100%); aspect-ratio: 1; border-radius: 50%; background: var(--sapin); transform: translate(-50%, -50%); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.hd-session.rare::before { background: var(--orange); }
.hd-session:hover::before { transform: translate(-50%, -50%) scale(1.08); }
.hd-session[aria-pressed=true]::before { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sapin); }
.hd-session.rare[aria-pressed=true]::before { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange); }
.prochaine { margin-top: var(--e-2); padding-top: var(--e-2); border-top: 1px solid var(--brume); display: grid; gap: 0; }
.prochaine p { margin: 0; max-width: none; } .pr-t { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--acier); font-weight: 700; } .pr-d { font-family: var(--titre); font-size: 1.5rem; font-weight: 500; letter-spacing: -.015em; color: var(--sapin); line-height: 1.2; margin-top: 4px !important; } .pr-f { font-size: .9375rem; line-height: 1.35; margin-top: 2px !important; } .pr-p { display: grid; gap: 6px; margin-top: 12px !important; font-size: .875rem; font-weight: 700; color: var(--encre); }
.prochaine .lien { justify-self: start; padding: 10px 0 0; }
.jauge { display: block; height: 6px; border-radius: 3px; background: var(--brume); position: relative; overflow: hidden; } .jauge::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 50%); background: var(--sapin); border-radius: 3px; } .jauge.rare::after { background: var(--orange); }

.tete { max-width: 760px; margin-bottom: var(--e-4); } .tete p { margin-bottom: 0; }
.formations { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sapin); }
.formation { display: grid; gap: var(--e-2); padding: var(--e-3) 0; border-bottom: 1px solid var(--brume); }
.f-t h3 { font-size: 1.5rem; margin-bottom: 6px; } .f-t p { margin: 0 0 8px; } .f-m { display: flex; flex-wrap: wrap; gap: 6px; } .f-m span { font-size: .8125rem; font-weight: 500; padding: 4px 10px; border: 1px solid var(--ligne); border-radius: 999px; color: var(--ardoise); }
.f-p { display: grid; gap: 4px; align-content: start; justify-items: start; } .f-p b { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; color: var(--sapin); } .f-p span { font-size: .875rem; color: var(--acier); margin-bottom: 8px; }

.financements { background: var(--fond); border-block: 1px solid var(--brume); } .fin-grille { display: grid; gap: var(--e-6); align-items: start; }
.situations { margin: 0; display: grid; gap: var(--e-1); } .situations > div { background: #fff; border: 1px solid var(--brume); border-radius: var(--r); padding: var(--e-2) var(--e-3); display: grid; gap: 4px; } .situations dt { font-weight: 600; color: var(--sapin); } .situations dd { margin: 0; font-size: .9375rem; } .situations .regle { background: var(--sapin); border-color: var(--sapin); } .situations .regle dt, .situations .regle dd { color: #fff; }

.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-1); margin-bottom: var(--e-3); }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--ligne); border-radius: var(--r); background: #fff; color: var(--sapin); font-weight: 500; transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease); } .chip:hover { border-color: var(--sapin); } .chip[aria-pressed=true] { background: var(--sapin); border-color: var(--sapin); color: #fff; }
.nb { margin-left: auto; font-size: .9375rem; color: var(--acier); }
.sessions { width: 100%; border-collapse: collapse; } .sessions thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sessions tr { display: grid; gap: 2px var(--e-3); padding: var(--e-2) 0; border-bottom: 1px solid var(--brume); } .sessions tbody tr:first-child { border-top: 1px solid var(--sapin); } .sessions tr[hidden] { display: none; }
.sessions th, .sessions td { text-align: left; padding: 0; font-weight: 400; } .sessions th { font-weight: 600; color: var(--sapin); font-size: 1.125rem; } .sessions td:nth-child(2) { color: var(--encre); } .sessions td:nth-child(3) { color: var(--acier); font-size: .9375rem; }
.places { display: grid; gap: 6px; margin-top: 6px; max-width: 220px; } .p-n { font-size: .875rem; font-weight: 600; color: var(--encre); } .p-n.rare { color: var(--orange-texte); }

.salles { padding-top: 0; } .mosaique { list-style: none; margin: var(--e-4) 0 0; padding: 0; display: grid; gap: var(--e-3) var(--e-2); } .mosaique figure { margin: 0; } .mosaique img { width: 100%; object-fit: cover; object-position: var(--cadrage, 50% 40%); border-radius: var(--r); background: #dfe2ea; } .mosaique img { aspect-ratio: 3 / 2; } .mosaique .formatrice img { aspect-ratio: 4 / 5; }
figcaption { font-size: .875rem; color: var(--acier); padding-top: 8px; }
.acces { background: var(--fond); border-top: 1px solid var(--brume); } .acces-grille { display: grid; gap: var(--e-6); align-items: center; } .adresse { font-size: 1.1875rem; } .accueil { margin: 0; } .accueil img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: #dfe2ea; }
.liste-controle { list-style: none; margin: var(--e-3) 0 0; padding: 0; border-top: 1px solid var(--sapin); } .liste-controle li { position: relative; padding: 13px 0 13px 32px; border-bottom: 1px solid var(--brume); }
.liste-controle li::before { content: ""; position: absolute; left: 3px; top: 17px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23123d35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") no-repeat center / contain; }
.faq-grille { display: grid; gap: var(--e-4); align-items: start; } .faq-liste { border-top: 1px solid var(--sapin); max-width: 820px; } .faq-liste details { border-bottom: 1px solid var(--brume); }
.faq-liste summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--e-2); padding: 18px 0; min-height: 56px; font-weight: 500; font-size: 1.125rem; color: var(--encre); } .faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--sapin); transition: transform 200ms var(--ease); } .faq-liste details[open] summary::after { transform: rotate(45deg); }
.faq-liste details div { padding: 0 0 var(--e-3); animation: ouvrir 200ms var(--ease); } .faq-liste details p { margin: 0; } @keyframes ouvrir { from { opacity: 0; transform: translateY(-4px); } }
.inscription { background: var(--fond); border-top: 1px solid var(--brume); } .insc-grille { display: grid; gap: var(--e-4); align-items: start; } .coord { color: var(--ardoise); }
.formulaire { background: #fff; border: 1px solid var(--brume); border-radius: var(--r); padding: var(--e-3); display: grid; gap: var(--e-2); box-shadow: var(--ombre); }
label { display: grid; gap: 6px; font-weight: 600; font-size: .9375rem; color: var(--encre); }
input[type=text], input[type=email], select { font: inherit; font-weight: 400; padding: 12px 14px; min-height: 48px; border: 1px solid var(--ligne); border-radius: var(--r); background: #fff; color: var(--encre); width: 100%; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sapin) 50%), linear-gradient(135deg, var(--sapin) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus { outline: 2px solid var(--sapin); outline-offset: 1px; border-color: var(--sapin); }
label.case { grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-weight: 400; } label.case input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--sapin); }
.confirmation { display: none; margin: 0; padding: 14px 16px; background: var(--fond); border: 1px solid var(--sapin); border-radius: var(--r); font-weight: 500; color: var(--encre); max-width: none; } form[data-envoye] .confirmation { display: block; } form[data-envoye] button[type=submit] { display: none; }
.pied { padding: var(--e-4) 0 var(--e-6); border-top: 1px solid var(--brume); font-size: .875rem; color: var(--acier); } .pied p { margin-bottom: 6px; max-width: none; }
.barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--brume); transition: transform 260ms var(--ease); } .barre-mobile[data-cachee] { transform: translateY(110%); } .barre-mobile .bouton { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .hd-point::after { animation: imprimer 520ms var(--ease) both; animation-delay: calc(120ms + (var(--c) + var(--r)) * 34ms); }
  .hd-session::before { animation: gonfler 760ms var(--ease) both; animation-delay: calc(900ms + var(--i) * 150ms); }
  .prochaine { animation: deposer 700ms var(--ease) both 900ms; } .prochaine .jauge::after { animation: remplir 1100ms var(--ease) both 1300ms; }
  .prochaine[data-maj] > * { animation: deposer 260ms var(--ease) both; }
  .hero h1 .ligne > span { animation: monter 800ms var(--ease) both; } .hero h1 .ligne:first-child > span { animation-delay: 200ms; } .hero h1 .ligne:nth-child(2) > span { animation-delay: 330ms; }
  .chapo, .hero-actions { animation: deposer 700ms var(--ease) both; } .chapo { animation-delay: 520ms; } .hero-actions { animation-delay: 650ms; }
  @keyframes imprimer { from { transform: scale(0); } to { transform: none; } }
  @keyframes gonfler { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
  @keyframes remplir { from { width: 0; } }
  @keyframes monter { from { transform: translateY(45%); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 -.2em 0); } }
  @keyframes deposer { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; } html { scroll-behavior: auto; } }

@media (min-width: 700px) { .sessions tr { grid-template-columns: 12rem 1fr 9rem 12rem; align-items: center; } .places { margin-top: 0; } .formation { grid-template-columns: 1fr 15rem; gap: var(--e-6); align-items: center; } .mosaique { grid-template-columns: repeat(2, 1fr); } .mosaique .grande { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  body { padding-bottom: 0; } .barre-mobile { display: none; } .menu { display: flex; } .menu-bouton, .menu-mobile { display: none; }
  .hero { padding-block: var(--e-6) var(--e-8); } .hero-grille { grid-template-columns: 5fr 6fr; gap: var(--e-8); } .hero-texte { display: block; } .hero .chapo { margin: var(--e-3) 0; } .hero-data { order: 0 !important; } .hero-data { padding: var(--e-3); order: 0; max-width: 620px; justify-self: end; width: 100%; } .hd-grille { grid-template-columns: 1.4rem repeat(8, minmax(0, 1fr)); } .hd-col { font-size: .75rem; } .hd-point { aspect-ratio: 5 / 4; }
  .fin-grille { grid-template-columns: 5fr 6fr; gap: var(--e-8); } .fin-grille > div:first-child { position: sticky; top: 100px; }
  .mosaique { grid-template-columns: repeat(5, 1fr); } .mosaique .grande { grid-column: span 3; } .mosaique li:not(.grande) { grid-column: span 2; } .mosaique .formatrice { grid-column: span 2; }
  .acces-grille { grid-template-columns: 1fr 1fr; gap: var(--e-8); } .faq-grille { grid-template-columns: .8fr 1.2fr; gap: var(--e-8); } .insc-grille { grid-template-columns: 5fr 6fr; gap: var(--e-8); } .formulaire { padding: var(--e-4); }
}
