/* INTER - Normal */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
    ascent-override: 90%;
    descent-override: 20%;
}

/* INTER - Gras */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: block;
    ascent-override: 90%;
    descent-override: 20%;
}

/* SATISFY */
@font-face {
    font-family: 'Satisfy';
    src: url('../fonts/satisfy.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: optional;
    ascent-override: 105%;
    descent-override: 30%;
}
:root { 
    --bg: #050510; 
    --panel: #121225; 
    --gold: #fcc201; 
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    padding: 0; 
    background-color: var(--bg);
    color: white;
    font-family: 'Inter', 'Satisfy', sans-serif; 
    min-height: 100vh;
}

.e-3d { 
    width: 16px; 
    height: 16px; 
    vertical-align: middle; 
    margin-right: 5px; 
    object-fit: contain; 
}

a, a:visited, a:active {
    color: inherit; 
    text-decoration: none;
    transition: color 0.3s ease;
}

#results-list a, 
#results-list a:visited {
    color: #9fc7e8; 
}

#results-list a:hover {
    color: var(--gold);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 175px; 
    z-index: 1000;
    background: rgba(10, 10, 25, 0.85); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(252, 194, 1, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

main.container {
    padding-top: 195px; 
    padding-bottom: 20px; 
}

#logo-header {
    width: 100%;
    max-width: 400px;
    height: 150px;
    min-height: 150px;
    overflow: hidden;
}

#logo-header canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 20px;
}

.menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 24px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

@media (max-width: 768px) {
    /* CORRECTION CLS MOBILE : Bloque la taille du logo pour éviter les sauts */
    #logo-header {
        height: 150px !important;
        min-height: 150px !important;
    }
    
    .page-intro {
        min-height: 160px; /* <--- Ajouté ici */
    }

    .menu-toggle { display: flex; }

    .nav-menu {
        display: none !important;
        flex-direction: column;
        position: fixed;
        top: 160px; 
        left: 0;
        width: 100%;
        height: calc(100dvh - 160px); 
        background-color: #050510 !important; 
        padding: 40px 0;
        border-bottom: 2px solid var(--gold);
        text-align: center;
        z-index: 2000;
        overflow-y: auto !important; 
        -webkit-overflow-scrolling: touch; 
    }

    .nav-menu.active { display: flex !important; }

    .nav-menu::after {
        content: "";
        display: block;
        min-height: 80px;
        width: 100%;
        flex-shrink: 0;
    }

    .nav-menu a {
        color: #aaa !important;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
        font-weight: 400;
        padding: 14px 20px; 
        display: block;    
        width: 100%;
        box-sizing: border-box;
    }
    
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: -10px; }
}


#results-list { display: grid; grid-template-columns: 1fr; gap: 10px; }

.fete-card {
    background: var(--panel);
    border: 1px solid rgba(252, 194, 1, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.fete-card:hover {
    border-color: var(--gold);
    transform: translateX(5px);
    background: rgba(252, 194, 1, 0.05);
}

.fete-name { font-weight: bold; font-size: 1.1rem; color: var(--gold); }
.fete-date { background: var(--gold); color: #000; padding: 4px 10px; border-radius: 6px; font-weight: bold; }

.site-footer a { transition: color 0.3s ease, border-color 0.3s ease; }
.site-footer a:hover { color: var(--gold) !important; border-bottom-color: var(--gold) !important; }

button { font-family: 'SignalEmojis', 'Inter', sans-serif !important; }

@keyframes ufo-disappear-left {
    0% { transform: translateY(0) translateX(0) scaleX(-1) scale(1); opacity: 1; }
    100% { transform: translateY(-150px) translateX(-180px) scaleX(-1) scale(0.3); opacity: 0; }
}

@keyframes ufo-disappear-right {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 1; }
    100% { transform: translateY(-350px) translateX(80px) scale(0.3); opacity: 0; }
}

.ufo-left, .ufo-right { display: inline-block !important; transition: all 0.3s ease; }
.ufo-link:hover .ufo-left { animation: ufo-disappear-left 1s forwards ease-in !important; animation-delay: 0.1s !important; }
.ufo-link:hover .ufo-right { animation: ufo-disappear-right 1s forwards ease-in !important; animation-delay: 0.3s !important; }
.ufo-link { transition: color 0.3s ease, text-shadow 0.3s ease, border-color 0.3s ease !important; }
.ufo-link:hover { color: #00f2ff !important; border-bottom-color: #00f2ff !important; }
.ufo-link:hover .ufo-text { animation: text-glow-oscillation 0.08s infinite steps(2, start); }

@keyframes text-glow-oscillation {
    0%, 100% { text-shadow: 0 0 2px #00f2ff, 0 0 5px rgba(0, 242, 255, 0.5); }
    50% { text-shadow: 0 0 4px #00f2ff, 0 0 8px #00f2ff, 0 0 12px rgba(0, 242, 255, 0.6); }
}

.site-footer { position: relative; overflow: hidden; background: #050510 !important; }
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 0; width: 2px; height: 2px; background: transparent;
    box-shadow: 10vw 20px #fff, 25vw 55px #fff, 40vw 10px #fff, 60vw 45px #fff, 85vw 30px #fff, 95vw 60px #fff;
    animation: pure-twinkle 3s infinite ease-in-out; z-index: 1;
}
.site-footer::after {
    content: ""; position: absolute; top: 0; left: 0; width: 1.5px; height: 1.5px; background: transparent;
    box-shadow: 15vw 40px var(--gold), 35vw 15px var(--gold), 55vw 65px var(--gold), 75vw 25px var(--gold);
    animation: pure-twinkle 4s infinite ease-in-out reverse; animation-delay: 1.5s; z-index: 1;
}

.extra-stars {
    position: absolute; top: 0; left: 0; width: 2px; height: 2px; background: transparent;
    box-shadow: 5vw 50px #fff, 30vw 30px #fff, 50vw 20px #fff, 80vw 60px #fff;
    animation: pure-twinkle 5s infinite ease-in-out; animation-delay: 0.5s; z-index: 1;
}

@keyframes pure-twinkle {
    0%, 100% { opacity: 0.2; filter: blur(0px); }
    50% { opacity: 1; filter: blur(0.5px); }
}

.footer-content { position: relative; z-index: 2; }
.ufo-link { position: relative; display: inline-block; padding: 0 5px; text-decoration: none; z-index: 1; }
.ufo-text { position: relative; z-index: 5; display: inline-block; color: #ffffff; }
.ufo-link::after {
    content: ""; position: absolute; top: 50%; left: 8%; right: 8%; height: 6px; margin-top: -3px; background: #00f2ff;
    box-shadow: 0 0 4px #00f2ff, 0 0 10px #fff;
    clip-path: polygon(0% 50%, 5% 10%, 10% 90%, 15% 5%, 20% 95%, 25% 15%, 30% 85%, 35% 10%, 40% 90%, 45% 5%, 50% 95%, 55% 15%, 60% 85%, 65% 10%, 70% 90%, 75% 5%, 80% 95%, 85% 15%, 90% 85%, 95% 10%, 100% 50%, 95% 40%, 90% 60%, 85% 20%, 80% 80%, 75% 15%, 70% 85%, 65% 10%, 60% 90%, 55% 20%, 50% 80%, 45% 15%, 40% 85%, 35% 10%, 30% 90%, 25% 20%, 20% 80%, 15% 5%, 10% 95%, 5% 40%);
    opacity: 0; z-index: 100; animation: tesla-fine-oscillation 0.12s infinite linear; pointer-events: none;
}
.ufo-link:hover::after { animation: tesla-fine-oscillation 0.12s infinite linear, arc-burn-out 0.1s forwards; animation-delay: 0s, 0.30s; opacity: 1; display: block; }
@keyframes arc-burn-out { 100% { opacity: 0; visibility: hidden; } }

.btn-studio {
    background: var(--gold); color: #000; border: none; padding: 8px 35px; border-radius: 30px; font-weight: bold; font-size: 1.1rem; cursor: pointer; display: inline-flex; align-items: center; gap: 15px; box-shadow: 0 4px 15px rgba(252,194,1,0.3) !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
    backface-visibility: hidden; will-change: transform; -webkit-font-smoothing: antialiased;
}
.btn-studio img { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform: translateZ(0); will-change: transform; image-rendering: -webkit-optimize-contrast; }
.btn-studio:hover { background-color: #ff9800 !important; transform: scale(1.03); box-shadow: 0 6px 18px rgba(252, 194, 1, 0.4) !important; }
.btn-studio:hover img { transform: rotate(10deg) scale(1.05) translateZ(0); }
.btn-studio, .btn-studio img { transition: transform 0.4s ease-out, background-color 0.3s ease, box-shadow 0.3s ease !important; }

.signal-post-card {
    max-width: 450px; margin: 50px auto 0 auto; border: 1px solid rgba(252,194,1,0.2); padding: 12px; border-radius: 20px; background: rgba(28, 28, 60, 0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.5); transition: all 0.4s ease; position: relative;
}
.signal-post-card:hover { background: rgba(45, 45, 85, 0.8) !important; border-color: rgba(252,194,1,0.5); transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0,0,0,0.6); }

.credit-notice-box {
    background: rgba(18, 18, 37, 0.8); border: 1px solid var(--gold); border-radius: 12px; padding: 40px 20px; margin: 25px 0; font-size: 0.9em; line-height: 1.5; color: #eee; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(252, 194, 1, 0.1);
}
.notice-header { color: var(--gold); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: 1px; font-size: 1em; }
.notice-header img, .credit-notice-box p img { vertical-align: middle; }
.notice-tech { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255, 252, 194, 0.2); font-style: italic; color: #bbb; font-size: 0.85em; }

.badge-free { display: inline-block; position: relative; width: 200px; height: 200px; cursor: pointer; transition: transform 0.3s ease; }
.badge-free:hover { transform: scale(1.1); }
.badge-free img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; filter: brightness(0.7) contrast(0.7); transition: filter 0.3s ease; }
.img-w { animation: stamp-regular 8s infinite; }
.img-f { animation: stamp-regular 8s infinite; animation-delay: 4s; }
.badge-free:hover img { filter: brightness(1) contrast(1); animation-play-state: paused; }

@keyframes stamp-regular {
    0% { opacity: 0; transform: scale(1.9); } 
    5% { opacity: 1; transform: scale(1); }
    17% { opacity: 1; transform: scale(1); }
    18.5% { transform: scale(1.15); }
    20% { transform: scale(1); }
    21% { transform: scale(1.08); }
    22.5% { transform: scale(1); }
    45% { opacity: 1; transform: scale(1); }
    50% { opacity: 0; transform: scale(1); } 
    100% { opacity: 0; }
}

.nav-menu { position: absolute; bottom: 0px; display: flex; gap: 25px; }
.nav-menu a {
    color: #aaa !important; 
    text-decoration: none; 
    font-weight: 400; 
    letter-spacing: -0.5px; 
    transition: color 0.3s ease, border-bottom 0.3s ease; 
    border-bottom: 2px solid transparent !important; 
    padding: 6px 10px; /* <--- Ajout d'un padding vertical et horizontal pour élargir la zone cible */
    display: inline-block;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold) !important; border-bottom: 2px solid var(--gold) !important; font-weight: 400; text-shadow: 0.5px 0 0 currentColor; }
.nav-menu a.active::after { display: none !important; }

#faq-section details { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(252, 194, 1, 0.15); }
#faq-section details[open] { background: rgba(252, 194, 1, 0.05) !important; border-color: rgba(252, 194, 1, 0.4); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); animation: flash-gold 1.6s ease-out; }
#faq-section summary { padding: 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
#faq-section summary::after { content: '+'; color: var(--gold); font-size: 1.5em; font-weight: 300; transition: transform 0.4s ease; }
#faq-section details[open] summary::after { transform: rotate(45deg); }
#faq-section summary::-webkit-details-marker { display: none; }

@keyframes flash-gold {
    0% { box-shadow: 0 0 0px rgba(252, 194, 1, 0); border-color: rgba(252, 194, 1, 0.4); }
    50% { box-shadow: 0 0 20px rgba(252, 194, 1, 0.6); border-color: rgba(252, 194, 1, 1); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); border-color: rgba(252, 194, 1, 0.4); }
}

h2 { color: var(--gold); font-size: 1.9em; margin-bottom: 0; }

.section-title {
    margin-top: 120px;
    margin-bottom: 20px;
}

.encart-film {
    position: relative; padding: 40px 20px 20px 20px; margin: 20px 0; background: rgb(39 57 104); border-radius: 20px; text-align: center; border: 1px solid rgba(67, 65, 99, 0.2);
}
.encart-film::before {
    content: ""; position: absolute; top: -1px; left: -1px; width: 40px; height: 40px; border-top: 1px solid #535269; border-left: 1px solid #535269; border-top-left-radius: 20px;
}
.encart-film::after {
    content: ""; position: absolute; bottom: -1px; right: -1px; width: 40px; height: 40px; border-bottom: 1px solid #535269; border-right: 1px solid #535269; border-bottom-right-radius: 20px;
}

.nav-link, .legal-link { color: #aaa !important; text-decoration: none !important; transition: all 0.3s ease !important; border-bottom: 2px solid transparent !important; display: inline-block; }
.nav-link:hover, .nav-link.active-page, .legal-link:hover, .legal-link.active-page { color: var(--gold) !important; border-bottom-color: var(--gold) !important; text-shadow: 0.5px 0 0 currentColor; }
.legal-link { color: #868686 !important; }
.legal-link:hover { color: var(--gold) !important; }


/* --- SECTION TITRES ET ESPACEMENTS --- */

/* Titre principal - "Bienvenue sur SignalPost.space" */
.main-title {
    text-align: center;
    margin-top: 44px;
    margin-bottom: 20px; /* Espace entre le titre et le sous-titre */
    font-size: 2.5rem;
    color: #ffffff;
}

/* Bloc "L'outil simple & élégant..." */
.sub-heading {
    display: block;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px; /* <--- MODIFIE ICI pour l'espace AVANT "La Carte Postale" */
    font-weight: bold;
    font-size: 1.1rem;
    color: #aaaaaa;
}

.sub-heading span {
    display: inline;
    font-family: 'Satisfy', cursive;
    color: var(--gold);
    font-size: 1.2em;
}

/* Bloc "La Carte Postale Musicale" */
.highlight-title {
    display: block;
    color: var(--gold);
    font-family: 'Satisfy', cursive;
    font-size: 2.6em;
    margin-top: 40px;
    margin-bottom: 5px; /* Espace entre le titre et le texte en dessous */
}

/* "pour chaque occasion..." */
.sub-highlight {
    display: block;
    font-family: 'Satisfy', cursive;
    color: #ff9d00;
    font-size: 1.7em;
    text-transform: lowercase;
    letter-spacing: 1px;
    font-weight: 300;
    margin-bottom: 30px; /* <--- MODIFIE ICI pour l'espace APRÈS le texte et AVANT l'image */
}

/* Pour les langues "Satisfy" : on garde ton CSS de base, rien ne change */
body.font-satisfy .highlight-title, 
body.font-satisfy .sub-highlight {
    font-family: 'Satisfy', cursive !important;
}

/* Pour les langues "Inter" (letton, russe, polonais, etc.) : on force Inter Italique */
body.font-inter .highlight-title, 
body.font-inter .sub-highlight {
    font-family: 'Inter', sans-serif !important;
    font-style: italic !important;
    font-weight: 300 !important;
}

/* Animation et style du bouton cookie */
@keyframes spin-grow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1); }
}

.cookie-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: #1a1a1a;
    border: 3px dashed #fcc201;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    /* On définit la transition pour le retour au calme */
    transition: transform 1.0s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-trigger:hover {
    /* L'état final souhaité tant que la souris est dessus */
    transform: rotate(15deg) scale(1.15);
}

.description {
    text-align: center;
    margin: 20px auto; /* Centrer le bloc lui-même si tu lui donnes une largeur */
    color: #cccccc;    /* Pour assurer la lisibilité */
}

.force-satisfy {
    font-family: 'Satisfy', cursive !important;
}

/* Par défaut, c'est du Satisfy (pour les langues qui le supportent) */
.elegant-text {
    font-family: 'Satisfy', cursive !important;
}

body.font-inter .elegant-text:not(.brand-name) {
    font-family: 'Inter', sans-serif !important;
    font-style: italic !important;
    font-weight: 300 !important;
}

body.font-inter .force-satisfy {
    font-family: 'Satisfy', cursive !important;
    font-style: normal !important; 
    font-weight: 400 !important;
}

/* --- ADAPTATION MOBILE POUR LE TRIGGER COOKIE --- */
@media (max-width: 768px) {
    .cookie-trigger {
        bottom: 10px;    /* Un peu plus bas */
        left: 10px;      /* Un peu plus sur le côté */
        width: 38px;     /* Taille légèrement réduite */
        height: 38px;
        border-width: 2px; /* Trait moins épais sur petit écran */
        opacity: 0.8;    /* Légère transparence pour ne pas masquer le contenu */
    }
}

/* --- CORRECTION DES INTERLIGNES POUR LES TITRES --- */

.main-title, 
.highlight-title, 
.sub-highlight {
    line-height: 1.1; /* Réduit l'espace vertical entre les lignes de texte */
    word-break: break-word; /* Évite que les longs mots ne débordent */
}

@media (max-width: 768px) {
    .main-title {
        font-size: 1.9rem !important; /* Titre plus petit sur mobile */
    }
    .highlight-title {
        font-size: 1.9em !important; /* Titre plus petit sur mobile */
    }
}

.media-labels {
    margin-bottom: 25px;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1em;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Force Inter en gras et droit, annulant l'italique forcé des autres classes */
.force-inter-bold {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
}

/* --- HALO VIBRANT POUR LES SOUCOUPES DU FOOTER & STUDIO --- */
.ufo-left, .ufo-right {
    position: relative;
    display: inline-block !important;
}

.ufo-left::before, .ufo-right::before {
    content: '';
    position: absolute;
    top: calc(50% + 3px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.6) 0%, rgba(0, 128, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    animation: pulseHalo 3s infinite ease-in-out;
}

@keyframes pulseHalo {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.ufo-link:hover .ufo-left::before,
.ufo-link:hover .ufo-right::before {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.9) 0%, rgba(0, 140, 255, 0.2) 75%);
    animation: vibrateHalo 0.3s infinite alternate ease-in-out;
}

@keyframes vibrateHalo {
    0% {
        transform: translate(-50%, -50%) scale(1.2) translate(-1px, 1px);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4) translate(1px, -1px);
        opacity: 1;
    }
}

html {
    scroll-behavior: smooth;
}

/* --- CORRECTION CLS BANNIÈRE COOKIES --- */
#signalpost-privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* Réserve l'espace pour éviter les sauts visuels */
    box-sizing: border-box;
    z-index: 9999;
}

.legal-content a {
    text-decoration: underline !important;
}
