/* Page de présentation (avant connexion) */
body:has(.pres) { overflow-x: hidden; }
body:has(.pres) .pied { background: #0f1f3d; color: #9fb0cc; margin: 0; padding: 18px; }
.pres { --p-marine: #1f3864; --p-nuit: #0f1f3d; --p-texte: #42506a; --p-doux: #6b7891; }
.pres .ic { flex: none; }

/* Pleine largeur pour les bandes */
.pres-hero, .pres-bande, .pres-chiffres-wrap { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---------- En-tête ---------- */
.pres-hero { position: relative; margin-top: -24px; padding: 70px 24px 120px; color: #fff; overflow: hidden;
  background: radial-gradient(1100px 500px at 85% 10%, #2c4f8a 0, transparent 60%), linear-gradient(160deg, #13284d 0, #1f3864 55%, #243f70 100%); }
.pres-hero-fond { position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 0, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0, transparent 70%); }
.pres-hero-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pres-etiquette { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #cfe0ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; }
.pres-point { width: 7px; height: 7px; border-radius: 50%; background: #5fd39a; box-shadow: 0 0 0 4px rgba(95,211,154,.18); }
.pres-hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.025em; margin: 20px 0 18px; color: #fff; font-weight: 800; }
.pres-accroche { font-size: 18px; line-height: 1.65; color: #c9d6ec; max-width: 580px; margin: 0 0 30px; }
.pres-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pres-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.pres-btn:hover { transform: translateY(-1px); text-decoration: none; }
.pres-btn-plein { background: #fff; color: var(--p-marine); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.pres-btn-plein:hover { box-shadow: 0 12px 30px rgba(0,0,0,.28); color: var(--p-marine); }
.pres-btn-contour { color: #fff; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.pres-btn-contour:hover { background: rgba(255,255,255,.1); color: #fff; }
.pres-btn-contour span { transition: transform .15s; }
.pres-btn-contour:hover span { transform: translateX(3px); }
.pres-atouts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.pres-atouts li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #dbe4f3; font-weight: 600; }
.pres-atouts .ic { color: #5fd39a; }
.pres-hero-illu { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.pres-hero-illu::before { content: ""; position: absolute; inset: 8% 8% 14%; border-radius: 50%; background: radial-gradient(circle, rgba(120,160,230,.35), transparent 70%); filter: blur(20px); }
.pres-hero-illu .illu-op { position: relative; }

/* ---------- Chiffres clés ---------- */
.pres-chiffres { position: relative; z-index: 2; max-width: 1080px; margin: -64px auto 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(16,24,40,.12); border: 1px solid #e6eaf1; }
.pres-chiffres div { padding: 24px 20px; text-align: center; }
.pres-chiffres div + div { border-left: 1px solid #edf0f5; }
.pres-chiffres strong { display: block; font-size: 32px; line-height: 1.1; color: var(--p-marine); font-weight: 800; letter-spacing: -.02em; }
.pres-chiffres span { font-size: 13.5px; color: var(--p-doux); font-weight: 600; }

/* ---------- Sections ---------- */
.pres-bloc { max-width: 1180px; margin: 0 auto; padding: 84px 0 20px; }
.pres-bande { max-width: none; padding: 80px 24px; margin-top: 64px; background: #fff; border-top: 1px solid #e6eaf1; border-bottom: 1px solid #e6eaf1; }
.pres-bande > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.pres-titre { text-align: center; margin-bottom: 42px; }
.pres-sur { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #2c6bd6; margin-bottom: 10px; }
.pres-titre h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; color: var(--p-nuit); letter-spacing: -.02em; font-weight: 800; }
.pres-titre p { margin: 10px auto 0; max-width: 560px; color: var(--p-doux); font-size: 16px; }

/* Teintes */
.t-bleu   { --t: #2c6bd6; --tc: #e8f0fd; }
.t-vert   { --t: #1f8a5b; --tc: #e3f5ec; }
.t-ambre  { --t: #c07a10; --tc: #fdf1dc; }
.t-violet { --t: #6b4fd1; --tc: #efebfd; }
.t-cyan   { --t: #0f8aa0; --tc: #e0f5f8; }
.pres-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--tc, #e8eef8); color: var(--t, var(--p-marine)); flex: none; }

/* Objectifs */
.pres-objectifs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pres-obj { position: relative; background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; padding: 26px 24px 28px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pres-obj::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--t); }
.pres-obj:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16,24,40,.1); }
.pres-obj-tete { display: flex; justify-content: space-between; align-items: center; }
.pres-num { font-size: 34px; font-weight: 800; color: var(--tc); -webkit-text-stroke: 1px var(--t); opacity: .7; letter-spacing: -.03em; }
.pres-obj h3 { font-size: 17px; margin: 20px 0 8px; color: var(--p-nuit); }
.pres-obj p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--p-texte); }

/* Circuit */
.pres-circuit { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); position: relative; }
.pres-circuit::before { content: ""; position: absolute; left: 6.25%; right: 6.25%; top: 30px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #1f3864, #2c6bd6 60%, #1f8a5b 72%, #1f3864); opacity: .25; }
.pres-circuit li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.pres-etape { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--p-marine);
  border: 1px solid #dfe5ef; box-shadow: 0 6px 18px rgba(16,24,40,.08); transition: transform .2s, background .2s, color .2s; }
.pres-circuit li:hover .pres-etape { transform: translateY(-3px); background: var(--p-marine); color: #fff; }
.pres-circuit li.paye .pres-etape { background: #1f8a5b; color: #fff; border-color: #1f8a5b; }
.pres-circuit small { margin-top: 10px; font-size: 11px; font-weight: 800; color: #9aa7bd; letter-spacing: .1em; }
.pres-circuit b { font-size: 14px; color: var(--p-nuit); }

/* Fonctionnalités */
.pres-fonctions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pres-fonc { background: #fff; border: 1px solid #e6eaf1; border-radius: 16px; padding: 22px 20px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pres-fonc:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16,24,40,.1); border-color: var(--tc); }
.pres-fonc h3 { font-size: 15.5px; margin: 16px 0 6px; color: var(--p-nuit); line-height: 1.3; }
.pres-fonc p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--p-texte); }

/* Acteurs : onglets */
.pres-acteurs { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: stretch; }
.pres-acteurs-liste { display: flex; flex-direction: column; gap: 6px; }
.pres-onglet { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; cursor: pointer; font: inherit; color: var(--p-texte); transition: background .15s, border-color .15s; }
.pres-onglet .pres-ic { width: 38px; height: 38px; border-radius: 10px; background: #eef2f8; color: var(--p-marine); }
.pres-onglet b { display: block; font-size: 14.5px; color: var(--p-nuit); }
.pres-onglet small { font-size: 12.5px; color: var(--p-doux); }
.pres-onglet:hover { background: #f4f6fa; }
.pres-onglet.actif { background: #fff; border-color: #dfe5ef; box-shadow: 0 8px 22px rgba(16,24,40,.08); }
.pres-onglet.actif .pres-ic { background: var(--p-marine); color: #fff; }
.pres-acteurs-panneaux { position: relative; border-radius: 20px; padding: 36px 38px; color: #fff; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0, #2c4f8a, transparent 70%), linear-gradient(150deg, #13284d, #1f3864); box-shadow: 0 20px 50px rgba(19,40,77,.25); }
.pres-panneau { display: none; }
.pres-panneau.actif { display: block; animation: pres-fondu .35s ease; }
@keyframes pres-fondu { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pres-panneau-tete { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; }
.pres-ic-grand { width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,.12); color: #fff; }
.pres-panneau-tete h3 { margin: 0; font-size: 24px; color: #fff; letter-spacing: -.01em; }
.pres-panneau-tete p { margin: 2px 0 0; color: #a9bddd; font-size: 15px; }
.pres-panneau ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pres-panneau li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  font-size: 15.5px; line-height: 1.55; color: #e6edf8; }
.pres-coche { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #1f8a5b; color: #fff; flex: none; }

/* Appel final */
.pres-fin { position: relative; overflow: hidden; max-width: 1180px; margin: 80px auto 50px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 44px 48px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #13284d, #1f3864 50%, #2c4f8a); box-shadow: 0 20px 50px rgba(19,40,77,.25); }
.pres-fin-fond { position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.pres-fin h2 { margin: 0 0 6px; font-size: 28px; color: #fff; letter-spacing: -.01em; }
.pres-fin p { margin: 0; color: #c9d6ec; font-size: 16px; }
.pres-btn-blanc { position: relative; background: #fff; color: var(--p-marine); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.pres-btn-blanc:hover { color: var(--p-marine); }

/* Apparition au défilement */
.js-revele .revele { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-revele .revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-revele .revele { opacity: 1; transform: none; transition: none; } .pres-panneau.actif { animation: none; } }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1100px) {
  .pres-fonctions { grid-template-columns: repeat(3, 1fr); }
  .pres-objectifs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pres-hero { padding: 40px 20px 100px; }
  .pres-hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .pres-hero-illu { max-width: 260px; order: -1; }
  .pres-chiffres { grid-template-columns: repeat(2, 1fr); margin-left: 8px; margin-right: 8px; }
  .pres-chiffres div:nth-child(3) { border-left: 0; }
  .pres-chiffres div:nth-child(n+3) { border-top: 1px solid #edf0f5; }
  .pres-circuit { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .pres-circuit::before { display: none; }
  .pres-fonctions { grid-template-columns: repeat(2, 1fr); }
  .pres-acteurs { grid-template-columns: 1fr; }
  .pres-acteurs-liste { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .pres-onglet { width: auto; flex: none; }
  .pres-acteurs-panneaux { padding: 26px 22px; }
  .pres-fin { flex-direction: column; align-items: flex-start; padding: 32px 26px; margin-left: 8px; margin-right: 8px; }
  .pres-bloc { padding-top: 64px; }
}
@media (max-width: 560px) {
  .pres-objectifs, .pres-fonctions, .pres-atouts { grid-template-columns: 1fr; }
  .pres-onglet small { display: none; }
}

/* Corrections */
.pres .pres-bande { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.pres-hero-illu .io-circuit text { fill: #dbe4f3; }
.pres-hero-illu .io-circuit line { stroke: rgba(255,255,255,.35); }
.pres-hero-illu .io-circuit circle:not([fill="#2e7d4f"]) { fill: #3d64a8; }
.pres-acteurs { align-items: start; }
.pres-acteurs-panneaux { min-height: 330px; }

/* ---------- Bandeau défilant (nom de l'organisation) ---------- */
.pres-defile { position: relative; overflow: hidden; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-top: -24px;
  padding: 22px 0; background: #0f1f3d; border-bottom: 1px solid rgba(255,255,255,.08); isolation: isolate; }
.pres-defile + .pres-hero { margin-top: 0; }
.pres-defile-fond { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, #0f1f3d 0%, #1f3864 30%, #1d5c8c 50%, #1f8a5b 68%, #1f3864 85%, #0f1f3d 100%);
  background-size: 300% 100%; animation: pres-aurore 14s ease-in-out infinite alternate; }
.pres-defile-fond span { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45; mix-blend-mode: screen; }
.pres-defile-fond span:nth-child(1) { width: 380px; height: 160px; left: 8%; top: -60px; background: #3d7bea; animation: pres-flotte 11s ease-in-out infinite alternate; }
.pres-defile-fond span:nth-child(2) { width: 300px; height: 140px; left: 48%; top: 10px; background: #2fbf86; animation: pres-flotte 9s ease-in-out infinite alternate-reverse; }
.pres-defile-fond span:nth-child(3) { width: 340px; height: 150px; right: 6%; top: -50px; background: #f0b85a; opacity: .25; animation: pres-flotte 13s ease-in-out infinite alternate; }
.pres-defile::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 18px 18px; opacity: .5; }
.pres-defile-piste { display: flex; width: max-content; animation: pres-defile 38s linear infinite; }
.pres-defile:hover .pres-defile-piste { animation-play-state: paused; }
.pres-defile-groupe { display: flex; align-items: center; flex: none; }
.pres-defile-texte { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; padding: 0 34px;
  color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25);
  background: linear-gradient(90deg, #ffffff, #cfe3ff 45%, #ffffff 55%, #d8f5e7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pres-defile-sep { font-size: clamp(16px, 2vw, 24px); color: #f0b85a; text-shadow: 0 0 14px rgba(240,184,90,.7); }
.pres-defile::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #0f1f3d 0, transparent 8%, transparent 92%, #0f1f3d 100%); opacity: .85; }
.sr-seulement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes pres-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pres-aurore { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes pres-flotte { from { transform: translate(0, 0); } to { transform: translate(60px, 20px); } }
@media (prefers-reduced-motion: reduce) {
  .pres-defile-piste, .pres-defile-fond, .pres-defile-fond span { animation: none; }
  .pres-defile-piste { width: auto; justify-content: center; } .pres-defile-groupe + .pres-defile-groupe { display: none; }
}
@media (max-width: 900px) { .pres-defile { padding: 14px 0; } .pres-defile-texte { padding: 0 20px; } }
.pres-defile-texte { background: none; -webkit-text-fill-color: #fff; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.3), 0 0 30px rgba(120,170,255,.35); }
