:root {
    --bg-paper: #fffef9;
    --ink-color: #2d2d2d;
    --c-red: #ff6b6b;
    --c-orange: #ff9966;
    --c-yellow: #ffd966;
    --c-blue: #87ceeb;
    --c-green: #51cf66;
    --c-purple: #b19cd9;
    --bg-stripe-alpha: 0.05;
    /* legacy */
    --bg-blob-alpha: 0.24;
    --pop-dot-a: 0.28;
    --pop-dot-b: 0.20;
    --pop-dot-c: 0.18;
}

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

body {
    font-family: 'Gloria Hallelujah', cursive;
    color: var(--ink-color);
    /* Ciel BD cartoon : gradient bleu-rose-jaune */
    background: linear-gradient(180deg,
            #87ceeb 0%,
            /* bleu ciel */
            #87d4f1 15%,
            /* bleu plus doux */
            #f5d5e8 50%,
            /* rose pastel */
            #ffe8b6 85%,
            /* pêche/doré */
            #ffd966 100%);
    /* jaune chaud */
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
    transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out, filter 0.45s ease-in-out;
    position: relative;
    min-height: 100vh;
}

/* Fond animé global – couches décoratives légères */
html::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* Nuages fluffy styles BD */
    background-image:
        /* Nuage 1 - blanc opaque (haut-gauche) */
        radial-gradient(ellipse 320px 100px at 15% 18%, rgba(255, 255, 255, 0.85) 0%, transparent 70%),
        /* Nuage 2 - blanc opaque (haut-droit) */
        radial-gradient(ellipse 280px 90px at 85% 12%, rgba(255, 255, 255, 0.80) 0%, transparent 70%),
        /* Nuage 3 - blanc léger (milieu) */
        radial-gradient(ellipse 300px 85px at 25% 32%, rgba(255, 255, 255, 0.65) 0%, transparent 70%),
        /* Nuage 4 - blanc/gris léger (bas-droit) */
        radial-gradient(ellipse 350px 95px at 78% 75%, rgba(240, 248, 255, 0.70) 0%, transparent 70%),
        /* Petites bulles colorées discrètes */
        radial-gradient(circle at 8% 60%, rgba(255, 200, 124, 0.15) 0 80px, transparent 90px),
        radial-gradient(circle at 92% 45%, rgba(173, 216, 230, 0.12) 0 100px, transparent 110px);
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: nuagesDrift 45s ease-in-out infinite alternate;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* Motif pop très léger + traits BD style pointillés */
    background-image:
        /* Points jaunes doux */
        radial-gradient(circle, rgba(255, 217, 102, 0.12) 10%, transparent 11%),
        /* Points bleus doux */
        radial-gradient(circle, rgba(135, 206, 235, 0.08) 8%, transparent 9%),
        /* Points rouges doux */
        radial-gradient(circle, rgba(255, 107, 107, 0.08) 7%, transparent 8%),
        /* Ligne pointillée diagonale très discrète en haut */
        repeating-linear-gradient(25deg,
            rgba(0, 0, 0, 0.04) 0px,
            rgba(0, 0, 0, 0.04) 3px,
            transparent 3px,
            transparent 10px);
    background-size: 28px 28px, 32px 32px, 24px 24px, 100% 100%;
    background-position: 0 0, 12px 12px, -8px -8px, 0 0;
    background-attachment: fixed;
    opacity: 0.35;
    animation: dotDrift 55s linear infinite;
}

@keyframes dotDrift {
    0% {
        background-position: 0 0, 12px 12px, -8px -8px, 0 0;
    }

    50% {
        background-position: 40px 20px, 24px 32px, -18px -10px, 20px 10px;
    }

    100% {
        background-position: 80px 40px, 36px 52px, -28px -12px, 40px 20px;
    }
}

@keyframes nuagesDrift {
    0% {
        background-position: 15% 18%, 85% 12%, 25% 32%, 78% 75%, 8% 60%, 92% 45%;
    }

    50% {
        background-position: 12% 20%, 88% 14%, 22% 30%, 76% 73%, 10% 62%, 90% 47%;
    }

    100% {
        background-position: 18% 16%, 82% 10%, 28% 34%, 80% 77%, 6% 58%, 94% 43%;
    }
}

/* Transitions entre pages */
body.page-transition {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(6px) brightness(0.96);
}

body.page-loaded {
    opacity: 1;
    transform: none;
    /* CORRECTION : Permet à la fenêtre modale de s'afficher correctement devant vous */
    filter: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

body.page-transition::after {
    opacity: 1;
}

h1,
h2,
h3,
.title-font {
    font-family: 'Permanent Marker', cursive;
    letter-spacing: 1px;
}

.py-12 {
    padding-top: 0.5rem;
    padding-bottom: 3rem;
}

.container-sketch {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Guirlande améliorée */
.sketch-bunting-wrapper {
    width: 100%;
    min-height: 100px;
    position: relative;
    z-index: 50;
    overflow: visible;
    margin-bottom: 0;
    padding: 20px 0 10px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

.sketch-bunting-svg {
    width: 100%;
    height: 90px;
    display: block;
    overflow: visible;
    filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, 0.1));
}

.flag-sketch {
    transform-origin: 50% 0;
    animation: sketchSway 4s ease-in-out infinite alternate;
}

.flag-sketch:nth-child(odd) {
    animation-duration: 5s;
}

.flag-sketch:nth-child(even) {
    animation-duration: 4.5s;
    animation-delay: 0.5s;
}

@keyframes sketchSway {
    0% {
        transform: rotate(3deg);
    }

    100% {
        transform: rotate(-3deg);
    }
}

/* Nav améliorée avec animations - Style Cartoon Playful */
.navbar {
    /* Fond gradient plus clair et doux */
    background:
        linear-gradient(135deg, #ffe8d0 0%, #ffd9b8 30%, #ffd0a0 60%, #ffc788 100%);
    backdrop-filter: blur(10px);
    box-shadow: 6px 6px 0px #000;
    position: sticky;
    top: 0;
    z-index: 40;
    border: 4px solid #000;
    border-radius: 30px 30px 0 0;
    animation: slideDown 0.5s ease-out;
    margin: 0 10px;
    min-height: 140px;
    padding: 18px 24px 18px 215px;
    /* Pas de overflow: hidden pour laisser le logo déborder */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: relative;
    padding: 0 24px;
    gap: 20px;
}

/* Logo container - premier enfant du header */
.logo-container {
    position: absolute;
    left: 20px;
    top: -10px;
    transform-origin: top center;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(2px 8px 6px rgba(0, 0, 0, 0.25));
    cursor: pointer;
    /* Transition douce pour les interactions */
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation de balancement (activée par JS ou par défaut) */
.logo-container.swaying-animation,
.logo-container {
    animation: pendulum 3.5s ease-in-out infinite alternate;
}

/* Animation d'entrée (chute élastique) */
.logo-container.initial-animation {
    animation: ropeDrop 1s cubic-bezier(0.5, 1.5, 0.5, 1) forwards;
}

@keyframes pendulum {
    0% {
        transform: rotate(4deg);
    }

    100% {
        transform: rotate(-4deg);
    }
}

@keyframes ropeDrop {
    0% {
        top: -200px;
        transform: rotate(-10deg);
    }

    100% {
        top: -15px;
        transform: rotate(0deg);
    }
}

/* La Corde (Texture réaliste) */
.logo-container::before {
    content: '';
    width: 3px;
    height: 50px;
    background: var(--ink-color);
    z-index: 1;
    margin-bottom: -15px;
}

/* Le Clou (Tête brillante) */
.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ink-color);
    z-index: 10;
}

.nav-logo-img {
    height: 180px;
    width: 180px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, #fffbf0 0%, #ffe8cc 50%, #ffd9b3 100%);
    padding: 8px;
    /* Double bordure : blanche interne + noire externe */
    border: none;
    box-shadow:
        0 0 0 4px #2d2d2d,
        inset 0 0 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1), width 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Effets au survol */
.logo-container:hover {
    animation-play-state: paused;
    /* On arrête le balancier pour l'interaction */
}

.logo-container:hover .nav-logo-img {
    transform: scale(1.15) rotate(8deg);
    /* Zoom et rotation fun */
}

/* Effet au clic (tirer sur la corde) */
.logo-container:active {
    transform: translateY(10px) scale(0.95);
    transition: transform 0.1s;
}

/* Anciens styles supprimés pour éviter les conflits */
/*
.nav-logo-img {
    height: 155px;
    width: 155px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border: 3px solid #000;
    border-radius: 50%;
    background: linear-gradient(135deg, #fffbf0 0%, #ffe8cc 50%, #ffd9b3 100%);
    padding: 13px;
    box-shadow: 6px 6px 0px #000;
}
*/

.nav-logo-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.6s ease-out;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9966 100%);
    padding: 10px 24px;
    border: 4px solid #000;
    border-radius: 50px 15px 50px 15px;
    box-shadow: 4px 4px 0px #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow:
        3px 3px 0px #000,
        -1px -1px 0px #000,
        1px -1px 0px #000,
        -1px 1px 0px #000,
        2px 2px 0px #000;
    -webkit-text-stroke: 1px #000;
    flex-shrink: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-logo-animated {
    letter-spacing: 0;
}

.nav-logo-text .nav-logo-char {
    display: inline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-logo-text:hover {
    color: #ffd966;
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 6px 6px 0px #000;
    background: linear-gradient(135deg, #ff9966 0%, #ffb380 100%);
}

.dancing-couple {
    height: 45px;
    width: auto;
    fill: var(--ink-color);
    transition: all 0.4s ease;
    animation: danceSwing 3s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

.nav-logo-text::after {
    content: none;
}

@keyframes danceSwing {
    0% {
        transform: rotate(-3deg) scaleX(1);
    }

    100% {
        transform: rotate(3deg) scaleX(1.05);
    }
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    padding: 10px 22px;
    border-radius: 15px;
    /* Forme de base, surchargée ensuite */
    border: 3px solid #000;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-decoration: none;
    color: #2d2d2d;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
    box-shadow: 4px 4px 0px #000;
}

/* Variations Cartoon : Tailles, formes et rotations uniques pour chaque bouton */
.nav-item:nth-child(1) {
    animation-delay: 0.3s;
    background: #b8e6c9;
    color: #2d2d2d;
    transform: rotate(-2deg) scale(1.0);
    border-radius: 20px 8px 25px 10px;
    font-size: 1.2rem;
    padding: 11px 22px;
}

.nav-item:nth-child(2) {
    animation-delay: 0.4s;
    background: #fff5ba;
    color: #2d2d2d;
    transform: rotate(1.5deg) translateY(-2px) scale(1.05);
    font-size: 1.3rem;
    padding: 12px 24px;
    border-radius: 8px 25px 10px 20px;
}

.nav-item:nth-child(3) {
    animation-delay: 0.5s;
    background: #ffccb3;
    color: #2d2d2d;
    transform: rotate(-3deg) scale(1.15);
    /* Le plus gros (Festival) */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    z-index: 5;
    font-size: 1.4rem;
    padding: 13px 28px;
}

.nav-item:nth-child(4) {
    animation-delay: 0.6s;
    background: #e0c3fc;
    color: #2d2d2d;
    transform: rotate(2deg) scale(1.08);
    border-radius: 15px 25px 5px 20px;
    font-size: 1.28rem;
    padding: 12px 24px;
}

.nav-item:nth-child(5) {
    animation-delay: 0.7s;
    background: #b3e0ff;
    color: #2d2d2d;
    transform: rotate(-1deg) translateY(2px) scale(1.03);
    border-radius: 20px 15px 20px 15px;
    font-size: 1.22rem;
    padding: 11px 23px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation pour le logo du festival */
.festival-logo-animated {
    animation: festivalLogoFloat 3s ease-in-out infinite;
}

@keyframes festivalLogoFloat {

    0%,
    100% {
        transform: rotate(-3deg) translateY(0px);
    }

    50% {
        transform: rotate(-1deg) translateY(-8px);
    }
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 217, 102, 0.4), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    border: 3px solid #000;
    transform: rotate(-3deg) translateY(-5px) scale(1.1);
    box-shadow: 6px 6px 0px #000;
    filter: brightness(1.1);
}

/* Couleurs au survol des liens */
/* Simplifié car les couleurs sont maintenant appliquées par défaut */
.nav-item:nth-child(1):hover {
    color: var(--ink-color);
}

.nav-item:nth-child(2):hover {
    color: var(--ink-color);
}

.nav-item:nth-child(3):hover {
    color: var(--ink-color);
}

.nav-item:nth-child(4):hover {
    color: var(--ink-color);
}

.nav-item:nth-child(5):hover {
    color: var(--ink-color);
}

.nav-item.active {
    border: 3px solid #000;
    transform: rotate(-2deg) scale(1.08);
    box-shadow: 6px 6px 0px #000;
    animation: pulse 2s ease-in-out infinite;
    filter: brightness(1.1);
}

@keyframes pulse {

    0%,
    100% {
        transform: rotate(-1deg) scale(1);
    }

    50% {
        transform: rotate(-1deg) scale(1.03);
    }
}

/* Hero amélioré */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px;
}

/* Hero vide sur page d'accueil (sans contenu) */
.hero-section:not(:has(.hero-content)) {
    min-height: 0;
    height: 0;
    padding: 0;
    margin: 0;
}

.doodle {
    position: absolute;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.d-circle {
    top: 15%;
    left: 8%;
    width: 120px;
    height: 120px;
    border: 5px solid var(--c-yellow);
    border-radius: 60% 40% 35% 65% / 55% 35% 65% 45%;
    animation: float 7s infinite ease-in-out;
}

.d-cross {
    bottom: 15%;
    right: 12%;
    font-size: 100px;
    color: var(--c-green);
    font-family: 'Permanent Marker';
    transform: rotate(15deg);
    animation: float 8s infinite reverse ease-in-out;
}

.d-squig {
    top: 25%;
    right: 15%;
    width: 150px;
    height: 50px;
    border-bottom: 6px dotted var(--c-blue);
    transform: rotate(-12deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 950px;
}

.hero-logo {
    width: 360px;
    margin: 0 auto 25px;
    filter: drop-shadow(6px 12px 8px rgba(0, 0, 0, 0.12));
    transform: rotate(-3deg);
    transition: transform 0.4s ease;
    border-radius: 50%;
}

.hero-logo:hover {
    transform: rotate(3deg) scale(1.08);
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--ink-color);
    text-shadow:
        3px 3px 0px rgba(255, 255, 255, 0.8),
        6px 6px 0px var(--c-orange);
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--c-yellow);
    display: inline-block;
    padding: 12px 35px;
    border-radius: 25px 8px 25px 8px;
    border: 3px solid var(--ink-color);
    box-shadow: 5px 5px 0px var(--ink-color);
    transform: rotate(-1.5deg);
    margin-bottom: 35px;
    transition: transform 0.3s ease;
}

.hero-subtitle:hover {
    transform: rotate(1deg) scale(1.02);
}

.btn-sketch {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe8b3 48%, #ffd966 100%);
    color: var(--ink-color);
    border: 3px solid var(--ink-color);
    padding: 15px 35px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-block;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    box-shadow: 6px 6px 0px var(--c-red);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: normal;
}

.btn-sketch:hover {
    transform: translate(-4px, -4px) rotate(2deg);
    box-shadow: 10px 10px 0px var(--c-red);
    background: var(--c-yellow);
}

/* Bouton d'appel à l'action animé pour le site du festival */
.btn-cta {
    box-shadow: 7px 7px 0px var(--c-blue);
    background: #fffef7;
    animation: ctaPulse 2.6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.btn-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.32) 45%, rgba(255, 255, 255, 0.0) 90%);
    transform: translateX(-120%);
    animation: ctaShine 3.4s ease-in-out infinite;
    pointer-events: none;
}

.btn-cta:hover {
    box-shadow: 10px 10px 0px var(--c-blue);
    background: var(--c-yellow);
    animation-play-state: paused;
}

.btn-cta:focus-visible {
    outline: 3px solid var(--c-blue);
    outline-offset: 4px;
}

/* Hero Moderne - Style Cartoon */
.hero-modern {
    position: relative;
    background: linear-gradient(135deg, #A8D5BA 0%, #BDE0FE 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 120px;
    overflow: hidden;
}

.hero-modern-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero-modern-title {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    color: #2d2d2d;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px rgba(255, 255, 255, 0.4),
        8px 8px 20px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    animation: heroTitleBounce 2s ease-in-out infinite;
}

@keyframes heroTitleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-modern-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #3d5a6b;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.6);
}

.hero-modern-cta {
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d2d2d;
    background: linear-gradient(135deg, #FFE66D 0%, #FFA94D 100%);
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 169, 77, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 4px solid rgba(255, 255, 255, 0.4);
}

.hero-modern-cta:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 169, 77, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.2);
    animation: ctaBounce 0.6s ease-in-out infinite;
}

@keyframes ctaBounce {

    0%,
    100% {
        transform: translateY(-8px) scale(1.05);
    }

    50% {
        transform: translateY(-12px) scale(1.08);
    }
}

.hero-modern-cta:active {
    transform: translateY(-4px) scale(1.02);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: 60vh;
        padding: 40px 20px 100px;
    }

    .hero-modern-title {
        font-size: 2.5rem;
    }

    .hero-modern-subtitle {
        font-size: 1.3rem;
    }

    .hero-modern-cta {
        font-size: 1.2rem;
        padding: 16px 40px;
    }

    .hero-wave {
        height: 80px;
    }

    .hero-wave svg {
        height: 80px;
    }
}

/* Variante grand bouton avec flèche »C'est par ici« */
.btn-big {
    padding: 22px 52px;
    font-size: 1.45rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 10px 10px 0px var(--c-orange);
    letter-spacing: 0.5px;
}

.btn-big .arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    animation: arrowNod 2.8s ease-in-out infinite;
}

.btn-big:hover .arrow {
    transform: translateX(8px) rotate(4deg);
}

@keyframes ctaPulse {
    0% {
        transform: translateY(0) scale(1);
    }

    18% {
        transform: translateY(-2px) scale(1.02) rotate(-0.5deg);
    }

    36% {
        transform: translateY(1px) scale(0.99) rotate(0.4deg);
    }

    60% {
        transform: translateY(0) scale(1.01);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes ctaShine {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }

    25% {
        opacity: 0;
    }

    40% {
        opacity: 0.55;
    }

    70% {
        transform: translateX(120%);
        opacity: 0;
    }

    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

.btn-blink {
    animation: ctaBlink 1.8s ease-in-out infinite;
}

@keyframes ctaBlink {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 153, 102, 0.0));
        opacity: 1;
    }

    35% {
        filter: drop-shadow(0 0 10px rgba(255, 153, 102, 0.35));
        opacity: 1;
    }

    50% {
        filter: drop-shadow(0 0 14px rgba(255, 153, 102, 0.55));
        opacity: 0.92;
    }

    70% {
        filter: drop-shadow(0 0 10px rgba(255, 153, 102, 0.35));
        opacity: 1;
    }

    100% {
        filter: drop-shadow(0 0 0 rgba(255, 153, 102, 0.0));
        opacity: 1;
    }
}

/* Carte flash pour mettre en avant le site internet */
.flash-card {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border: 4px solid var(--ink-color);
    border-radius: 24px 14px 26px 12px / 14px 26px 12px 24px;
    background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.85), transparent 35%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.75), transparent 30%),
        linear-gradient(135deg, #fff9e6 0%, #ffe8b3 35%, #ffd89f 70%, #ffc8a5 100%);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.18), 0 0 0 3px #fffff8, 0 0 0 6px var(--ink-color);
    transform: rotate(-1.5deg);
    animation: flashWiggle 6s ease-in-out infinite, flashBlink 3.2s ease-in-out infinite;
}

.flash-card::before {
    content: '';
    position: absolute;
    inset: -10% 0 0 0;
    background: radial-gradient(6px 6px at 15% 25%, rgba(255, 255, 255, 0.9), transparent 60%),
        radial-gradient(5px 5px at 35% 10%, rgba(255, 255, 255, 0.8), transparent 55%),
        radial-gradient(7px 7px at 65% 18%, rgba(255, 255, 255, 0.85), transparent 60%),
        radial-gradient(5px 5px at 80% 32%, rgba(255, 255, 255, 0.8), transparent 55%),
        radial-gradient(6px 6px at 55% 5%, rgba(255, 255, 255, 0.75), transparent 60%);
    animation: sparkleFloat 7s ease-in-out infinite;
    pointer-events: none;
}

.flash-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.4), transparent 30%);
    pointer-events: none;
}

.flash-content {
    padding: 38px 40px;
    text-align: center;
}

.flash-content h2 {
    font-family: 'Permanent Marker', cursive;
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--ink-color);
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.9), 4px 4px 0px #ff6b35;
    line-height: 1.2;
}

.flash-content p {
    font-size: 1.15rem;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.flash-badge {
    display: inline-block;
    padding: 6px 12px;
    font-weight: 800;
    background: #ff6b35;
    color: white;
    border: 2px solid var(--ink-color);
    border-radius: 999px;
    box-shadow: 4px 4px 0px var(--ink-color);
    margin-bottom: 10px;
    transform: rotate(-4deg);
    animation: badgePop 2.8s ease-in-out infinite;
}

@keyframes flashWiggle {
    0% {
        transform: rotate(-1.5deg) translateY(0) scale(1);
    }

    25% {
        transform: rotate(1.2deg) translateY(-4px) scale(1.01);
    }

    55% {
        transform: rotate(-0.8deg) translateY(3px) scale(0.995);
    }

    100% {
        transform: rotate(-1.5deg) translateY(0) scale(1);
    }
}

@keyframes flashBlink {
    0% {
        filter: drop-shadow(0 0 0 rgba(255, 122, 122, 0.0));
    }

    35% {
        filter: drop-shadow(0 0 12px rgba(255, 122, 122, 0.35));
    }

    55% {
        filter: drop-shadow(0 0 18px rgba(255, 163, 92, 0.5));
    }

    100% {
        filter: drop-shadow(0 0 0 rgba(255, 122, 122, 0.0));
    }
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }

    35% {
        transform: translateY(-6px) scale(1.02);
        opacity: 1;
    }

    60% {
        transform: translateY(4px) scale(0.98);
        opacity: 0.85;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }
}

@keyframes badgePop {

    0%,
    100% {
        transform: rotate(-4deg) scale(1);
    }

    45% {
        transform: rotate(-2deg) scale(1.06);
    }

    70% {
        transform: rotate(-5deg) scale(0.98);
    }
}

@keyframes arrowNod {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    35% {
        transform: translateX(4px) rotate(6deg);
    }

    60% {
        transform: translateX(2px) rotate(-3deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}

/* Affiche du festival - style polaroid sketch */
.festival-poster {
    position: relative;
    padding: 14px 14px 18px;
    background: linear-gradient(135deg, #fffdf5 0%, #fff7e6 45%, #ffe8c2 100%);
    border: 3px solid var(--ink-color);
    border-radius: 8px 4px 10px 5px / 5px 10px 4px 8px;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.18);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    max-width: 400px;
}

.festival-poster::after {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 84px;
    height: 18px;
    background: linear-gradient(90deg, #ffd35c, #ffc107);
    border: 1px solid var(--ink-color);
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transform: translateX(-50%) rotate(-3deg);
    opacity: 0.92;
}

.festival-poster:hover {
    transform: rotate(0deg) scale(1.04);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.22);
}

/* Effet spécial pour l'affiche 2025 : agrandissement et danse rythmée */
.festival-poster-2025:hover {
    transform: rotate(0deg) scale(1.15);
    box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.28);
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation rythmée synchronisée avec les basses - mouvements lourds et puissants */
.festival-poster-2025.poster-dancing {
    animation: posterDance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Effet spécial pour l'affiche 2024 : agrandissement et danse rythmée */
.festival-poster-2024:hover {
    transform: rotate(0deg) scale(1.15);
    box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.28);
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation rythmée pour l'affiche 2024 */
.festival-poster-2024.poster-dancing {
    animation: posterDance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Effet spécial pour l'affiche 2023 : agrandissement et danse rythmée */
.festival-poster-2023:hover {
    transform: rotate(0deg) scale(1.15);
    box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.28);
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation rythmée pour l'affiche 2023 */
.festival-poster-2023.poster-dancing {
    animation: posterDance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes posterDance {
    0% {
        transform: rotate(0deg) scale(1.15) translateY(0);
        filter: brightness(1) saturate(1);
        box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.28);
    }

    15% {
        transform: rotate(-3deg) scale(1.25) translateY(-12px) translateX(-4px);
        filter: brightness(1.2) saturate(1.4);
        box-shadow: 22px 22px 0px rgba(255, 107, 107, 0.5);
    }

    30% {
        transform: rotate(2deg) scale(1.18) translateY(-3px) translateX(2px);
        filter: brightness(1.05) saturate(1.1);
        box-shadow: 18px 18px 0px rgba(255, 153, 102, 0.35);
    }

    50% {
        transform: rotate(0deg) scale(1.16) translateY(0);
        filter: brightness(1) saturate(1);
        box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.28);
    }

    65% {
        transform: rotate(3deg) scale(1.24) translateY(-10px) translateX(4px);
        filter: brightness(1.18) saturate(1.35);
        box-shadow: 21px 21px 0px rgba(81, 207, 102, 0.45);
    }

    80% {
        transform: rotate(-2deg) scale(1.17) translateY(-2px) translateX(-2px);
        filter: brightness(1.03) saturate(1.08);
        box-shadow: 17px 17px 0px rgba(135, 206, 235, 0.3);
    }

    100% {
        transform: rotate(0deg) scale(1.15) translateY(0);
        filter: brightness(1) saturate(1);
        box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.28);
    }
}

.poster-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    filter: saturate(1.05);
}

/* CTA overlay sur l'affiche (invitation à cliquer) */
.festival-poster {
    position: relative;
}

.poster-cta {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.18s ease;
    border-radius: 6px;
}

.festival-poster:hover .poster-cta {
    opacity: 1;
}

/* ===== Modal Affiche (2025) ===== */
.no-scroll {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.modal-dialog {
    width: min(1000px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #fffdf5;
    border: 4px solid #000;
    border-radius: 14px 10px 16px 12px / 10px 16px 12px 14px;
    box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.25);
    position: relative;
}

.modal-close {
    position: sticky;
    top: 8px;
    float: right;
    margin-right: 10px;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1;
    background: #ffe8c2;
    border: 3px solid #000;
    border-radius: 8px;
    padding: 2px 10px;
    cursor: pointer;
    z-index: 10;
}

/* Lightbox pour agrandir les photos */
.photo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.photo-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.1);
    animation: lightboxZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.photo-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Permanent Marker', cursive;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s;
}

.photo-lightbox .lightbox-close:hover {
    transform: scale(1.2);
}

.photo-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.photo-lightbox .lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.photo-lightbox .lightbox-prev {
    left: 20px;
}

.photo-lightbox .lightbox-next {
    right: 20px;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    padding: 28px;
}

.modal-left .modal-poster {
    transform: rotate(-1deg);
    max-width: 420px;
    margin-inline: auto;
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.artist-card {
    background: #fff;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.1rem;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

.artist-card:hover,
.artist-card:focus {
    transform: translateY(-2px) rotate(-1deg) scale(1.02);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.22);
    outline: none;
    background: #fff7e6;
}

.motolo-card:hover,
.motolo-card:focus {
    animation: motoloSwing 0.8s ease-in-out infinite, motoloBlink 1s ease-in-out infinite;
}

@keyframes motoloSwing {
    0% {
        transform: rotate(0deg) translateY(-2px) scale(1.02);
    }

    25% {
        transform: rotate(-5deg) translateY(-4px) scale(1.05);
    }

    50% {
        transform: rotate(4deg) translateY(-2px) scale(1.03);
    }

    75% {
        transform: rotate(-3deg) translateY(-3px) scale(1.04);
    }

    100% {
        transform: rotate(0deg) translateY(-2px) scale(1.02);
    }
}

@keyframes motoloBlink {
    0% {
        background: #fff7e6;
        box-shadow: 10px 10px 0 rgba(255, 153, 102, 0.3);
    }

    25% {
        background: #ffe2e2;
        box-shadow: 10px 10px 0 rgba(255, 107, 107, 0.35);
    }

    50% {
        background: #e6f7ff;
        box-shadow: 10px 10px 0 rgba(135, 206, 235, 0.35);
    }

    75% {
        background: #e9ffe6;
        box-shadow: 10px 10px 0 rgba(81, 207, 102, 0.35);
    }

    100% {
        background: #fff7e6;
        box-shadow: 10px 10px 0 rgba(255, 217, 102, 0.35);
    }
}

@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

/* Bouton avec main qui pointe */
.btn-hand-blink {
    animation: ctaBlink 1.8s ease-in-out infinite;
}

/* Bouton unique pour la carte flash - style bulle cartoon */
.btn-flash-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 22px 50px;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.7rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa552 100%);
    border: 5px solid var(--ink-color);
    border-radius: 50px;
    box-shadow:
        0 9px 0 #d94a1a,
        0 9px 0 5px var(--ink-color),
        0 16px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.15s ease;
    animation: bubblePulse 2.2s ease-in-out infinite;
}

.btn-flash-cta:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #ff8552 0%, #ffa05f 50%, #ffb86f 100%);
    box-shadow:
        0 14px 0 #d94a1a,
        0 14px 0 5px var(--ink-color),
        0 20px 35px rgba(0, 0, 0, 0.35);
}

.btn-flash-cta:active {
    transform: translateY(5px);
    box-shadow:
        0 4px 0 #d94a1a,
        0 4px 0 5px var(--ink-color),
        0 10px 20px rgba(0, 0, 0, 0.25);
}

@keyframes bubblePulse {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    15% {
        transform: translateY(-3px) scale(1.03);
    }

    30% {
        transform: translateY(0) scale(1);
    }
}

.hand-point {
    display: inline-block;
    font-size: 1.5em;
    animation: handPoint 1.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes handPoint {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    30% {
        transform: translateX(6px) scale(1.12) rotate(-8deg);
        opacity: 0.85;
    }

    50% {
        transform: translateX(10px) scale(1.18) rotate(-12deg);
        opacity: 0.7;
    }

    70% {
        transform: translateX(6px) scale(1.12) rotate(-8deg);
        opacity: 0.85;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.section-header {
    text-align: center;
    margin: 12px auto 26px;
    position: relative;
    display: flex;
    justify-content: center;
}

.section-title {
    font-size: 2.2rem;
    display: inline-block;
    background: linear-gradient(135deg, #2b8a3e 0%, #2f9e44 100%);
    color: white;
    padding: 11px 34px;
    border: 4px solid var(--ink-color);
    border-radius: 50px 12px 60px 20px / 20px 60px 18px 50px;
    box-shadow: 8px 8px 0px var(--ink-color), inset 0 0 15px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    font-weight: bold;
    margin: 0 auto;
}

.section-title:hover {
    transform: rotate(2deg) scale(1.05);
    box-shadow: 10px 10px 0px var(--ink-color), inset 0 0 20px rgba(0, 0, 0, 0.15);
}

.festival-showcase {
    position: relative;
    max-width: 900px;
    margin: 0 auto 60px;
    overflow: hidden;
    border-radius: 12px 4px 12px 4px;
    border: 4px solid var(--ink-color);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.15);
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

.festival-showcase:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.2);
}

.festival-illustration-card {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(1.1) brightness(1.05);
}

.festival-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(45, 45, 45, 0.95) 0%,
            rgba(45, 45, 45, 0.7) 60%,
            transparent 100%);
    padding: 25px;
    text-align: center;
}

.festival-overlay-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.festival-overlay-text {
    font-size: 1.1rem;
    color: var(--c-yellow);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sketch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-bottom: 50px;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .sketch-grid {
        grid-template-columns: 1fr;
    }
}

.sketch-card {
    background: linear-gradient(135deg, #fef8f0 0%, #f5ebe0 100%);
    background-attachment: fixed;
    border: 3px solid var(--ink-color);
    padding: 22px;
    border-radius: 3px 22px 5px 28px / 28px 6px 32px 3px;
    box-shadow:
        8px 8px 0px rgba(0, 0, 0, 0.12),
        inset 0 0 20px rgba(139, 90, 43, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.sketch-card:hover {
    transform: scale(1.04) rotate(2deg);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.sketch-card {
    background: linear-gradient(135deg, #fdf5ed 0%, #f0e4d4 50%, #ede0d0 100%);
    background-attachment: fixed;
    border: 3px solid var(--ink-color);
    padding: 22px;
    border-radius: 3px 22px 5px 28px / 28px 6px 32px 3px;
    box-shadow:
        8px 8px 0px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(139, 90, 43, 0.08),
        inset 1px 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    /* Pin sizing and tip offset (distance from card top to pin tip) */
    --pin-size: 48px;
    --pin-tip-offset: 16px;
    --pin-rotate: 0deg;
}

.sketch-card::before {
    content: '';
    position: absolute;
    /* Place pin so its tip is centered on the card's top edge */
    top: calc(-1 * var(--pin-tip-offset));
    left: 50%;
    width: var(--pin-size);
    height: var(--pin-size);
    transform: translate(-50%, 0) rotate(var(--pin-rotate)) scaleY(1);
    /* Anchor near the tip so the drive-in feels natural */
    transform-origin: 50% 92%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.3));
    /* Drive-in animation */
    animation: pinDrive 1100ms ease-out 150ms both;
    z-index: 20;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sketch-card::before {
    /* Ajout d'un reflet brillant sur la tête de la punaise */
    background-image: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 40%);
}

.sketch-card::after {
    content: '';
    position: absolute;
    /* Stroke overlay aligned exactly with pin */
    top: calc(-1 * var(--pin-tip-offset));
    left: 50%;
    width: var(--pin-size);
    height: var(--pin-size);
    transform: translate(-50%, 0) rotate(var(--pin-rotate)) scaleY(1);
    transform-origin: 50% 92%;
    background-image: url('assets/punaise.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: multiply;
    pointer-events: none;
    animation: pinDrive 1100ms ease-out 150ms both;
    z-index: 21;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation de la punaise au survol de la carte */
.sketch-card:hover::before,
.sketch-card:hover::after {
    transform: translate(-50%, -2px) rotate(calc(var(--pin-rotate) + 5deg)) scale(1.1);
    filter: drop-shadow(4px 8px 6px rgba(0, 0, 0, 0.3));
}

@keyframes pinWiggle {
    0% {
        transform: translate(-50%, -3px) rotate(calc(var(--pin-rotate) - 2deg)) scale(1.15);
    }

    100% {
        transform: translate(-50%, -3px) rotate(calc(var(--pin-rotate) + 2deg)) scale(1.15);
    }
}

/* Punaise orange pour la carte Festival */
.sketch-card:nth-child(1) {
    --pin-rotate: -8deg;
}

.sketch-card:nth-child(1)::before {
    background-image: url('assets/punaise-festival.svg');
}

/* Punaise jaune pour la carte Événements */
.sketch-card:nth-child(2) {
    --pin-rotate: 6deg;
}

.sketch-card:nth-child(2)::before {
    background-image: url('assets/punaise-evenements.svg');
}

/* Punaise verte pour la carte Association */
.sketch-card:nth-child(3) {
    --pin-rotate: -4deg;
}

.sketch-card:nth-child(3)::before {
    background-image: url('assets/punaise-association.svg');
}

/* Punaise bleue pour la carte Contact */
.sketch-card:nth-child(4) {
    --pin-rotate: 12deg;
}

.sketch-card:nth-child(4)::before {
    background-image: url('assets/punaise-contact.svg');
}

@keyframes pinDrive {

    /* Start slightly above and squashed, then drive in */
    0% {
        transform: translate(-50%, calc(-1 * var(--pin-tip-offset) - 25px)) rotate(var(--pin-rotate)) scaleY(0.7);
        opacity: 0;
        filter: drop-shadow(10px 15px 10px rgba(0, 0, 0, 0.2));
    }

    45% {
        transform: translate(-50%, calc(-1 * var(--pin-tip-offset) - 5px)) rotate(var(--pin-rotate)) scaleY(1.1);
        opacity: 1;
    }

    70% {
        transform: translate(-50%, calc(-1 * var(--pin-tip-offset))) rotate(var(--pin-rotate)) scaleY(1);
    }

    85% {
        transform: translate(-50%, calc(-1 * var(--pin-tip-offset) - 2px)) rotate(var(--pin-rotate)) scaleY(0.98);
    }

    100% {
        transform: translate(-50%, calc(-1 * var(--pin-tip-offset))) rotate(var(--pin-rotate)) scaleY(1);
        filter: drop-shadow(2px 4px 3px rgba(0, 0, 0, 0.3));
    }
}

.card-img-box {
    height: 220px;
    background: linear-gradient(135deg, #f9f9f9 0%, #eeeeee 100%);
    border: 3px solid var(--ink-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

.notebook-section {
    background: white;
    padding: 35px;
    border: 3px solid var(--ink-color);
    background-image: repeating-linear-gradient(white 0px,
            white 29px,
            rgba(177, 156, 217, 0.3) 30px);
    box-shadow: 10px 10px 0px var(--ink-color);
    transform: rotate(0.8deg);
    margin: 40px 0;
    border-radius: 5px;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    font-weight: 700;
}

/* Social buttons */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 var(--c-yellow);
}

.social-btn:focus-visible {
    outline: 3px dashed var(--c-yellow);
    outline-offset: 4px;
}

.social-facebook {
    background: #3b5998;
    color: white;
}

.social-instagram {
    background: #d9486e;
    color: white;
}

.social-youtube {
    background: #ff0000;
    color: white;
}

.partner-pill {
    background: white;
    color: var(--ink-color);
    padding: 15px 25px;
    border: 2px solid var(--ink-color);
    /* Bordure irrégulière pour l'effet "croquis" */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.partner-pill:hover {
    transform: translateY(-5px) rotate(-2deg) scale(1.05);
    box-shadow: 8px 8px 0px var(--c-yellow);
}

.partner-logo-img {
    height: 60px;
    max-width: 180px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Conteneur vidéo festival avec TV vintage */
.festival-video-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    /* Télévision plus grande */
    margin: 0 auto;
    padding: 0;
    background-image: url('assets/tele-vintage.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 540 / 380;
}

.festival-video-container::before {
    content: '';
    display: block;
    padding-bottom: 70.37%;
    /* Ratio 540:380 */
}

.festival-video-frame {
    position: absolute;
    top: 14.5%;
    left: 8.4%;
    width: 66.6%;
    height: 71%;
    border-radius: 20px;
    /* Coins un peu plus arrondis pour suivre l'écran */
    overflow: hidden;
    background: #000;
    /* Fond noir pour fondre les bords de la vidéo */
}

.festival-video-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    background: var(--ink-color);
    color: white;
    padding: 70px 0 40px;
    margin-top: 80px;
    position: relative;
}

/* Team Cards */
.team-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 240, 0.9));
    border: 3px solid var(--ink-color);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.2);
}

.team-image-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--ink-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-orange), var(--c-yellow));
    flex-shrink: 0;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-name {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--ink-color);
    margin: 0;
    line-height: 1.2;
}

.team-role {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.05rem;
    color: var(--c-orange);
    font-weight: bold;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-expertise {
    font-size: 0.95rem;
    color: var(--c-blue);
    font-weight: bold;
    margin: 2px 0 8px 0;
    font-style: italic;
}

.team-description {
    font-size: 0.9rem;
    color: var(--ink-color);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {

    /* Désactiver l'effet parallaxe qui ralentit le scroll sur mobile */
    body,
    html::before,
    body::before,
    .sketch-card {
        background-attachment: scroll !important;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 10px 22px;
    }

    .hero-logo {
        width: 170px;
    }

    .section-title {
        font-size: 2.2rem;
        padding: 12px 28px;
    }

    .nav-links {
        display: none;
    }

    .sketch-bunting-wrapper {
        min-height: 85px;
        padding: 15px 0 5px 0;
    }

    .sketch-bunting-svg {
        height: 75px;
    }

    .d-circle,
    .d-cross,
    .d-squig {
        display: none;
    }

    /* Adjust only the tip offset for smaller screens */
    .sketch-card {
        --pin-tip-offset: 12px;
    }

    .team-image-wrapper {
        width: 120px;
        height: 120px;
    }

    .team-name {
        font-size: 1.15rem;
    }

    /* Navbar responsive cartoon */
    .navbar {
        margin: 0 5px;
        border-radius: 20px 20px 0 0;
        box-shadow: 4px 4px 0px #000;
        min-height: 130px;
        padding: 14px 12px 14px 135px;
    }

    .nav-inner {
        height: 82px;
        padding: 0 12px;
    }

    .logo-container {
        left: 10px;
        top: -10px;
        animation: pendulum 3s ease-in-out infinite alternate;
    }

    .logo-container::before {
        width: 2px;
        height: 40px;
        margin-bottom: -10px;
    }

    .logo-container::after {
        width: 8px;
        height: 8px;
        top: 0;
    }

    .nav-logo-img {
        height: 120px;
        width: 120px;
        padding: 5px;
        border: none;
        box-shadow: 0 0 0 3px #2d2d2d;
    }

    .nav-logo-text {
        font-size: 1rem;
        padding: 8px 18px;
        border-radius: 40px 10px 40px 10px;
        box-shadow: 3px 3px 0px #000;
        letter-spacing: 1.5px;
        text-shadow:
            2px 2px 0px #000,
            -1px -1px 0px #000,
            1px -1px 0px #000,
            -1px 1px 0px #000;
    }

    #mobile-menu-button {
        background: #fff !important;
        border: 4px solid #000 !important;
        border-radius: 15px !important;
        padding: 8px 16px !important;
        box-shadow: 4px 4px 0px #000 !important;
        color: #000 !important;
    }

    #mobile-menu-button:active {
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0px #000 !important;
    }
}

.hidden {
    display: none;
}

/* Animation cœur du bouton Adhère */
@keyframes heartbeat {
    0% {
        transform: rotate(-5deg) scale(1);
    }

    25% {
        transform: rotate(-5deg) scale(1.05);
    }

    50% {
        transform: rotate(-5deg) scale(1);
    }

    75% {
        transform: rotate(-5deg) scale(1.05);
    }

    100% {
        transform: rotate(-5deg) scale(1);
    }
}

/* Animation badge pulsation */
@keyframes badgePulse {

    0%,
    100% {
        transform: rotate(-3deg) scale(1);
        box-shadow: 8px 8px 0px #000, inset 0 0 15px rgba(0, 0, 0, 0.15);
    }

    50% {
        transform: rotate(-3deg) scale(1.08);
        box-shadow: 10px 10px 0px #000, inset 0 0 20px rgba(0, 0, 0, 0.2);
    }
}

/* ===== Carousel Actualités ===== */
.news-carousel-container {
    position: relative;
    overflow: visible;
    border-radius: 30px 10px 25px 15px / 15px 25px 10px 30px;
    border: 3px solid #000;
    box-shadow: 10px 10px 0px #000;
    /* Ombre noire marquée style BD */
    transform: rotate(-1deg);
    /* Légère rotation pour le style "posé à la main" */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, #fffdf5 0%, #e6dcb8 100%);
    /* Style vieux papier (beige désaturé) */
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
    margin-top: 6px;
}

.news-carousel-container:hover {
    transform: rotate(0deg) scale(1.01);
    box-shadow: 14px 14px 0px #000;
}

.news-card {
    display: none;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-card.active {
    display: block;
    animation: newsSlideIn 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes newsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96) rotate(-3deg);
    }

    55% {
        opacity: 1;
        transform: translateY(0) scale(1.02) rotate(-1deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* Overlay "En savoir plus" au survol */
.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
}

.news-card:hover .news-overlay {
    opacity: 1;
}

.news-overlay-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.8rem;
    color: white;
    background: var(--c-red);
    padding: 15px 35px;
    border: 3px solid #000;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    transform: rotate(-5deg) scale(0.85);
    box-shadow: 8px 8px 0px #000, inset 0 0 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    cursor: pointer;
}

.news-card:hover .news-overlay-text {
    transform: rotate(-5deg) scale(1);
    animation: newsBtnPulse 0.8s ease-in-out infinite;
}

@keyframes newsBtnPulse {

    0%,
    100% {
        transform: rotate(-5deg) scale(1);
    }

    50% {
        transform: rotate(-5deg) scale(1.1);
    }
}

.news-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center top;
    display: block;
    background-color: #f0f0f0;
    filter: brightness(0.95);
}

.news-content {
    padding: 20px 35px 80px 35px;
    /* Espace en bas pour la date */
    background: linear-gradient(135deg, #fffdf5 0%, #e6dcb8 100%);
    /* Style vieux papier */
    position: relative;
    text-align: center;
    border-top: 4px solid #000;
    /* Vraie ligne de séparation style cartoon */
}

.news-content::before {
    content: none;
}

.news-badge {
    display: inline-block;
    background: #ffd966;
    padding: 8px 16px;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    border: 2px solid #000;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 3px 3px 0px #000;
    transform: rotate(-2deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.9rem;
    color: #2d2d2d;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.news-preview {
    font-size: 1.1rem;
    color: #2d2d2d;
    line-height: 1.7;
    margin-bottom: 18px;
    font-family: 'Patrick Hand', cursive;
}

.news-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background: var(--c-orange);
    padding: 8px 16px;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    /* Forme irrégulière style croquis */
    border: 2px solid #000;
    box-shadow: 4px 4px 0px #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(-2deg);
}

/* Boutons de navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffd966 0%, #ffb347 100%);
    border: 3px solid #000;
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    /* Forme irrégulière style croquis */
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 15;
    box-shadow: 4px 4px 0px #000;
    /* Ombre noire */
    font-weight: bold;
    font-family: 'Fredoka One', cursive;
}

.carousel-nav:hover {
    background: linear-gradient(135deg, #ffb347 0%, #ffd966 100%);
    transform: translateY(-50%) scale(1.1) rotate(3deg);
    box-shadow: 6px 6px 0px #000;
    color: #c92a2a;
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 2px 2px 0px #000;
}

.carousel-prev {
    left: -60px;
}

.carousel-next {
    right: -60px;
}

/* Indicateurs */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid #000;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.indicator.active {
    background: var(--c-red);
    transform: scale(1.4) rotate(45deg);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.indicator:hover {
    background: var(--c-orange);
    transform: scale(1.25);
}

/* Modal actualité */
.news-modal-content {
    animation: modalBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 30px 10px 25px 15px / 15px 25px 10px 30px;
}

@keyframes modalBounce {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-5deg);
    }

    70% {
        transform: scale(1.05) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .news-image {
        height: 250px;
    }

    .news-content {
        padding: 20px;
    }

    .news-title {
        font-size: 1.5rem;
    }

    .news-preview {
        font-size: 1rem;
    }

    .carousel-nav {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .carousel-nav span {
        font-size: 1.3rem !important;
    }

    .carousel-prev {
        left: -50px;
    }

    .carousel-next {
        right: -50px;
    }

    .carousel-indicators {
        gap: 10px;
        padding: 8px 15px;
    }
}

@media (max-width: 600px) {
    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }
}

/* Conteneur pour le rapport Google Looker Studio */
.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    /* Ratio 4:3 pour une bonne lisibilité */
    height: 0;
    border: 3px solid #000;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 20px;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

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

/* Bouton Soutenez-nous du header */
.btn-header-cta {
    font-size: 1.1rem;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff9999 0%, #ff6b6b 50%, #ff5252 100%);
    border: 3px solid #000;
    border-radius: 20px;
    font-family: 'Gloria Hallelujah', cursive;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.2s ease;
    transform: rotate(-4deg);
    display: inline-block;
    animation: heartbeat 1s infinite;
    text-decoration: none;
    color: #2d2d2d;
    white-space: nowrap;
}

.btn-header-cta:hover {
    transform: rotate(-4deg) scale(1.08);
    background: linear-gradient(135deg, #ff6666 0%, #ff4040 50%, #ff2020 100%);
    color: #fff;
    box-shadow: 8px 8px 0px #000;
    animation: heartbeat 0.8s infinite;
}

/* Styles pour la page Soutenir */
.donation-btn {
    transition: all 0.3s ease !important;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.donation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
}

.donation-btn:hover::before {
    left: 100%;
}

.donation-btn:hover {
    transform: translate(-3px, -3px) scale(1.05) !important;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.2) !important;
}

.donation-btn:active {
    transform: translate(0, 0) scale(0.98) !important;
}

/* Tiers de donation */
.grid.md\:grid-cols-4>div {
    transition: all 0.3s ease;
    position: relative;
}

.grid.md\:grid-cols-4>div:hover {
    transform: translateY(-8px) rotate(0deg) !important;
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.15) !important;
}

/* Animation oiseaux et papillons volants */
@keyframes animalsDrift {
    0% {
        background-position: 8% 15%, 92% 8%, 12% 50%, 88% 65%;
    }

    50% {
        background-position: 15% 18%, 88% 12%, 18% 48%, 85% 60%;
    }

    100% {
        background-position: 20% 22%, 85% 15%, 22% 52%, 82% 70%;
    }
}

/* Section avantages fiscaux */
.bg-gradient-to-r {
    transition: all 0.3s ease;
}

.bg-gradient-to-r:hover {
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ===== Galerie & Lightbox ===== */

/* Transformation de la grille en caroussel horizontal */
.gallery-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    /* Empêche le retour à la ligne */
    overflow-x: auto !important;
    gap: 15px;
    padding: 15px 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--c-orange) #f0f0f0;
    width: 100%;
    margin-top: 20px;
}

.gallery-grid::-webkit-scrollbar {
    height: 12px;
    /* Un peu plus épais pour être bien visible */
}

.gallery-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background-color: var(--c-orange);
    border-radius: 4px;
}

/* Force la taille des vignettes (qu'elles soient dans un lien ou non) */
.gallery-grid a,
.gallery-grid>img {
    flex: 0 0 200px !important;
    /* Largeur fixe OBLIGATOIRE */
    width: 200px !important;
    height: 150px !important;
    scroll-snap-align: start;
    position: relative;
    display: block;
    margin: 0;
    transition: transform 0.3s ease;
    border-radius: 8px;
    border: 2px solid #000;
    background: #fff;
}

/* Images à l'intérieur des liens */
.gallery-grid a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px;
    border: none;
}

/* Images directes (anciennes versions) */
.gallery-grid>img {
    object-fit: cover !important;
}

.gallery-grid a:hover,
.gallery-grid>img:hover {
    transform: scale(1.05) rotate(1deg);
    z-index: 5;
    cursor: zoom-in;
}

/* Lightbox (Agrandissement) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    /* Au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border: 4px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    text-shadow: 2px 2px 4px #000;
    transition: color 0.3s;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--c-yellow);
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    top: 20px;
    right: 30px;
    font-size: 30px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================================================== */
/* FIX RENDU TEXTE FLOU (Anti-aliasing & GPU) */
/* ========================================================================== */

.news-card,
.news-modal-content,
.news-title,
.news-preview,
.news-body,
.modal-body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: perspective(1px) translateZ(0);
    /* Rendu GPU forcé */
    backface-visibility: hidden;
}

/* Éviter le flou sur les textes transformés */
.news-card h3,
.news-card p {
    transform: perspective(1px) translateZ(0);
}