:root {
    --main-blue: #5889c7;
	--main-team-card: #ffffff;
    --accent-orange: #ffffff;
    --text-dark: #2c3e50;
	--text-team : #2c3e50;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f7f9;
}

/* --- Header --- */
header {
    width: 100%;
    background: var(--main-blue);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

/* MODIFICATION 1 : Taille du logo réduite */
.brand img { 
    height: 60px; /* Réduit de 75px à 60px */
    width: auto;
    display: block;
    border-radius: 15px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* --- Intro Text --- */
.intro-text {
    text-align: center;
    /* MODIFICATION 2 : Espace augmenté en bas (60px au lieu de 40px) */
    padding: 50px 10% 60px;
    display: flex;
    justify-content: center;
}

.tagline {
    font-family: 'Quicksand', sans-serif;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--main-blue);
    margin: 0;
    max-width: 900px;
    line-height: 1.4;
}

/* --- NOUVEAU LAYOUT: Conteneur Principal --- */
.main-content-wrapper {
    padding: 0 8%; /* Padding bottom géré par les éléments internes */
}

/* --- Carte Verticale Tête de Liste (Modifiée) --- */
.candidate-vertical.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 30px; 
    height: auto;
    box-shadow: 0 15px 40px rgba(88, 137, 199, 0.3);
    /* MODIFICATION 3 : Marge inférieure augmentée pour mobile (60px au lieu de 40px) */
    margin-bottom: 60px; 
}

/* Image du candidat */
.candidate-img-v img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.candidate-info-v {
    margin-top: 30px;
}

.name-large { font-size: 2rem; margin-bottom: 10px; }
.job-large { font-size: 1.2rem; opacity: 1; font-weight: 600; line-height: 1.4; }

/* --- Grilles et Cartes Standards --- */
.main-content-wrapper { display: block; }
.grid-top-right, .team-grid-remaining {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}
.grid-top-right { margin-top: 0; } 

/* MODIFICATION 4 : Ajout d'espace au-dessus de la grille restante (pour PC et Mobile) */
.team-grid-remaining { padding: 60px 8% 80px; } 

.team-card {
    background: var(--main-team-card);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-team);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.img-wrapper img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.team-name { font-weight: 700; margin: 12px 0 5px; font-size: 1.05rem; }
.team-job { font-size: 0.85rem; opacity: 0.95; min-height: 2.8em; line-height: 1.3; }

/* --- MEDIA QUERY PC (Layout spécifique demandé) --- */
@media (min-width: 1200px) {
    .main-content-wrapper {
        display: grid;
        grid-template-columns: 380px 1fr;
        gap: 50px;
        align-items: center; 
    }

    .candidate-vertical.team-card {
       margin-bottom: 0; /* Annule la marge du mobile sur PC */
       height: 100%;
       justify-content: center;
    }

    .grid-top-right {
        display: grid;
        grid-template-columns: repeat(4, 1fr); 
        gap: 30px;
    }
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.lightbox-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 60vw;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    color: var(--text-dark);
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 3rem;
    cursor: pointer;
}

.lightbox-content img {
    width: 100%;
    max-height: 45vh;
    object-fit: contain;
    border-radius: 12px;
}

.member-bio { margin-top: 25px; text-align: center; line-height: 1.6; }

/* --- Footer --- */
.policy-footer {
    background: var(--main-blue);
    padding: 30px 0 15px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.social-links h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: var(--accent-orange);
}

.icons a {
    color: var(--accent-orange);
    font-size: 1.5rem;
    margin-right: 20px;
}

.btn-back-home {
    padding: 10px 25px;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
}

.btn-back-home:hover {
    background: var(--accent-orange);
    color: var(--main-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(232, 78, 15, 0.25);
    margin: 20px 8% 0;
    padding-top: 20px;
    text-align: center;
}

.footer-legal {
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-family: inherit;
}

.footer-legal a {
    color: var(--accent-orange);
    text-decoration: none;
}

.footer-legal .sep {
    margin: 0 15px;
    opacity: 0.5;
}

/* --- Mobile & Tablette (sous 1200px) --- */
@media (max-width: 1199px) {
    .sb-header { flex-direction: column; gap: 15px; }
    .grid-top-right { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 900px) {
    .footer-top { flex-direction: column; gap: 25px; text-align: center; }
    .footer-left { text-align: center; }
    .icons { justify-content: center; }
    .footer-legal .sep { display: none; }
    .footer-legal a, .footer-legal span { display: block; margin: 8px 0; }
    .lightbox-content { width: 92vw; padding: 20px; }
    .tagline { font-size: 1.4rem; }
}