/* Reset basique */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

/* Style du bandeau */
header {
    background: #2a2a2a;
    /* Fond blanc propre */
    color: #ffffff;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #eee;
    /* Fine ligne de séparation */
    z-index: 1000;
}

.page-title {
    font-size: 1rem;
    font-weight: bold;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    color: #d6d6d6;
    /* Gris plus doux pour les yeux */
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    /* Un bleu sobre ou la couleur de ton choix */
}

/* Section équipe */
.team-section {
    background-color: #fcfcfc;
    /* Gris presque blanc */
    padding: 6rem 2rem;
}

.team-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-intro {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #555;
}

/* Cartes */
.team-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.team-card {
    background: white;
    border: 1px solid #eee;
    padding: 2rem;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #f0f0f0;
    /* Un petit cadre autour des photos */
    padding: 5px;
}

.team-card h2 {
    margin-bottom: 1rem;
}

/*Trucs principaux*/
main {
    max-width: 1300px;
    /* Largeur idéale pour la lecture */
    margin: 40px auto;
    padding: 0 20px;
}

h2 {
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    color: #222222;
}

p {
    margin-bottom: 1.5rem;
    color: #444;
    line-height: 1.8;
    /* Plus d'espace entre les lignes */
}

.logo-img {
    height: 70px;
    width: 120px;
    display: block;
    margin: 5px 0;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 2000;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ececec;
    border-radius: 5px;
    transition: all 0.3s ease;
}


.modern-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 75vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: #007bff;
    background: -webkit-linear-gradient(45deg, #007bff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
    color: white;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.shape-blob {
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.7;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 950px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(109, 109, 109, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        max-height: 500px;
        padding: 1.5rem 0;
    }

    .nav-links li {
        padding: 10px 0;
    }

    .modern-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .shape-blob {
        width: 250px;
        height: 250px;
    }
}

.scroll-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-color: #ececec;
}

.hand-bg {
    position: absolute;
    top: 50%;
    width: 50%;
    height: 100vh;
    background-image: url('../img/logo.webp');
    background-size: 200% auto;
    background-repeat: no-repeat;
    background-position-y: center;
    opacity: 0.35;
}

.robot-hand {
    left: 0;
    background-position-x: 0%;
    transform: translate(-30%, -50%);
}

.human-hand {
    right: 0;
    background-position-x: 100%;
    transform: translate(30%, -50%);
}
/* --- Mise en page des sections éthiques (Correction) --- */

/* Conteneur principal pour forcer l'alignement horizontal */
.split-section {
    display: flex !important; /* Force le mode Flexbox */
    flex-direction: row !important; /* Force l'alignement en ligne (gauche/droite) */
    align-items: flex-start; /* Aligne le texte et l'image en haut */
    width: 100%;
    margin: 60px 0; /* Espace entre les sections */
    gap: 40px; /* Espace entre l'image et le texte */
}

/* --- Gestion de l'Image (1/4 de l'écran) --- */
.image-content {
    /* flex: 0 0 25vw; -> Ne pas grandir, ne pas rétrécir, base de 25% de la largeur de l'écran */
    flex: 0 0 25vw !important; 
    width: 25vw !important;
    max-width: 25vw; /* Sécurité maximale */
}

.image-content img {
    width: 100% !important; /* L'image remplit son conteneur de 25vw */
    height: auto; /* Conserve les proportions */
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* --- Gestion du Texte (Le reste de l'espace) --- */
.text-content {
    flex: 1 !important; /* Occupe tout l'espace restant après les 25vw de l'image */
    /* Pour éviter que le texte ne colle trop au bord droit si l'écran est très large */
    max-width: 800px; 
}
/* Remplace ton bloc .split-section.reverse par celui-ci */
main .split-section.reverse {
    display: flex !important;
    flex-direction: row-reverse !important;
}

/* Optionnel : Ajuster la marge du texte quand il est à gauche (Voix 2) */
.reverse .text-content {
    padding-right: 20px;
}

/* Optionnel : Ajuster la marge du texte quand il est à droite (Voix 1 et 3) */
.split-section:not(.reverse) .text-content {
    padding-left: 20px;
}

/* --- Responsive : Mobile (Empilement vertical) --- */
/* Sur petits écrans, on remet l'image en haut et le texte en dessous */
@media (max-width: 768px) {
    .split-section {
        flex-direction: column !important;
        gap: 20px;
    }
    /* Remplace ton bloc .image-content par celui-ci */
.image-content {
    flex: 0 0 25% !important; /* Fixe la largeur à exactement 1/4 du conteneur */
    max-width: 25%;
}
    
 /* Ajoute ceci ou vérifie que c'est bien présent */
.image-content img {
    width: 100% !important;
    height: auto;
    object-fit: contain; /* Évite de déformer les portraits */
    display: block;
}   
    .text-content {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Grille des sources */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Style de la carte individuelle */
.source-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.source-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Badges (Tags) */
.source-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.tag-article { background: #e3f2fd; color: #1976d2; }
.tag-study { background: #f3e5f5; color: #7b1fa2; }
.tag-pdf { background: #fff3e0; color: #ef6c00; }

/* Typographie dans la carte */
.source-card h2 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: #2a2a2a;
}

.source-comment {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    flex-grow: 1; /* Pousse le lien vers le bas */
}

.source-link {
    margin-top: 1.5rem;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.source-link:hover {
    text-decoration: underline;
}

/* --- Bouton de lecture audio (accessibilité) --- */
.tts-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tts-button:hover {
    transform: translateY(-2px);
    background: #0069d9;
    box-shadow: 0 8px 22px rgba(0, 123, 255, 0.55);
}

.tts-button:focus-visible {
    outline: 3px solid #ffd54a;
    outline-offset: 3px;
}

.tts-button.active {
    background: #dc3545;
    animation: tts-pulse 1.6s ease-in-out infinite;
}

.tts-button.active:hover {
    background: #c82333;
}

.tts-icon {
    font-size: 0.9rem;
    line-height: 1;
}

@keyframes tts-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(220, 53, 69, 0.5); }
    50%      { box-shadow: 0 6px 28px rgba(220, 53, 69, 0.95); }
}

@media (max-width: 600px) {
    .tts-button {
        padding: 0.75rem 1rem;
        bottom: 16px;
        right: 16px;
    }
    .tts-button .tts-label {
        display: none;
    }
    .tts-button .tts-icon {
        font-size: 1.15rem;
    }
}

