/* --- En-tête de page --- */
.page-header {
    padding: 80px 0 40px 0;
    background-color: #f9f9f9;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}

/* --- Section Profil --- */
.profile-section {
    padding: 60px 0 100px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr; /* Colonne gauche fixe 350px, le reste à droite */
    gap: 60px;
    align-items: start; /* Permet à la colonne gauche d'être sticky */
}

/* --- Colonne Gauche (Carte d'identité) --- */
.profile-sidebar {
    position: sticky;
    top: 100px; /* Reste accroché en haut lors du défilement */
}

.profile-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Belle ombre douce */
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}

.profile-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%; /* Image parfaitement ronde */
    margin: 0 auto 20px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 4px solid #fff;
}

.profile-card h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.profile-title {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.profile-subtitle {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 25px;
    line-height: 1.4;
}

.profile-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.profile-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.profile-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
}

.profile-contact i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.profile-contact a {
    color: #555;
    transition: color 0.3s ease;
}

.profile-contact a:hover {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Colonne Droite (Le Parcours) --- */
.profile-content {
    padding-top: 20px;
}

.content-block {
    margin-bottom: 50px;
}

.content-block h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.content-block h3 i {
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.content-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* Liste à puces personnalisée pour les challenges */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.05rem;
    color: #555;
}

.custom-list li::before {
    content: '\f0da'; /* Code icône flèche FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
}

/* --- Réactivité Mobile --- */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr; /* On repasse sur une seule colonne */
        gap: 40px;
    }
    
    .profile-sidebar {
        position: relative;
        top: 0;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
}


/* --- Section Partenariats --- */
.partners-section {
    padding: 60px 0 100px 0;
    background-color: #f4f7fa; /* Fond légèrement gris-bleu pour détacher de la section d'au-dessus */
}

.section-main-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* La grille magique (auto-adaptable) */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Les cartes individuelles */
.partner-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column; /* Permet de pousser le bloc compétence tout en bas */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.1);
}

/* Le Logo */
.partner-logo {
    height: 70px; /* On fixe une hauteur max pour que tous les logos soient uniformes */
    width: auto;
    max-width: 100%;
    object-fit: contain; /* Garde les proportions du logo */
    margin-bottom: 25px;
    display: block;
}

/* La description */
.partner-desc {
    flex-grow: 1; /* Pousse le bloc de compétence tout en bas de la carte */
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.partner-desc p {
    margin-bottom: 10px;
}

.text-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Style des liens dans le texte */
.text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* L'encart "Compétences evOrg" en bas de carte */
.partner-competence {
    background-color: #f9fbff;
    padding: 15px 20px;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
}

.competence-label {
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

/* Style additionnel pour les 4 accès directs thématiques */
        .thematique-card {
            text-align: center;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
        }
        .thematique-card i {
            font-size: 3rem;
            color: var(--secondary-color);
            margin-bottom: 20px;
        }
        .thematique-card h3 {
            color: var(--primary-color);
            margin-bottom: 20px;
        }
        /* Fenêtre contextuelle vidéo (Modal) importée de l'accueil */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .modal-content {
            background: #fff;
            padding: 20px;
            border-radius: 10px;
            max-width: 800px;
            width: 90%;
            position: relative;
        }
        .close-modal {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 2rem;
            cursor: pointer;
            color: #333;
        }