main {
    position: relative;
    z-index: 2;
}

#carousel-container {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
    margin-bottom: 200px;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

body {
    background: black;
    height: 1000vh;
    max-width: 100%;
    cursor: none;
    overflow-x: hidden;
}

@keyframes slidein {
    from { transform: translate(150px); }
    to   { transform: translate(-1100px); }
}

.blurorigin {
    position: relative;
    filter: blur(150px);
    animation:slidein 5s ease-in-out infinite alternate;
    z-index: 7;
}

.blur {
    clip-path: polygon(0 36%, 17% 0, 70% 32%, 100% 7%, 100% 97%, 81% 77%, 0 72%);
    background: linear-gradient(#29FF74, #19A54A ,#0A3B1B, #0A3B1B);
    margin-left: -20%;
    width: 180vw;
    height: 1900px;
    margin-bottom: 100px;
    overflow: visible;
    z-index: 7;
}

.partie2, #albums-container {
    position: relative;      /* au lieu de absolute */
    width: 100%;
    padding-top: 50px;     /* conserve l’espace initial */
    background-color: whitesmoke;
    z-index: 2;
}


.album {
    width: 600px;
    height: 200px;
    border-radius: 19px;
    background-color: whitesmoke;
    color: whitesmoke;
    font-family: var(--CDSB);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 400px;
    margin-left: 100px;
    border: 2px solid black;
    z-index: 6;
}

.album:hover {
    width: 600px;
    height: 200px;
    border-radius: 19px;
    background-color: whitesmoke;
    color: whitesmoke;
    font-family: var(--CDSB);
    margin-bottom: 400px;
    margin-left: 100px;
    border: 2px solid black;
    transform: translate(0px, 0px);
    z-index: 6;
}

.album1 {
    width: 600px;
    height: 200px;
    border-radius: 19px;
    background-color: black;
    transition: transform 0.2s ease-in-out;
    transform: translate(-20px, -20px);
    z-index: 6;
}

.album1:hover {
    width: 600px;
    height: 200px;
    border-radius: 19px;
    background-color: black;
    transform: translate(0px, 0px);
    z-index: 6;
}

.redirection {
    position: relative;
    right: -530px;
    top: -120px;
    object-fit: contain;
    width: 35px;
    transform: rotate(0deg);
    transition: transform 0.2s ease-in-out;
}

.redirection:hover {
    position: relative;
    right: -530px;
    top: -120px;
    object-fit: contain;
    width: 35px;
    transform: rotate(-20deg);
    transition: transform 0.2s ease-in-out;
}

.lieu {
    font-size: 3em;
    position: relative;
    left : 25px;
    top : 15px;
}

.qui {
    font-size: 1em;
    position: relative;
    left : 25px;
    top : -120px;
}

.quand {
    font-size: 1em;
    position: relative;
    left : 470px;
    top : -135px;
}

.second {
    font-size: 0.35em;
    font-family: var(--RX);
    position: relative;
    right : 525px;
    top : 26px;
    color: forestgreen;
}

.photos {
    display: flex;
    flex-direction: column-reverse;
    justify-content: end;
    margin-left: 50%;
    object-fit: contain;
    width: 750px;
}

.photo {
    margin-bottom: 50px;
    border: 1px solid transparent;
    border-radius: 25px;
}

.sidebar-toggle {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.sidebar-toggle.open {
    transform: translateY(-50%) rotate(180deg);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: #1a1a1a;
    color: white;
    padding: 2rem 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    transform: translateX(0);
}

.filter-section {
    font-family: var(--CDSB);
    margin-bottom: 2rem;
}

.filter-section h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.3rem;
}

.filter-section label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.toggle-button {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 48px;
    height: 96px;
    background-color: #1a1a1a;
    border-radius: 24px 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    transition: background-color 0.3s ease;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}

.toggle-button.rotated .arrow-icon {
    transform: rotate(180deg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 900;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

input[type="checkbox"], input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    position: relative;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

input[type="checkbox"] {
    border-radius: 5px;
}


input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

input[type="checkbox"]:checked::before, input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    transition: background-color 0.3s;
}

input[type="checkbox"]:hover, input[type="radio"]:hover {
    border-color: #388E3C;
}

input[type="checkbox"]:checked:hover, input[type="radio"]:checked:hover {
    border-color: #388E3C;
    background-color: #388E3C;
}

input[type="checkbox"]:focus, input[type="radio"]:focus {
    outline: none;
    border-color: #4CAF50;
}

#apply-filters, #apply-filters-mobile {
    font-family: var(--CDSB);
    padding: 10px 20px;
    border: 2px solid #ccc;
    background-color: white;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    outline: none;
}

#apply-filters:hover, #apply-filters-mobile:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}


#apply-filters:focus, #apply-filters-mobile:focus {
    border-color: #388E3C;
    background-color: #388E3C;
    color: white;
}

.titrefiltre {
    font-family: var(--CDSB);
    margin-bottom: 15px;
    font-size: 2.4em;
    color: #4CAF50;
}

@media (max-width: 932px) {

    header {
        justify-content: space-between; /* espace entre image/nav et burger */
        margin: 20px 40px;
    }

    .header {
        position: fixed;
        top: 30px;
        left: 0;
        width: calc(100% - 20px); /* laisse 20px de marge de chaque côté */
        margin: 0 10px;           /* centre le header avec marges latérales */
        height: 140px;
        background-color: #80808090;
        border-radius: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        backdrop-filter: blur(7px);
    }

    .sections {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .sections img {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        margin-left: 20px;
    }

    /* Burger */
    .burger {
        position: fixed;
        top: 30px;          /* même top que .header */
        right: 80px;
        height: 140px;       /* même hauteur que .header */
        display: flex;
        align-items: center; /* centre verticalement les 3 barres */
        justify-content: center;
        flex-direction: column;
        z-index: 11000;
        cursor: pointer;
    }

    .burger span {
        display: block;
        width: 56px;          /* largeur visible */
        height: 6px;          /* épaisseur */
        background: white;
        border-radius: 4px;
        margin: 6px 0;        /* espace entre les barres */
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(13px, 13px);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(13px, -13px);
    }

    .overlay-menu ul li {
        margin: 40px 0;
    }

    .overlay-menu ul li a {
        color: white;
        font-size: 4rem;
        font-family: var(--CDSB);
        text-decoration: none;
    }

    html {
        overflow-x: hidden;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
        position: fixed;
        pointer-events: none;
        z-index: 99999; /* toujours visible */
    }

    #albums-container {
        position: relative;
        width: 100% !important;
        height: auto;
        top:auto;
        background-color: whitesmoke;
        z-index: 2;
    }

    .blurorigin {
        display: none;
    }

    .album {
        width: calc(85% - 120px);
        height: 200px;
    }

    .album1 {
        width: 100%;
        height: 200px;
        transform: translate(-40px, -40px);
    }

    .album:hover {
        width: calc(85% - 120px);
        height: 200px;
    }

    .album1:hover {
        width: 100%;
        height: 200px;
    }

    .redirection {
        right: -530px;
        top: -120px;
    }

    .photos {
        margin:0;
    }

    .toggle-button {
        width: 90px;
        height: 250px;
        transition: background-color 0.4s ease;
    }

    .arrow-icon {
        width: 62px;
        height: 62px;
        transition: all 0.4s ease;
        stroke: white; /* couleur initiale de la flèche */
    }

    .toggle-button.rotated {
        background-color: white; /* fond blanc */
    }

    .toggle-button.rotated .arrow-icon path {
        stroke: #1a1a1a !important; /* couleur flèche quand toggle ouvert */
        transition: stroke 0.5s ease;
    }

    .overlay-filters {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,0.95);
        opacity: 0;
        pointer-events: none;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1050; /* au-dessus du contenu mais sous la toggle-button */
        transition: opacity 0.4s ease;
    }

    .overlay-filters.active {
        opacity: 1;
        pointer-events: auto;
    }

    .filters-content {
        background-color: #1a1a1a;
        color: white;
        display: flex;
        width: 95%;          /* prend presque tout l'écran */
        max-width: 700px;    /* ne dépasse pas 650px */
        padding: 4rem;     /* plus d'espace intérieur */
        border-radius: 30px;
        font-size: 1.5rem;   /* texte plus grand */
        flex-direction: column;
        gap: 2.5rem;
    }

    .filters-content h2.titrefiltre {
        font-size: 3.7em;         /* titre principal très lisible */
    }

    .filter-section h3 {
        font-size: 2.7rem;        /* sous-titres agrandis */
    }

    .filter-section label {
        font-size: 2.2rem;        /* texte des options plus gros */
    }

    input[type="checkbox"],
    input[type="radio"] {
        width: 36px;               /* case plus grande */
        height: 36px;
        position: relative;
    }

    input[type="checkbox"]:checked::before,
    input[type="radio"]:checked::before {
        width: 14px;               /* ton choix de proportion */
        height: 14px;
        top: 50%;                  /* centrer parfaitement */
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #apply-filters, #apply-filters-mobile {
        font-size: 2rem;         /* bouton plus gros */
        padding: 18px 30px;        /* zone cliquable plus confortable */
        border-radius: 12px;
    }

    .sidebar { display: none; }



}


@media (max-width: 760px) {

   .redirection {
        right: -450px;
    }

    .quand {
        left: 390px;
    }
}

@media (min-width: 761px) and (max-width: 790px) {

    .redirection {
        right: -480px;
    }

    .quand {
        left: 420px;
    }
}

@media (min-width: 791px) and (max-width: 829px) {

    .redirection {
        right: -520px;
    }

    .quand {
        left: 460px;
    }
}

@media (min-width: 830px) and (max-width: 860px) {

    .redirection {
        right: -540px;
    }

    .quand {
        left: 490px;
    }
}
/* Overlay-filters visible uniquement sur mobile */
@media (min-width: 933px) {
    .overlay-filters { display: none !important; }
}