/* ==========================================
   1. RESET & BASES (Corps de page)
   ========================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.page {
  width: 100%;
  max-width: 100%;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    min-height: 80px;
    z-index: 1000;
}
.header-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 30px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #000;
}
#heart {
    height: 32px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
}
nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 18px;
    position: relative;
    padding-bottom: 6px;
}
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}
nav ul li a:hover::after {
    width: 100%;
}

/* ==========================================
   3. SECTION HERO (Accueil & Image Full Width)
   ========================================== */
.main-home {
    padding: 0;
    margin: 0;
    padding-top: 80px;
}
/* --- SECTION HERO (Mise à jour avec animation) --- */

.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 2vw 3vw;
    z-index: 10;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    transition: all 0.5s ease; /* Ajouté pour la fluidité globale */
    width: 80%;       /* Prend 80% de la largeur de l'écran */
    max-width: 1200px
}

.hero-text h1 {
    font-size: 6vw;
    font-weight: 900;
    margin-bottom: 1.5vw;
    letter-spacing: 0.3vw;
    display: inline-block;
    
    /* --- ICI : Fluidité pour le titre --- */
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-text p {
    font-size: 2vw;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    
    /* --- ICI : Fluidité pour le sous-titre --- */
    transition: all 0.4s ease-in-out;
    
}
/* --- L'EFFET DRAPEAU AU SURVOL --- */

/* Quand on survole la section HERO, le titre change */
.hero:hover .hero-text h1 {
    background: linear-gradient(
        to right, 
        #002395 33%, /* Bleu */
        #ffffff 33%, #ffffff 66%, /* Blanc */
        #ed2939 66%  /* Rouge */
    );
    -webkit-background-clip: text; /* Coupe le fond sur les lettres */
    background-clip: text;
    color: transparent; /* Rend le texte transparent pour voir le drapeau */
    transform: scale(1.4); /* Zoom léger */
    text-shadow: none; /* Nettoyage de l'ombre pour la netteté */

}

/* Le sous-titre change aussi au survol */
.hero:hover .hero-text p {
    color: #ffffff; /* Jaune Renault */
    letter-spacing: 3px; /* Écartement des lettres */
}




/* ==========================================
   NOUVEAU DESIGN ÉDITORIAL (INDEX)
   ========================================== */

.story-section {
    padding: 100px 5%;
    background: #ffffff;
}

/* Aligne le texte et les images */
.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Inverse l'ordre une fois sur deux */
.story-section.reverse .story-container {
    flex-direction: row-reverse;
}

.story-text {
    flex: 1;
}

.story-date {
    color: #EFDF00; /* Jaune Renault */
    font-weight: 900;
    font-size: 6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.story-title {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 30px;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Style des images imbriquées */
.story-gallery {
    flex: 1.2;
    position: relative;
    padding: 20px;
}

.img-main {
    width: 85%;
    border-radius: 8px;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.1);
    display: block;
}

.img-sub {
    position: absolute;
    width: 45%;
    bottom: -10px;
    right: 0;
    border: 8px solid #fff; /* Cadre blanc pour détacher l'image */
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Ajustement pour la section reverse */
.story-section.reverse .img-sub {
    right: auto;
    left: 0;
}

/* Section des logos de marques */
.brands-section {
    background: #ffffff;
    color: #000000;
    padding: 80px 20px;
    text-align: center;
}

.brands-title {
    font-size: 1.8rem;
    margin-bottom: 50px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.brand-item img {
    height: 210px;
    filter: grayscale(1) brightness(2); /* Logos en blanc pur */
    transition: all 0.4s ease;
}

.brand-item:hover img {
    filter: grayscale(0) brightness(1); /* Retour aux couleurs d'origine */
    transform: translateY(-10px);
}

.brand-item span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: bold;
    opacity: 0.7;
}

/* Mobile */
@media (max-width: 900px) {
    .story-container { flex-direction: column !important; text-align: center; }
    .img-main { width: 100%; }
    .img-sub { display: none; } /* On cache la petite image sur mobile pour plus de clarté */
}
/* ==========================================
   5. MÉDIAS (Vidéos & Spotify)
   ========================================== */
   .video-card iframe, .spotify-card iframe {
    width: 100%;
    border: none;
}
/* ==========================================
   5. MÉDIAS (Look Cinématographique)
   ========================================== */

/* Fond commun pour Vidéos et Musique */
.video-vault, .music-vault {
    background: #121212; 
    padding: 100px 5%;
    color: #fff;
}

.video-header, .music-header {
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Grille Vidéos : 3 colonnes propres */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-card {
    background: #000;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s ease;
}

.video-card:hover {
    transform: translateY(-10px);
}

.video-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Grille Musique : 2 colonnes pour Spotify */
.music-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.spotify-card {
    border-radius: 12px;
    overflow: hidden;
    background: #282828;
    transition: transform 0.3s ease;
}

.spotify-card:hover {
    transform: scale(1.02);
}
.musique {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px; 
    margin: 0 auto;
    padding: 40px;
    max-width: 1200px;
}
.spotifi iframe {
    width: 100%;
    height: 352px;
    border-radius: 12px;
}

/* ==========================================
   6. TITRES & TEXTES DE SECTION
   ========================================== */

.section-title { font-size: 36px; font-weight: 900; margin-bottom: 24px; }

.section-text2 {
    font-size: 24px;
    line-height: 1.6;
    margin-left: 105px;
    margin-right: 366px;
}

/* ==========================================
   7. DATATABLE (Tableaux de données)
   ========================================== */
table.dataTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-family: Arial, Helvetica, sans-serif;
}
table.dataTable thead th {
    background-color: #ffffff;
    color: #000000;
    font-weight: 800;
    font-size: 14px;
    border-bottom: 2px solid #000;
    padding: 14px 12px;
}
table.dataTable tbody tr {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}
table.dataTable tbody tr:hover { transform: translateY(-2px); }
table.dataTable tbody td { padding: 14px 12px; font-size: 14px; color: #1c1c1c; }

/* Styles spécifiques Pagination & Filtres DataTable */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    padding: 6px 12px;
    margin: 0 4px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #000000 !important;
    color: #ffffff !important;
}
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #000000;
    padding: 6px 10px;
    border-radius: 6px;
}

/* ==========================================
   8. GALERIE (Museum & 3 Colonnes)
   ========================================== */
.museum-container {
    padding-top: 100px;
    background-color: #ffffff;
}
.museum-header { text-align: center; margin-bottom: 50px; }
.hero-title { font-size: 80px; font-weight: 900; color: #000; letter-spacing: 5px; }

.category-section {
    max-width: 1400px;
    margin: 0 auto 80px auto;
    padding: 0 40px;
}
.category-title {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    border-left: 8px solid #EFDF00;
    padding-left: 20px;
    margin-bottom: 40px;
}
.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 20px; /* Espace régulier entre les images */
    align-items: start; /* Aligne le haut des cartes */
}
.model-card {
    background-color: #fcfcfc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}
.model-card h3 { margin-top: 20px; font-size: 18px; text-transform: uppercase; color: #333; }
.imgmuseum, .img-galerie {
    width: 100%;       /* Prend toute la largeur de sa colonne */
    height: 300px;     /* FORCE une hauteur identique pour tout le monde */
    object-fit: cover; /* Recadre l'image proprement sans l'écraser */
    object-position: center; /* Centre l'image dans son cadre */
    border-radius: 8px; /* Optionnel : pour des coins arrondis stylés */
    display: block;
}
.message-retour {
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    animation: fadeIn 0.5s ease;
    margin-top: 100px;
}

.message-retour.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-retour.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. On égalise toutes les images */
.imgmuseum {
    width: 100%;
    height: 250px;     /* Hauteur fixe pour que tout soit aligné */
    object-fit: cover; /* Pour ne pas déformer les voitures */
    border-radius: 12px;
    filter: brightness(0.9); /* Un peu plus sombre de base */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

/* 2. L'effet de zoom et lumière au survol */
.model-card:hover .imgmuseum {
    filter: brightness(1.1);
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* 3. Petit bonus pour le texte sous l'image */
.model-card h3 {
    margin-top: 15px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}


/* ==========================================
   9. FORMULAIRES & MESSAGES (Upload & Contact)
   ========================================== */
.sr-only{
    text-align: center;
    margin-top: 50px;
    font-size:80px ;
    font-weight: bold;
    color: #EFDF00;
}
textarea {
  resize: none;
}
.upload-section {
    padding: 20px 20px;
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    text-align: center;
    margin-bottom: 50px;
}
.museum-label { font-weight: bold; text-transform: uppercase; margin-bottom: 15px; display: block;}
.btn-upload, .btn-envoyer {
    background: #000; color: #fff; border: none; padding: 12px 25px;
    font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn-upload:hover, .btn-envoyer:hover { background: #EFDF00; color: #000; }

.formulaire {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 100px auto 60px auto; 
    padding: 30px;
    background: rgba(255, 255, 255, 0.9); 
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.champ { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; }

/* Messages de session */
.message-retour {
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    font-weight: bold;
    border-left: 6px solid #333;
}
.message-retour .success { color: #27ae60 !important; }
.message-retour .error { color: #d63031 !important; }

/* ==========================================
   10. FOOTER & CRÉDITS
   ========================================== */
footer {
    background-color: #1C1C1C;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}
footer a { color: #FFED00; text-decoration: none; }
.credits { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.credits-bloc { margin-bottom: 30px; }

/* ==========================================
   11. RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .model-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-text h1 { font-size: 32px; }
    .hero-text p { font-size: 16px; }
    .model-grid { grid-template-columns: 1fr; }
} 

/* ==========================================
   12. PARTENAIRES
   ========================================== */
/* Hero spécifique Partenaires */
.hero-partenaires {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Détails des membres */
.member-detail strong {
    display: block;
    font-size: 1.2rem;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.link-yellow {
    color: #EFDF00;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}

.link-yellow:hover {
    text-decoration: underline;
    letter-spacing: 1px;
}

/* Box documents */
.doc-box {
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
}

.btn-download {
    background: #000;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 2px;
    transition: 0.3s;
    display: inline-block;
    margin-bottom: 50px;
}

.btn-download:hover {
    background: #EFDF00;
    color: #000;
    
}
/* Étiquette de rôle */
.role-tag {
    display: inline-block;
    background: #000;
    color: #ffffff;
    padding: 5px 15px;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    border-radius: 5px;
}

/* Bouton partenaire spécifique */
.btn-partner {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    border: 2px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-partner:hover {
    background: #000;
    color: #EFDF00;
    transform: translateX(10px);
}

/* Ajustement des images partenaires pour qu'elles soient nettes */
.story-gallery .img-main {
    width: 100%; /* On prend toute la place pour cette version solo */
    max-width: 450px;
    filter: grayscale(0.2);
    transition: 0.5s;
}

.story-section:hover .img-main {
    filter: grayscale(0);
    transform: scale(1.02);
}