/* Page d'accueil : héros plein écran + sections qui défilent. S'appuie sur theme.css. */

html { scroll-behavior: smooth; }
body.page-accueil { background: #fff; }

/* ---------- Barre du haut (transparente sur le héros, pleine ensuite) ---------- */
.accueil-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    padding: .9rem 0;
    transition: background-color .25s, box-shadow .25s, padding .25s;
}
.accueil-nav.solide {
    background: rgba(11, 42, 74, .92);
    backdrop-filter: blur(8px);
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .2);
    padding: .55rem 0;
}
.accueil-marque {
    display: inline-flex; align-items: center; gap: .55rem;
    color: #fff; font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; text-decoration: none;
}
.accueil-marque:hover { color: #fff; }
.accueil-marque img { border-radius: 25%; box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .35); }
.accueil-lien { color: rgba(255, 255, 255, .8); font-weight: 700; text-decoration: none; padding: .4rem .8rem; border-radius: 999px; }
.accueil-lien:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- Héros ---------- */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    color: #fff; overflow: hidden;
    background-color: var(--ch-bleu-nuit);
    background-image:
        radial-gradient(60rem 40rem at 85% -10%, rgba(90, 176, 255, .4), transparent 60%),
        radial-gradient(50rem 40rem at -10% 110%, rgba(31, 111, 235, .5), transparent 60%),
        url("img/reseau-lignes.svg");
    background-size: auto, auto, 40rem;
}
.hero-photo {
    background-image: var(--hero-image);
    background-size: cover; background-position: center;
}
.hero-voile {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11, 42, 74, .55) 0%, rgba(11, 42, 74, .35) 45%, rgba(11, 42, 74, .85) 100%);
}
.hero:not(.hero-photo) .hero-voile { background: linear-gradient(180deg, transparent 60%, rgba(11, 42, 74, .6) 100%); }
.hero-contenu { position: relative; max-width: 52rem; padding-top: 5rem; padding-bottom: 5rem; }
.hero-sur-titre {
    display: inline-block; margin-bottom: 1rem; padding: .35rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .14); backdrop-filter: blur(4px);
    font-weight: 700; font-size: .95rem; letter-spacing: .02em;
}
.hero-titre {
    color: #fff; font-weight: 900; line-height: 1.05; letter-spacing: -.03em;
    font-size: clamp(2.6rem, 8vw, 5.2rem);
    text-shadow: 0 .25rem 1.5rem rgba(0, 0, 0, .3);
}
.hero-texte { max-width: 38rem; margin: 1.5rem auto 0; font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 600; color: rgba(255, 255, 255, .88); }
.btn-outline-light { --bs-btn-hover-color: var(--ch-bleu-nuit); }
.hero-fleche {
    position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
    display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
    color: #fff; border: 2px solid rgba(255, 255, 255, .55); text-decoration: none;
    animation: rebond 2s ease-in-out infinite;
}
.hero-fleche:hover { color: #fff; background: rgba(255, 255, 255, .15); }
@keyframes rebond { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, .5rem); } }

/* ---------- Sections ---------- */
.bloc { padding: 5.5rem 0; }
.bloc-pale { background: var(--ch-bleu-pale); }
.bloc-entete { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.bloc-entete h2, .bloc h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; }
.bloc-entete p { color: var(--ch-bleu-gris); font-size: 1.1rem; font-weight: 600; }
.bloc-etiquette {
    display: inline-block; padding: .25rem .85rem; border-radius: 999px;
    background: rgba(31, 111, 235, .12); color: var(--ch-bleu);
    font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.lead-doux { color: var(--ch-bleu-gris); font-size: 1.1rem; font-weight: 600; }

/* Étapes */
.etape {
    position: relative; height: 100%; padding: 2.25rem 1.75rem 1.75rem;
    background: #fff; border: 1px solid #dbe7f5; border-radius: 1.5rem; box-shadow: var(--ch-ombre);
}
.etape-num {
    position: absolute; top: -1rem; left: 1.5rem; display: grid; place-items: center;
    width: 2.2rem; height: 2.2rem; border-radius: 50%;
    background: var(--ch-bleu); color: #fff; font-weight: 900;
    box-shadow: 0 .3rem .8rem rgba(31, 111, 235, .4);
}
.etape-ico { font-size: 2rem; color: var(--ch-bleu); margin-bottom: 1rem; }
.etape h3 { font-size: 1.25rem; }
.etape p { color: var(--ch-bleu-gris); margin: 0; font-weight: 600; }

/* Rôles */
.role { height: 100%; padding: 2.25rem; border-radius: 1.75rem; color: #fff; box-shadow: var(--ch-ombre-forte); }
.role h3, .role p { color: #fff; }
.role p { opacity: .92; font-weight: 600; }
.role-fugitif { background: linear-gradient(145deg, var(--ch-bleu-profond), var(--ch-bleu)); }
.role-poursuivants { background: linear-gradient(145deg, var(--ch-bleu-nuit), var(--ch-bleu-profond)); }
.role-ico {
    display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: 1.1rem;
    border-radius: 1.1rem; background: rgba(255, 255, 255, .16); font-size: 1.5rem;
}
.role h3 { font-size: 1.6rem; }
.role ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.role li { position: relative; padding-left: 1.7rem; margin-bottom: .5rem; font-weight: 700; }
.role li::before {
    content: "\f00c"; font-family: "Font Awesome 7 Free"; font-weight: 900;
    position: absolute; left: 0; top: .05rem; color: var(--ch-bleu-ciel); font-size: .85rem;
}

/* Points clés + maquette du réseau */
.liste-points { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.liste-points li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; font-weight: 600; }
.liste-points i {
    flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .9rem;
    background: var(--ch-bleu-pale); color: var(--ch-bleu); font-size: 1.05rem;
}
.maquette-reseau {
    padding: 1.25rem; border-radius: 2rem;
    background: radial-gradient(circle at 80% 0%, rgba(90, 176, 255, .3), transparent 60%), var(--ch-bleu-nuit);
    box-shadow: var(--ch-ombre-forte);
}
.maquette-reseau svg { display: block; width: 100%; height: auto; }
.pulse { transform-origin: 250px 150px; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

/* Appel à l'action */
.bloc-cta {
    padding: 5rem 0; color: #fff;
    background:
        radial-gradient(40rem 25rem at 90% 0%, rgba(90, 176, 255, .35), transparent 60%),
        linear-gradient(135deg, var(--ch-bleu-profond), var(--ch-bleu));
}
.bloc-cta h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 900; }
.bloc-cta p { font-size: 1.15rem; font-weight: 600; opacity: .9; margin: 0; }

/* Pied */
.accueil-pied { background: var(--ch-bleu-nuit); color: rgba(255, 255, 255, .6); padding: 1.5rem 0; font-size: .9rem; }

.pied-lien { color: rgba(255, 255, 255, .85); font-weight: 700; text-decoration: none; }
.pied-lien:hover { color: #fff; text-decoration: underline; }
.pied-coeur { color: #e0245e; vertical-align: -.125em; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-fleche, .pulse { animation: none; }
}
