/* IFSS : maquette Applications Sigma (variante A « tout blanc », validée le 2026-12-05)
   Voix : institutionnelle, épurée, moderne. Idée : le cycle de la solidarité + la main et la pousse du logo.
   Couleurs mesurées sur le logo, en aplats. Police : Satoshi (Fontshare, ITF Free Font License), choisie par Olivier le 2026-12-05. */

@font-face { font-family: "Satoshi"; font-weight: 400; font-display: swap; src: url(polices/Satoshi-Regular.woff2) format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-display: swap; src: url(polices/Satoshi-Bold.woff2) format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 500; font-display: swap; src: url(polices/Satoshi-Medium.woff2) format("woff2"); }

:root {
  --vert: #16702c; --vert-logo: #188430; --lime: #90c018;
  --encre: #16212a; --doux: #46525c; --filet: #e3e6e1; --pale: #f5f7f3;
  --large: 1280px; --marge: 40px;
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; overflow-x: clip; }
body { margin: 0; background: #fff; color: var(--encre); font: 400 1.0625rem/1.6 "Satoshi", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; }
[hidden] { display: none !important; }
.visuel-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 10; }
.evitement:focus { left: 8px; }

.cadre { max-width: var(--large); margin: 0 auto; padding-left: var(--marge); padding-right: var(--marge); }

/* En-tête */
.entete { display: flex; align-items: center; gap: 40px; padding-top: 22px; padding-bottom: 22px; }
.logo img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.menu { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.menu a { text-decoration: none; font-size: 0.95rem; opacity: .85; padding: 6px 0; }
.menu a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.langue { font-size: 0.85rem; font-weight: 500; text-decoration: none; padding: 7px 14px; border: 1px solid var(--filet); border-radius: 999px; }
.bouton-menu { display: none; margin-left: auto; font: inherit; font-size: .95rem; font-weight: 500; background: none; border: 1px solid var(--filet); border-radius: 999px; padding: 8px 16px; color: var(--encre); cursor: pointer; }
@media (hover: hover) {
  .menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
  .langue:hover, .bouton-menu:hover { border-color: var(--encre); }
}

/* Titres */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.3vw, 3.9rem); line-height: 1.03; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.chapeau { font-size: 1.28rem; line-height: 1.5; color: var(--doux); letter-spacing: -0.01em; max-width: 40ch; }
.doux { color: var(--doux); }

/* Boutons et liens */
.actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.bouton { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 8px 0 24px; border-radius: 999px; background: var(--vert); color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem; border: 0; font-family: inherit; cursor: pointer; white-space: nowrap; transition: color .35s; --rempli: var(--lime); --texte-rempli: #10300f; }
.bouton::before { content: ""; position: absolute; z-index: -1; right: 27px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--rempli); transform: scale(0); transition: transform .6s cubic-bezier(.7,0,.2,1); }
.bouton:active { transform: scale(.97); }
.bouton .rond { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-grid; place-items: center; transition: transform .45s cubic-bezier(.2,.7,.2,1), background-color .35s, color .35s; }
.lien { text-decoration: none; font-weight: 500; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: color .3s; }
.lien-fleche { text-decoration: none; font-weight: 500; display: inline; color: var(--vert); }
.lien-fleche::after { content: "\00a0→"; padding-left: 6px; transition: padding .25s ease; }
@media (hover: hover) {
  .bouton:hover::before { transform: scale(14); }
  .bouton:hover { color: var(--texte-rempli); }
  .bouton:hover .rond { background: #fff; color: var(--encre); transform: rotate(-45deg); }
  .lien-fleche:hover::after { padding-left: 9px; }
  .lien:hover { color: var(--vert); animation: retrace .9s cubic-bezier(.7,0,.2,1) forwards; }
}

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--filet); }
.section.sans-filet { border-top: 0; }
.deux { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.deux > .g { grid-column: 1 / span 5; }
.deux > .d { grid-column: 7 / -1; }
.deux > .d > p:first-child { margin-top: 0; }
.tete-page { padding-top: 72px; padding-bottom: 72px; }
.tete-page .chapeau { margin-top: 24px; }
.rubrique { display: flex; gap: 24px; margin-bottom: 40px; font-size: .95rem; }
.rubrique a { text-decoration: none; color: var(--doux); }
.rubrique a[aria-current="page"] { color: var(--encre); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Listes en lignes (filets fins) */
.lignes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.lignes > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--filet); }
.lignes > li > h3 { grid-column: 1 / span 5; }
.lignes > li > div { grid-column: 7 / -1; color: var(--doux); }
.lignes > li > div p:last-child { margin-bottom: 0; }
.etat { display: inline-block; font-size: .85rem; color: var(--doux); border: 1px solid var(--filet); border-radius: 999px; padding: 2px 10px; margin-top: 8px; }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.trois > div { border-top: 1px solid var(--filet); padding-top: 20px; }
.trois h3 { margin-bottom: 8px; }
.trois p { color: var(--doux); margin: 0; }

/* Haut de page de l'accueil */
.haut { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-top: 64px; }
.haut .texte { grid-column: 1 / span 7; align-self: center; padding-bottom: 72px; }
.haut h1 span { display: block; }
.haut .chapeau { margin: 40px 0 36px; max-width: 36ch; }
.embleme { grid-column: 9 / -1; align-self: center; margin: 0 0 40px; }
.embleme svg { width: 100%; height: auto; display: block; overflow: visible; }
.embleme .vert { fill: #188430; }
.embleme .lime { fill: #90c018; }

/* Le cycle */
.cycle { border-top: 1px solid var(--filet); }
.cycle .cadre { padding-top: 28px; padding-bottom: 56px; position: relative; }
.piste { position: relative; height: 56px; }
.piste .ligne, .piste .remplie { position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--filet); }
.piste .remplie { background: var(--vert-logo); transform-origin: left; }
.piste .jalon { position: absolute; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid var(--vert-logo); }
.piste .voyageur { position: absolute; top: 22px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--lime); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
.etapes li { padding-right: 24px; }
.etapes b { display: block; font-weight: 500; font-size: 1.1rem; letter-spacing: -0.015em; margin-bottom: 6px; }
.etapes span { color: var(--doux); font-size: .95rem; line-height: 1.5; display: block; }
.retour { position: absolute; right: var(--marge); top: 12px; font-size: .85rem; color: var(--doux); margin: 0; }
.retour::before { content: "↺"; margin-right: 6px; color: var(--vert-logo); }
.faits { border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.faits ul { list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; display: flex; gap: 12px 44px; flex-wrap: wrap; font-size: .9rem; color: var(--doux); }

/* Outils (vraies captures de la plateforme) */
.outils { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.outil figure { margin: 0 0 18px; background: var(--pale); padding: 16px; }
.outil figcaption { font-size: .8rem; color: var(--doux); margin-top: 10px; }
.outil figure img { width: 100%; aspect-ratio: 1400 / 1036; object-fit: cover; object-position: left top; }
.outil h3 { margin-bottom: 8px; }
.outil p { color: var(--doux); margin: 0; font-size: .98rem; }
.outil.large { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 40px 0; border-top: 1px solid var(--filet); }
.outil.large figure { grid-column: 1 / span 7; margin: 0; }
.outil.large figure img { aspect-ratio: auto; }
.outil.large > div { grid-column: 9 / -1; align-self: center; }

/* Équipe */
.equipe-bande { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.equipe-bande figure { margin: 0; }
.equipe-bande img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--pale); }
.equipe-bande figcaption { font-size: .85rem; margin-top: 8px; line-height: 1.35; }
.groupe { padding-top: 56px; }
.groupe > h2 { font-size: 1.5rem; margin-bottom: 8px; }
.personne { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--filet); }
.personne:first-of-type { border-top: 1px solid var(--filet); margin-top: 24px; }
.personne .photo { grid-column: 1 / span 2; }
.personne .photo img, .personne .initiales { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--pale); }
.personne .initiales { display: grid; place-items: center; font-size: 1.6rem; color: var(--doux); }
.personne .bio { grid-column: 4 / span 8; }
.personne h3 { font-size: 1.4rem; margin-bottom: 4px; }
.personne .titres { color: var(--doux); font-size: .95rem; margin-bottom: 16px; }
.personne .bio p { color: #3b4650; }

/* Partenaires */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; margin-top: 40px; }
.logos img { height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; }
@media (hover: hover) { .logos img:hover { filter: none; opacity: 1; } }

/* Formulaires */
.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-top: 32px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ.plein { grid-column: 1 / -1; }
.champ label { font-size: .9rem; font-weight: 500; }
.champ input, .champ textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #c9cfc6; border-radius: 6px; background: #fff; color: var(--encre); min-height: 48px; }
.champ textarea { min-height: 140px; resize: vertical; }
.champ input[type=file] { padding: 10px; }
.formulaire .envoi { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.message-envoi { font-size: .95rem; color: var(--vert); margin: 0; }
.coordonnees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.coordonnees > div { border-top: 1px solid var(--filet); padding-top: 16px; }
.coordonnees h3 { font-size: 1rem; color: var(--doux); font-weight: 400; margin-bottom: 6px; }
.coordonnees p, .coordonnees address { font-style: normal; margin: 0; font-size: 1.1rem; }
.publications { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--filet); }
.publications li { display: grid; grid-template-columns: 9rem 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--filet); }
.publications time { color: var(--doux); white-space: nowrap; }
.publications small { display: block; color: var(--doux); font-size: .9rem; }

/* Texte long (politique) */
.texte-long { max-width: 70ch; }
.texte-long h2 { font-size: 1.5rem; margin: 48px 0 12px; }
.texte-long ul { padding-left: 1.2em; }
.texte-long li { margin-bottom: .4em; }
.note-projet { background: var(--pale); border-left: 3px solid var(--lime); padding: 14px 18px; margin-bottom: 32px; font-size: .95rem; }

/* Pied de page */
.pied { border-top: 1px solid var(--filet); margin-top: 0; padding-top: 72px; padding-bottom: 40px; font-size: .95rem; }
.pied-haut { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.pied-marque { grid-column: 1 / span 4; }
.pied-marque img { height: 44px; width: auto; margin-bottom: 20px; }
.pied-marque p { color: var(--doux); max-width: 32ch; }
.pied-col { grid-column: span 2; }
.pied-col h2 { font-size: .95rem; font-weight: 500; letter-spacing: 0; margin-bottom: 14px; }
.pied-col ul { list-style: none; padding: 0; margin: 0; }
.pied-col li { margin-bottom: 8px; color: var(--doux); }
.pied-col a { text-decoration: none; color: var(--doux); }
@media (hover: hover) { .pied-col a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 4px; } }
.pied-bas { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--filet); color: var(--doux); font-size: .88rem; }
.pied-bas a { color: var(--doux); }
.credit { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.credit img { width: 18px; height: 18px; }

/* Avis Loi 25 (aucun témoin, aucun traceur : simple avis d'information) */
.avis { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; background: #fff; border: 1px solid var(--filet); border-radius: 10px; padding: 18px 20px; box-shadow: 0 10px 30px rgba(31,42,51,.12); z-index: 20; font-size: .92rem; }
.avis p { margin: 0 0 12px; color: #3b4650; }
.avis .actions { gap: 18px; }
.avis button { font: inherit; font-weight: 500; background: var(--vert); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; min-height: 44px; cursor: pointer; }

/* Animations : rien n'est caché sans elles ; coupées si le visiteur demande moins de mouvement */
@media (prefers-reduced-motion: no-preference) {
  .anime-entree h1, .anime-entree .chapeau, .anime-entree .actions { animation: monte .8s cubic-bezier(.2,.7,.2,1) both; }
  .anime-entree .chapeau { animation-delay: .15s; } .anime-entree .actions { animation-delay: .25s; }
  .embleme .revele { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dessin 1.6s cubic-bezier(.65,0,.3,1) .15s both; }
  .embleme .monte { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: pousse 1.3s cubic-bezier(.25,.8,.3,1) 1.45s both; }
  .embleme .pousse { transform-box: view-box; transform-origin: 300px 420px; transform: scale(.86); animation: pose 1.6s cubic-bezier(.2,.8,.25,1) 1.45s both; }
  .piste .remplie { animation: trace 1.6s cubic-bezier(.4,0,.2,1) 2.9s both; }
  .etapes li { animation: monte .7s cubic-bezier(.2,.7,.2,1) both; }
  .etapes li:nth-child(1) { animation-delay: 3s; } .etapes li:nth-child(2) { animation-delay: 3.25s; }
  .etapes li:nth-child(3) { animation-delay: 3.5s; } .etapes li:nth-child(4) { animation-delay: 3.75s; }
  .piste .voyageur { animation: parcours 9s cubic-bezier(.45,0,.55,1) 4.6s infinite both; }
}
@media (prefers-reduced-motion: reduce) { .piste .voyageur { display: none; } .bouton::before, .bouton .rond { transition: none; } .lien:hover { animation: none; } }
@keyframes retrace { 0% { background-position: right bottom; background-size: 100% 1px; } 45% { background-position: right bottom; background-size: 0 1px; } 46% { background-position: left bottom; background-size: 0 1px; } 100% { background-position: left bottom; background-size: 100% 1px; } }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } }
@keyframes trace { from { transform: scaleX(0); } }
@keyframes dessin { to { stroke-dashoffset: 0; } }
@keyframes pousse { to { transform: none; } }
@keyframes pose { to { transform: none; } }
@keyframes parcours { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { left: calc(100% - 11px); opacity: 0; } }


/* ---------- Bouton Espace membre (en-tête) */
.bouton-membre { font-size: .88rem; font-weight: 500; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--encre); color: #fff; white-space: nowrap; }
.bouton-membre[aria-current="page"] { background: var(--vert); }
.menu .mobile-seul { display: none; }
@media (hover: hover) { .bouton-membre:hover { background: var(--vert); } }

/* ---------- Mosaïques pleine largeur (cases plates, 8 px de blanc) */
.pleine-largeur { width: 100vw; margin-left: calc(50% - 50vw); }
.mosaique { display: grid; gap: 8px; margin-top: 56px; }
.m5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.m3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tuile { display: block; text-decoration: none; color: var(--encre); }
.tuile .cadre-img { display: block; overflow: hidden; background: var(--pale); }
.tuile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.m5 .cadre-img { aspect-ratio: 3 / 4; }
.m3 .cadre-img { aspect-ratio: 4 / 3; }
.tuile .legende { display: block; padding: 16px 20px 0; font-weight: 500; font-size: 1.02rem; letter-spacing: -0.015em; line-height: 1.35; }
.tuile .legende b { display: block; font-weight: 500; font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 4px; }
.m3 .legende { font-weight: 400; color: var(--doux); }
.m3 .legende b { color: var(--encre); }
@media (hover: hover) { .tuile:hover img { transform: scale(1.04); } .tuile:hover .legende { color: var(--vert); } }
@media (prefers-reduced-motion: reduce) { .tuile img { transition: none; } }

/* ---------- Portail : inscription */
.profils { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.profils legend { font-size: .9rem; font-weight: 500; margin-bottom: 10px; padding: 0; }
.profil { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--filet); cursor: pointer; }
.profil input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--vert); flex: none; }
.profil b { display: block; font-weight: 500; }
.profil span span { color: var(--doux); font-size: .92rem; }
.profil:has(input:checked) { border-color: var(--vert); background: #f3f8f1; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: #3b4650; grid-column: 1 / -1; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--vert); flex: none; }
.deja { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--filet); }
.deja h3 { margin-bottom: 16px; }
.connexion { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.connexion .champ { flex: 1 1 260px; }
.connexion .message-envoi { flex-basis: 100%; }
.scroll { overflow-x: auto; }
.acces { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .98rem; table-layout: fixed; }
.acces .col-libelle { width: 36%; }
.acces .col-vert { background: #edf6e8; }
.acces .col-blanc { background: #fff; }
.acces th, .acces td { padding: 14px 12px; border-bottom: 1px solid var(--filet); text-align: left; }
.acces thead th { font-weight: 500; font-size: .92rem; vertical-align: bottom; text-align: center; line-height: 1.25; }
.acces thead th:nth-child(even) { background: var(--vert); color: #fff; }
.acces thead th:nth-child(odd):not(:first-child) { color: var(--vert); }
.acces tbody th { font-weight: 400; }
.acces td { text-align: center; }
.acces .oui { color: var(--vert-logo); font-size: 1.1rem; }
.acces .non { color: #b8bfb6; }
.acces .court { display: none; }

/* ---------- Portail : espace membre (démo) */
.espace { padding-top: 32px; padding-bottom: 96px; }
.bandeau-demo { background: var(--pale); border-left: 3px solid var(--lime); padding: 12px 16px; font-size: .92rem; margin: 0 0 40px; }
.espace-grille { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.espace-nav ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 24px; }
.espace-nav a { display: block; padding: 10px 0; text-decoration: none; color: var(--doux); border-bottom: 1px solid var(--filet); }
.espace-nav a[aria-current="page"] { color: var(--encre); font-weight: 500; }
.espace-corps h1 { font-size: clamp(2rem, 3.4vw, 3rem); }
.espace-corps section { padding-top: 48px; margin-top: 48px; border-top: 1px solid var(--filet); }
.espace-corps h2 { font-size: 1.6rem; margin-bottom: 24px; }
.choix-profil { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; padding: 4px; background: var(--pale); border-radius: 999px; }
.choix-profil a { font-size: .9rem; text-decoration: none; padding: 9px 16px; border-radius: 999px; color: var(--doux); min-height: 40px; display: inline-flex; align-items: center; }
.choix-profil a[aria-current="page"] { background: #fff; color: var(--encre); font-weight: 500; box-shadow: 0 1px 3px rgba(31,42,51,.12); }
@media (hover: hover) { .choix-profil a:not([aria-current]):hover { color: var(--encre); } }
.espace-corps section.plateforme { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; background: #0f3f1f; color: #fff; padding: 36px 40px; margin-top: 40px; border-top: 0; }
.plateforme h2 { color: #fff; margin-bottom: 10px; }
.plateforme p { color: #c7d8c1; }
.plateforme-nom { font-size: .9rem; font-weight: 500; color: var(--lime) !important; margin-bottom: 6px; }
.plateforme .bouton { background: var(--lime); color: #10300f; --rempli: #fff; --texte-rempli: #0f3f1f; }
.plateforme-note { font-size: .85rem; margin-top: 12px; }
.lignes-statut { list-style: none; margin: 0; padding: 0; }
.lignes-statut li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.lignes-statut li:first-child { border-top: 1px solid var(--filet); }
.lignes-statut .statut { color: var(--doux); font-size: .9rem; white-space: nowrap; }
.espaces-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.espaces-liste a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px 24px; background: var(--pale); text-decoration: none; color: var(--encre); transition: background .3s; }
.espaces-liste b { font-size: 1.25rem; font-weight: 700; }
.espaces-liste span:not(.lien-fleche) { color: var(--doux); font-size: .95rem; flex: 1; }
@media (hover: hover) { .espaces-liste a:hover { background: #e3eedd; } }
@media (max-width: 900px) { .espaces-liste { grid-template-columns: 1fr 1fr; } .espace-corps section.plateforme { grid-template-columns: 1fr; padding: 28px 24px; } }
@media (max-width: 560px) { .espaces-liste { grid-template-columns: 1fr; } .lignes-statut li { flex-direction: column; gap: 4px; } }
.outils-m { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.outil-m img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; background: var(--pale); }
.outil-m > div { padding: 16px 4px 0; }
.outil-m h3 { margin-bottom: 6px; }
.outil-m p { color: var(--doux); font-size: .95rem; margin-bottom: 12px; }
.outil-m .ferme { display: none; font-size: .88rem; color: var(--doux); }
.outil-m.verrouille img { filter: grayscale(1); opacity: .45; }
.outil-m.verrouille .ouvert { display: none; }
.outil-m.verrouille .ferme { display: inline-flex; gap: 8px; align-items: center; }
.outil-m.verrouille .ferme::before { content: ""; width: 10px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; }
.lignes-simples { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.lignes-simples li { padding: 16px 0; border-bottom: 1px solid var(--filet); }

@media (max-width: 1100px) {
  .m5 { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 34%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .m5 .tuile { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .menu .mobile-seul { display: block; }
  .bouton-membre { display: none; }
  .m5 { grid-auto-columns: 72%; }
  .m3 { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .m3 .tuile { scroll-snap-align: start; }
  .tuile .legende { padding: 12px 16px 0; }
  .espace-grille { grid-template-columns: 1fr; gap: 24px; }
  .espace-nav ul { position: static; display: flex; gap: 16px; overflow-x: auto; }
  .espace-nav a { border: 0; white-space: nowrap; }
  .espace-nav li { flex: none; }
  .choix-profil { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .choix-profil a { flex: none; white-space: nowrap; }
  .outils-m { grid-template-columns: 1fr; }
}


/* ---------- Haut de page : la plante qui pousse dans la main (animation vedette) */
.haut-plante { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; min-height: min(calc(100vh - 92px), 760px); padding-top: 24px; padding-bottom: 40px; }
.haut-plante .haut-texte { padding: 0; }
.plante-grande { margin: 0; justify-self: end; width: 100%; max-width: 540px; }
.plante-grande img { width: 100%; height: auto; display: block; max-height: calc(100vh - 150px); object-fit: contain; }

/* (ancien haut de page photo, conservé pour référence) */
.haut-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100vh - 92px), 820px); }
.haut-texte { align-self: center; padding: 56px 56px 72px max(var(--marge), calc((100vw - var(--large)) / 2 + var(--marge))); }
.embleme-mini { width: 112px; height: auto; margin-bottom: 36px; }
.haut-texte h1 span { display: block; }
.haut-texte .chapeau { margin: 32px 0 40px; max-width: 34ch; }
.haut-photo { margin: 0; position: relative; overflow: hidden; background: var(--pale); }
.haut-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (prefers-reduced-motion: no-preference) {
  .haut-photo img { animation: zoom-lent 2.4s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes zoom-lent { from { transform: scale(1.06); } }

/* ---------- Chiffres (comptés sur le site d'IFSS, à confirmer) */
.chiffres { border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.chiffres ul { list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.chiffres b { display: block; font-weight: 500; font-size: 2.4rem; line-height: 1; letter-spacing: -0.04em; color: var(--vert); }
.chiffres span { display: block; margin-top: 8px; color: var(--doux); font-size: .95rem; }

/* ---------- Bandes de couleur */
.bande-verte { background: #0f3f1f; color: #fff; }
.bande-verte .doux, .bande-verte .tuile .legende { color: #c7d8c1; }
.bande-verte .tuile .legende b { color: #fff; }
.bande-verte .lien-fleche { color: var(--lime); }
.bande-verte .tuile .cadre-img { background: #154a27; }
@media (hover: hover) { .bande-verte .tuile:hover .legende { color: #fff; } }
.bande-pale { background: var(--pale); }

/* ---------- Image pleine largeur sous l'en-tête des pages intérieures */
.bande-image { margin: 0; height: clamp(240px, 38vw, 560px); overflow: hidden; background: var(--pale); }
.bande-image img { width: 100%; height: 100%; object-fit: cover; }
.tete-page { padding-bottom: 56px; }

/* ---------- Bande de fermeture */
.fermeture { background: #0f3f1f; color: #fff; }
.fermeture-in { padding-top: 88px; padding-bottom: 88px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.fermeture h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); letter-spacing: -0.045em; }
.fermeture p { color: #c7d8c1; font-size: 1.2rem; margin: 16px 0 0; }
.fermeture .bouton { background: var(--lime); color: #10300f; --rempli: #fff; --texte-rempli: var(--encre); }
.fermeture .bouton .rond { background: rgba(0,0,0,.1); }
.fermeture .bouton.clair { background: #fff; color: var(--encre); --rempli: var(--lime); --texte-rempli: #10300f; }
.fermeture .lien:hover { color: var(--lime); }
.fermeture .lien { color: #fff; }
.pied { border-top: 0; }

/* ---------- Vitrine des outils à onglets */
.vitrine { margin-top: 48px; }
.onglets { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--pale); border-radius: 999px; margin-bottom: 24px; }
.onglets button { font: inherit; font-size: .95rem; border: 0; background: none; padding: 10px 18px; border-radius: 999px; cursor: pointer; color: var(--doux); min-height: 44px; }
.onglets button[aria-selected="true"] { background: var(--encre); color: #fff; }
.panneau { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: center; }
.panneau + .panneau { margin-top: 32px; }
.ecran { margin: 0; border: 1px solid var(--filet); overflow: hidden; background: #fff; }
.ecran img { width: 100%; }
.panneau-texte h3 { font-size: 1.6rem; margin-bottom: 12px; }
.panneau-texte p { color: var(--doux); }
.legende-demo { font-size: .85rem; }

/* ---------- Partenaires en cases plates */
.logos-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 40px; }
.logo-case { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14%; }
.logo-case img { max-height: 84px; width: auto; object-fit: contain; }

/* ---------- Experts : grille, biographies repliées */
.grille-gens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; margin-top: 28px; }
.carte-personne .photo img, .carte-personne .initiales { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--pale); }
.carte-personne .initiales { display: grid; place-items: center; font-size: 2rem; color: var(--doux); }
.carte-personne h3 { font-size: 1.3rem; margin-top: 16px; }
.carte-personne .titres { color: var(--doux); font-size: .9rem; margin: 4px 0 0; }
.carte-personne details { margin-top: 12px; border-top: 1px solid var(--filet); }
.carte-personne summary { cursor: pointer; padding: 12px 0; font-weight: 500; color: var(--vert); list-style: none; display: flex; justify-content: space-between; }
.carte-personne summary::-webkit-details-marker { display: none; }
.carte-personne summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.carte-personne details[open] summary::after { content: "−"; }
.carte-personne details p { color: #34404a; font-size: .95rem; }

/* ---------- Apparition au défilement (seulement si le script tourne et sans demande de mouvement réduit) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-revele] { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
  .js [data-revele].vu { opacity: 1; transform: none; }
}


/* ---------- Gros plans du logo en fond de section (aplat vert très pâle, coupé par le bord de l'écran) */
.deco { position: relative; isolation: isolate; clip-path: inset(0 -100vw); }
.deco::before { content: ""; position: absolute; z-index: -1; pointer-events: none; background: no-repeat center / contain; opacity: .08; }
.deco-feuille-d::before { background-image: url(deco-feuille-d.svg); width: min(64vw, 860px); aspect-ratio: 175 / 150; left: calc(50% - 50vw - 9vw); top: 50%; transform: translateY(-50%) rotate(-6deg); }
.deco-feuille-g::before { background-image: url(deco-feuille-g.svg); width: min(60vw, 820px); aspect-ratio: 220 / 140; right: calc(50% - 50vw - 7vw); top: -4%; transform: rotate(5deg); }
.deco-cercle-bas::before { background-image: url(deco-cercle.svg); width: min(56vw, 760px); aspect-ratio: 500 / 520; right: calc(50% - 50vw - 16vw); bottom: -18%; opacity: .065; }
.deco-arc::before { background-image: url(deco-arc.svg); width: min(40vw, 520px); aspect-ratio: 230 / 380; right: calc(50% - 50vw - 2vw); top: -12%; opacity: .10; }
.deco-suite::before { background-image: url(deco-cercle.svg); height: 150%; aspect-ratio: 500 / 520; left: calc(50% - 50vw - 14vw); top: -25%; transform: scaleX(-1); }
.deco-cercle::before { background-image: url(deco-cercle.svg); width: min(46vw, 620px); aspect-ratio: 500 / 520; right: calc(50% - 50vw - 10vw); top: -30%; opacity: .07; }
@media (max-width: 900px) {
  .deco::before { opacity: .07; }
  .deco-feuille-d::before { width: 120vw; left: -40vw; }
  .deco-feuille-g::before { width: 110vw; right: -45vw; top: 0; }
  .deco-cercle-bas::before { width: 100vw; right: -50vw; }
  .deco-arc::before { width: 60vw; right: -12vw; }
  .deco-cercle::before { width: 80vw; right: -36vw; top: -10%; }
  .deco-suite::before { height: 70%; left: -30vw; top: 4%; }
}

/* Tablette et téléphone */
@media (max-width: 1100px) {
  .equipe-bande { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pied-marque { grid-column: 1 / -1; }
  .pied-col { grid-column: span 3; }
}
@media (max-width: 900px) {
  :root { --marge: 20px; }
  .haut-split { grid-template-columns: 1fr; min-height: 0; }
  .haut-plante { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-top: 8px; }
  .plante-grande { order: -1; justify-self: center; max-width: 300px; }
  .haut-photo { order: -1; height: 46vh; min-height: 280px; }
  .haut-texte { padding: 32px var(--marge) 48px; }
  .embleme-mini { width: 76px; margin-bottom: 20px; }
  .chiffres ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .fermeture-in { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .panneau { grid-template-columns: 1fr; gap: 20px; }
  .logos-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille-gens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .bouton-menu { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; border-bottom: 1px solid var(--filet); z-index: 15; padding: 8px 20px 20px; }
  .nav.ouvert { display: block; }
  .menu { flex-direction: column; gap: 0; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--filet); font-size: 1.05rem; }
  .entete { position: relative; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .logo img { height: 40px; }
  .langue { order: 3; }
  .haut { display: flex; flex-direction: column-reverse; padding-top: 24px; }
  .haut .texte { padding-bottom: 48px; }
  .embleme { width: 46%; max-width: 200px; margin: 0 0 20px; }
  .deux, .lignes > li, .outil.large, .personne { display: block; }
  .deux > .d, .lignes > li > div { margin-top: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .tete-page { padding-top: 40px; padding-bottom: 48px; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .retour { display: none; }
  .trois, .outils, .coordonnees { grid-template-columns: 1fr; }
  .outil.large > div { margin-top: 20px; }
  .personne .photo { width: 140px; margin-bottom: 20px; }
  .formulaire { grid-template-columns: 1fr; }
  .publications li { grid-template-columns: 1fr; gap: 4px; }
  .pied-col { grid-column: span 6; }
}
@media (max-width: 600px) {
  .acces { min-width: 0; font-size: .8rem; }
  .acces .col-libelle { width: 52%; }
  .acces th, .acces td { padding: 7px 2px; }
  .acces tbody th { padding-left: 8px; padding-right: 6px; line-height: 1.28; }
  .acces thead th { font-size: .76rem; padding: 10px 0 8px; height: 104px; vertical-align: bottom; text-align: center; }
  .acces .long { display: none; }
  .acces .court { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
  .acces .oui { font-size: 1rem; }
}
@media (max-width: 520px) {
  .grille-gens { grid-template-columns: 1fr 1fr; }
  .carte-personne h3 { font-size: 1.05rem; }
  .onglets { display: flex; }
  .onglets button { flex: 1 1 auto; padding: 10px 12px; font-size: .85rem; }
  .avis { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; font-size: .82rem; }
  .avis p { margin-bottom: 8px; }
  .avis button { min-height: 40px; padding: 8px 16px; }
  .equipe-bande { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .etapes { grid-template-columns: 1fr; }
  .rubrique { flex-wrap: wrap; }
}

/* Expert sans photo : case pâle avec l'emblème du logo, au même format que les portraits */
.sans-photo { position: relative; aspect-ratio: 4 / 5; width: 100%; background: var(--pale); }
.sans-photo::after { content: ""; position: absolute; inset: 0; background: url(deco-cercle.svg) no-repeat center / 58%; opacity: .2; }
/* Cycle sur téléphone : un filet vertical relie les étapes empilées */
@media (max-width: 520px) {
  .piste { display: none; }
  .cycle .retour { display: block; position: static; margin: 0 0 16px; }
  .etapes { position: relative; padding-left: 26px; row-gap: 22px; }
  .etapes::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--vert-logo); }
  .etapes li { position: relative; padding-right: 0; }
  .etapes li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid var(--vert-logo); }
}
.bande-pale .sans-photo { background: #e3eedd; }

/* FAQ de l'accueil : filets fins, réponses dépliables */
.faq details { border-bottom: 1px solid var(--filet); }
.faq details:first-child { border-top: 1px solid var(--filet); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--vert); font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-rep { padding: 0 40px 24px 0; color: var(--doux); }
.faq .faq-rep p + p { margin-top: 12px; }
@media (hover: hover) { .faq summary:hover { color: var(--vert); } }
/* Téléphone : la plante reste grande, mais le titre, le texte et le bouton tiennent dans le premier écran */
@media (max-width: 600px) {
  .plante-grande { max-width: none; width: auto; }
  .plante-grande img { width: auto; max-width: 100%; height: 30vh; height: 30svh; margin: 0 auto; }
  .haut-plante h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
}
/* Très petits écrans (iPhone SE) : un bouton au long libellé passe à la ligne au lieu de dépasser */
@media (max-width: 400px) { .bouton { white-space: normal; text-align: left; padding-top: 8px; padding-bottom: 8px; } }
@media (max-width: 600px) {
  .haut-texte .chapeau { font-size: 1.05rem; margin: 16px 0 22px; }
  .haut-texte .actions { gap: 14px 24px; }
  .haut-texte .actions .bouton { order: -1; }
}
@media (max-width: 600px) and (max-height: 620px) { .plante-grande img { height: 24vh; height: 24svh; } }
