/* -------------------- Google fonts -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

/* -------------------- Variables -------------------- */
:root {
    /* Font sizes (mobile) */
    --fs-100: 0.75rem;
    --fs-300: 0.85rem;
    --fs-400: 1rem;
    --fs-500: 1.25rem;
    --fs-600: 2rem;
    --fs-700: 2.5rem;
    --fs-900: 5rem;

    /* Font weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-semibold: 500;
    --fw-bold: 550;

    /* Colors */
    color-scheme: light;

    --backgroundColor:#f5f5f5;
    --textColor: #110c0c;

    --neutralColor-100: #ffffff;
    --neutralColor-200: #ececec;
    --neutralColor-300: #d6d6d6;
    --neutralColor-400: #ababab;
    --neutralColor-500: #7d7d7d;
    --neutralColor-600: #2e3037;
    --neutralColor-700: #22262c;
    --neutralColor-800: #1b1e23;
    --neutralColor-900: #110c0c;

    --primaryColor-100: #a9aaab;
    --primaryColor-300: #80858e;
    --primaryColor-500: #4a525e;
    --primaryColor-700: #29343e;
    
    --accentColor-300:#c7bdb1;
    --accentColor-500:#b9ac9c;

    --mobile-menu-color: rgba(245,245,245,0.9);
    --dropdown__menu: #ffffff;
    
    /* Fonts */
    --ff-primary: "Crimson Text", serif;
    --ff-ss: "Source Sans 3", sans-serif;

    /* Border radius */
    --br-100: 5px;
    --br-300: 15px;
    --br-500: 20px;

    /* Z-index */
    --z-fixed: 10000;

    --header-height: 3.75rem;
    --maxWidth: 800px;

    /* Box shadow */
    --shadow: 0px 2px 20px var(--neutralColor-400);
}

/* Dark theme colors */
.dark-theme {
    color-scheme: dark;
    --backgroundColor: #15181b;
    --textColor: #e1e1e1;
    --neutralColor-100: #efefef;
    --shadow: 0;
    --mobile-menu-color: rgba(19,23,29,0.9);
    --dropdown__menu: #22262c;
}

/* -------------------- BASE -------------------- */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset defaults */
* {
    margin: 0;
    padding: 0;
    font: inherit;
    list-style: none;
    text-decoration: none;
}

html {
    color-scheme: dark light;
}

html:focus-within {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: y proximity;
    font-optical-sizing: auto;
    font-size: clamp(14px, 15px + 0.5vw, 25px);
}

body {
    position: relative;
    top: 0;
    text-rendering: optimizeSpeed;
    line-height: 1;
    font-family: var(--ff-ss);
    font-optical-sizing: auto;
    min-height: 100vh;
    width: 100%;
    background-color: var(--backgroundColor);
    color: var(--textColor);
}

img,
picture,
svg {
    max-width: 100%;
    display: block;
    fill: #fff;
}

img,
audio {
    -webkit-user-drag: none; /* Empêche drag sur Chrome/Safari */
    -webkit-touch-callout: none; /* Empêche menu iOS "enregistrer" */
    user-select: none; /* Empêche sélection accidentelle */
}

/* Empêche d'afficher un fond bleu lorsqu'on clique sur mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

a:focus,
button:focus {
    outline: none;
}

/* Remove transitions and animations for prefers reduced motions */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------- Reusable CSS -------------------- */

h1 {
    font-family: var(--ff-primary);
    font-size: var(--fs-700);
    margin-bottom: 30px;
}

h2 {
    font-family: var(--ff-primary);
    font-size: var(--fs-700);
    font-style: italic;
    margin-bottom: 50px;
}

h3 {
    font-family: var(--ff-ss);
    font-size: var(--fs-400);
    font-weight: var(--fw-semibold);
    margin-bottom: 15px;
}

.display__subtitle {
    font-family: var(--ff-ss);
    text-transform: uppercase;
    font-size: var(--fs-300);
    color: var(--neutralColor-400);
    letter-spacing: 0.15em;
}

.display__title {
    font-size: var(--fs-700);
    font-family: var(--ff-ss);
    font-style: normal;
    letter-spacing: -4%;
}

p {
    font-family: var(--ff-ss);
    font-size: var(--fs-300);
    font-weight: var(--fw-regular);
    color: var(--textColor);
    line-height: 1.5;
    padding-bottom: 15px;
}

span {
    font-family: var(--ff-ss);
    font-size: var(--fs-300);
    font-weight: var(--fw-regular);
    color: var(--textColor);
    line-height: 1.5;
}

section {
    padding: 50px 128px 50px;
    margin: 0 auto 0;
    background-color: var(--backgroundColor);
    width: 100%;
}

@media (max-width: 1024px) {
    section {
        padding: 50px;
    }
}

@media (max-width: 900px) {
    section {
        padding: 50px 20px 50px;
    }
}

i {
    font-style: italic;
}

ul {
    list-style: none;
}

a {
    font-family: var(--ff-ss);
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

label,
button {
    margin: 0;
    font-size: var(--fs-100);
    border: none;
    padding: 15px;
    border-radius: var(--br-100);
    background-color: var(--neutralColor-300);
    color: var(--neutralColor-900);
}

.dark-theme label,
.dark-theme button {
    background-color: var(--neutralColor-600);
    color: var(--neutralColor-200);
}

label:hover,
button:hover {
    background-color: var(--accentColor-300);
    color: var(--neutralColor-900);
}

.dark-theme label:hover,
.dark-theme button:hover {
    background-color: var(--accentColor-500);
    color: var(--neutralColor-900);
}

/* Modals */

.modal {
    display: fixed;
    margin: auto;
    padding: 50px;
    max-width: 80vw;
    border: 0;
    box-shadow: 0 0 1em rgb(0 0 0 / .3);
    animation: modal-fade-out .3s ease-out;
    background-color: var(--neutralColor-100);
    color: var(--neutralColor-900);
}

.modal::backdrop {
    backdrop-filter: blur(4px);
}

.modal:open {
    animation: fade-in 0.5s ease-out;
}

.modal:open::backdrop {
    animation: backdrop-fade-in 0.3s ease-out forwards;
}

.modal .close-btn {
    position: fixed;
    margin-top: -70px;
    margin-left: -70px;
    border-radius: 50%;
    padding: 10px;
}

.light-theme .modal .close-btn {
    background-color: var(--neutralColor-500);
}

.modal p {
    font-size: var(--fs-100);
    color: var(--neutralColor-900);
}

/* Animation keyframes */

@keyframes fade-in {
    0% {
        opacity: 0;
        display: none;
    }

    100% {
        opacity: 1;
        display: block;
    }
}

@keyframes modal-fade-out {
    0% {
        opacity: 1;
        display: block;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

@keyframes backdrop-fade-in {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }

    100% {
        background-color: rgb(0 0 0 / 25%);
    }
}


/* -------------------- HEADER -------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;    
    background-color: var(--backgroundColor);
}

nav-bar.home .header {
    background-color: transparent;
}

/* ---------- NAV ---------- */
.nav {
    height: var(--header-height);
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.nav__data {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__menu {
    opacity: 1;
}

.nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
}

.nav__logo {
    display: inline-flex;
    font-family: var(--ff-primary);
    color: var(--neutralColor-600);
    font-size: var(--fs-400);
    line-height: 1;
    align-content: center;
}

.dark-theme .nav__logo {
    color: var(--primaryColor-100);
}

.nav__toggle {
    display: none;
}

.nav__link {
    font-family: var(--ff-ss);
    font-weight: var(--fw-regular);
    height: 100%;
    font-size: var(--fs-100);
    color: var(--textColor);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transition: background-color .3s;
    z-index: 10;
    column-gap: .25rem;
    padding: 0;
}

/* Les liens survolés et actifs changent de couleur */
.link:hover,
.link.active,
.anchor__link:hover,
.anchor__link.active {
    color: var(--primaryColor-300);
    font-weight: var(--fw-semibold);
}

.dark-theme .link:hover,
.dark-theme  .link.active,
.dark-theme .anchor__link:hover,
.dark-theme .anchor__link.active {
    color: var(--primaryColor-100);
}

/* Liens dans le dropdown écouter */
html:has(#videos:target) a[href="../pages/ecouter-fr.html#videos"],
html:has(#recordings:target) a[href="../pages/ecouter-fr.html#recordings"],
html:has(#discography:target) a[href="../pages/ecouter-fr.html#discography"] {
    color: var(--primaryColor-300);
    font-weight: var(--fw-bold);
}

/* Dropdown */
.dropdown__item {
    position: relative;
    cursor: pointer;
}

.dropdown__arrow {
    transition: transform .5s;
}

.dropdown__arrow svg {
    fill: var(--textColor);
}

.dropdown__link {
    font-size: var(--fs-100);
    padding: 1rem;
    color: inherit;
    display: flex;
    align-items: center;
    column-gap: .5rem;
    transition: background-color .3s;
}

.dropdown__menu {
    transition: max-height .4s ease-out;
    max-height: initial;
    position: absolute;
    left: 0;
    top: calc(var(--header-height) - .5rem);
    opacity: 0;
    pointer-events: none;
    transition: top .5s;
    border-radius: var(--br-100);
    overflow: hidden;
}

.dropdown__link {
    font-family: var(--ff-ss);
    background-color: var(--backgroundColor);
    padding-inline: 1rem 3.5rem;
    color: var(--textColor);
    background-color: var(--dropdown__menu);
}

.dropdown__link i svg{
    width: 100%;
    height: 100%;
}

/* Show dropdown menu */
.dropdown__item:hover .dropdown__menu {
    max-height: 1000px;
    transition: max-height .4s ease-in;
    opacity: 1;
    top: var(--header-height);
    pointer-events: initial;
    transition: top 1s;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
}

/* Languages */

#languages svg {
    fill: var(--primaryColor-300);
    margin: 0;
} 

.btn-lang {
    align-items: center;
    justify-items: center;
} 

.btn-lang svg {
    margin: 0;
    margin-top: 20px;
}  

#dropdown__languages {
    margin-top: 10px;
    top: calc(var(--header-height) - 1.5rem);
} 

/* Color themes */

#theme-toggle {
    display: flex;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    opacity: 1;
    padding: 0;
    position: relative;
    align-self: center;
    justify-self: center;
    justify-content: center;
}

#theme-toggle svg {
    fill: var(--primaryColor-300);
}

#theme-toggle svg:last-child {
    display: none;
}

#theme-toggle:after {
    content: attr(aria-label);
    color: var(--primaryColor-700);
    background-color: var(--neutralColor-300);
    font-size: var(--fs-100);
    text-transform: none;
    position: absolute;
    width: 105px;
    top: 100%;
    margin: 0 auto;
    padding: 0.5em 0.5em;
    border-radius: 0.125em;
    opacity: 0.7;
    transform: scale(0);
    transform-origin: top;
    transition: transform 20ms linear, opacity 20ms linear;
    align-self: center;
    justify-self: center;
}

.light-theme #theme-toggle svg:last-child {
    display: none;
}

.light-theme #theme-toggle svg:first-child {
    display: block;
}

.dark-theme #theme-toggle svg:first-child {
    display: none;
}

.dark-theme #theme-toggle svg:last-child {
    display: block;
}

#theme-toggle:hover,
#theme-toggle:focus {
    outline: 0;
    opacity: 1;
}

#theme-toggle:hover::after,
#theme-toggle:focus-visible::after {
    opacity: .7;
    transform: scale(1);
}

body.menu-open {
    overflow: hidden;
}

/*---------- BREAKPOINTS ----------*/

/* Navigation for mobile devices */
@media screen and (max-width: 900px) {
    .nav {
        padding: 0 20px;
        display: flex;    
        align-items: center;
        justify-items: center;
        width: 100%;
    }

    .nav__logo{
        margin-right: auto;
    }

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

    .nav__menu {
        position: absolute;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        backdrop-filter: blur(10px);
        background-color: var(--mobile-menu-color);
        pointer-events: none;
        opacity: 0;
        transition: opacity .5s;
        z-index: 1;
        align-items: start;
        justify-content: center;
        display: none;
        overflow-y: auto;
    }

    .nav__menu::-webkit-scrollbar {
        width: 0;
    }

    .nav__list {
        display: block;
        align-content: center;
        margin-top: 3rem;
    }

    .nav__link {
        font-size: var(--fs-400);
        text-transform: inherit;
        justify-content: center;
        text-transform: uppercase;
        margin-top: 40px;
        padding: 0;
    }

    .link {
        font-size: var(--fs-400);
        justify-content: center;
        padding: 0;
    }

    .dropdown__menu {
        opacity: 1;
        top: 0;
        position: relative;
        text-align: center;
    }

    .dropdown__item:hover .dropdown__menu {
        opacity: 1;
        top: 0;
        transition: 0;
}

    .dropdown__link {
        position: relative;
        display: block;
        font-size: var(--fs-300);
        justify-items: center;
        column-gap: 0;
        margin-top: 20px;
        padding: 0;
        background-color: transparent;
        padding-inline: 0;
    }

    .dropdown__arrow {
        display: none;
    }

    .nav__menu #theme-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 50px auto;
        width: 100%;
    }

    #languages svg {
        display: none;
    } 

    #dropdown__languages {
        margin-top: 0;
        display: flex;
        justify-content: center;
        gap: 20px;
        padding-bottom: 40px;
    } 

    /* Mobile burger menu */
    .nav__toggle {
        display: block;
        position: relative;
        width: 30px;
        height: 30px;
        margin-left: auto;
    }

    .nav__burger, 
    .nav__close {
        position: absolute;
        width: max-content;
        height: max-content;
        cursor: pointer;
        transition: opacity .1s, transform .4s;
        z-index: 2;
    }

    .nav__burger svg,
    .nav__close svg {
        fill: var(--textColor);
        width: 30px;
        height: 30px;
    }

    .nav__close {
        opacity: 0;
    }

    /* Show the menu when burger icon is clicked */
    .show-menu {
        display: block;
        opacity: 1;
        pointer-events: initial;
    }

    /* Show close icon */
    .show-icon .nav__burger {
        opacity: 0;
        transform: rotate(90deg);
    }
    
    .show-icon .nav__close {
        opacity: 1;
        transform: rotate(90deg);
    }
}

/* Reduced nav for the landing page (= mobile nav) */

nav-bar.home .nav {
    padding: 0 20px;
    display: flex;    
    align-items: center;
    justify-items: center;
    width: 100%;
}

nav-bar.home .nav__logo{
    margin-right: auto;
}

nav-bar.home .nav__data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav-bar.home .nav__menu {
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: var(--mobile-menu-color);
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s;
    z-index: 1;
    align-items: start;
    justify-content: center;
    display: none;
    overflow-y: auto;
}

nav-bar.home .nav__menu::-webkit-scrollbar {
    width: 0;
}

nav-bar.home .nav__list {
    display: block;
    align-content: center;
    margin-top: 3rem;
}

nav-bar.home .nav__link {
    font-size: var(--fs-400);
    text-transform: inherit;
    justify-content: center;
    text-transform: uppercase;
    margin-top: 40px;
    padding: 0;
}

nav-bar.home .link {
    font-size: var(--fs-400);
    justify-content: center;
    padding: 0;
}

nav-bar.home .dropdown__menu {
    opacity: 1;
    top: 0;
    position: relative;
    text-align: center;
}

nav-bar.home .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 0;
    transition: 0;
}

nav-bar.home .dropdown__link {
    position: relative;
    display: block;
    font-size: var(--fs-300);
    justify-items: center;
    column-gap: 0;
    margin-top: 20px;
    padding: 0;
    background-color: transparent;
    padding-inline: 0;
}

nav-bar.home .dropdown__arrow {
    display: none;
}

nav-bar.home .nav__menu #theme-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
    width: 100%;
}

nav-bar.home #languages svg {
    display: none;
} 

nav-bar.home #dropdown__languages {
    margin-top: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-bottom: 40px;
} 

/* Mobile burger menu */
nav-bar.home .nav__toggle {
    display: block;
    position: relative;
    width: 30px;
    height: 30px;
    margin-left: auto;
}

nav-bar.home .nav__burger, 
nav-bar.home .nav__close {
    position: absolute;
    width: max-content;
    height: max-content;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
    z-index: 2;
}

nav-bar.home .nav__burger svg,
nav-bar.home .nav__close svg {
    fill: var(--textColor);
    width: 30px;
    height: 30px;
}

nav-bar.home .nav__close {
    opacity: 0;
}

/* Show the menu when burger icon is clicked */
nav-bar.home .show-menu {
    display: block;
    opacity: 1;
    pointer-events: initial;
}

/* Show close icon */
nav-bar.home .show-icon .nav__burger {
    opacity: 0;
    transform: rotate(90deg);
}

nav-bar.home .show-icon .nav__close {
    opacity: 1;
    transform: rotate(90deg);
}

.dark-theme nav-bar.home .nav__logo {
    color: var(--neutralColor-100);
}


/* -------------------- SOCIAL ICONS AND TOP BUTTON -------------------- */

/* Icons for Facebook, Youtube and Spotify */
.social-icons {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 30px;
    bottom: 50px;
    left: 50px;
    z-index: 3;
}

.social-icons svg {
    fill: var(--neutralColor-600);
}

.dark-theme .social-icons svg {
    fill: var(--neutralColor-300);
    opacity: .8;
}

.dark-theme .facebook:hover,
.facebook:hover {
    fill:#1877F2;
    transition: 0.2s;
}

.dark-theme .youtube:hover,
.youtube:hover {
    fill:#FF0033;
    transition: 0.2s;
}

.dark-theme .spotify:hover,
.spotify:hover {
    fill: #1ED760;
    transition: 0.2s;
}

/* Button to scroll back to the top of the page */
.top-btn {
    position: fixed;
    bottom: 50px;
    right: 50px;
    opacity: 0;
    z-index: 1;
    animation: top-btn linear forwards;
    animation-timeline: scroll(root);
    animation-range: 0% 100%; 
}

@keyframes top-btn {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    95%  { opacity: 1; }
    100% { opacity: 0; }

}

.top-btn svg {
    fill: var(--primaryColor-300);
    width: 35px;
    height: 35px;
}

.top-btn svg:hover {
    fill: var(--primaryColor-500);
    transition: 0.7s;
}

.dark-theme .top-btn svg:hover {
    fill: var(--primaryColor-100);
}

/* No icons when the screen is smaller than 900px */
@media screen and (max-width: 1100px) {
    .social-icons, .top-btn {
        display: none;
    }
}

/* -------------------- ACCUEIL -------------------- */

.accueil {
    position: fixed;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    align-items: center;
    background-color: rgb(15, 15, 15);
    overflow: hidden;
}

.accueil img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.35);
}

.dark-theme .overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(rgba(0,0,0,0.1)30%,rgba(0,0,0,0.15)50%, rgba(0,0,0,0.2));
}

.dark-theme .overlay {
    background: radial-gradient(rgba(0,0,0,0.1)30%,rgba(0,0,0,0.15)50%, rgba(0,0,0,0.25));
}

.accueil .titre {
    position: absolute;
    bottom: 50px;
    left: 0;
    align-content: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.accueil .titre h1 {
    letter-spacing: -4%;
    color: var(--primaryColor-100);
}

.accueil .titre h2 {
    font-family: var(--ff-ss);
    text-transform: uppercase;
    font-style: normal;
    font-size: var(--fs-300);
    color: var(--primaryColor-100);
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.accueil__btn {
    position: absolute;
    bottom: 20px;
    right: calc(50% - 16.5px);
    cursor: pointer;
    opacity: 1;
    z-index: 3;
}

.accueil__btn svg {
    fill: var(--primaryColor-100);
    height: 33px;
    width: 33px;
    cursor: pointer;
}

.accueil__btn svg:hover {
    fill: var(--primaryColor-300);
}

.accueil .copyright {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.7rem;
    font-weight: var(--fw-light);
    color: var(--neutralColor-800);
    z-index: 2;
    cursor: default;
    margin: 0;
    padding: 0;
}

.dark-theme .accueil .copyright {
    color: var(--neutralColor-200);
}

.home .social-icons {
    bottom: 0;
    right: 20px;
    justify-content: center;
    align-items: end;
    height: 100%;
    gap: 40px;
}

@media screen and (max-width: 900px) {
    .accueil img {
        transform: scale(1.15);
    }
}

/* --- Par défaut : contenu visible pour fallback JS --- */
.no-js body.fade-init * {
    opacity: 1;
}

/* --- Fade-in orchestré avec JS --- */
.js body.fade-init .accueil img,
.js body.fade-init nav-bar,
.js body.fade-init .social-icons,
.js body.fade-init .accueil .titre h1,
.js body.fade-init .accueil .titre h2,
.js body.fade-init .accueil__btn,
.js body.fade-init .accueil .copyright {
    opacity: 0;
}

/* Transition pour fade-in */
.js body.loaded .accueil img,
.js body.loaded nav-bar,
.js body.loaded .social-icons,
.js body.loaded .accueil .titre h1,
.js body.loaded .accueil .titre h2,
.js body.loaded .accueil__btn,
.js body.loaded .accueil .copyright {
    opacity: 1;
}

/* Délais pour orchestrer l’apparition */
.js body.loaded .accueil img { transition-delay: 0s; }

.js body.loaded .accueil .titre h1 { 
    transition-delay: .7s; 
    transition: opacity 1.5s ease;
}

.js body.loaded .accueil .titre h2 { 
    transition-delay: 1.2s; 
    transition: opacity 2s ease;
}

/* --- Fade-out sur clic / Enter / Tab / flèches --- */
.fade-out-content {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

@media screen and (max-width: 900px) {
    .accueil .copyright {
        display: none;
    }

    .accueil__btn {
        position: fixed;
        bottom: 20px;
        right: calc(50% - 16.5px);
    }
}

/* -------------------- A PROPOS -------------------- */

/* Biographie */
.biographie {
    position: relative;
    margin: 100px auto 0;
    color: var(--neutralColor-900);
}

.biographie .display__subtitle, .biographie .display__title {
    text-align: center;
}

.biographie .display__title {
    color: var(--textColor)
}

.biographie p {
    color: var(--neutralColor-900);
    font-size: var(--fs-300);
    margin: 0 auto 25px;
    max-width: var(--maxWidth);
}

.dark-theme .biographie p {
    color: var(--neutralColor-100);
    letter-spacing: -4%;
}

/* Animations */
@supports (animation-timeline: view()) {
    .biographie p {
        opacity: .8;
        animation: textIn linear forwards;
        animation-timeline: view();
        animation-range: entry 20% cover 30%;
    }

    @keyframes textIn {
        to {
            opacity: 1;
        }
    }
}

@media screen and (min-width: 1400px) {
    .biographie p {
        max-width: none;
        padding: 0 150px 0 150px;
    }
}

/* ----- PROJETS ----- */

/* Projets : titre, sous-titre et introduction */
.projets__intro {
    width: 100%;
    margin: 100px auto 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: var(--maxWidth);
}

.projets__intro h3 {
    text-transform: uppercase;
    font-size: var(--fs-300);
    color: var(--neutralColor-400);
    letter-spacing: 0.15em;
}

.projets__intro h2 {
    font-size: var(--fs-700);
    font-family: var(--ff-ss);
    font-style: normal;
    letter-spacing: -4%;
}

.projets__intro p {
    margin-top: 40px;
    color: var(--textColor);
    text-align: center;
    justify-self: center;
}

@media screen and (min-width: 1400px) {
    .projets__intro {
        max-width: none;
    }

    .projets__intro p {
        padding: 0 200px 0 200px;
    }
}

/* Projets : posters */
.posters {
    position: relative;
    height: auto;
    width: 100%;
    max-width: var(--maxWidth);
    margin: 100px auto 100px;
}

.posters .grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.poster {
    position: relative;
    background-color: var(--neutralColor-600);
    height: 350px;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: left;
    background-size: cover;
    transition: transform .5s ease;
}

.poster__wide {
    grid-column: span 2;
}

.poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.retourbtn {
    position: relative;
    padding: 10px 15px 10px 5px;
    display: none;
    align-items: center;
    justify-items: center;
    gap: 5px;
    height: 50px;
    width: fit-content;
}

.retourbtn svg {
    fill: var(--neutralColor-700);
}

.dark-theme .retourbtn svg {
    fill: var(--neutralColor-200);
}

.retourbtn:hover svg {
    fill: var(--neutralColor-700);
}

/* Posters : titre, sous-titre et bouton */
.poster__content {
    margin: 30px auto 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.452) 20%, rgb(0, 0, 0));
    z-index: 2;
    justify-content: center;
    padding: 20px;
    align-items: center;
    text-align: center;
}

.poster__content h3 {
    font-size: var(--fs-500);
    padding-bottom: 10px;
    color: var(--neutralColor-100);
    margin-top: 50px;
    line-height: 1.2;
}

.poster__content p {
    font-size: var(--fs-300);
    color: var(--neutralColor-100);
    padding: 5px;
    margin-bottom: 20px;
}

.poster__content label {
    align-self: center;
    justify-self: center;
}

.dark-theme .poster__content label:hover span {
    color: var(--neutralColor-900);
}

@media(hover) {
    .poster:hover,
    .poster:focus-within {
        transform: scale(1.02);
    }

    .poster__content {
        transform: translateY(40%);
        transition: transform 500ms ease;
    }

    .poster:hover .poster__content,
    .poster:focus-within .poster__content {
        transform: translateY(0);
        transition-delay: 100ms;
    }

    .poster:focus-within .poster__content {
        transition-duration: 0ms;
    }

    .poster__content > *:not(h3){
        opacity: 0;
        transition: opacity 500ms linear;
    }

    .poster:hover .poster__content >*:not(h3),
    .poster:focus-within .poster__content >*:not(h3) {
        opacity: 1;
        transition-delay: 500ms;
    }
}

/* Texte toujours visible sur mobile */
@media screen and (max-width: 700px) {
    .poster__content > *:not(h3){
        opacity: 1 !important;
        transition: none !important;
    }

    .poster__content {
        transform: translateY(0) !important;
    }
}

@media screen and (min-width: 1400px) {
    .posters {
        max-width: none;
        padding: 0 200px 0 200px;
    }

    .poster {
        height: 500px;
    }
}

@media screen and (max-width: 700px) { 
    .posters {
        max-width: none;
        width: 100%;
    }

    .posters .grid {
        grid-template-columns: 1fr;
    }

    .poster__wide {
        grid-column: span 1;
    }
}

/* Projets : détails */
.projets {
    display: grid;
    grid-template-columns: 1fr;
    box-sizing: border-box;
}

/* Radio button invisibles pour changer le design */
.projectOpen {
    position: absolute;
    opacity: 0;
}

.projectOpen:checked ~ .projets__intro {
    display: none;
}

.projectOpen:checked ~ .projets {
    display: grid;
    grid-template-columns: minmax(150px, 170px) 1fr;
    gap: 100px;
    justify-content: center;
    padding: 0;
    width: 100%;
    margin: 0;
}

.projectOpen:checked ~ .projets .grid {
    display: grid;
    grid-template-columns: 150px;
    min-width: 150px;
    position: sticky;
    top: calc(var(--header-height) + 50px);
    margin: 0;
}

.projectOpen:checked ~ .projets .poster {
    grid-column: span 1;
    height: 100px;
    transform: scale(1);
}

.projectOpen:checked ~ .projets .poster__content {
    transform: translateY(0);
    margin-top: 0;
    background-color: rgba(38, 38, 40, 0.299);
}

.projectOpen:checked ~ .projets .poster__content h3 {
    font-size: var(--fs-100);
    margin-top: 20px;
}

.projectOpen:checked ~ .projets .poster__content p {
    display: none;
}

.projectOpen:checked ~ .projets .poster__content label {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: transparent;
}

.projectOpen:checked ~ .projets .poster__content label span {
    display: none;
}

.projectOpen:checked ~ .projets .poster__content label:hover {
    background-color: #c7bdb134;
    transition: 0ms;
}

@media screen and (min-width: 1400px) {
    .projectOpen:checked ~ .projets .posters {
        padding: 0;
    }


}

/* Bouton de retour */
.projectOpen:checked ~ .projets .retourbtn {
    display: flex;
}

/* Fermer les projets lorsqu'on appuie sur le bouton retour */
#closeProjects:checked ~ .projets .projets__details .projet {
    display: none;
}

/* Projets */

.projets__details .projet {
    display: none;
    position: relative;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
    padding: 0;
    margin-top: 100px;
}

#projet__festival:checked ~ .projets .projets__details #festival,
#projet__duo:checked ~ .projets .projets__details #duo,
#projet__orgues:checked ~ .projets .projets__details #orgues {
    display: block;
    height: max-content;
    opacity: 1;
}

.projet {
    position: relative;
    align-items: start;
    justify-items: start;
}

.projet p {
    font-size: var(--fs-300);
}

.projet > h3 {
    font-size: var(--fs-400);
    color: var(--primaryColor-700);
    font-weight: var(--fw-semibold);
    margin-top: 20px;
}

.dark-theme .projet > h3 {
    color: var(--primaryColor-100);
}

@media screen and (max-width: 950px) { 
    .projectOpen:checked ~ .projets {
        display: block;
    }
    
    .projectOpen:checked ~ .projets .posters {
        max-width: none;
    }

    .projectOpen:checked ~ .projets .posters .grid {
        display: block;
        height: 0px;
        padding: 0;
        margin: 0;
    }

    .projectOpen:checked ~ .projets .posters .grid .retourbtn {
        padding: 10px 15px 10px 5px;
        margin: 0;
        align-items: center;
        justify-items: center;        
    }

    .projectOpen:checked ~ .projets .posters .poster {
        display: none;      
    }
}

/* ----- Festival d'orgue de Saint-Ghislain ----- */

.festival {
    position: relative;
    width: 100%;
    align-items: start;
    justify-items: start;
}

@media screen and (min-width: 1400px) { 
    .festival > p {
        margin-right: 10rem;
    }
}

/* Les orgues Georges Delmotte */

.festival__orgues {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 50px auto 100px;
    padding: 0;
    align-items: center;
    justify-items: center;
}

.festival__orgues picture {
    width: 100%;
    height: 100%;
    display: block;
}

.festival__orgues picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.festival__orgues .container {
    width: 100%;
    height: 100%;
    background-color: var(--neutralColor-200);
    color: var(--neutralColor-100);
    padding: 25px;
}

.dark-theme .festival__orgues .container {
    background-color: var(--neutralColor-800);
}

.festival__orgues .container h2 {
    color: var(--neutralColor-700);
    font-size: var(--fs-600);
}

.dark-theme .festival__orgues .container h2 {
    color: var(--neutralColor-300);
}

.festival__orgues .container p {
    font-size: var(--fs-100);
}

/* Modal composition */
.festival__orgues .modal {
    padding: 0;
    max-width: 80vw;
}

.festival__orgues .modal .close-btn {
    margin-top: -20px;
    margin-left: -20px;
}

@media screen and (max-width: 600px) { 
    .festival__orgues { 
        display: flex;
        flex-direction: column-reverse;
    }

    .festival__orgues .modal {
        max-width: 90vw;
    }
}

/* Programmation générale */

.programme {
    width: 100%;
    margin-bottom: 50px;
}

.programme .card {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 50px;
    min-height: 200px;
    background-color: var(--neutralColor-200);
    padding: 25px;
    margin: 15px auto 15px;
    border-radius: var(--br-100);
    overflow: hidden;
    scroll-margin-top: var(--header-height) ;
}

.dark-theme .programme .card {
    background-color: var(--neutralColor-800);
}

.programme .card h3 {
    margin: 0;
    padding: 20px 0 15px;
}

.programme .card .date {
    margin-top: 15px;
    padding: 0
}

.programme .card .date p {
    text-align: end;
    font-size: var(--fs-400);
    line-height: 1.1;
}

.programme .card .date p:first-child {
    font-weight: var(--fw-bold);
    color: var(--primaryColor-700);
    font-size: var(--fs-500);
}

.dark-theme .programme .card .date p:first-child {
    color: var(--primaryColor-100);
}

.programme input {
    display: none;
}

.programme label {
    padding: 15px 15px 15px;
    font-size: var(--fs-100);
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.programme .close {
    cursor: pointer;
    padding: 15px 15px 15px;
    font-size: var(--fs-100);
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: none;
}

.programme .card .info .event__content {
    position: relative;
    max-height: 0px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: 
    max-height .8s ease,
    opacity 0.5s ease,
    transform 0.5s ease;
}

.programme input:checked + .card {
    display: block;
}

.programme input:checked + .card .info .event__content {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
}

/* Pas de transition à l'ouverture */
.programme input:checked + .card .date,
.programme input:checked + .card .info .text,
.programme input:checked + .card .info .open {
    display: none;
}

.programme input:checked + .card .info .close {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
}

/* Programmation détaillée */
.event__content p {
    font-size: var(--fs-100);
}

/* Image et titre */
.event__content .concert__intro {
    display: grid;
    grid-template-columns: minmax(150px, 200px) 1fr;
    gap: 25px;
    margin: 0 50px 50px;
    padding: 25px;
}

.event__content .concert__intro .image {
    width: 150px;
    height: 150px;
    border-radius: 150px;
    overflow: hidden;
}

.event__content .concert__intro .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event__content .concert__intro .image span {
    position: absolute;
    color: var(--accentColor-500);
    font-family: var(--ff-primary);
    font-size: var(--fs-700);
    font-style: italic;
    font-weight: var(--fw-bold);
    left: 50px;
    top: 100px;
}

/* Biographie, programme et infos */
.programme input:checked + .card .info .event__content .bio, 
.programme input:checked + .card .info .event__content .programme, 
.programme input:checked + .card .info .event__content .infos {
    padding: 0 0 25px;
    margin: 0;
}

.event__content h4 {
    padding-bottom: 15px;
}

@media screen and (max-width: 600px) { 
    .programme .card {
        display: flex;
        flex-direction: column-reverse;
        padding: 20px;
        gap: 10px;
    }

    .programme .card .date {
        display: flex;
        flex-direction: row;
        gap: 20px;
    }

    .programme .card .date p {
        align-self: center;
    }

    .event__content .concert__intro {
        grid-template-columns: 1fr;
        width: 100%;
        justify-items: center;
        text-align: center;
        margin: 0;
        padding: 0;
        margin-bottom: 50px;
    }

    .event__content .concert__intro .image span {
        left: 50%;
        margin-left: -105px;
    }
}

/* Affiche */

.affiche {
    width: 100%;
    height: auto;
    margin-top: 100px;
    justify-self: center;
}

@media screen and (min-width: 1400px) { 
    .affiche {
        justify-self: start;
        max-width: var(--maxWidth);
    }
}

/* -------------------- PHOTO GALLERY -------------------- */

.gallery {
    margin-top: 50px;
    position: relative;
    padding: 50px;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: row;
}  

.gallery > div {
    display: flex;
    justify-content: center;
    align-items: center;
}  

.gallery > div:hover {
    transform: scale(1.005);
}  

.gallery > div > img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
    vertical-align: middle;
    display: inline-block;
    cursor: pointer;
}  

.gallery .wide {
    grid-column: span 2;
}  

.gallery .tall {
    grid-row: span 2;
}  

.gallery .big {
    grid-column: span 2;
    grid-row: span 2;
}

@media screen and (max-width: 700px) {
    .gallery {
        display: block;
    }   

    .gallery > div {
        padding-bottom: 10px;
    }   
}

@media screen and (max-width: 900px) {
    .gallery {
        padding: 50px 20px;
    }   
}

@media screen and (min-width: 1400px) {
    .gallery {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
        grid-auto-rows: 300px;
    }  
}

@media screen and (min-width: 1600px) {
    .gallery {
        grid-auto-rows: 400px;
    }  
}

@media screen and (min-width: 1800px) {
    .gallery {
        grid-auto-rows: 500px;
    }  
}

.lightbox {
    position: fixed;
    display: none;
    background-color: rgba(0, 0, 0, 0.875);
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: auto;
    top: 0;
    left: 0;
    z-index: 200;
    align-content: center;
    justify-items: center;
    cursor: pointer;
}

/* Evite que certains éléments deviennent bleus */
.lightbox * {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.lightbox__content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    pointer-events: none; /* permet de cliquer pour fermer la lightbox */
}

.lightbox__content img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: var(--br-100);
    cursor: auto;
}

.lightbox__prev, .lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 30px;
    border-radius: 30px;
    background-color: var(--neutralColor-400);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.lightbox__prev:hover, .lightbox__next:hover {
    background-color: var(--accentColor-500);
}

.lightbox__prev {
    left: 50px;
    background-image: url(../images/icons/arrow-left.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.lightbox__next {
    right: 50px;
    background-image: url(../images/icons/arrow-right.svg);
    background-repeat: no-repeat;
    background-position: center;
}

.lightbox__content img,
.lightbox__prev,
.lightbox__next {
    pointer-events: auto; /* cliquables */
}

.lightbox__credit {
    position: absolute;
    bottom: 10px;
    right: 30px;
    color: var(--neutralColor-200);
    font-size: var(--fs-100);
    opacity: 0.75;
    pointer-events: none;
}

.no-scroll{
    overflow: hidden;
    height: 100vh;
}

.lightbox img{
    touch-action: pan-y;
}

/* Repositionne les flèches en bas */
@media (max-width: 950px) {
    .lightbox__prev,
    .lightbox__next {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .lightbox__prev {
        margin-left: -35px;
    }

    .lightbox__next {
        margin-left: 35px;
    }
}

/* -------------------- ECOUTER -------------------- */

/* -------------------- VIDEOS -------------------- */

.media {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin: 100px auto;
    justify-content: center;
    width: 100%;
    scroll-margin-top: var(--header-height);
}

/* Video principale */
.media .main-video {
    width: 100%;
    border-radius: 5px;
    background-color: var(--neutralColor-200);
    height: auto;
    overflow: hidden;
}

.dark-theme .media .main-video {
    background-color: var(--neutralColor-700);
}

.media .main-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 0px; 
}

.media .main-video .text {
    display: block;
    padding: 15px;
}

.media .main-video .infos {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    justify-content: space-between;
    text-align: start;
    gap: 15px;
    line-height: 25px;
}

.media .main-video .infos .item {
    overflow: hidden;
    display: flex;
}

.media .main-video .infos .item p {
    display: flex;
    font-weight: var(--fw-bold);
    font-size: var(--fs-100);
    color: var(--primaryColor-300);
    margin-right: 25px;
    line-height: 25px;
}

.media .main-video .infos .item span {
    color: var(--primaryColor-300);    
    margin-right: 5px;
    line-height: 25px;
    font-size: var(--fs-100);
    padding: 0;
    margin: 0;
}

.dark-theme .media .main-video .infos .item p,
.dark-theme .media .main-video .infos .item span {
    color: var(--primaryColor-100);    
}

.media .main-video .infos .item span svg {
    fill: var(--primaryColor-300);
    height: 25px;
    margin-right: 5px;
}

.dark-theme .media .main-video .infos .item span svg {
    fill: var(--primaryColor-100);
}

.media .main-video .title {
    font-size: var(--fs-300);
    font-weight: var(--fw-regular);
    padding: 10px 0;
    color: var(--neutralColor-900);
}

.dark-theme .media .main-video .title {
    color: var(--neutralColor-200);
}

.media .main-video .details p {
    font-size: var(--fs-100);
    color: var(--neutralColor-900);
    line-height: 25px;
}

.dark-theme .media .main-video .details p {
    color: var(--neutralColor-200);
}

/* Liste de vidéos */
.media .video-list {
    min-width: 330px;
}

.media .video-list .vid picture img {
    width: 100px;
    border-radius: 5px;
}

.media .video-list .vid {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: 15px;
    background: var(--neutralColor-200);
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
    cursor: pointer;
}

.dark-theme .media .video-list .vid {
    background: var(--neutralColor-700);
}

.media .video-list .vid:hover {
    background: var(--neutralColor-300);
}

.dark-theme .media .video-list .vid:hover {
    background: var(--neutralColor-600);
}

.media .video-list .vid.active {
    background: var(--neutralColor-300);
}

.dark-theme .media .video-list .vid.active {
    background: var(--neutralColor-600);
}

.media .video-list .vid.active .title {
    font-weight: var(--fw-semibold);
}

.media .video-list .vid .title {
    color: var(--neutralColor-900);
    font-size: var(--fs-100);
}

.dark-theme .media .video-list .vid .title {
    color: var(--neutralColor-200);
    font-size: var(--fs-100);
}

.media .video-list .vid .details,
.media .video-list .vid .infos {
    display: none;
}

/* VIMEO */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* maintient toujours 16:9 */
    margin: 0 auto;
    background: #000000;
    color-scheme: light !important;
    overflow: hidden; /* éviter que l'iframe déborde */
}

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

.iframe-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover; /* remplissage complet du wrapper */
    background-color: #000;
}

/* Overlay des boutons */
.video-controls {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center; /* ✅ tout sur la même ligne */
    justify-content: space-between;

    padding: 0 15px;
    box-sizing: border-box;

    opacity: 1;
    transition: opacity 0.3s;
}

/* Desktop / hover : fade quand on sort du curseur */
@media (hover: hover) and (pointer: fine) {
    .video-controls {
        opacity: 0;
    }

    .video-wrapper:hover .video-controls {
        opacity: 1;
    }
}

/* Containers gauche / droite */
.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

/* Style des boutons */
.video-controls button {
    height: 1.7rem;
    width: 1.7rem;
    padding: .4rem;
    border: none;
    border-radius: 100%;
    background-color: rgba(0,0,0,0.6);
    cursor: pointer;
}

.video-controls button:hover {
    background-color: rgba(0,0,0,0.8);
}

.video-controls svg {
    height: 100%;
    width: 100%;
    fill: var(--neutralColor-200);
}

/* Fullscreen centré et fond sombre */
.video-wrapper:fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #13171b !important;
}

.video-wrapper:fullscreen .iframe-container {
    padding: 0 !important;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #13171b !important;
}

.video-wrapper:fullscreen iframe {
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.video-wrapper:fullscreen .video-controls {
    bottom: 50px;
}

/* Paramètres */
.quality-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tooltip cachée par défaut */
.quality-btn .quality-text {
    display: none;
    position: absolute;
    bottom: 130%; /* au-dessus du bouton */
    left: 50%;
    transform: translateX(-50%);
    
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: var(--fs-100);
    font-family: var(--ff-ss);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none; /* évite les bugs hover */
    z-index: 10;
}

/* Affichage au hover */
.quality-btn:hover .quality-text {
    display: block;
}

/* Petite flèche en dessous (optionnel, joli) */
.quality-btn .quality-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0,0,0,0.7) transparent transparent transparent;
}

/* Progress Bar centrée */
.progress-container {
    flex: 1; /* prend l’espace restant */
    height: 6px;

    margin: 0 15px; /* espace entre boutons */

    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;

    cursor: pointer;
    pointer-events: auto; /* ✅ cliquable */

    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: rgba(29, 29, 29, 0.7);

    border-radius: 10px;
    transition: width 0.1s linear;
}

/* Overlay spinner de chargement */
#loadingOverlay {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    color: var(--neutralColor-100);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 10;
}

/* Spinner animé */
#loadingOverlay .spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid rgb(255, 255, 255);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

@media screen and (max-width: 1100px){
    .media {
        position: relative;
        display: flex;
        flex-direction: column-reverse;
        gap: 15px;
    }

    .media .main-video {
        position: relative;
        width: 100%;
    }

    .media .video-list {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0 auto 0px;  
        min-width: none; 
        width: 100%;
    }

    .media .video-list .vid {
        margin-bottom: 0px;
    }
}

@media screen and (max-width: 435px){  
    .media .main-video .infos { 
        grid-template-columns: 1fr;
        gap: 0;
        line-height: 15px;
    }

    .media .main-video .infos .item p { 
        line-height: 15px;
    }

    .media .main-video .infos .item span { 
        line-height: 15px;
    }

    .media .main-video .infos .item span svg { 
        height: 15px;
    }
}

@media screen and (min-width: 1400px) {
    .media {
        justify-items: center;
        max-width: 1000px;
    }

    .media .main-video {
        width: 620px; 
    }
}

@media screen and (min-width: 1700px) {
    .media {
        justify-items: center;
        max-width: 1400px;
    }

    .media .main-video {
        width: 1020px; 
    }
}

/* -------------------- RECORDINGS -------------------- */

/* Recordings : title */

.recordings__title {
    margin: 0px auto 0;
    padding-top: 150px;
    padding-bottom: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: var(--maxWidth); 
}

.recordings__title h2 {
    font-size: var(--fs-700);
    font-family: var(--ff-ss);
    font-style: normal;
    letter-spacing: -4%;
    margin: 0;
    padding: 0;
}

.recordings__title h3 {
    text-transform: uppercase;
    font-size: var(--fs-300);
    color: var(--neutralColor-400);
    letter-spacing: 0.15em;
}

/* Player */

.ecouter {
    display: flex;
    gap: 50px; 
    align-content: center;
    justify-content: center;
    margin: 0 auto;
}

.recordings {
    justify-items: center;
    align-items: start;
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
    height: auto;
}

.recordings .recordings__main {
    width: 100%;
    height: 100%;
    background-color: var(--neutralColor-200);
    border-radius: var(--br-100);
    overflow: hidden;
    padding: 15px 0px 5px;
    position: relative;
}

.dark-theme .recordings .recordings__main {
    background-color: var(--neutralColor-700);
}

.recordings .recordings__main .text {
    position: relative;
    color: var(--textColor);
    padding-left: 25px;
    padding-right: 25px;
}

.recordings .recordings__main .title {
    font-size: var(--fs-300);
    font-weight: var(--fw-regular);
    color: var(--textColor);
    cursor: default;
    margin-top: 10px;
}

.recordings .text .infos {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    justify-content: space-between;
    text-align: start;
    gap: 15px;
    line-height: 25px;
}

.recordings .text .infos .item {
    overflow: hidden;
    display: flex;
}

.recordings .text .infos .item p {
    display: flex;
    font-weight: var(--fw-bold);
    font-size: var(--fs-100);
    color: var(--primaryColor-300);
    margin-right: 25px;
    line-height: 25px;
}

.recordings .text .infos .item span {
    color: var(--primaryColor-300);    
    margin-right: 5px;
    line-height: 25px;
    font-size: var(--fs-100);
}

.dark-theme .recordings .text .infos .item p,
.dark-theme .recordings .text .infos .item span {
    color: var(--primaryColor-100);
}


.recordings .text .infos .item span svg {
    fill: var(--primaryColor-300);
    height: 25px;
    margin-right: 5px;
}

.dark-theme .recordings .text .infos .item span svg {
    fill: var(--primaryColor-100);
}

.recordings .recordings__main .details p {
    font-size: var(--fs-100);
    color: var(--textColor);
    margin-bottom: 20px;
}

.recordings .recordings__main audio {
    width: 100%;
    padding: 0 20px 0 20px;
    font: inherit;
    position: absolute;
    bottom: 10px;
    left: 0px;
}

.recordings .recordings__main audio::-webkit-media-controls-panel {
    background-color: var(--neutralColor-200);
}

.dark-theme .recordings .recordings__main audio::-webkit-media-controls-panel {
    color-scheme: dark; 
    background-color: var(--neutralColor-700);
}

.recordings .recordings__main audio::-webkit-media-controls-play-button {
    background-color: var(--neutralColor-300);
    color: var(--neutralColor-200);
    border-radius: 100%;
    padding: 20px;
    margin-right: 20px;
}

.dark-theme .recordings .recordings__main audio::-webkit-media-controls-play-button {
    background-color: var(--neutralColor-600);
}

.recordings .recordings__main audio::-webkit-media-controls-play-button:hover {
    background-color: var(--primaryColor-100);
    color: var(--neutralColor-600);
}

.dark-theme .recordings .recordings__main audio::-webkit-media-controls-play-button:hover {
    background-color: var(--primaryColor-500);
}

.recordings .recordings__main img {
    width: 125px;
    height: 125px;
    margin-top: 10px;
}

.recordings .recordings__main .recording__img {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Playlist */

.recordings .recordings__list {
    width: 100%;
    background-color: var(--backgroundColor);
    height: 100%;
    align-content: center;
}

.dark-theme .recordings__list {
    background-color: var(--backgroundColor);
}

.recordings .recordings__list .rec {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
    padding: 20px 30px 15px;
    cursor: pointer;
    background: var(--neutralColor-200);
    width: 100%;
}

.recordings .recordings__list .rec:first-child {
    margin-top: 0px;
}

.dark-theme .recordings .recordings__list .rec {
    background: var(--neutralColor-700);
    box-shadow: 0px 4px 15px rgba(22, 22, 22, 0.4);
}

.recordings .recordings__list .rec:first-child {
    border-radius: var(--br-100) var(--br-100) 0 0;
}

.recordings .recordings__list .rec:last-child {
    border-radius: 0 0 var(--br-100) var(--br-100);
    margin-bottom: 0;
}

.recordings .recordings__list .rec:hover,
.recordings .recordings__list .rec.active {
    background: var(--neutralColor-300);
}

.dark-theme .recordings .recordings__list .rec:hover,
.dark-theme .recordings .recordings__list .rec.active {
    background: var(--neutralColor-600);
}

.recordings .recordings__list .rec.active .title {
    font-weight: var(--fw-semibold);
    color: var(--textColor);
}

.recordings .recordings__list .rec .title {
    color: var(--textColor);
    font-size: var(--fs-100);
}

.recordings .recordings__list .rec .details,
.recordings .recordings__list .rec .infos,
.recordings .recordings__list .rec img {
    display: none;
}

@media (max-width: 1100px){
    .ecouter {
        gap: 50px; 
        align-items: center;
        justify-items: center;
    }

    .recordings {
        justify-items: center;
        align-items: center;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        height: auto;
        overflow: hidden;
    }

    .recordings .recordings__main {
        height: auto;
        border-radius: var(--br-100) var(--br-100) 0 0;
    }

    .recordings .recordings__list .rec:first-child {
        border-radius: 0;
    }

    .recordings .recordings__list .rec:last-child {
        border-radius: 0 0 var(--br-100) var(--br-100);
    }

    .recordings .recordings__main audio {
        position: relative;
        margin-top: 30px;
    }
}

@media screen and (max-width: 435px){
    .recordings .text .infos { 
        grid-template-columns: 1fr;
        gap: 0;
        line-height: 15px;
    }

    .recordings .text .infos .item p { 
        line-height: 15px;
    }

    .recordings .text .infos .item span { 
        line-height: 15px;
    }

    .recordings .text .infos .item span svg { 
        height: 15px;
    }
}

@media screen and (min-width: 1400px) {
    .recordings {
        max-width: 1000px;
    }
}

@media screen and (min-width: 1700px) {
    .recordings {
        max-width: 1400px;
    }
}

/* -------------------- DISCOGRAPHIE -------------------- */
 
/* Discographie */

.discographie {
    display: flex;
    align-content: center;
    justify-content: center;
    margin: 0px auto 100px;
    width: 100vw;
}

.discographie .discographie-content {
    display: grid;
    grid-template-columns: 1fr;
}

.discographie .discographie-content .compilation {
    color: var(--primaryColor-100);
    text-transform: uppercase;
    font-size: var(--fs-100);
    margin: 0;
    font-weight: var(--fw-bold);
    letter-spacing: 1px;
}

.discographie .card {
    background-color: var(--neutralColor-200);
    border-radius: 5px;
    overflow: hidden;
    height: auto;
    margin-bottom: 30px;
    scroll-margin-top: calc(var(--header-height) + 50px);
}

.dark-theme .card {
    background-color: var(--neutralColor-700);
}

.CD {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 20px;
    color: var(--neutralColor-900);
    border-radius: 5px;
    transition: 0.8s ease-in-out;
}

.CD-image {
    height: 100%;
    width: 100%;
    transition: 0.8s ease-in-out;
}

.CD-image img {
    height: 100%;
    width: 100%;
    aspect-ratio: 2/2;
    object-fit: cover;
}

.CD-content {
    position: relative;
    padding: 1rem 1rem 1rem 1rem;
}

.CD-content h3 {
    font-size: var(--fs-400);
    font-weight: var(--fw-semibold);
    margin-top: 10px;
    color: var(--primaryColor-700);
}

.dark-theme .CD-content h3 {
    color: var(--primaryColor-100);
}

.CD-content p {
    color: var(--textColor);
}

.CD-content .trad {
    font-size: var(--fs-300);
    color: var(--textColor);
    font-weight: var(--fw-light);
    margin: 0;
    padding: 0;
}

.CD-content .infos {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.CD-content .infos .infos-text {
    display: flex;
}

.CD-content .infos p {
    font-size: var(--fs-100);
    color: var(--primaryColor-300);
    font-weight: var(--fw-bold);
    margin-right: 50px;    
    line-height: 25px;
}

.dark-theme .CD-content .infos p {
    color: var(--primaryColor-100);
}

.CD-content .infos .spotify {
    cursor: pointer;
}  

.CD-content .infos .spotify svg {
    align-self: end;
    fill: var(--primaryColor-500);
}

.dark-theme .CD-content .infos .spotify svg {
    align-self: end;
    fill: var(--primaryColor-100);
}

.CD-content .infos .spotify:hover svg {
    fill: #1ED760;
    transition: 0.2s;
}  

.card .contenu {
    position: relative;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.4s ease;
    padding: 0 2rem;
}

.contenu .subtitle {
    font-size: var(--fs-300);
    font-weight: var(--fw-semibold);
    color: var(--primaryColor-700);
}

.dark-theme .contenu .subtitle {
    color: var(--primaryColor-100);
}

.contenu p {
    font-size: var(--fs-100);
    color: var(--textColor);
}

.contenu .credits {
    font-weight: var(--fw-light);
    color: var(--textColor);
    font-size: var(--fs-100);
}

.contenu .edito {
    margin-bottom: 25px;;
}

/* Boutons pour ouvrir et fermer les cards */
.discographie input {
    display: none;
}

label {
    display: inline-block;
    width: fit-content;
    cursor: pointer;
}

.CD-btn,
.discographie .contenu .close {
    position: absolute;
    bottom: 15px;
    right: 15px;
    cursor: pointer;
}

.discographie .contenu .close {
    display: none;
}

.card input:checked ~ .CD .CD-btn {
    display: none;
}

.card input:checked ~ .contenu {
    max-height: 2000px;
    opacity: 1;
    text-align: justify;
    color: var(--neutralColor-900);
    padding: 0 2rem 1rem;
}

.card input:checked ~ .contenu .close {
    display: block;
}

.card input:checked ~ .CD {
    padding: 1rem;
}

.card input:checked ~ .CD .CD-image {
    padding: 1rem;
    border-radius: var(--br-100);
}

.card input:checked ~ .CD .CD-image img {
    border-radius: var(--br-100);
}

@media screen and (min-width: 1400px) {
    .discographie .discographie-content {
        max-width: 1000px;
        justify-content: center;
    }
}

@media screen and (min-width: 1700px) {
    .discographie .discographie-content {
        max-width: 1400px;
    }
}

@media screen and (max-width: 600px) {
    .recordings__title {
        margin-bottom: 50px;
    }
    
    .discographie {
        padding: 20px;
    }
    
    .CD {
        grid-template-columns: 1fr;
    }

    .card input:checked ~ .CD,
    .card input:checked ~ .CD .CD-image {
        padding: 0px;
    }

    .card input:checked ~ .contenu {
        padding: 0 15px 2rem 15px;
    }

    .CD-content .infos p {
        margin-right: 25px;    
    }
}

/* AGENDA */

/* Prochains évènements */

.next__events {
    position: relative;
    width: 100%;
    margin: 100px auto 50px;
    text-align: center;
}

.next__events .events {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    margin: 100px auto 0;
    text-align: start;
}

.next__events .text {
    min-height: 300px;
    width: 40vw;
    background-color: var(--neutralColor-200);
    border-radius: var(--br-100);
    z-index: 1;
    padding: 35px;
    align-content: center;
}

.dark-theme .next__events .text {
    background-color: var(--neutralColor-600);
}

.next__events .text h3 {
    font-size: var(--fs-400);
    font-weight: var(--fw-regular);
    color: var(--textColor);
    margin-bottom: 20px;
    line-height: 1.2;
}

.next__events .text p {
    font-size: var(--fs-100);
    color: var(--primaryColor-500);
}

.dark-theme .next__events .text p {
    color: var(--primaryColor-100);
}

.next__events .text span {
    text-align: start;
    font-size: var(--fs-100);
    color: var(--neutralColor-800);
}

.dark-theme .next__events .text span {
    color: var(--neutralColor-200);
}

.next__events .text .location,
.next__events .text .price,
.next__events .text .date {
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 15px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.next__events .text .location svg,
.next__events .text .price svg,
.next__events .text .date svg {
    fill: var(--primaryColor-500);
    margin-top: 0px;
    flex-shrink: 0;
}

.next__events .text .location span p,
.next__events .text .price span p,
.next__events .text .date span p {
    margin-top: 10px;
    font-size: var(--fs-100);
}

.dark-theme .next__events .text .location svg,
.dark-theme .next__events .text .price svg,
.dark-theme .next__events .text .date svg {
    fill: var(--primaryColor-100);
}

.next__events .image picture {
    display: block;
    height: 100%;
    width: 100%;
}

.next__events .image {
    width: 40vw;
    border-radius: var(--br-100);
    transform: scale(1.2);
    overflow: hidden;
}

.next__events .image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: bottom left;
}

@media screen and (max-width: 1000px) {
    .next__events {
        padding: 50px;
        margin: 100px auto 0;
        justify-content: center;
    }

    .next__events .image {
        transform: scale(1);
        border-radius: var(--br-100) 0 0 var(--br-100);
        width: 45vw;
    }

    .next__events .text {
        border-radius: 0 var(--br-100) var(--br-100) 0;
        width: 45vw;
    }
}

@media screen and (max-width: 750px) {
    .next__events {
        padding: 20px;
    }

    .next__events .events {
        display: grid;
        grid-template-columns: 1fr;
    }

    .next__events .text {
        width: 100%;
        min-height: auto;
        border-radius: 0 0 var(--br-100) var(--br-100);
    }

    .next__events .image {
        width: 100%;
        border-radius: var(--br-100) var(--br-100) 0 0;
    }
}

/* Agenda complet */

.agenda {
    position: relative;
    display: grid;
    grid-template-columns: 560px 1fr;
    width: 100%;
    height: 340px;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    align-self: center;
    border-radius: var(--br-100);
    overflow: hidden;
    margin: 0 auto 100px;
}

.agenda__title h2 {
    margin-top: 50px;
    text-align: center;  
    font-style: normal;
}

/* Section avec la galerie d'évènements */

.agenda .section {
    position: relative;
    display: block;
    box-sizing: border-box;
    background-color: var(--neutralColor-700);
    margin: 0 auto 0;
    padding: 15px 43px 15px;
    height: 340px;
    width: 100%;
}

.agenda .section .top {
    position: relative;
    display: flex;
    align-content: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    gap: 20px;
}

.agenda .section .top .title h3 {
    color: var(--neutralColor-100);
    line-height: 40px;
    font-size: var(--fs-600);
    font-style: italic;
    font-family: var(--ff-primary);
}

.arrows button {
    height: 27px;
    width: 27px;
    margin-top: 10px;
    background-color: var(--neutralColor-600);
    border: none;
    border-radius: 30px;
    transition: .5s;
    padding: 5px;
}

.arrows button:hover {
    background-color: var(--neutralColor-400);
}

.arrows button svg {
    fill: var(--neutralColor-100);
    height: 100%;
    width: 100%;
    align-self: center;
    justify-self: center;
}

button:disabled {
  opacity: 0.3;
}

button:disabled:hover {
  background-color: var(--neutralColor-600);
}

.thumbnail {
    position: relative;
    display: flex;
    box-sizing: border-box;
    margin-top: 40px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    align-items: center;
    scrollbar-width: none;
}

.thumbnail::-webkit-scrollbar{
    width: 0;
}

.thumbnail .item {
    width: 130px;
    height: 200px;
    margin-left: 15px;
    margin-right: 15px;
    transition: 1s;
    flex-shrink: 0;
    scroll-snap-align: start;
    scroll-margin-inline: 7.5px 7.5px;
    filter: brightness(1);
    border-radius: var(--br-100);
    overflow: hidden;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.thumbnail .item.active {
    width: 150px;
    height: 220px;
    margin-left: 9px;
    margin-right: 9px;
    filter: brightness(1);
}

.thumbnail .item.active img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail .item.active .content {
    display: none;
}

/* dégradé noir sur la photo */
.thumbnail .item .content {
    position: absolute;
    width:100%;
    height:100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    border-radius: var(--br-100);
}

.thumbnail .item .content .text {
    position: absolute;
    bottom: -15px;
    margin: 10px;
    font-size: var(--fs-100);
}   

.thumbnail .item .content .text p {
    color: var(--neutralColor-300);
    font-size: var(--fs-100);
    text-align: start;
}   

/* slider de description */
.slider {
    position: relative;
    display: flex;
    box-sizing: border-box;
    justify-content: start;
    text-align: start;
    align-self: start;
    background-color: var(--neutralColor-100);
    margin: 0px auto 0px;
    width: 100%;
    height: 100%;
    align-items: center;
}

.slider .list .item {
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: 1s;
    color: var(--neutralColor-900);
    padding: 25px;
}

.slider .list .item::after{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
}

.slider .list .item .content h3 {
    font-size: var(--fs-400);
    font-weight: var(--fw-regular);
    text-transform: uppercase;
    color: var(--primaryColor-900);
    margin-bottom: 20px;
}

.slider .list .item .content .time,
.slider .list .item .content .location,
.slider .list .item .content .price {
    display: flex;
    align-items: start;
    gap: 15px;
    font-size: var(--fs-100);
    margin-bottom: 5px;
}

.slider .list .item .content .location span,
.slider .list .item .content .price span {
    font-size: var(--fs-100);
    color: var(--neutralColor-900);
    line-height: 1.2;
}

.slider .list .item .content .date {
    color: var(--primaryColor-500);
    font-size: var(--fs-300);
    font-weight: var(--fw-bold);
}

.slider .list .item .content .heure {
    font-size: var(--fs-300);
    color: var(--neutralColor-900);
}

.slider .list .item .content .details {
    font-size: var(--fs-100);
    color: var(--neutralColor-900);
    line-height: 1.1;
}

.slider .list .item.active {
    opacity: 1;
}

.agenda-error {
    position: relative;
    display: block;
    padding: 20px;
    text-align: start;
    color: var(--neutralColor-900);
}

/* Grand format */
@media screen and (min-width: 1400px) {
    .agenda {
        grid-template-columns: 740px 1fr;
        max-width: 1500px;
    }
}

/* Enlève les marges autour de l'agenda */
@media screen and (max-width: 1100px) {
    section.agenda__title {
        padding: 50px;
    }

    .agenda {
        grid-template-columns: 560px 1fr;
    }

    .section {
        height: 340px;
        padding: 15px 43px 15px;
    }
    
    .thumbnail .item {
        width: 130px;
        height: 200px;
    }
    
    .thumbnail .item.active {
        width: 150px;
        height: 220px;
    }
}

/* Ajuste légèrement */
@media screen and (max-width: 950px) {
    .agenda {
        grid-template-columns: 540px 1fr;
    }

    .section {
        height: 340px;
    }
    
    .thumbnail .item {
        width: 120px;
        height: 190px;
    }
    
    .thumbnail .item.active {
        width: 140px;
        height: 210px;
    }
}

/* Agenda vertical */
@media screen and (max-width: 900px) {
    section.agenda__title {
        padding: 20px;
    }

    .agenda {
        grid-template-columns: 550px;
        height: auto;
        width: 550px;
    }

    .slider {
        height: 300px;
    }

    .thumbnail .item {
        width: 130px;
        height: 200px;
    }
    
    .thumbnail .item.active {
        width: 150px;
        height: 220px;
    }
}

/* Agenda vertical avec un seul évènement à la fois */
@media screen and (max-width: 590px) {
     .section.agenda__title {
        padding: 20px;
    }

    .agenda {
        grid-template-columns: 1fr;
        height: auto;
        width: 100%;
        background-color: var(--neutralColor-700);
    }

    .agenda .section {
        width: 230px;
    }

    .slider {
        width: 100%;
        height: 270px;
    }

    .thumbnail {
        display: flex;
        flex-direction: row;
        overflow-x: hidden;
        gap: 15px;        
        scroll-behavior: smooth;
    }

    .thumbnail .item,
    .thumbnail .item.active {
        width: 130px;
        height: 200px;
        flex: 0 0 auto;
        margin: 0;
    }
}
    

/* Newsletter */

.newsletter {
    position: relative;
    width: 100%;
    margin: 0 auto 50px;
    padding: 50px;
    color-scheme: light;
    background-color: var(--neutralColor-200);
}

.dark-theme .newsletter {
    background-color: var(--neutralColor-700);
}

.newsletter .col-2 {
    position: relative;
    background-color: var(--neutralColor-200);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    color: #000000;
}

.dark-theme .newsletter .col-2 {
    background-color: var(--neutralColor-700);
}

.newsletter h2, .newsletter p {
    color: var(--textColor);
}

.newsletter .divider {
    border-right: 1px solid var(--neutralColor-900);
    margin-right: -50px;
    padding-right: 50px;
}

.dark-theme .newsletter .divider {
    border-right: 1px solid var(--neutralColor-400);
}

.newsletter form {
    display: block;
    width: 100%;
}

.dark-theme .newsletter form {
    color-scheme: dark;
}

.newsletter form input {
    border: 0;
    outline: none;
    padding: 10px 20px;
    margin: 5px 0;
    height: 40px;
    width: 100%;
    font-size: var(--fs-100);
    font-family: var(--ff-ss);
    border: solid 0.5px var(--backgroundColor);
}

.dark-theme .newsletter form input {
    border: solid 0.5px var(--neutralColor-700);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    font-family: var(--ff-ss);
    font-size: var(--fs-100);
    -webkit-box-shadow: 0 0 0px 1000px var(--neutralColor-100) inset !important;
}

.dark-theme input:-webkit-autofill,
.dark-theme input:-webkit-autofill:hover,
.dark-theme input:-webkit-autofill:focus,
.dark-theme textarea:-webkit-autofill,
.dark-theme textarea:-webkit-autofill:hover,
.dark-theme textarea:-webkit-autofill:focus,
.dark-theme select:-webkit-autofill,
.dark-theme select:-webkit-autofill:hover,
.dark-theme select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--neutralColor-600) inset !important;
}

.dark-theme .newsletter form input {
    background-color: var(--neutralColor-600);
}

.dark-theme .newsletter form input::placeholder {
    color: var(--neutralColor-200);
    opacity: .9;
}

.newsletter form button {
    border: none;
    outline: none;
    height: 100%;
    width: 100%;
    cursor: pointer;
    padding: 10px 20px;
    margin: 10px 0;
}

.newsletter span {
    color: var(--textColor);
    margin-top: 10px;
    display: block;
}

@media screen and (max-width: 700px) {
    .newsletter .col-2 {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }

    .newsletter .divider {
        border-right: 0;
    }

    .dark-theme .newsletter .divider {
        border-right: 0;
    }
}

/* -------------------- FOOTER -------------------- */

footer {
    position: sticky;
    width: 100%;
    margin: 0 auto 0;
    padding: 30px 50px 0;
    background-color: var(--backgroundColor);
    z-index: 2;
}

footer .footer-list {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
}

footer .footer-list h3 {
    font-size: var(--fs-300);
    font-weight: var(--fw-semi-bold);
}

footer .footer-list p {
    font-size: var(--fs-100);
    font-weight: var(--fw-light);
    color: var(--textColor);
}

footer .footer-list .divider {
    border-right: 1px solid var(--neutralColor-400);
    margin-right: -40px;
    padding-right: 40px;
}

footer .socials {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 15px;
}

footer .socials svg {
    fill: var(--primaryColor-300);
}

footer .copyright {
    margin-top: 20px;
    padding-top: 10px;
}

footer .copyright p {
    font-size: var(--fs-100);
    font-weight: var(--fw-light);
    text-align: center;
}

/* Newsletter modal */

.modal.newsletter {
    position: fixed;
    margin: auto;
    max-width: 500px;
}

@media (max-width: 900px) {
    footer {
        padding: 30px 20px 0px;
    }
}

@media (max-width: 768px) {
    footer .footer-list {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    footer .footer-list .divider {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }
}

@media (max-width: 600px) {
    .modal.newsletter {
        max-width: 90vw;
    }
}

@media (max-width: 450px) {
    footer .footer-list {
        grid-template-columns: 1fr;
    }

    footer .copyright {
        margin-top: 50px;
    }
}