:root {
    --primary: #39C252;
    --background: #082736;
    --background2: #0827360a;
    --accent: rgb(255, 204, 0);
    --neutre: white;
    --texte: #333333;
    --details: #3333338d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Urbanist', sans-serif;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Sécurité anti-débordement horizontal sur mobile */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}


/* Boutons & Links */

.btn {
    padding: 20px 20px;
    font-size: 0.8em;
    border-radius: 10px;
    font-weight: 500;
    transition: all .5s ease;
}

.btn_vert {
    background: var(--primary);
    color: var(--neutre);
    border-left: 10px solid white;
}

.btn_blanc {
    color: var(--background);
    background: var(--neutre);
    border-left: 10px solid var(--primary);
}

.play_btn {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    color: white;
    background: none;
    border: none;
    padding: 10px 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    cursor: pointer;
    transition: all .5s ease;
}

.play_btn:hover {
    background: rgba(0, 0, 0, 0.307);
    backdrop-filter: blur(3px);
}

.btn2 {
    font-size: 0.8em;
    border: 1px solid #39c2525c;
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
    color: var(--primary);
    transition: all .5s ease;
}

.btn3 {
    background: var(--background);
    color: white;
    font-size: 0.8em;
    padding: 8px 25px;
    border-radius: 15px;
    transition: all .5s ease;
}

.btn3:hover {
    background: var(--texte);
}

.btn4 {
    background: var(--primary);
    color: white;
    font-size: 0.8em;
    font-weight: 550;
    padding: 8px 25px;
    border-radius: 15px;
    transition: all .5s ease;
}

.btn4:hover {
    background: var(--neutre);
    color: var(--background);
}

.link {
    color: var(--neutre);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    position: relative;
    transition: all .5s ease;
}

.link:hover {
    color: var(--primary);
}

.link::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--primary);
    left: 0;
    bottom: -6px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .5s;
}

.link:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}
.index::after{
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--neutre);
    left: 0;
    bottom: -6px;
    transform: scaleX(1);
}

.cliffaLink {
    color: white;
    text-decoration: underline;
}

.footer_link {
    color: white;
    font-size: 0.8em;
    display: flex;
    align-items: start;
    gap: 10px;
    transition: all .5s ease;
}

.footer_link:hover {
    color: var(--primary);
}

.reseaux a {
    background: white;
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: 15px;
    transition: all .5s ease;
}

.reseaux a:hover {
    background: var(--primary);
    color: white;
}

.btn5{
    background: transparent;
    color: white;
    border: none;
}

.mobile_link{
    padding: 15px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neutre);
    border-top: 1px solid rgba(255, 255, 255, 0.084);
}

.mobile_menu .btn4{
    text-align: center;
    border-radius: 0;
    padding: 15px 0;
}


/**/

/* Colors */
.primary_clr {
    color: var(--primary);
}

.text_clr {
    color: var(--texte);
}

.detail_clr {
    color: var(--details);
}

.blue_clr {
    color: var(--background);
}

/**/

/* Images & Videos */

/* Rendre toutes les images réactives par défaut */
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.189);
    position: relative;
    width: 60px;
    height: 60px;
}

.photo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-color: white;
    border-style: solid;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.189);
    position: relative;
}

.big {
    width: 120px;
    height: 120px;
    border-width: 4px;
}

.large {
    width: 80px;
    height: 80px;
    border-width: 3px;
}

.small {
    width: 60px;
    height: 60px;
    border-width: 2px;
}

.mini {
    width: 45px;
    height: 45px;
    border-width: 1px;
}

.plats .photo {
    cursor: pointer;
}

.plats .small {
    top: 50px;
}

.plats .big {
    bottom: 50px;
}

.photo_card {
    height: 45vh;
    width: 17vw;
    border-radius: 140px 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.189);
    border: 4px solid white;
    transform: scale(1.1);
}

.video {
    border: 4px solid white;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all .6s ease;
}

.video.active {
    transform: scale(2.5);
    left: 20%;
    width: 220px;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.197);
    border-width: 1px;
}

.video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo_part .big {
    position: absolute;
    top: 5%;
    left: 25%;
    transform: scale(1.7);
}

.photo_part .large {
    position: absolute;
    bottom: 30%;
    left: 35%;
    transform: scale(1.5);
}

.photo_part .small {
    position: absolute;
    bottom: 50%;
    left: 45%;
}

.image {
    width: 100%;
    height: 35vh;
    overflow: hidden;
}

.filter img{
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/**/

/* Inputs & Forms */

.input_box {
    position: relative;
}

.input_box input {
    width: 100%;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.107);
    padding: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.063);
    backdrop-filter: blur(5px);
}

.input_box label {
    position: absolute;
    top: 35%;
    left: 2%;
    font-size: 0.7em;
}

/**/

/* footer */

footer {
    background: radial-gradient(rgba(0, 0, 0, 0.822), rgba(0, 0, 0, 0.921)), url('../images/footerBg.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    padding: 2% 0;
}

.footer_top {
    display: flex;
}

.footer_part {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: var(--neutre);
    padding: 1% 3%;
}

.footer_part ul li {
    padding: 5px 0;
}

.reseaux {
    display: flex;
    gap: 15px;
}
.footer_bottom{
    color: white;
    padding: 2% 3%;
}



/**/
/* navbar */
.navbar {
    background: #1f1f1f;
    position: fixed;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 99;
    padding: 1% 3%;
    transition: all .5s ease;
}
.desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.mobile{
    display: none;
    justify-content: space-between;
    position: relative;
}

.mobile_menu{
    position: absolute;
    top: 105%;
    width: 100%;
    background: #1f1f1f;
    display: flex;
    flex-direction: column;
    transform: scaleY(0);
    transform-origin: top;
    transition: all .2s ease;
}

.show{
    transform: scaleY(1);
}




/**/

/* Sections */

.hero_section {
    width: 100vw;
    height: 100vh;
    background: radial-gradient(rgba(0, 0, 0, 0.168), rgba(0, 0, 0, 0.541)), url(../images/heroBg.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
}
.cover{
    height: 40vh;
    width: 100vw;
    background: radial-gradient(rgba(0, 0, 0, 0.168), rgba(0, 0, 0, 0.541)), url(../images/heroBg.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
    color: white;
}

.part {
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 5% 3%;
    flex: 1;
    gap: 25px;
    position: relative;
}

.left {
    color: white;
}

.right {
    align-items: end;
}

.btns {
    margin: 15px 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.empty_case{
    height: 20vh;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plats {
    display: flex;
    gap: 25px;
    padding: 2% 0;
}

.plat {
    position: relative;
}

.label {
    position: absolute;
    z-index: 1;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.086);
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.153);
    backdrop-filter: blur(5px);
    right: 100%;
    font-size: 0.7em;
    width: 200px;
    color: white;
    transition: .5s ease;
    transform-origin: right;
}

.plat:hover .label {
    transform: scale(1);
}

/* Correction des hauteurs de section pour éviter les chevauchements */
.section {
    padding: 60px 5%;
    min-height: auto;
}

.section_top {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.section_title {
    display: flex;
    align-items: end;
    gap: 5px;
}

.section_title hr {
    width: 80px;
    height: 2px;
    border: none;
    background: var(--primary);
}

.parts {
    display: flex;
    align-items: start;
}

.photo_part {
    display: flex;
    justify-content: end;
    align-items: end;
}

.services {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    padding: 2% 0;
}

.service {
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    height: 66vh;
    display: flex;
    align-items: end;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

#resto {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.281), rgba(0, 0, 0, 0.637)), url('../images/img5.jpg');
}

#event {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.281), rgba(0, 0, 0, 0.637)), url('../images/img3.jpg');
}

#loisir {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.281), rgba(0, 0, 0, 0.637)), url('../images/img4.jpg');
}

.service .texte {
    background: rgba(255, 255, 255, 0.292);
    backdrop-filter: blur(5px);
    padding: 9% 4%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    color: var(--neutre);
}

.service .icone {
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.421);
    border: 6px solid rgb(255, 255, 255);
    position: absolute;
    top: 5%;
    left: 5%;
    border-radius: 50%;
    color: var(--background);
}

.foods {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 25px 0;
    gap: 15px;
}

.food {
    height: 60vh;
    background: rgba(128, 128, 128, 0.066);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
    border: 1px solid rgba(128, 128, 128, 0.147);
    position: relative;
    transition: all .5s ease;
}

.food .photo {
    top: 10%;
    transform: scale(1.2);
    align-self: center;
}

.food .texte {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 5% 6%;
}

.food:hover {
    border: 1px solid #39c25297;
    background: white;
}

.food:hover .btn2 {
    background: var(--primary);
    color: white;
}

.food .icone {
    padding: 13px 15px;
    background: white;
    position: absolute;
    top: 5%;
    left: 5%;
    border-radius: 20px;
    color: var(--background);
    border: none;
    transition: all .5s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.096);
}

.food:hover .icone {
    background: var(--primary);
    color: white;
}

.news {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    padding: 2% 0;
}

.new .texte {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 5% 3%;
}

.new_stats {
    display: flex;
    gap: 25px;
}

.filters_section{
    padding: 2% 3%;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100vw;
    overflow-y: auto;
}
.filter{
    padding: 15px 30px;
    border-radius: 13px;
    position: relative;
    overflow: hidden;
    background: #082736d3;
    font-size: 0.8em;
    color: white;
    transition: all .5s ease;
    min-width: max-content;
}
.filter:hover{
    background: #016914a7;
}

.act{
    background: #016914a7;
}



/**/

/* svg */

.icone svg {
    width: 25px;
    height: 25px;
}

.new_stats svg {
    width: 15px;
    height: 15px;
}

.link svg {
    width: 15px;
    height: 15px;
}

.reseaux svg {
    width: 20px;
    height: 20px;
}

.footer_link svg {
    width: 15px;
    height: 15px;
}
.btn5 svg{
    width: 30px;
    height: 30px;
}
.mobile_link svg{
    width: 15px;
    height: 15px;
}

/**/

/* Texts */
.details {
    font-size: 0.8em;
}

.bold {
    font-weight: 500;
}

/**/

/* ==========================================
   MODULES DE LA NOUVELLE GALERIE (GRID ASYMÉTRIQUE)
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense; /* Remplit les trous automatiquement */
    gap: 15px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Fluidité pour un léger zoom */
}

/* Simulation de tailles aléatoires/asymétriques structurées */
.gallery-item.w-2 { grid-column: span 2; }
.gallery-item.h-2 { grid-row: span 2; }
.gallery-item.w-2.h-2 { grid-column: span 2; grid-row: span 2; }

/* Effet au survol premium */
.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:hover img {
    transform: scale(1.05); /* Léger effet de zoom arrière-plan au survol */
}

.gallery-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(8, 39, 54, 0.75); /* Fond bleu foncé transparent */
    color: #ffffff; /* Couleur blanche par défaut si var(--neutre) n'est pas lue */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.overlay-text {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transform: translateY(10px); /* Animation de bas en haut du texte */
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .overlay-text {
    transform: translateY(0); /* Le texte reprend sa place au survol */
}



/* ---------------------------------------------------------- */
/* ---------------------------------------------------------- */

@media (max-width: 768px) {
    .desktop {
        display: none;
    }
    .mobile{
        display: flex;
    }

    .hero_section,
    .parts,
    .footer_top {
        flex-direction: column;
    }

    .hero_section .part {
        padding: 2% 3%;
    }

    .video.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 50vh;
        transform: scale(1);
        z-index: 99;
    }

    .photo_card {
        width: 100%;
    }

    .photo_part .big {
        left: 65%;
        transform: scale(1.2);
    }

    .photo_part .large {
        bottom: 10%;
        left: 10%;
    }

    .photo_part .small {
        bottom: 5%;
        left: 75%;
    }

    .services,
    .foods,
    .news {
        grid-template-columns: 1fr;
    }

    .service, .food{
        height: 40vh;
    }
    .footer_part{
        padding: 8% 3%;
    }
    .hide{
        display: none;
    }
    .logo_part{
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}


@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .gallery-item.w-2, .gallery-item.h-2, .gallery-item.w-2.h-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 400px) {
    .hero_section{
        padding-top: 40px;
    }

    .part{
        gap: 18px;
    }

    .video{
        width: 120px;
        height: 120px;
        border-width: 2px;
    }
    .play_btn{
        font-size: 2em;
    }
    .plats{
        gap: 5px;
    }
    .btns{
        flex-direction: column;
        width: 100%;
        align-items: baseline;
    }

    .service, .food{
        height: 50vh;
    }
}

/*scroll bar*/
/* Pour Chrome, Edge, Safari (WebKit) */
::-webkit-scrollbar {
    width: 2px;
    height: 0px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--texte);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}