/* Couleurs*/
:root {
    --blue: #001cb7;
    --beige: #f6f1dc;
    --radius: 45px;
}

/* Polices */
@font-face {
    font-family: 'Raftwork';
    src: url('fonts/Raftwork-Rounded.woff2') format('woff2');
    font-weight: bold;
}


/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    background-color: var(--beige);
    color: var(--blue);
    font-family: "neue-haas-grotesk-display", sans-serif;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
}

/* NAVIGATION (HEADER) */

/* Barre de navigation */
.navbar.card {
    padding: 0; 
    height: 95px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 20px;
    z-index: 1000;
}

/* Contenu de la barre de navigation */
.navbar-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 45px;
}

/* Logo */
.logo-img { 
    height: 55px; 
    width: auto;
    display: block;
}

/* Liens de navigation*/
.nav-links a {
    text-decoration: none;
    color: var(--blue);
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600; 
    font-size: 1.15rem;
    margin-left: 45px;
    text-transform: lowercase;
    transition: opacity 0.3s ease;
}

/* Effet de survol sur les liens de navigation */
.nav-links a:hover { 
    opacity: 1; 
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-underline-offset: 8px;
    text-decoration-thickness: 1.5px;
}

/* Menu burger */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
}

/* Barres du menu burger */
.burger-menu span {
    width: 32px;
    height: 1.5px;
    background: var(--blue);
}

/* FOOTER */
.footer-card {
    padding: 60px 50px;
    margin-top: 20px;
}

/* Contenu du footer */
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 150px;
}

/* Colonnes du footer */
.footer-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Liens et textes du footer */
.link-medium {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600; 
    font-size: 1.2rem;
    color: var(--blue);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.link-roman, .copyright {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 400; 
    font-size: 0.95rem;
    color: var(--blue);
    text-decoration: none;
}

/* Effet de survol sur les liens du footer*/
.footer-col a:hover {
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

/* Réseaux sociaux */
.socials {
    display: flex;
    gap: 20px;
}

.social-circle {
    width: 60px;
    height: 60px;
    background-color: var(--blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.social-circle:hover { transform: scale(1.1); }

.social-circle img {
    width: 28px; 
    height: auto;
}

.social-circle img[src*="facebook"] {
    width: 20px;
}

/* Logo du footer */
.footer-logo {
    width: 80px;
    height: auto;
}

/* BOUTONS & CTA */
/* Styles génériques pour les boutons d'appel à l'action */
.btn-cta-white, .btn-cta-blue {
    text-decoration: none;
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600; 
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: 1.4rem;
    text-transform: lowercase;
}

.btn-cta-white { 
    color: white;
    align-self: flex-start;
}

.btn-cta-blue { color: var(--blue); }

/* Flèche d'accompagnement pour les boutons d'appel à l'action */
.arrow {
    width: 65px;
    height: auto;
    transition: transform 0.3s ease;
}

/* STRUCTURE DES PAGES */

/* Bento Cards (pour toutes les pages)*/
.card {
    border: 1.5px solid var(--blue);
    border-radius: var(--radius);
    margin-bottom: 20px;
    padding: 50px;
    overflow: hidden;
    position: relative;
    background-color: var(--beige);
}

/* Style des titres de pages (hors page d'accueil) */
.title-card {
    height: 95px;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.title-card h1 {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600; 
    font-size: 3.75rem;
    color: var(--blue);
    text-transform: lowercase;
}

h2 { 
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600; /* Medium */
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--blue);
    text-transform: lowercase;
}

.about-section h2, 
.previous-editions h2, 
.contact-section h2, 
.press-section h2 {
    font-size: 2.2rem; /* Taille de l'ancien h3 */
    margin-bottom: 15px;
}

h3 {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 500; 
    font-size: 1.8rem;
    font-style: italic;
    color: var(--blue);
    text-transform: lowercase;
}

.about-section {
    padding: 25px 50px 25px 50px;
}

.about-content p {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 300; /* Light */
    font-size: 1.4rem;
    line-height: 1.35;
    color: var(--blue);
    margin-bottom: 25px;
}


/* PAGE D'ACCUEIL */

/* Hero Section (en bleu) */
.hero-card {
    background-color: var(--blue);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 520px;
    padding: 30px 50px 50px 50px; 
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.hero-card h1 {
    font-family: 'Raftwork', sans-serif;
    font-size: clamp(5rem, 9vw, 6.5rem);
    line-height: 0.85;
    margin-bottom: 0;
    text-transform: lowercase;
    -webkit-text-stroke: 1.3px white;  
    letter-spacing: -0.03em;
    color: white; 
}

.hero-illustration {
    display: flex;
    align-items: flex-end;
}

.usine-svg {
    width: clamp(180px, 22vw, 300px); 
    height: auto;
    margin-bottom: -10px;
}

/*  Section mini-cards */
.mini-card { 
    height: 75px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 45px;
    margin-bottom: 20px;
}

.mini-card p {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 400;
    font-size: 2.8rem;
    color: var(--blue);
    text-transform: lowercase;
    margin: 0;
    letter-spacing: -0.02em;
}

.mini-card.blue-bg {
    background-color: var(--blue);
    border: none;
}

.mini-card.blue-bg p {
    color: white;
}

.mini-card-inner {
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.smile-icon {
    height: 35px;
    width: auto;
}

/* Section citation (accueil et édition 2026) */

h2 {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600;
    font-size: 3.75rem; 
    margin: 0;
    text-transform: lowercase;
}

.prog-intro .quote-box {
    align-self: center; 
    max-width: 100%;
}

.prog-intro .quote-box p {
    text-align: center; 
    font-style: italic;
}

/* Espace entre le titre "programmation" et la citation */
.spacer-cta {
    height: 65px; 
}

/* Section d'introduction et de programmation du festival */
.festival-intro, .prog-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
    padding: 30px 50px 50px 50px;
}

.festival-intro .quote-box {
    align-self: flex-end; 
}

.quote-box p {
    font-family: 'Raftwork', sans-serif;
    font-size: 3.5rem; 
    text-align: left;
    line-height: 1.1;
    color: var(--blue);
    font-style: italic;
}

.quote-box {
    max-width: 75%;
    margin: 40px 0;
}


/* PAGE : LE FESTIVAL */

/* Éditions précédentes */
.previous-editions {
    padding: 25px 50px 25px 50px;
}

.editions-list {
    margin-top: 20px;
    border-bottom: 1px solid var(--blue); /* Ligne de fin tout en bas */
}

.edition-item {
    border-top: 1px solid var(--blue); /* Ligne entre chaque édition */
    padding: 15px 0;
}

summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

summary::-webkit-details-marker { 
    display: none;
}

.arrow-toggle {
    width: 25px; 
    transition: transform 0.3s ease;
}

.edition-item[open] .arrow-toggle {
    transform: rotate(180deg);
}

.edition-content {
    padding: 20px 0;
}

.edition-content p {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 300; /* Light comme tes autres paragraphes */
    font-size: 1.4rem;
    line-height: 1.35;
    color: var(--blue);
    margin-bottom: 20px; /* Espace constant entre les blocs */
    font-style: normal; /* On enlève l'italique forcé s'il y en avait */
}

.info-list-archives li, 

.italic-programmation {
    font-weight: 300; 
    font-style: normal; 
    font-size: 1.4rem !important;
    margin-bottom: 20px;
}

.info-list-archives {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.info-list-archives li {
    font-weight: 500; 
    font-style: italic; 
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.icon-dot-mini {
    width: 10px;
    height: auto;
}

.link-press-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.link-press {
    text-decoration: none;
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600; 
    font-size: 1.4rem;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-transform: lowercase;
}

.icon-see {
    width: 38px;
    height: auto;
}

/* Images Éditions précédentes */
/* 2017 */ 
.img-landscape {
    width: 100%;
    aspect-ratio: 16 / 9; /* Format cinéma */
    object-fit: cover;
    border-radius: 25px;
    border: 1px solid var(--blue);
    margin: 10px 0 25px 0; /* Peu d'espace en haut (colle au récit), plus en bas (sépare de la liste) */
    display: block;
}

/* 2018 - 2019 */
.edition-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes */
    gap: 15px;
    margin: 10px 0 25px 0;
}

.edition-grid-4 img {
    width: 100%;
    aspect-ratio: 3 / 2; /* Format rectangulaire élégant */
    object-fit: cover;    /* Recadre proprement l'image dans le rectangle */
    border-radius: 25px;  /* Tes bords arrondis identiques aux cartes */
    border: 1.5px solid var(--blue);
    display: block;
}

/* 2021 */
.edition-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
    gap: 15px;
    margin: 10px 0 25px 0;
}

.edition-grid-2 img {
    width: 100%;
    aspect-ratio: 3 / 2; /* Même format rectangle que la grille de 4 */
    object-fit: cover;
    border-radius: 25px;
    border: 1.5px solid var(--blue);
    display: block;
}

/* 2022 */
.edition-bento-2022 {
    display: flex;
    gap: 15px;
    margin: 15px 0 25px 0;
    height: 450px; /* On fixe une hauteur globale pour l'harmonie sur Desktop */
}

.bento-main {
    flex: 1; /* Prend la moitié de la largeur */
}

.bento-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    border: 1.5px solid var(--blue);
}

.bento-side {
    flex: 1; /* Prend l'autre moitié */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bento-side img {
    width: 100%;
    height: calc(50% - 7.5px); /* Divise la hauteur en deux moins le gap */
    object-fit: cover;
    border-radius: 25px;
    border: 1.5px solid var(--blue);
}

/* PAGE ÉDITION 2026 */

.info-blue-card {
    background-color: var(--blue);
    padding: 25px 50px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 300; 
    font-style: italic;
    color: #FFFFFF;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.info-list li:last-child { margin-bottom: 0; }

.icon-dot {
    width: 12px;
    height: auto;
}

.bento-soon {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.soon-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon {
    font-family: 'Raftwork', sans-serif;
    font-size: 3.5rem; 
    font-style: italic;
    color: var(--blue);
    margin: 0;
    text-align: center;
}

/* PAGE : CONTACT */

.contact-section {
    padding: 25px 50px 25px 50px; 
}

.contact-block {
    margin-bottom: 30px;
}

.contact-block:last-child {
    margin-bottom: 0;
}

.contact-name {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.5rem; 
    color: var(--blue);
    margin-bottom: 5px;
}

.contact-info, .contact-info a {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 300; 
    font-size: 1.4rem;
    color: var(--blue);
    text-decoration: none;
    line-height: 1.3;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* PAGE : ESPACE PRESSE */

.press-section {
    padding: 25px 50px 25px 50px;
}

.press-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--blue); 
    padding: 15px 0;
}

.press-list .press-item:last-child {
    border-bottom: 1px solid var(--blue); 
}

.document-name {
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--blue);
}

.press-icons {
    display: flex;
    gap: 20px;
}

.icon-press {
    width: 28px; 
    height: auto;
    transition: opacity 0.3s ease;
}

.icon-press:hover {
    opacity: 0.6;
}


/* RESPONSIVE MOBILE */

@media (max-width: 768px) {

    /* Général */ 
    body { padding: 15px; }
    .card { padding: 35px 25px; --radius: 35px; }

    /* Menu Burger Mobile */
    .nav-links { display: none; } 
    .navbar.card { height: 75px; top: 10px; overflow: visible !important;} 
    .navbar-inner { padding: 0 25px; }

    .nav-links.active {
        display: flex !important;
        animation: fadeIn 0.3s ease forwards;
        flex-direction: column;
        position: absolute;
        top: 75px; 
        right: 0; 
        left: auto; 
        width: 200px; 
        background-color: var(--beige);
        border: 1.5px solid var(--blue);
        border-radius: var(--radius);
        padding: 25px;
        gap: 20px;
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0, 28, 183, 0.1);
    }

    .nav-links.active a {
        margin-left: 0;
        font-size: 1.3rem;
        text-align: right; 
        width: 100%;
    }

    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center; /* On centre les barres verticalement */
        gap: 7px;
        cursor: pointer;
        height: 32px; /* On fixe une hauteur pour stabiliser le pivot */
        width: 32px;
    }

    .burger-menu span {
        width: 32px;
        height: 2px; /* On passe à 2px pour éviter les bugs d'affichage des navigateurs */
        background: var(--blue);
        transition: transform 0.3s ease, opacity 0.3s ease;
        display: block;
    }

    .burger-menu.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.open span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0);
    }

    .burger-menu.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Footer Mobile */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-col {
        align-items: center;
        gap: 20px;
    }

    .col-left { order: 1; }
    .col-center { order: 2; }
    .col-right { order: 3; }
    .copyright { order: 4; margin-top: 20px; }

    .footer-card {
        padding: 50px 25px;
    }

    /* Page Accueil Mobile */
    /* Hero Mobile */
    .hero-card { flex-direction: column; align-items: flex-start; min-height: auto; padding: 20px 25px; display: flex !important; }
    .hero-content { display: contents; }
    .hero-card h1 { 
        order: 1;
        margin-bottom: 20px; /* Passage de 30 à 20 */
        font-size: 4rem; 
        line-height: 0.85;
        letter-spacing: -0.03em; /* AJOUTE CETTE LIGNE */
        -webkit-text-stroke: 1.3px white;
        color: white;
    }
    .hero-illustration { order: 2; align-self: flex-end; margin-bottom: 20px; }
    .usine-svg {
        width: 140px; /* Passage de 150 à 140 */
        height: auto;
        align-self: flex-end;
        margin-bottom: -10px;
    }
    .btn-cta-white { order: 3; margin-top: 10px; align-self: flex-start; }

    /* Sections Accueil Mobile */
    h2 { 
        font-size: 1.8rem !important; 
        margin-bottom: 20px !important;
        display: block;

        /* Mettre moins d'espace au-dessus du titre h2 sur la page d'accueil */
    }
    .festival-intro, .prog-intro { min-height: auto; padding: 20px 25px 20px 25px; }
    .festival-intro .quote-box { align-self: flex-start; } 
    .prog-intro .quote-box { align-self: center; } 
    .quote-box { max-width: 100%; margin: 0 0 40px 0; }
    .quote-box p { text-align: left; font-size: 1.6rem; line-height: 1.2; }
    .prog-intro .quote-box p { text-align: center; }
    .spacer-cta { display: none; }

    /* Mini-cards Accueil Mobile */
    .mini-card { height: 60px; padding: 0 25px;}
    .mini-card p { font-size: 1.8rem;}
    .smile-icon { height: 25px;}

    /* Ajustements pour les titres et sections sur mobile (toutes les pages sauf la page d'accueil) */
    .title-card { 
        height: auto !important; 
        min-height: 75px;        
        padding: 15px 25px !important; 
    }

    .title-card h1 { 
        font-size: 2.3rem !important; 
        line-height: 1.2;             
        margin-bottom: 0 !important; 
    }

    h3 { font-size: 1.3rem; } /* changer en h3 pour les titres d'éditions précédentes */

    /* espace au dessus des titres h3 qui doivent devenir h2*/ 
    .about-section { padding: 20px 25px 20px 25px; }

    /* Page Édition 2026 Mobile */
    .info-blue-card { padding: 15px 25px !important; }
    .info-list li {
        font-size: 1.15rem; 
        gap: 10px;
        margin-bottom: 8px;
    }
    .info-list li:last-child { margin-bottom: 0; }
    .arrow { width: 45px !important; }
    .btn-cta-white, .btn-cta-blue { font-size: 1.1rem; }
    .coming-soon {
        font-size: 2rem;
        padding: 20px 0;
    }
    .bento-soon { min-height: 150px;}

    /* Images éditions précédentes */ 
    /* 2017 */
    .img-landscape {
        border-radius: 20px;
        margin: 5px 0 20px 0;
    }
    /* 2018 - 2019*/
    .edition-grid-4 {
        gap: 10px;
    }
    .edition-grid-4 img {
        border-radius: 20px;
        aspect-ratio: 16 / 9; /* Sur mobile, des rectangles un peu plus larges rendent mieux */
    }

    /* 2021 */
    .edition-grid-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .edition-grid-2 img {
        border-radius: 20px;
    }

    /* 2022 */
    .edition-bento-2022 {
        flex-direction: column;
        height: auto;
    }
    .bento-side img {
        height: 200px;
    }
    .bento-main img {
        height: 350px; /* On garde le portrait un peu plus haut sur mobile */
    }

    /* Page festival Mobile */

    .about-content p { font-size: 1.1rem; line-height: 1.4; }
    .previous-editions { padding: 20px 25px 20px 25px; }
    .arrow-toggle { width: 20px; }
    .icon-dot-mini { width: 8px; }
    .icon-see { width: 28px; }

    .press-section { padding: 20px 25px 20px 25px; }
    .document-name { font-size: 1.1rem; }
    .icon-press { width: 22px; }
    .press-icons { gap: 15px; }
    
    .edition-content p,
    .info-list-archives li, 
    .italic-programmation,

    .link-press { font-size: 1.1rem !important;}

    /* Page Presse & Contact Mobile */
    .contact-section { padding: 20px 25px 20px 25px !important; }
    .contact-name { font-size: 1.3rem; }
    .contact-info, 
    .contact-info a { font-size: 1.1rem !important; }

}

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