/* =========================================
   STYLE GLOBAL & PAGE D'ACCUEIL
   ========================================= */

/* --- CONFIGURATION DE BASE --- */
body {
    background-color: #121212; /* Noir profond */
    color: white;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Empêche le scroll horizontal indésirable */
}

/* --- HEADER --- */
header {
    padding: 40px;
}

.top-right {
    text-align: right;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* --- SECTION HERO (Le titre géant + Image) --- */
.hero {
    position: relative;
    margin-top: 20px;
    padding-bottom: 100px;
}

.creative-label {
    font-family: 'Allura', cursive;
    color: white;
    font-size: 5vw;
    text-transform: none;
    margin: 0;
    margin-bottom: 1vw;
    padding-left: 3vw;
    z-index: 1;
    position: relative;
    font-weight: 400; /* Ou 'normal'. Cela retire l'effet gras automatique du h2 */
    
    /* Si tu la trouves encore trop "blanche/épaisse", tu peux baisser légèrement l'opacité */
    /* opacity: 0.9; */
}

.title-container {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    text-align: left;
}

.bg-title {
    font-family: 'Anton', sans-serif;
    font-size: 26vw; /* Taille immense responsive */
    margin: 0;
    line-height: 0.85;
    letter-spacing: -0.5vw;
    color: #e6e6e6;
    z-index: 1;
    text-transform: uppercase;
}

.hero-image {
    position: absolute;
    height: 250%; /* L'image est plus grande que le texte */
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrage parfait */
    
    z-index: 50; /* IMPORTANT : Passe devant le titre et déborde sur la section suivante */
    
    filter: grayscale(100%) drop-shadow(-15px 15px 15px rgba(0, 0, 0, 0.7));
    pointer-events: none; /* Permet de cliquer sur le texte derrière si besoin */
}

.description-container {
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
    padding: 0 5vw;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #ccc;
}

.desc-left, .desc-right {
    width: 30%;
    line-height: 1.5;
}

/* --- SECTION ABOUT ME --- */
.about-section {
    background-color: #121212;
    color: white;
    /* PADDING IMPORTANT : 
       300px en haut pour laisser la place aux pieds de l'image Hero 
       0px en bas pour coller à la section suivante */
    padding: 70px 5vw 0 5vw; 
    position: relative;
}

.about-container {
    display: flex;
    flex-wrap: wrap; /* Pour le mobile */
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 50px;
}

/* Colonne Gauche (Texte) */
.about-text-content {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.about-title-wrapper {
    position: relative;
    margin-bottom: 50px;
}

.big-title {
    font-family: 'Anton', sans-serif;
    font-size: 8vw;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.signature {
    font-family: 'Allura', cursive;
    font-size: 4rem;
    color: #aeaeae;
    position: absolute;
    bottom: -30px;
    right: 20%;
    transform: rotate(-5deg);
}

.text-columns {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.text-columns h3 {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.text-columns p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cccccc;
}

.separator-line {
    width: 100px;
    height: 3px;
    background-color: white;
    margin-bottom: 30px;
}

.bottom-desc {
    font-size: 1rem;
    line-height: 1.6;
}

/* Colonne Droite (Images) */
.about-images {
    flex: 1;
    position: relative;
    height: 600px;
}

.img-tall, .img-small {
    position: absolute;
    object-fit: cover;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.img-tall {
    top: 0;
    right: 0;
    width: 55%;
    height: 80%;
    z-index: 1;
}

.img-small {
    bottom: 0;
    left: 10%;
    width: 45%;
    height: 70%;
    z-index: 2;
    border: 5px solid #121212;
}

/* Effet Hover sur les images About */
.img-tall:hover, .img-small:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* --- SECTION MES PROJETS (La grille de l'accueil) --- */
.projects-section {
    padding: 50px 5vw;
}

.projects-title {
    font-family: 'Anton', sans-serif;
    font-size: 6vw;
    color: white;
    margin-bottom: 50px;
    border-left: 5px solid white;
    padding-left: 20px;
    line-height: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    display: block;
    height: 300px;
    overflow: hidden;
    text-decoration: none;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(100%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-overlay h3 {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    color: white;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-overlay p {
    color: #ccc;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

/* Hover sur les cartes projets */
.project-card:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover h3, .project-card:hover p {
    transform: translateY(0);
}

/* --- CORRECTION VIDÉO ACCUEIL (style.css) --- */

/* 1. On sécurise le conteneur (la carte) */
.project-card {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    /* Assure-toi que la carte a bien une hauteur si elle n'en a pas déjà */
    /* min-height: 350px; (Décommente si ta carte s'écrase) */
}

/* --- VIGNETTE VIDÉO : POSITION + STYLE GRIS --- */

.card-video {
    /* 1. Positionnement et Centrage (On garde ce qui marche) */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0 !important;

    /* 2. C'EST ICI LE CHANGEMENT : L'effet Noir et Blanc */
    filter: grayscale(100%); /* Totalement gris par défaut */
    
    /* 3. L'Animation */
    /* On dit au navigateur d'animer le Zoom (transform) ET la couleur (filter) */
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* --- AU SURVOL (HOVER) --- */
/* Quand on passe la souris sur la carte, on change la vidéo */
.project-card:hover .card-video {
    filter: grayscale(0%); /* La couleur revient (0% de gris) */
    transform: scale(1.1); /* Le zoom léger */
}
/* 3. On s'assure que le texte reste devant */
.project-overlay {
    position: absolute;
    z-index: 2; /* Devant la vidéo */
}

/* =========================================
   SECTION RECOMMANDATIONS
   ========================================= */

.recommendations-section {
    padding: 0 5vw 100px 5vw; /* Même espacement que les autres sections */
}

.rec-title {
    /* On reprend le style de tes titres (Anton) */
    font-family: 'Anton', sans-serif;
    font-size: 3rem; /* Ajustable selon tes goûts */
    color: white;
    text-transform: uppercase;
    text-align: center; /* Centré comme sur ton image modèle */
    margin-bottom: 60px;
    letter-spacing: 2px;
}

/* LA GRILLE (3 Colonnes) */
.rec-grid {
    display: grid;
    /* Crée 3 colonnes égales, qui passent en 1 seule sur mobile automatiquement */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Espace entre les cartes */
}

/* LA CARTE (Le cadre) */
.rec-card {
    /* Fond transparent ou noir léger */
    background: rgba(255, 255, 255, 0.02); 
    
    /* La bordure fine (Style de ton image référence) */
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pousse l'auteur vers le bas */
    gap: 20px;
    
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Effet au survol : La carte remonte et devient plus blanche */
.rec-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.05);
}

/* LES ÉTOILES */
.stars {
    color: #fff; /* Blanc ou tu peux mettre ton vert fluo #ccff00 */
    font-size: 1.5rem;
    letter-spacing: 5px;
}

/* LE TEXTE DE L'AVIS */
.rec-preview {
    /* 1. TYPOGRAPHIE (Même famille que le popup) */
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem; /* Un peu plus petit que le popup pour rentrer dans la carte */
    line-height: 1.6;
    color: #ddd; /* Gris clair élégant */
    font-style: italic; /* Style "Citation" */
    
    /* 2. LA BARRE DÉCO À GAUCHE (Signature visuelle du popup) */
    border-left: 2px solid rgba(255, 255, 255, 0.5); /* Un peu plus fin que le popup */
    padding-left: 15px; /* Espace entre la barre et le texte */
    margin: 10px 0;
    
    /* Transition pour l'effet au survol */
    transition: all 0.3s ease;
}

/* EFFET BONUS : Quand on survole la carte, la barre devient blanche brillante */
.rec-card:hover .rec-preview {
    border-left-color: #fff;
    color: #fff;
}

/* L'AUTEUR */
.rec-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Petite ligne de séparation */
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    color: white;
    letter-spacing: 1px;
}

.author-role {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

/* --- L'ICÔNE "VOIR PLUS" (+) --- */

/* 1. On s'assure que la carte est le repère pour le positionnement */
.rec-card {
    position: relative; /* Indispensable */
    cursor: pointer; /* Le curseur devient une main */
}

/* 2. Le style du "+" */
.more-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    
    font-family: 'Courier New', monospace; /* Police technique */
    font-size: 1.5rem;
    line-height: 1;
    font-weight: bold;
    color: #444; /* Très sombre/discret par défaut */
    
    transition: all 0.4s ease; /* Animation fluide */
}

/* 3. L'Animation au survol de la CARTE */
.rec-card:hover .more-icon {
    color: #fff; /* Devient blanc brillant (ou met ton vert fluo #ccff00) */
    transform: rotate(90deg); /* Pivote d'un quart de tour */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Petite lueur */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .rec-title { font-size: 2rem; }
    .rec-grid { grid-template-columns: 1fr; } /* Une seule colonne sur mobile */
}

/* =========================================
   SECTION CV (TÉLÉCHARGEMENT)
   ========================================= */

.cv-section {
    padding: 100px 5vw;
    display: flex;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02)); /* Léger dégradé subtil */
}

.cv-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.cv-title {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    color: white;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 2px;
}

.cv-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    color: #888;
    margin-top: -10px; /* Remonte un peu sous le titre */
    margin-bottom: 20px;
}

/* LE GROS BOUTON */
.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 20px; /* Espace entre texte et flèche */
    
    padding: 20px 50px;
    border: 2px solid white; /* Bordure blanche épaisse */
    background: transparent;
    
    color: white;
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.download-icon {
    font-size: 1.8rem;
    transition: transform 0.4s ease;
}

/* --- ANIMATION AU SURVOL --- */
.cv-button:hover {
    background: white; /* Le fond devient blanc */
    color: black;      /* Le texte devient noir */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3); /* Lueur blanche */
    transform: translateY(-5px); /* Le bouton monte un peu */
}

/* La petite flèche descend quand on survole */
.cv-button:hover .download-icon {
    transform: translateY(5px); 
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cv-title { font-size: 2rem; }
    .cv-button { 
        padding: 15px 30px; 
        font-size: 1.2rem;
        width: 100%; /* Bouton pleine largeur sur mobile */
        justify-content: center;
    }
}

/* --- FOOTER / RÉSEAUX SOCIAUX --- */
.social-section {
    padding: 100px 5vw 50px 5vw;
    position: relative;
    z-index: 60;
}

.connect-label {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
    /* Style Outline (Contour uniquement) */
    color: transparent;
    -webkit-text-stroke: 1px white;
    letter-spacing: 2px;
}

.links-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 100px;
}

.social-link {
    font-family: 'Anton', sans-serif;
    font-size: 6vw;
    color: white;
    text-decoration: none;
    line-height: 1;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: transparent;
    -webkit-text-stroke: 2px white;
    transform: scale(1.05);
    letter-spacing: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    /* Ajustements pour petits écrans */
    .bg-title { font-size: 20vw; }
    .hero-image { height: 100%; top: 60%; }
    
    .about-container { flex-direction: column; }
    .big-title { font-size: 15vw; }
    .about-images { height: 400px; margin-top: 50px; }
    .signature { font-size: 2.5rem; right: 0; }
    
    .projects-grid { grid-template-columns: 1fr; }
    .social-link { font-size: 15vw; }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* =========================================
   STYLE MODALE (POPUP AVIS)
   ========================================= */

/* 1. L'Overlay (Fond sombre derrière la popup) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Très sombre pour focus */
    backdrop-filter: blur(5px); /* Flou du fond */
    z-index: 9999; /* Tout devant */
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Caché par défaut */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Classe active pour afficher la modale via JS */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 2. La Boîte de contenu */
.modal-box {
    width: 90%;
    max-width: 600px;
    
    /* 1. ON FIXE LA HAUTEUR */
    height: 500px; /* La fenêtre fera toujours cette taille */
    max-height: 80vh; /* Sécurité pour les petits écrans mobiles */
    
    /* 2. ON ORGANISE L'INTÉRIEUR EN COLONNES */
    display: flex;
    flex-direction: column; /* Les éléments s'empilent */
    
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0); /* Remonte à sa place */
}

/* 3. Typographie Modale */
.modal-text-content {
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    font-style: italic;
    
    /* Design de la barre latérale */
    border-left: 3px solid white;
    padding-left: 20px;
    margin: 20px 0; /* Un peu d'espace en haut et en bas */
    
    /* 3. LE SYSTÈME DE SCROLL MAGIQUE */
    flex: 1; /* Prend tout l'espace libre disponible dans la boîte */
    overflow-y: auto; /* Active le scroll vertical SI le texte est trop long */
    
    /* Petit ajustement pour que le texte ne colle pas à la barre de défilement à droite */
    padding-right: 15px; 
}

/* 4. Bouton Fermer (Croix) */
.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
}
.close-btn:hover { color: white; }

/* 5. Petit lien "Lire la suite" sur les cartes */
.read-more {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
    font-weight: bold;
    cursor: pointer;
}
.rec-card { cursor: pointer; } /* Montre que la carte est cliquable */
.rec-card:hover .read-more { color: white; }

/* --- STYLE DE LA BARRE DE DÉFILEMENT (Webkit: Chrome, Safari, Edge) --- */

/* La "piste" de la barre */
.modal-text-content::-webkit-scrollbar {
    width: 8px; /* Très fine */
}

.modal-text-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); /* Fond sombre */
    border-radius: 4px;
}

/* Le "pouce" (la partie qui bouge) */
.modal-text-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3); /* Gris clair */
    border-radius: 4px;
}

.modal-text-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6); /* Plus clair au survol */
}

/* =========================================
   ANIMATION D'APPARITION (SCROLL REVEAL)
   ========================================= */

/* =========================================
   ANIMATION D'APPARITION (CORRIGÉ)
   ========================================= */

/* 1. État initial : Juste invisible et un peu bas */
.reveal {
    opacity: 0;
    transform: translateY(30px); /* 30px suffit, 50px c'est parfois trop */
    
    /* IMPORTANT : On cible uniquement opacity et transform, pas "all" */
    /* Cela évite les conflits avec tes effets de survol sur les cartes */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 2. État final : Visible */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Sécurité : Si le Javascript plante ou est lent, on affiche tout quand même */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Optionnel : Ajoute un petit délai pour les éléments qui sont côte à côte */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
