/*
  General Setup & Variables
*/
:root {
  --color-bg: rgb(18, 18, 18);
  --color-bg-rgb: 18, 18, 18;  
  --color-text: rgb(250, 249, 246);
  --color-text-rgb: 250, 249, 246;
  --color-link: rgb(195, 173, 127);
  --color-linkhover: rgb(217, 197, 152);
  --color-link-rgb: 194, 172, 126;
  --color-paypal: rgb(0, 69, 124);
}
/*
 /*
  Effet cinématique (v3 - Plus visible)
*/

/* 1. Lissage des polices (Anti-aliasing) */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Lueur (plus forte) pour le texte standard */
/* J'ai retiré .film-by-credit d'ici pour corriger le conflit */
p, li, span {
    text-shadow: 0 0 12px rgba(var(--color-text-rgb), 0.5);
    opacity: 0.95;
}

/* 3. Lueur (plus forte) pour les liens (<a>) */
a {
    text-shadow: 0 0 12px rgba(var(--color-link-rgb), 0.5);
    opacity: 0.95;
}

/* 4. Lueur (plus forte) pour les H5 */
.page-content h5 {
    text-shadow: 0 0 10px rgba(var(--color-bg-rgb), 0.4);
    opacity: 0.95;
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
}

body {
    background-image: url('assets/img/BG.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: var(--color-bg); 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* For pages that don't scroll (like homepage) */
body:not(.page-is-scrollable) {
    height: 100vh;
    overflow: hidden;
}

/* For pages that need scrolling */
body.page-is-scrollable {
    height: auto;
    overflow-y: auto;
}

hr {
    opacity: 0;
}

/*
  Main Content Container
*/
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    flex: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.page-is-scrollable .content-container {
    flex-grow: 1;
}

/*
  Logo Styling
*/
.logo {
    width: 60%;
    max-width: 350px;
    height: auto;
    margin-bottom: 2rem;
}

/*
  "Film By" Credit Line
*/
.film-by-credit {
    color: var(--color-text);
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    margin-top: 0;
    margin-bottom: 2rem;
}
/* Amélioration de la lisibilité des listes de financement */
.page-content ul li {
    /* Ajoute de l'espace sous chaque point de la liste pour l'aérer */
    margin-bottom: 0.7rem; 
    
    /* Assure que la hauteur de ligne est similaire à celle des paragraphes */
    line-height: 1.6; 
}

/* Optionnel: Retire la marge sous le dernier élément pour qu'il ne soit pas trop éloigné de ce qui suit */
.page-content ul li:last-child {
    margin-bottom: 0;
}
/*
  Main Text Block
*/
.text-content {
    color: var(--color-text);
    text-align: center;
    max-width: 600px;
}
.text-content .text-contentfirstdays {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 1rem 0;
}
.text-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.text-content a {
    color: var(--color-link);
    text-decoration: none;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    transition: background-color 0.3s, color 0.3s;
}

.text-content a:hover { 
  background-color: var(--color-link); 
  color: var(--color-bg);
}

/*
  PAGES Text Block
*/
.page-content {
    color: var(--color-text);
    text-align: left;
    max-width: 600px;
    margin-top: auto;
    margin-bottom: auto;
}

.page-content h5 {
    background-color: var(--color-link);  
    color: var(--color-bg);
    text-decoration: none;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    text-align: left;
}

.page-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.page-content a {
    color: var(--color-link);
    text-decoration: none;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    transition: background-color 0.3s, color 0.3s;
}

.page-content a:hover {
    background-color: var(--color-link); 
    color: var(--color-bg);
}

.funding-links {
    text-align: center;
    margin: 20px 0;
}

.funding-links a {
    display: inline-block;
    width: 30%;
    padding: 12px 30px;
    color: var(--color-bg);
    background-color: var(--color-link);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
    transition: background-color 0.3s ease;
}

.funding-links a:hover {
    color: var(--color-text);
    background-color: var(--color-paypal);
}

/*
  Footer Styling
*/
.site-footer {
    width: 100%;
    padding: 1rem 1rem 2rem 1rem;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    flex-shrink: 0; 
}

.site-footer a {
    color: var(--color-link);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.site-footer a:hover {
    background-color: var(--color-link);  
    color: var(--color-bg);
}

.site-footer span {
    color: var(--color-link);
    margin: 0 0.5rem;
}

/*
  Header & Navigation Styling
*/
.top-nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease;
}

.top-nav-container.scrolled {
    background-color: rgba(var(--color-bg-rgb), 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/*
  Responsive Iframe Styling
*/
.iframe-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 2rem auto;
    overflow: hidden;
    padding-top: 35%;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/*
  Poster & Lightbox Styling
*/
.poster-container {
    margin-top: 3rem;
    max-width: 400px;
    width: 80%;
    cursor: zoom-in;
}

.poster-container img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(var(--color-link-rgb), 0.2);
    transition: transform 0.3s ease;
}

.poster-container img:hover {
    transform: scale(1.03);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--color-bg-rgb), 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.lightbox:target {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: var(--color-text);
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--color-link);
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-links a:hover,
.dropdown:hover > a {
    color: var(--color-link);
    background-color: transparent;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(var(--color-bg-rgb), 0.5);
    border: 0px solid rgba(var(--color-link-rgb), 0.2);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    padding: 0.75rem 1rem;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: 0.4s;
}

/*
  Contact Form Styling
*/
.contact-form {
    width: 100%;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(var(--color-bg-rgb), 0.0);
    border: 1px solid rgba(var(--color-link-rgb), 0.3);
    color: var(--color-text);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    box-sizing: border-box;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: rgba(var(--color-text-rgb), 0.6);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-link);
}

.cf-turnstile {
    margin: 1.5rem auto;
}

.submit-button {
    display: inline-block;
    width: 100%;
    padding: 12px 30px;
    color: var(--color-bg);
    background-color: var(--color-link);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: "Poppins", sans-serif;
    transition: background-color 0.3s ease;
}

.submit-button:hover,
.submit-button:focus {
    color: var(--color-text);
    background-color: var(--color-linkhover);
}

.submit-button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

#form-status {
    color: var(--color-text);
    font-size: 1rem;
    min-height: 1.5em;
}

/* ---------------------------------- */
/* -- Slideshow Container Styles -- */
/* ---------------------------------- */

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    background: #000;
    border: 1px solid #444;
}

.slide {
    display: none; /* Caché par défaut */
}

/* --- AJOUTÉ --- */
/* Affiche seulement le slide actif */
.slide.slide-active {
    display: block;
}
/* --- FIN AJOUT --- */


.slide img {
    width: 100%;
    vertical-align: middle;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.page-counter {
    color: #f2f2f2;
    font-size: 14px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.fade {
    animation-name: fade;
    animation-duration: 0.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---------------------------------- */
/* -- FULLSCREEN STYLES (v3 - CORRIGÉ) -- */
/* ---------------------------------- */

.fullscreen-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- MODIFIÉ --- */
/* Conteneur en plein écran */
/* C'est maintenant le conteneur principal qui centre le contenu */
.slideshow-container:-webkit-full-screen,
.slideshow-container:-moz-full-screen,
.slideshow-container:-ms-fullscreen,
.slideshow-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    /* AJOUTÉ : Le conteneur devient flex pour centrer le slide */
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Cache TOUS les slides par défaut en plein écran */
.slideshow-container:-webkit-full-screen .slide,
.slideshow-container:-moz-full-screen .slide,
.slideshow-container:-ms-fullscreen .slide,
.slideshow-container:fullscreen .slide {
    display: none !important; 
}

/* --- MODIFIÉ --- */
/* Affiche SEULEMENT le slide actif en plein écran */
/* Il n'a plus besoin d'être flex, il est centré par son parent */
.slideshow-container:-webkit-full-screen .slide.slide-active,
.slideshow-container:-moz-full-screen .slide.slide-active,
.slideshow-container:-ms-fullscreen .slide.slide-active,
.slideshow-container:fullscreen .slide.slide-active {
    width: auto !important;  /* La largeur s'adapte à l'image */
    height: auto !important; /* La hauteur s'adapte à l'image */
    display: block !important; /* On le repasse en block */
    /* align-items: center; <-- SUPPRIMÉ */
    /* justify-content: center; <-- SUPPRIMÉ */
}


/* Style de l'image en plein écran (Pas de changement) */
.slideshow-container:-webkit-full-screen .slide img,
.slideshow-container:-moz-full-screen .slide img,
.slideshow-container:-ms-fullscreen .slide img,
.slideshow-container:fullscreen .slide img {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}


/* Boutons en plein écran (Pas de changement) */
.slideshow-container:-webkit-full-screen .prev,
.slideshow-container:-webkit-full-screen .next,
.slideshow-container:-moz-full-screen .prev,
.slideshow-container:-moz-full-screen .next,
.slideshow-container:-ms-fullscreen .prev,
.slideshow-container:-ms-fullscreen .next,
.slideshow-container:fullscreen .prev,
.slideshow-container:fullscreen .next {
    padding: 20px;
    font-size: 3em;
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    z-index: 1000 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    pointer-events: auto !important;
}

/* Compteur en plein écran (Pas de changement) */
.slideshow-container:-webkit-full-screen .page-counter,
.slideshow-container:-moz-full-screen .page-counter,
.slideshow-container:-ms-fullscreen .page-counter,
.slideshow-container:fullscreen .page-counter {
    font-size: 1.5em;
    padding: 15px 20px;
    z-index: 1000;
}

/* Cacher le bouton fullscreen (Pas de changement) */
.slideshow-container:-webkit-full-screen .fullscreen-btn,
.slideshow-container:-moz-full-screen .fullscreen-btn,
.slideshow-container:-ms-fullscreen .fullscreen-btn,
.slideshow-container:fullscreen .fullscreen-btn {
    display: none;
}

/* ---------------------------------- */
/* -- Responsive Design - Mobile -- */
/* ---------------------------------- */

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
    }
    
    .main-nav.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        right: 2rem;
    }
    
    .top-nav-container {
        justify-content: flex-start;
        padding-left: 2rem;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}
/* NOTE: Il y avait une accolade en trop ici, elle a été supprimée. */