/* --- RESET DE BASE --- */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background-color: #0a0a0a; /* fallback si la vidéo ne charge pas */
}

img {
    display: block;
    max-width: 100%;
}

/* --- VIDÉO DE FOND --- */
.page-video-bg {
    position: fixed;
    inset: 0;
    z-index: -20;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    inset: 0;
    z-index: -10;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.35) 40%,
            rgba(0, 0, 0, 0.65) 100%);
}

/* --- HEADER --- */
header.visa-header {
    position: relative;
    z-index: 10;
    padding: 32px 6vw 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px 12px 16px;
    border-radius: 12px;
}

.back-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.back-link:hover {
    transform: translateX(-3px);
}

.crumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* --- HERO --- */
.hero {
    position: relative;
    z-index: 5;
    padding: 70px 6vw 50px;
    max-width: 900px;
}

.hero .kicker {
    display: inline-block;
    font-size: 0.85rem;
    color: #feca3c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 0 0 22px;
    color: #fff;
}

.hero p.lede {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0;
}

/* --- STEPS SECTION --- */
.steps-section {
    position: relative;
    z-index: 5;
    padding: 20px 6vw 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .steps-section {
        grid-template-columns: 1fr;
    }
}

/* Additional responsive improvements for steps section */
@media (max-width: 480px) {
    .steps-section {
        padding: 15px 4vw 60px;
    }

    .step {
        grid-template-columns: 40px 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .step .num {
        font-size: 1.2rem;
    }

    .step h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .step p {
        font-size: 0.9rem;
        max-width: 40ch;
    }
}

.steps-list.glass-card {
    padding: 12px 36px;
}

.step {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    transition: transform 0.3s ease;
}

.step:last-child {
    border-bottom: none;
}

.step:hover {
    transform: translateX(8px);
}

.step .num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #feca3c;
    line-height: 1;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.step p {
    margin: 0;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 55ch;
}

/* --- SIDE NOTE (CTA) --- */
.side-note.glass-card {
    padding: 32px 28px;
    position: sticky;
    top: 40px;
    text-align: center;
}

.side-note .sun-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: rgba(254, 202, 60, 0.15);
    border: 1px solid rgba(254, 202, 60, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-note .sun-badge::after {
    content: "💬";
    font-size: 24px;
}

.side-note h4 {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.side-note p {
    margin: 0 0 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.side-note a.cta {
    display: inline-block;
    background: #f85a3e;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(248, 90, 62, 0.35);
}

.side-note a.cta:hover {
    background: #e04a2f;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(248, 90, 62, 0.5);
}

/* Responsive improvements for side note */
@media (max-width: 480px) {
    .side-note.glass-card {
        position: static;
        margin: 20px 0;
        padding: 24px 20px;
        top: 0;
    }

    .side-note .sun-badge {
        width: 48px;
        height: 48px;
        margin: 0 auto 16px;
    }

    .side-note .sun-badge::after {
        font-size: 20px;
    }

    .side-note h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .side-note p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .side-note a.cta {
        font-size: 0.9rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }
}

/* --- STUDENTS SECTION --- */
.students-section {
    position: relative;
    z-index: 5;
    padding: 20px 6vw 100px;
    text-align: center;
}

.students-section .head {
    max-width: 600px;
    margin: 0 auto 40px;
}

.students-section h2 {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin: 0 0 16px;
    color: #fff;
}

.students-section .head p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.02rem;
}

/* --- CARROUSEL 3D ÉTUDIANTS --- */
.students-section .student-carousel-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.students-section .carousel {
    position: relative;
    width: 100%;
    height: 24rem;
    overflow: hidden;
    perspective: 600px;
    transform-style: preserve-3d;
    transform-origin: 0% 50%;
}

.students-section .carousel .carousel-item {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 14rem;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    -webkit-user-drag: none;
}

.students-section .student-item .card-photo {
    display: block;
    width: 100%;
    aspect-ratio: 7 / 8;      /* = 14rem × 16rem */
    height: auto;
    object-fit: cover;
    object-position: top center;  /* si un recadrage reste, on garde le haut (logo) */
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-origin: center top;
}

.students-section .student-item .card-title {
    margin-top: 0.9rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    transition: margin-top 0.4s ease;
}

/* Zoom de la photo centrale */
.students-section .carousel .carousel-item.active .card-photo {
    cursor: zoom-in;
}
.students-section .carousel .carousel-item.active .card-photo:hover,
.students-section .carousel .carousel-item.active .card-photo:focus,
.students-section .carousel .carousel-item.active.is-zoomed .card-photo {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(254, 202, 60, 0.6), 0 14px 36px rgba(0, 0, 0, 0.5);
}
.students-section .carousel .carousel-item.active.is-zoomed .card-photo {
    cursor: zoom-out;
}
.students-section .carousel .carousel-item.active:hover .card-title,
.students-section .carousel .carousel-item.active:focus-within .card-title,
.students-section .carousel .carousel-item.active.is-zoomed .card-title {
    margin-top: 4.1rem;
}

/* Indicateurs (points) */
.students-section .carousel .indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    list-style: none;
    z-index: 10;
}
.students-section .carousel .indicators .indicator-item {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s;
}
.students-section .carousel .indicators .indicator-item.active {
    background: #feca3c;
}

/* Boutons précédent / suivant */
.students-section .car-btn {
    position: absolute;
    top: 8rem;
    z-index: 20;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s;
}
.students-section .car-btn:hover { background: #f85a3e; }
.students-section .car-prev { left: 0; }
.students-section .car-next { right: 0; }

@media (max-width: 600px) {
    .students-section .car-btn { display: none; }
}

/* Responsive improvements for students section */
@media (max-width: 480px) {
    .students-section .carousel {
        height: 20rem;
    }

    .students-section .student-item .card-photo {
        height: 13rem;
        border-radius: 8px;
    }

    .students-section .student-item .card-title {
        margin-top: 0.7rem;
        font-size: 0.95rem;
    }

    .students-section .carousel .carousel-item.active.is-zoomed .card-photo {
        transform: scale(1.1);
    }

    .students-section .carousel .carousel-item.active:hover .card-title,
    .students-section .carousel .carousel-item.active:focus-within .card-title,
    .students-section .carousel .carousel-item.active.is-zoomed .card-title {
        margin-top: 3.2rem;
    }
}

/* --- ONGLETS DE PROMOTION --- */
.promo-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.promo-tab {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.promo-tab:hover { transform: translateY(-1px); }
.promo-tab.is-active {
    background: var(--yellow, #feca3c);
    border-color: var(--yellow, #feca3c);
    color: var(--ink, #242424);
}

.promo-panel { display: none; }
.promo-panel.is-active { display: block; animation: promoFade 0.4s ease; }

@keyframes promoFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Responsive improvements for promotion tabs */
@media (max-width: 480px) {
    .promo-tabs {
        gap: 6px;
        margin-bottom: 20px;
    }

    .promo-tab {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}