/* Accueil du projet : les deux bleus de la charte Famyuni. */
/* overflow: clip évite le débordement horizontal sans créer de conteneur de défilement. */
html.page-projet-fr, body.page-projet-fr { overflow-x: clip; overflow-y: visible; }
.projet-accueil { --projet-encre: #242b35; --projet-bleu: #194eb6; --projet-clair: #6db2f3; --projet-secondaire: #59616c; color: var(--projet-encre); }
.projet-conteneur { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.projet-entete { background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(109,178,243,.2); backdrop-filter: blur(12px); }
.projet-entete__interieur { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.projet-saut { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: #fff; color: #194eb6; transform: translateY(-180%); }
.projet-saut:focus { transform: translateY(0); }
.projet-accueil [id] { scroll-margin-top: 100px; }
.projet-accueil a:focus-visible, .projet-accueil button:focus-visible, .projet-accueil [tabindex]:focus-visible, .projet-entete a:focus-visible, .projet-agrandissement button:focus-visible { outline: 3px solid #6db2f3; outline-offset: 5px; }
.projet-accueil a { text-decoration: none; }
.projet-accueil h1, .projet-accueil h2, .projet-accueil h3, .projet-accueil p { margin-top: 0; }
.projet-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(600px, 72svh, 780px); padding-block: 76px 96px; }
.projet-hero__interieur { position: relative; z-index: 1; }
.projet-hero__texte { max-width: 560px; overflow-wrap: anywhere; }
.projet-statut { display: flex; gap: 11px; align-items: center; font-size: 12px; font-weight: 650; color: var(--projet-bleu); margin-bottom: 27px; }
.projet-statut > span { position: relative; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--projet-bleu); margin: 0 6px; }
.projet-statut > span::before { content: ''; position: absolute; inset: -6px; border-radius: inherit; background: rgba(109,178,243,.3); animation: projet-pulsation 2.4s ease-in-out infinite; z-index: -1; }
.projet-statut > span { isolation: isolate; }
.projet-statut > span::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--projet-bleu); }
@keyframes projet-pulsation { 0%, 100% { transform: scale(.65); opacity: .55; } 50% { transform: scale(1.1); opacity: 1; } }
.projet-hero h1 { font-size: clamp(48px, 5vw, 69px); font-weight: 800; line-height: 1.08; letter-spacing: -3.2px; margin-bottom: 28px; }
.projet-hero h1 > span { color: var(--projet-bleu); }
.projet-hero__description { max-width: 515px; color: var(--projet-secondaire); font-size: 18px; line-height: 1.8; margin-bottom: 30px; }
.projet-hero__actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; }
.projet-bouton { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 19px; border: 1px solid var(--projet-bleu); border-radius: 13px; background: var(--projet-bleu); color: #fff; font: inherit; font-size: 13px; font-weight: 700; text-align: center; }
.projet-bouton:disabled { opacity: 1; cursor: default; }
.projet-hero__visuel { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Le fond neutre protège le texte, puis laisse la photo apparaître jusqu’à 70 % de la largeur. */
.projet-hero__visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--fond), rgba(247,249,252,0) 22%), linear-gradient(to right, var(--fond) 0%, var(--fond) 28%, rgba(247,249,252,.98) 40%, rgba(247,249,252,.94) 53%, rgba(247,249,252,.6) 61%, rgba(247,249,252,0) 70%); }
.projet-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.projet-zoom { display: block; max-width: 100%; cursor: zoom-in; border-radius: inherit; }
.projet-intention { padding-top: 62px; padding-bottom: 82px; }
.projet-repere { color: var(--projet-bleu); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 22px; }
.projet-accueil h2 { font-size: clamp(30px, 3.1vw, 43px); line-height: 1.17; font-weight: 750; letter-spacing: -1.6px; margin-bottom: 25px; }
.projet-section-entete h2 span { color: var(--projet-bleu); }
.projet-section-entete { display: grid; grid-template-columns: 1.5fr 1fr; column-gap: 70px; row-gap: 22px; align-items: center; margin-bottom: 35px; }
.projet-section-entete > div { display: contents; }
.projet-section-entete .projet-repere { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.projet-section-entete h2 { grid-column: 1; grid-row: 1; margin-bottom: 0; }
.projet-section-entete > p { grid-column: 2; grid-row: 1; }
.projet-section-entete--seule { grid-template-columns: 1fr; }
.projet-section-entete > p { color: var(--projet-secondaire); font-size: 15px; line-height: 1.85; margin-bottom: 0; }
.projet-besoins { margin-top: 0; }
.projet-besoins__diapos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.projet-besoins__diapo { display: grid; place-items: center; padding: 28px; text-align: center; }
.projet-besoins h2 { max-width: 850px; margin: 0; color: var(--projet-bleu); font-size: 22px; line-height: 1.3; letter-spacing: -.6px; font-weight: 750; }
.projet-besoins.is-interactif .projet-besoins__diapos { grid-template-columns: 1fr; gap: 0; }
.projet-besoins.is-interactif .projet-besoins__diapo { grid-area: 1 / 1; min-height: 230px; padding: 38px 70px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.projet-besoins.is-interactif .projet-besoins__diapo.is-actif { opacity: 1; visibility: visible; transform: none; }
.projet-besoins.is-interactif h2 { font-size: clamp(25px, 3vw, 38px); }
.projet-besoins__commandes { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.projet-besoins__commandes[hidden] { display: none; }
.projet-besoins__points { display: flex; align-items: center; }
.projet-besoins__points button, .projet-besoins__lecture { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--projet-bleu); background: transparent; cursor: pointer; }
.projet-besoins__points button span { display: block; width: 9px; height: 9px; border-radius: 10px; background: var(--projet-clair); transition: width .3s, background .3s; }
.projet-besoins__points button[aria-selected="true"] span { width: 25px; background: var(--projet-bleu); }
.projet-besoins__points button:hover span { background: var(--projet-bleu); }
.projet-besoins__lecture { border: 1px solid rgba(109,178,243,.4); }
.projet-besoins__lecture:hover { background: rgba(109,178,243,.12); }
.projet-besoins__lecture svg { width: 17px; height: 17px; }
.projet-besoins__reprendre, .projet-besoins__lecture.est-en-pause .projet-besoins__pause { display: none; }
.projet-besoins__lecture.est-en-pause .projet-besoins__reprendre { display: block; }
.projet-decouverte { background: rgba(109,178,243,.1); border-top: 1px solid rgba(109,178,243,.2); padding-top: 66px; }
.projet-decouverte__introduction .projet-section-entete { margin-bottom: 20px; column-gap: 50px; row-gap: 12px; }
.projet-decouverte__introduction h2 { font-size: clamp(28px, 3vw, 40px); }
.projet-diaporama { padding: 14px 0 24px; border-bottom: 1px solid rgba(109,178,243,.2); }
/* La suite accompagne la scène : la hauteur du parcours ne crée pas de vide visible. */
.projet-suite { display: flow-root; background: var(--fond); }
.projet-parcours.is-defilant { height: calc(var(--scene-hauteur) + var(--scene-distance)); }
.is-defilant .projet-scene { position: sticky; top: var(--scene-decalage); }
.projet-onglets { display: flex; gap: 5px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(109,178,243,.4); }
.projet-onglets[hidden] { display: none; }
.projet-onglets button { appearance: none; flex: 1; border: 0; border-radius: 11px; background: transparent; padding: 13px 16px; color: var(--projet-secondaire); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: color .25s, background .25s; }
.projet-onglets button:hover { color: var(--projet-bleu); background: rgba(109,178,243,.15); }
.projet-onglets button[aria-selected="true"] { background: var(--projet-bleu); color: #fff; }
.projet-apercu { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; align-items: center; min-width: 0; background: #fff; border: 1px solid rgba(109,178,243,.25); border-radius: 24px; padding: 28px; margin-bottom: 20px; }
/* Les quatre panneaux gardent la même hauteur ; seul le panneau actif est accessible. */
.is-interactif .projet-panneaux { display: grid; }
.is-interactif .projet-apercu { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); transition: opacity .38s ease, transform .38s ease, visibility .38s; }
.is-interactif .projet-apercu.is-actif { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.projet-apercu__visuel { min-width: 0; display: flex; align-items: center; justify-content: center; }
.projet-apercu__visuel .projet-zoom { width: 100%; }
.projet-apercu__visuel img { display: block; width: 100%; height: clamp(260px, 40svh, 365px); object-fit: contain; }
.projet-apercu__visuel--telephone .projet-zoom { max-width: 275px; }
.projet-apercu__texte { padding: 5px 4px 5px 0; }
.projet-apercu__nom { display: inline-block; margin-bottom: 14px; color: var(--projet-bleu); font-size: 12px; font-weight: 700; }
.projet-apercu h3 { font-size: 26px; font-weight: 750; letter-spacing: -.7px; line-height: 1.25; margin-bottom: 17px; }
.projet-apercu__texte > p { color: var(--projet-secondaire); font-size: 14px; line-height: 1.75; margin-bottom: 15px; }
.projet-apercu__texte .projet-apercu__essentiel { color: var(--projet-bleu); font-weight: 600; border-top: 1px solid rgba(109,178,243,.25); padding-top: 15px; margin-bottom: 0; }
.projet-accueil .projet-legende { color: var(--projet-secondaire); font-size: 11px; margin: 14px 0 0; text-align: center; }
.projet-principes { padding-top: 52px; padding-bottom: 56px; }
.projet-principes__grille { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; margin-top: 44px; }
.projet-principes__grille article { border-top: 1px solid rgba(109,178,243,.4); padding-top: 25px; }
.projet-principe-signe { display: flex; align-items: center; justify-content: center; color: var(--projet-bleu); width: 56px; height: 56px; margin: 0 auto 22px; }
.projet-principe-signe svg { width: 40px; height: 40px; }
.projet-principe-signe img { display: block; width: 40px; height: 40px; }
.projet-principe-signe--soutien img { display: none; }
.projet-principe-signe--soutien::before { content: ''; width: 40px; height: 40px; background: var(--projet-bleu); mask: url('../../images/icones/equilibrage.svg') center / contain no-repeat; }
.projet-principe-signe.apparition-preparee { opacity: 0; transform: translateY(10px) scale(.94); }
.projet-principe-signe.apparition-visible { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s ease; transition-delay: var(--apparition-delai, 0ms); }
.projet-principes h3 { text-align: center; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.4px; margin-bottom: 14px; }
.projet-principes__grille p { color: var(--projet-secondaire); font-size: 14px; line-height: 1.8; margin: 0; }
.projet-partenaires { padding-top: 42px; padding-bottom: 56px; border-top: 1px solid rgba(109,178,243,.25); text-align: center; }
.projet-accueil .projet-partenaires h2 { max-width: 950px; margin: 0 auto 34px; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.3; letter-spacing: -.8px; }
.projet-partenaires__liste { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 36px; list-style: none; padding: 0; margin: 0; }
.projet-partenaires__liste li { flex: 0 0 auto; }
.projet-partenaires__lien { display: flex; align-items: center; justify-content: center; width: 224px; height: 152px; padding: 12px; border-radius: 16px; }
.projet-partenaires__lien img { display: block; width: 200px; height: 128px; object-fit: contain; transition: transform .22s ease; }
.projet-partenaires__lien:hover img, .projet-partenaires__lien:focus-visible img { transform: scale(1.07); }
.projet-partenaires__lien:focus-visible { outline: 3px solid var(--projet-bleu); outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) {
    .projet-partenaires__lien:hover img, .projet-partenaires__lien:focus-visible img { transform: none; }
}
.projet-contact { padding-top: 30px; padding-bottom: 80px; }
.projet-contact__interieur { display: grid; grid-template-columns: 1.6fr 1fr; gap: 70px; align-items: center; background: rgba(109,178,243,.15); border: 1px solid rgba(109,178,243,.3); border-radius: 28px; padding: 50px 56px; }
.projet-contact .projet-repere { margin-bottom: 20px; }
.projet-contact h2 { color: var(--projet-bleu); margin-bottom: 19px; }
.projet-contact p:not(.projet-repere) { font-size: 15px; color: var(--projet-secondaire); line-height: 1.85; margin-bottom: 0; }
.projet-contact__actions { display: flex; align-items: stretch; flex-direction: column; gap: 14px; }
.projet-agrandissement { width: min(1500px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 32px); padding: 60px 18px 18px; margin: auto; border: 1px solid rgba(109,178,243,.4); border-radius: 20px; background: #fff; color: #194eb6; box-shadow: 0 25px 100px rgba(0,0,0,.2); }
.projet-agrandissement::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.projet-agrandissement[open] { animation: projet-ouverture .25s ease-out; }
@keyframes projet-ouverture { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.projet-agrandissement__fermer { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(109,178,243,.18); color: #194eb6; font: 32px/1 Arial, sans-serif; cursor: pointer; transition: background .2s; }
.projet-agrandissement__fermer:hover { background: rgba(109,178,243,.35); }
.projet-agrandissement__image { display: block; width: 100%; height: auto; max-height: calc(100dvh - 120px); object-fit: contain; }
html.page-projet-fr.projet-image-ouverte { overflow: hidden; }
/* Sur ordinateur, la hauteur suit celle de l’écran en laissant apparaître la suite. */
@media (min-width: 1001px) and (min-height: 700px) {
    .projet-apercu { min-height: clamp(340px, calc(76svh - 320px), 760px); padding-block: clamp(20px, 2.4svh, 36px); }
    .projet-apercu__visuel img { height: clamp(240px, calc(76svh - 400px), 672px); }
    .projet-apercu__visuel--telephone .projet-zoom { max-width: 380px; }
}
@media (max-width: 1000px) {
    .projet-hero { min-height: 570px; padding-block: 60px 80px; }
    .projet-hero__texte { max-width: 490px; }
    .projet-hero h1 { font-size: 52px; letter-spacing: -2.4px; }
    .projet-hero__visuel::after { background: linear-gradient(to top, var(--fond), rgba(247,249,252,0) 22%), linear-gradient(to right, var(--fond) 0%, rgba(247,249,252,.98) 30%, rgba(247,249,252,.97) 50%, rgba(247,249,252,.9) 67%, rgba(247,249,252,0) 85%); }
    .projet-section-entete { column-gap: 38px; }
    .projet-apercu { grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 22px; }
    .projet-apercu h3 { font-size: 24px; }
    .projet-contact__interieur { padding: 40px; gap: 40px; }
}
@media (max-width: 760px) {
    .projet-hero { min-height: 0; padding-block: 38px 340px; }
    .projet-hero__texte { max-width: 590px; }
    .projet-hero h1 { font-size: clamp(45px, 8vw, 61px); }
    .projet-hero__description { max-width: 560px; font-size: 17px; }
    .projet-hero__visuel { top: 90px; height: auto; }
    .projet-hero__visuel::after { background: linear-gradient(to bottom, var(--fond), rgba(247,249,252,.95) 70px, rgba(247,249,252,.93) calc(100% - 330px), rgba(247,249,252,.85) calc(100% - 280px), rgba(247,249,252,0) calc(100% - 180px), rgba(247,249,252,0) calc(100% - 80px), var(--fond)); }
    .projet-photo { object-position: 95% center; }
    .projet-intention { padding-top: 42px; padding-bottom: 48px; }
    .projet-accueil h2 { font-size: 34px; letter-spacing: -1.1px; }
    .projet-repere { margin-bottom: 18px; }
    .projet-besoins { margin-top: 0; }
    .projet-besoins__diapos { grid-template-columns: 1fr; }
    .projet-besoins.is-interactif .projet-besoins__diapo { padding: 30px; min-height: 210px; }
    .projet-decouverte__introduction .projet-section-entete { gap: 14px; }
    .projet-decouverte { padding-top: 46px; }
    .projet-section-entete { grid-template-columns: 1fr; gap: 18px; margin-bottom: 20px; }
    .projet-section-entete > div { display: block; }
    .projet-section-entete > p { grid-column: auto; grid-row: auto; }
    .projet-section-entete .projet-repere { margin-bottom: 18px; }
    .projet-decouverte__introduction .projet-repere { margin-bottom: 12px; }
    .projet-section-entete > p { max-width: 530px; }
    .projet-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 12px; padding-bottom: 10px; }
    .projet-onglets button { font-size: 13px; padding: 10px 8px; }
    .projet-apercu { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
    .projet-apercu__visuel img { height: clamp(150px, 24svh, 220px); }
    .projet-apercu__texte { padding: 0; }
    .projet-apercu__nom { margin-bottom: 9px; }
    .projet-apercu h3 { font-size: 23px; margin-bottom: 10px; }
    .projet-apercu__texte > p { line-height: 1.65; margin-bottom: 12px; }
    .projet-apercu__texte .projet-apercu__essentiel { padding-top: 12px; }
    .projet-principes { padding-top: 52px; padding-bottom: 35px; }
    .projet-principes__grille { gap: 25px; margin-top: 32px; grid-template-columns: 1fr; }
    .projet-principes__grille article { padding-top: 22px; }
    .projet-principe-signe { width: 46px; height: 46px; margin: 0 auto 18px; }
    .projet-principe-signe svg, .projet-principe-signe img, .projet-principe-signe--soutien::before { width: 34px; height: 34px; }
    .projet-principes h3 { font-size: 20px; margin-bottom: 10px; }
    .projet-contact { padding-top: 22px; padding-bottom: 46px; }
    .projet-contact__interieur { grid-template-columns: 1fr; padding: 34px; gap: 27px; border-radius: 22px; }
    .projet-contact__actions { flex-direction: row; flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 520px) {
    .projet-conteneur { width: calc(100% - 32px); }
    .projet-statut { font-size: 10px; margin-bottom: 23px; }
    .projet-hero h1 { font-size: clamp(40px, 10.4vw, 54px); letter-spacing: -2px; margin-bottom: 24px; }
    .projet-hero__description { font-size: 16px; line-height: 1.75; margin-bottom: 22px; }
    .projet-hero__actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 9px; }
    .projet-bouton { min-height: 48px; padding: 12px 10px; font-size: 12px; }
    .projet-hero { padding-bottom: 300px; }
    .projet-accueil h2 { font-size: 30px; }
    .projet-besoins.is-interactif .projet-besoins__diapo { min-height: 205px; padding: 26px 20px; }
    .projet-besoins__points button { width: 37px; }
    .projet-besoins__commandes { gap: 6px; }
    .projet-repere { font-size: 10px; letter-spacing: .07em; }
    .projet-apercu { padding: 16px; border-radius: 18px; gap: 12px; }
    .projet-apercu h3 { font-size: 21px; }
    .projet-apercu__nom { font-size: 11px; }
    .projet-accueil .projet-legende { font-size: 10px; }
    .projet-contact__interieur { padding: 28px 23px; }
    .projet-contact h2 { font-size: 30px; }
    .projet-contact__actions { display: grid; grid-template-columns: 1fr; }
    .projet-agrandissement { width: calc(100vw - 16px); padding-inline: 8px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .projet-accueil *, .projet-accueil *::before, .projet-entete *, .projet-agrandissement, .projet-agrandissement * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 640px) { .projet-entete__interieur { min-height: 64px; gap: 10px; } }
