/* ==========================================================================
   Génération Saint Joseph — page d'accueil
   ========================================================================== */

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
}

/* --- Bandeau d'ouverture ------------------------------------------------------ */

.bandeau {
    background:
        radial-gradient(900px 500px at 50% 120%, rgba(76, 155, 232, 0.35), transparent 70%),
        linear-gradient(180deg, var(--navy-deep), var(--navy));
    color: #fff;
    text-align: center;
    padding: 84px 0 96px;
    border-bottom: 6px solid var(--sand-deep);
}

.bandeau-inner {
    max-width: 760px;
    animation: rise 0.5s ease both;
}

.bandeau-embleme {
    width: 250px;
    height: 250px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--radius);
    padding: 10px;
    margin: 0 auto 30px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.kicker-light {
    color: #9fcdf7;
}

.bandeau h1 {
    color: #fff;
    font-size: clamp(46px, 7vw, 84px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
}

.bandeau h1 em {
    font-style: italic;
    font-weight: 500;
}

.bandeau-texte {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
    margin: 0 auto 34px;
}

.bandeau-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* --- Mur des promos ------------------------------------------------------------- */

.promos {
    padding: 80px 0;
    background: var(--white);
}

.promos-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: end;
    margin-bottom: 36px;
}

.promos-head h2 {
    font-size: 40px;
    font-weight: 500;
}

.promos-head p {
    font-size: 15.5px;
    max-width: 460px;
    justify-self: end;
}

.promos-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.promo-tuile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 34px 6px;
    background: var(--white);
    color: var(--navy);
    transition: background 0.15s ease, color 0.15s ease;
}

.promo-tuile:hover {
    background: var(--navy);
    color: #fff;
}

.promo-annee {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}

.promo-sous {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.promo-tuile-actuels {
    grid-column: span 2;
    background: var(--sand);
}

.promo-tuile-actuels .promo-annee {
    font-style: italic;
}

/* La dernière tuile remplit la largeur restante de sa ligne.
   8 colonnes : « Élèves » (2) + 30 années = 32 cases, « Avant » ouvre une ligne → pleine largeur. */
.promo-tuile-avant {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 12px;
    padding: 24px 6px;
}

.promo-tuile-avant .promo-annee {
    font-size: 20px;
    font-style: italic;
}

/* --- Deux publics ---------------------------------------------------------------- */

.publics {
    padding: 80px 0;
    border-top: 1px solid var(--rule);
}

.publics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.public-col {
    padding: 8px 56px 8px 0;
}

.public-col + .public-col {
    padding: 8px 0 8px 56px;
    border-left: 1px solid var(--rule);
}

.public-col h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 16px;
}

.public-col p {
    color: var(--ink-2);
    margin-bottom: 16px;
}

.public-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    margin-bottom: 22px !important;
}

.public-note i {
    color: var(--royal);
    margin-top: 4px;
}

/* --- Étapes ---------------------------------------------------------------------- */

.etapes {
    padding: 72px 0 80px;
    background: var(--white);
    border-top: 1px solid var(--rule);
}

.etapes-liste {
    list-style: none;
    border-top: 1px solid var(--rule);
}

.etapes-liste li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--rule);
}

.etape-num {
    font-family: var(--serif);
    font-size: 56px;
    font-weight: 400;
    font-style: italic;
    line-height: 0.9;
    color: var(--sky);
}

.etapes-liste h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.etapes-liste p {
    color: var(--ink-2);
    max-width: 620px;
}

/* --- L'esprit -------------------------------------------------------------------- */

.esprit {
    background: var(--sand);
    padding: 80px 0;
}

.esprit-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 8px;
}

.esprit-points li {
    padding-left: 18px;
    border-left: 2px solid var(--navy);
}

.esprit-points strong {
    display: block;
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
}

.esprit-points span {
    font-size: 14.5px;
    color: var(--ink-2);
}

/* --- Responsive ------------------------------------------------------------------- */

@media (max-width: 960px) {
    .promos-head {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .promos-head p {
        justify-self: start;
    }

    .promos-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* 5 colonnes : 32 cases = 6 lignes + 2, il reste 3 colonnes pour « Avant » */
    .promo-tuile-avant {
        grid-column: span 3;
    }

    .publics-grid {
        grid-template-columns: 1fr;
    }

    .public-col,
    .public-col + .public-col {
        padding: 0;
        border-left: none;
    }

    .public-col + .public-col {
        margin-top: 48px;
        padding-top: 48px;
        border-top: 1px solid var(--rule);
    }

    .esprit-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 18px;
    }

    .bandeau {
        padding: 56px 0 64px;
    }

    .bandeau-embleme {
        width: 190px;
        height: 190px;
    }

    .promos,
    .publics,
    .etapes,
    .esprit {
        padding: 56px 0;
    }

    .promos-head h2,
    .public-col h2 {
        font-size: 28px;
    }

    .promos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .promo-tuile-actuels {
        grid-column: span 3;
        padding: 22px 6px;
    }

    /* 3 colonnes : « Élèves » (3) + 30 années = 11 lignes pleines, « Avant » ouvre une ligne → pleine largeur */
    .promo-tuile-avant {
        grid-column: 1 / -1;
    }

    .promo-annee {
        font-size: 24px;
    }

    .etapes-liste li {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .etape-num {
        font-size: 40px;
    }
}
