:root {
    --gold: #d4af37;
    --bordeaux-light: #800000;
    --bordeaux-main: #4d0000;
    --bordeaux-dark: #260000;
    --black: #0a0a0a;
    --white: #ffffff;
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; 
    outline: none !important;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, .header-brand {
    font-family: 'Playfair Display', serif;
}

/* --- CURSEUR LUXE --- */
#custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

#cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* --- LOADER --- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bordeaux-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1);
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0; 
    width: 100%; 
    z-index: 1000;
    padding: 2.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 1.2rem 5%;
    background: rgba(38, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 8px;
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 3rem; 
}

nav ul li a {
    text-decoration: none;
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 3px;
    opacity: 0.7;
    transition: 0.3s;
}
nav ul li a:hover { 
    color: var(--gold); 
    opacity: 1; 
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--bordeaux-main) 0%, var(--black) 100%);
    position: relative;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 7.5rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
}

/* --- SECTIONS VELOURS --- */
.section-bordeaux {
    background: radial-gradient(circle at center, var(--bordeaux-main) 0%, var(--black) 100%);
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold);
    text-align: center;
    margin-bottom: 100px;
    font-weight: 400;
}

/* --- ADAPTATION DATATABLES & TABLEAU --- */

.container-table {
    max-width: 1080px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.5);
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}

/* Style général du tableau */
#tableFilms {
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 30px !important;
    background: transparent !important;
    color: var(--white);
    border: none !important;
}

#tableFilms thead th {
    font-family: 'Playfair Display', serif;
    color: var(--gold) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    padding: 20px 15px !important;
    border-bottom: 1px solid var(--gold) !important;
    background: transparent !important;
}

#tableFilms tbody tr {
    background-color: rgba(255, 255, 255, 0.03) !important;
    transition: var(--transition-smooth);
}

#tableFilms tbody tr:hover {
    background-color: rgba(128, 0, 0, 0.2) !important;
}

#tableFilms td {
    padding: 20px 15px !important;
    border: none !important;
    font-weight: 300;
    font-size: 0.95rem;
}

.title-cell {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem !important;
    color: var(--gold);
}

.genre-tag {
    font-size: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Customisation des contrôles DataTables (Recherche, Pagination) */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: var(--bordeaux-dark) !important;
    border: 1px solid var(--gold) !important;
    color: var(--white) !important;
    padding: 8px 12px !important;
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--gold) !important;
    padding-top: 30px !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--white) !important;
    border: 1px solid transparent !important;
    transition: 0.3s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--gold) !important;
    color: var(--black) !important;
    border: 1px solid var(--gold) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--bordeaux-light) !important;
    border: 1px solid var(--gold) !important;
}

/* --- GRID VERS FLEX --- */
.feature-grid {
    display: flex;
    flex-direction: row;
    gap: 8rem; 
    align-items: center;
    margin: 0 auto 150px auto;
    max-width: 1080px;
    padding: 0 5%;
}

.feature-grid.reverse {
    flex-direction: row-reverse;
}

/* MODIFICATION : SUPPRESSION DU CADRE VISIBLE */
.image-box {
    position: relative;
    background: transparent; /* Suppression du fond gris/noir */
    overflow: hidden;
    border: none; /* Suppression de la bordure dorée */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); /* Ombre plus naturelle sur l'image */
    display: flex;
    flex: 1.2; 
    max-height: 600px;
}

.image-placeholder {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-box img {
    width: 100%;
    height: auto; 
    max-height: 100%;
    object-fit: contain; 
    filter: grayscale(100%);
    transition: var(--transition-smooth);
    display: block;
}

.image-box:hover img {
    filter: grayscale(0%);
}

.text-box {
    flex: 0.8;
}

/* On enlève l'overlay qui créait un voile rectangulaire */
.image-box::after {
    display: none;
}

.image-placeholder i {
    position: absolute;
    z-index: 1;
    opacity: 0.1; /* Réduction de l'opacité de l'icône de secours */
    color: var(--gold);
    pointer-events: none;
}

.text-box span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 1.5rem;
}

.text-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.text-box p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
}

p strong {
    color: var(--gold);
    font-weight: 500;
}

/* --- FOOTER FLEX --- */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 10% 40px 10%;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 2.5rem;
    letter-spacing: 6px;
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
    max-width: 250px;
    line-height: 1.5;
}

.footer-title {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-sources, .footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a, .footer-sources a {
    text-decoration: none;
    color: var(--white);
    opacity: 0.7;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer-nav a:hover, 
.footer-sources a:hover {
    opacity: 1;
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* CONTACT */
#form {
  max-width: 700px;
  width: 90%;
  margin: -60px auto 100px; /* Chevauchement sur la section Hero */
  display: flex;
  flex-direction: column;
  gap: 25px;
  background: rgba(15, 15, 15, 0.95);
  padding: 50px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 10;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

#entete {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Meilleur que flex pour l'alignement */
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

#form label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    font-weight: 600;
}

#form label span {
    color: #ff4444;
    margin-left: 4px;
}

#form input[type="text"],
#form input[type="email"],
#form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px; /* Look plus cinématographique/brut */
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#form textarea {
    min-height: 150px;
    resize: none;
}

/* Effet au survol et focus */
#form input:hover, 
#form textarea:hover {
    border-color: rgba(212, 175, 55, 0.6);
}

#form input:focus, 
#form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

/* Bouton Envoyer */
.btn-primary {
    align-self: flex-start;
    padding: 15px 45px;
    background: transparent;
    color: white;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: 10px;
    width: 200px;
}

.btn-primary:hover {
    background: var(--gold);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border: 2px solid rgba(212, 175, 55, 0.6) ;
}

input[type="radio"].check {
  display: none;
}
input[type="radio"].check + label {
  position: relative;
  padding-left: 1.3rem;
}
input[type="radio"].check + label::before,
input[type="radio"].check + label::after {
  display: block;
  position: absolute;
  box-sizing: border-box;
  bottom: 6px;
  left: 0;
  content:'';
  width: 0.75rem;
  height: 0.75rem; 
  border-radius: 0.75rem;
}
input[type="radio"].check + label::before {
  background-color: white;
}
input[type="radio"].check:checked + label::after {
  background-color: var(--gold);
}

.radio-option {
    display: flex;
    flex-wrap: wrap; /* Permet de revenir à la ligne sur mobile si besoin */
    align-items: center;
    gap: 20px; /* Espace entre chaque groupe bouton+label */
}

.radio-option > label:first-of-type {
    width: 100%;
    display: block;
}

/* 1. Conteneur du formulaire */
#upload {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #141414; /* Gris très foncé Kult */
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 2. Stylisation du Label (qui servira de bouton de sélection) */
#upload label {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #b30000; /* Bordure rouge Kult */
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

#upload label:hover {
    background-color: #800000;
    box-shadow: 0 0 15px rgba(179, 0, 0, 0.4);
}

/* 3. Masquer l'input file moche mais le garder fonctionnel */
#upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* 4. Bouton de soumission (Submit) */
#upload input[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #800000;
    color: white;
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#upload input[type="submit"]:hover {
    background-color: #800000;
}

/* 5. Petit effet quand l'input file a le focus (accessibilité) */
#upload input[type="file"]:focus + label {
    outline: 2px solid #ffffff;
}


/* Conteneur centré max 1080px autour de la galerie */
.conteneur-galerie {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Galerie en flex pour gérer 3 colonnes */
.galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    margin-bottom: 50px;
}

.image-galerie {
    flex: 0 0 calc(33.333% - 13.33px);
    max-width: calc(33.333% - 13.33px);
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    filter: grayscale(100%);
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.image-galerie:hover {
    filter: grayscale(0);
}

/* Responsive */
@media (max-width: 768px) {
    .image-galerie {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .image-galerie {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Container principal avec max-width 1080px */
.partners-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 20px;
}

.partners-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Carte partenaire avec layout horizontal */
.partner-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--gold, #d4af37);
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    min-height: 400px;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

/* Zone photo à gauche */
.partner-photo {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.partner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(100%);
}

.partner-card:hover .partner-photo img {
    filter: grayscale(0%);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Overlay subtil sur la photo */
.partner-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Contenu de la carte à droite */
.partner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 40px 40px 0;
}

.partner-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.partner-header i {
    color: var(--gold, #d4af37);
    flex-shrink: 0;
}

.partner-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.partner-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
}

.btn-partner {
    display: inline-block;
    align-self: flex-start;
    padding: 14px 35px;
    border: 1px solid var(--gold, #d4af37);
    color: var(--gold, #d4af37);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-partner:hover {
    background: var(--gold, #d4af37);
    color: #000;
    transform: translateX(5px);
}

/* Séparateur décoratif */
.partner-divider {
    width: 60px;
    height: 2px;
    background: var(--gold, #d4af37);
    margin-bottom: 15px;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 968px) {
    .partner-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .partner-photo {
        min-height: 350px;
    }

    .partner-content {
        padding: 40px;
    }
}

@media (max-width: 640px) {
    .partners-wrapper {
        padding: 60px 15px;
    }

    .partners-container {
        gap: 50px;
    }

    .partner-header h3 {
        font-size: 1.6rem;
    }

    .partner-content {
        padding: 30px;
    }

    .partner-photo {
        min-height: 280px;
    }
}


@media (max-width: 968px) {
    .feature-grid, .feature-grid.reverse { 
        flex-direction: column; 
        text-align: center;
        margin-bottom: 100px;
    }
    .image-box, .text-box {
        width: 100%;
        max-width: 600px;
    }
    .text-box h3 { margin-top: 2rem; }
    * { cursor: auto; }
    #custom-cursor, #cursor-follower { display: none; }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}