/*
 * Feuille de style pour la page d'accueil (Front Page).
 *
 * Contient les styles pour toutes les sections uniques de la page d'accueil,
 * du Héro au pied de page interactif.
 */

/* --- Section 1: Héro --- */
.film-strip-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: #1a1a1a;
}

.hero-content-section {
    height: 100vh;
    /* Effet verre dépoli avec dégradé */
    background: linear-gradient(
        135deg,
        rgba(19, 74, 125, 0.15),
        rgba(232, 78, 30, 0.15),
        rgba(52, 167, 223, 0.15)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-film-strip {
    display: flex;
    width: 300%;
    height: 100%;
}

.hero-film-strip img {
    width: auto;
    height: 120%;
    min-width: 15%;
    object-fit: cover;
    transform: skewX(-5deg);
    margin-left: -5%;
    position: relative;
    top: -10%;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    color: var(--text-light);
    padding: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 1.8rem;
    opacity: 0.7;
}

.hero-logo {
    max-height: 250px;
    margin-bottom: 2.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 650px;
    margin-top: 1.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-cta-container {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta-primary,
.hero-cta-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    text-decoration: none;
    transition:
        transform 0.3s ease,
        background-color 0.3s ease;
}

.hero-cta-primary {
    background-color: var(--himi-secondary);
    color: white;
}

.hero-cta-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--himi-secondary);
}

.hero-cta-primary:hover,
.hero-cta-secondary:hover {
    transform: translateY(-3px);
}

.hero-cta-primary:hover {
    background-color: var(--himi-tertiary);
}

.hero-cta-secondary:hover {
    background-color: var(--himi-secondary);
    border-color: var(--himi-secondary);
}

/* --- Section 2: Double Modèle --- */
.double-modele {
    min-height: 100vh;
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 5rem 2rem;
    overflow: hidden;
}

.double-modele-colonne {
    width: 45%;
    height: 60vh;
    padding: 4%;
    box-sizing: border-box;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.double-modele-colonne.gauche {
    text-align: right;
    padding-right: 8%;
    background-color: rgba(1, 95, 80, 0.25);
}

.double-modele-colonne.droite {
    text-align: left;
    padding-left: 8%;
    background-color: rgba(232, 78, 30, 0.25);
}

.double-modele-colonne h3 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    opacity: 0.8;
}

.double-modele-colonne .icon {
    color: var(--text-light);
    font-size: 4rem;
}

.double-modele-colonne h2 {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.double-modele-colonne p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    max-width: 500px;
    display: inline-block;
}

/* --- Section 3: Chiffres Clés --- */
.chiffres-cles {
    padding: 100px 5%;
    position: relative;
    z-index: 3;
    background-color: rgba(19, 74, 125, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chiffres-cles .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.chiffres-cles .section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--himi-tertiary);
}

.chiffres-cles .section-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--himi-tertiary);
    opacity: 0.8;
    max-width: 600px;
    margin: 1rem auto 0;
}

.chiffres-row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.chiffre-box {
    text-align: center;
    flex-basis: 15%;
    min-width: 140px;
    padding: 1rem;
}

.chiffre-box .icon {
    color: var(--himi-tertiary);
    margin-bottom: 15px;
}

.chiffre-box .chiffre,
.chiffre-box .chiffre-text {
    font-family: var(--font-headings);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--himi-tertiary);
    display: block;
}

.chiffre-box p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: var(--himi-tertiary);
    margin-top: 5px;
    line-height: 1.4;
    opacity: 0.9;
}

/* --- Section 4: Partenaires --- */
.partner-sections-wrapper {
    position: relative;
    height: 100vh;
}

.partner-section {
    display: flex;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.partner-col-left,
.partner-col-right {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
    box-sizing: border-box;
}

.partner-col-left {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.partner-col-left-top {
    height: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
    box-sizing: border-box;
}

.partner-col-left-bottom {
    height: 45%;
    padding: 2% 5% 5% 5%;
    box-sizing: border-box;
    overflow-y: auto;
}

.partner-description {
    color: white;
    margin-top: 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.5;
    font-weight: 400;
    text-align: justify;
}

.partner-logo-white {
    filter: brightness(0) invert(1);
    max-width: 50%;
    height: auto;
}

.partner-col-right {
    color: white;
    align-items: flex-start;
    justify-content: center;
}

.partner-content-wrapper {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.partner-col-right h1 {
    font-size: clamp(1.2rem, 2.2vh, 1.8rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.partner-col-right ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.partner-col-right li h2 {
    font-size: clamp(1rem, 2vh, 1.5rem);
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.partner-col-right li h2::before {
    content: "\25B6";
    margin-right: 15px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
}

.see-more-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
    text-align: center;
    transition: transform 0.2s ease-out;
    align-self: flex-start;
}

.see-more-btn:hover {
    transform: scale(1.05);
}

/* --- Section 5: Témoignages --- */
.temoignages {
    padding: 11vh 0 5vh 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.temoignages .section-title-container {
    flex-shrink: 0;
    margin-bottom: 2rem;
    color: white;
    padding: 0 5%; /* Give some space for the title */
}

.temoignages h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--text-light);
}

.temoignages p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    max-width: 700px;
    margin: 0.5rem auto 0;
}

.temoignages-wrapper {
    width: 100%;
    overflow: hidden; /* This is the carousel viewport */
    cursor: grab;
}

.temoignages-container {
    display: flex;
    gap: 30px;
    padding: 1rem 5%; /* Match title padding */
    flex-wrap: nowrap;
    width: max-content; /* Let GSAP handle the rest */
}

.temoignage-card {
    background-color: var(--partner-color-rgba, rgba(26, 31, 50, 0.75));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    /* Width will be set by JS */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    flex-shrink: 0; /* Prevent cards from shrinking */
}

.temoignage-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--himi-secondary);
}

.temoignage-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 5px;
}

.temoignage-card .poste {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.temoignage-card .specialite {
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    color: white;
    opacity: 0.8;
    margin-bottom: 15px;
}

.temoignage-card .citation {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-style: italic;
    color: white;
    line-height: 1.6;
    opacity: 0.9;
}

/* --- Section 6: Trajectoires --- */
.trajectoires {
    height: 100vh;
    padding: 11vh 3% 5vh 3%;
    display: flex;
    flex-direction: column;
    background-color: rgba(52, 167, 223, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}

.trajectoires .section-title-container {
    text-align: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.trajectoires h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.trajectoires-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 0;
    padding: 1rem;
    flex-grow: 1;
}

.trajectoire-column {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.traj-step,
.traj-arrow,
.traj-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: none;
}

.traj-arrow {
    color: var(--himi-secondary);
    font-size: 1.5rem;
    padding: 0;
}

.traj-title-wrapper {
    align-items: flex-end;
}

.trajectoire-title {
    color: var(--himi-secondary);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

/* --- Section 7: Processus d'Admission --- */
.admission-process {
    height: 100vh;
    padding: 80px 5%;
    text-align: center;
    background-color: rgba(19, 74, 125, 0.5);
    color: var(--text-light);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.admission-process .section-title-container {
    margin-bottom: 4rem;
}

.admission-process h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-light);
}

.admission-process p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 1rem auto 0;
}

.process-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    flex-grow: 1;
    padding-left: 100px;
}

.process-line {
    position: absolute;
    top: 0;
    left: 40px;
    transform: none;
    height: 100%;
    overflow: visible;
    z-index: 0;
}

.process-line line {
    stroke: var(--himi-secondary);
    stroke-width: 6;
}

.process-step {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: left;
}

.process-step:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .process-step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left !important;
    }
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--himi-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--text-light);
    z-index: 1;
    flex-shrink: 0;
    position: absolute;
    left: -100px;
}

.step-content {
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
    line-height: 1.5;
    text-align: center; /* Texte centré */
    background-color: transparent !important; /* Forcer le fond transparent */
    border: none !important; /* Forcer la suppression de la bordure */
    padding: 0; /* Pas d'espacement interne */
    margin: 0; /* Pas de marges */
}

.step-content h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--himi-secondary);
    margin-bottom: 5px;
    text-align: left;
}

.step-content p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

/* --- Responsive (Témoignages & Trajectoires) --- */
@media (min-width: 1024px) {
    .trajectoires-grid {
        flex-wrap: nowrap;
    }

    .temoignages-wrapper {
        cursor: default; /* No grab cursor on desktop */
    }
}
