@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --white: #fff;
    --bg-black: #2f2e2c;
    --black: #2f2e2c;
    --yellow: #f7dc3f;
    --blue: #44a8b3;
    --grey: #9d9d9d;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.bodyother {
    justify-content: center;
}


aside {
    width: 200px; /* Set the width of the sidebar */
    position: fixed;
    top: 0;
    left: 0; /* Align to the left */
    height: 100%; /* Full height */
    background-color: var(--bg-black); /* Match the website style */
    padding: 20px;
    z-index: 100;
}
nav {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 10px;
}
ul {
    margin-block: 0;
    padding-inline: 0;
    list-style-type: none;
}
a {
    text-decoration: none;
}
nav a {
    color: var(--white);
    background-color: var(--bg-black);
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease-in-out;
}
ul li {
    transition: 0.3s ease-in-out;
}
nav a:hover, ul li:hover {
    transform: scale(0.9);
}


/* ============================================ */
/* HAMBURGER MENU - Modern Slide-in Navigation */
/* ============================================ */

/* Hide traditional header on desktop */
header {
    display: none;
}

/* Hamburger Button */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--yellow), #f59e0b);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(247, 220, 63, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(247, 220, 63, 0.6);
}

.menu-toggle.active {
    transform: rotate(180deg);
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--bg-black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Slide-in Menu */
.slide-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-black) 0%, #1a1a1a 100%);
    z-index: 1000;
    padding: 100px 30px 30px 30px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.4s ease;
    overflow-y: auto;
    display: none;
}

.slide-menu.active {
    display: block;
    left: 0;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Menu Logo/Title */
.menu-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--yellow);
}

.menu-header h2 {
    color: var(--yellow);
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.menu-header p {
    color: var(--grey);
    font-size: 12px;
    margin: 5px 0 0 0;
}

/* Navigation Links */
nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

nav ul li {
    transition: all 0.3s ease;
}

nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 220, 63, 0.2), transparent);
    transition: left 0.5s ease;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    background: rgba(247, 220, 63, 0.15);
    border-left-color: var(--yellow);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(247, 220, 63, 0.2);
}

nav a span {
    font-size: 20px;
}

/* Menu Footer */
.menu-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.menu-footer p {
    color: var(--grey);
    font-size: 12px;
    margin: 0;
}

a {
    text-decoration: none;
}

.hero {
    width: 100%;
    display: flex;
    background-color: #2f2e2c;
    align-items: center;
    justify-content: center;
    /* height: 90vh; */
    box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

.hero-content h1 {
    margin-bottom: 20px;
    text-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.hero-content img {
    height: 200px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 20px;
    z-index: 3;
}

.hero-content p {
    background-color: var(--yellow);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
}

.hero-gap {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
}

p {
    color: var(--black);
    font-size: 14px;
    font-weight: 400;
}

h1 {
    color: var(--black);
    font-size: 38px;
    font-weight: 700;
    margin: 5px 0;
    text-align: center;
}

.hero h1 {
    color: var(--white) !important;
}

h2 {
    color: var(--black);
    font-size: 28px;
    font-weight: 700;
    margin: 5px 0;
    text-align: center;
}

.input-container {
    display: flex;
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
    background: #f3f3f3;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.icon {
    display: flex;
    align-items: center;
}

.icon picture img {
    width: 35px;
    height: 35px;
    transform: scale(1.6) translateY(-20px);
    z-index: 5;
    position: absolute;

    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

input {
    border: none;
    outline: none;
    flex: 1;
    padding: 10px;
    font-size: 16px;
    font-weight: 400;
    width: 100%;
    background-color: transparent;
    padding-left: 40px;
    color: var(--black);
    font-family: "Poppins", sans-serif;
}

.btn {
    color: var(--white);
    background-color: var(--bg-black);
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    font-size: 14px;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    transition: 0.1s ease-in-out;
    transform: scale(1.1);
}

.input-content {
    display: flex;
    width: 100%;
    gap: 20px;
    justify-content: center;
}

.btn:hover {
    transform: scale(1.15);
}

section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.h2-subtitle {
    text-transform: capitalizeZ;
    font-weight: 600;
    margin: 0;
    color: var(--grey);
}

.section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 20px 0;
}

.section-content p {
    text-align: center;
}

.card {
    background-color: var(--bg-black);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.card h3 {
    margin: 0;
    color: var(--white);
    margin-bottom: 10px;
}

.card ul li {
    color: var(--white);
    transform: scale(1) !important;
    font-size: 14px;
}

.card ul {
    flex-direction: column;
    list-style-type: disc;
    padding-inline-start: 1em;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 20px;
    margin: 20px 0;
}

.subtitle-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.subtitle-content img {
    width: 25px;
}

.section-yellow {
    background-color: var(--yellow);
    width: 100%;
    box-shadow: rgb(247 220 63) 0px 22px 70px 4px;
}

.section-yellow .h2-subtitle {
    color: var(--black);
}

.section {
    margin: 20px;
}

.presentation-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 400px;
    margin: 20px;
}

.presentation-content h3{
    color: var(--black);
    font-size: 24px;
    margin: 0;
}

.details__summary h3 {
    color: var(--black);
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.presentation-content p {
    text-align: left;
}

.avis-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.avis {
    display: flex;
    animation: scroll 20s linear infinite;
    gap: 20px;
    padding: 20px;
}

.avis-content {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.user {
    width: 25px;
    height: 25px;
    border-radius: 100px;
}

.card-avis {
    background-color: var(--yellow);
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    height: min-content;
    transition: 0.2s ease-in-out;
}

.card-avis:hover {
    transform: translateY(-20px);
    box-shadow: rgba(0, 0, 0, 0.35) 0px -50px 36px -28px inset;
}

.card-avis h5 {
    color: var(--black);
    margin-top: 0;
}

.card-avis .legend {
    font-size: 12px;
    font-weight: 600;
}

.video-bg-section {
    position: relative;
    overflow: hidden;
    height: 100vh;
}
  
.video-bg-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.8;
}
  
.video-bg-section .content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 20px;
}

.card-2 {
    background-color: var(--bg-black);
    padding: 20px;
    border-radius: 12px;
    transition: 0.2s ease-in-out;
    max-width: 400px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.card-2 h2 {
    color: var(--white);
}

.card-2 p {
    color: var(--grey);
    text-align: center;
    margin-bottom: 40px;
}

.card-2 ul {
    flex-direction: column;
    list-style-type: disc;
    padding-inline-start: 20px;
    margin-bottom: 60px;
    gap: 20px;
}

.card-2 a {
    background: var(--yellow);
    color: var(--black);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: 0.2s ease-in-out;
}

.card-2 a:hover {
    transform: scale(0.99) rotate(1deg);
    opacity: 0.9;
}

.card-2 ul li {
    color: var(--white);
    font-size: 14px;
}

.detail {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
    max-width: 500px;
}
  
.details{
    background-color: var(--yellow);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.details__title{
    --width: 20px;
    --height: 3px;
    --radius: 1px;
    --color: currentColor;
    margin:0;
    padding: 20px;
    cursor: pointer;
    transition: all .2s ease-in-out;
    position: relative;
    border-radius: 12px;
}

.details__title:after{
rotate: 90deg;
}

.details__container[open] .details__title:before{
rotate: 45deg;
}

.details__container[open] .details__title:after{
rotate: 135deg;
}

.details__summary::marker{
content:'';
}

.details__desc{
    visibility: hidden;
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    padding-inline: var(--padding);
    pointer-events: none;
    width: 0;
    height: 0;
}

.details__container[open] + .details__desc{
    visibility: visible;
    grid-template-rows: 1fr;
    padding-block: var(--padding);
    width: 100%;
    height: 100%;
}

.details__desc-inner{
    min-height: 0;
    color: var(--black);
    margin: 20px;
    margin-top: 0;
}

.blog {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.blogcard {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--yellow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blogcard p:first-of-type {
    background: var(--yellow);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 12px;
}

.blogcard h3 {
    margin: 0;
    font-size: 24px;
    color: var(--black);
}

.blogsection, .blogpage {
    width: 100%;
}

.blogsection {
    display: block;
}

.blogpage {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    margin: 40px;
    padding-top: 76px;
}

.blogpage h1 {
    text-align: left;
}

.blogcard img {
    width: 100%;
    object-fit: cover;
    height: 200px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.1s ease-in-out;
}

.blogcard img:hover {
    transform: scale(1.05) translateY(-9px);
}

.blogs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sidebarblog {
    background: var(--yellow);
    padding: 20px;
    padding-top: 76px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
    max-width: 200px;
}

.sidebarblog a {
    color: var(--black);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 4 - 80px));
    }
}

.card-avis:hover {
    animation-play-state: paused;
}

@media screen and (max-width: 768px) {
    /* Corrections générales pour éviter les cards collées */
    .cards-container, .presentation-content {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    
    .cards-container .card {
        margin: 0 5px;
    }
    
    /* Navigation */
    nav ul {
        display: none;
    }
    nav {
        justify-content: center;
    }
    /* .bodyother {
        margin-top: 76px;
    } */
    
    /* Sections générales */
    .section {
        padding: 0 15px;
        margin: 20px 0;
    }
    .section-content {
        padding: 20px 10px;
    }
    
    /* Blog responsive */
    .blogs {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    .blog-container {
        height: auto;
    }
    .blog {
        padding: 20px;
        flex-direction: column-reverse;
    }
    .blogpage {
        margin: 0;
        padding: 20px 15px;
    }
    .sidebarblog {
        width: auto;
        max-width: none;
        border-radius: 12px;
        margin-top: 20px;
        padding-top: 20px;
    }
    
    /* Correction pour éviter le débordement horizontal */
    body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Hero section responsive */
    .hero {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    .hero-content {
        padding: 20px 10px;
        max-width: none;
        width: 100%;
        margin: 0;
    }

        /* AJOUT 1 : Empêcher scroll horizontal */
        html, body {
            overflow-x: hidden !important;
            width: 100% !important;
            max-width: 100vw !important;
            position: relative;
            margin: 0;
            padding: 0;
        }
        
        /* AJOUT 2 : Corriger les avis */
        .avis-container {
            max-width: 100vw;
        }
        
        .avis {
            animation: none !important;
        }
        
        /* AJOUT 3 : Supprimer l'espace blanc du bas */
        body {
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }
}

/* Media queries pour les très petits écrans */
@media screen and (max-width: 480px) {
    /* Marges encore plus serrées pour les très petits écrans */
    .section {
        padding: 0 10px;
        margin: 15px 0;
    }
    .section-content {
        padding: 15px 5px;
    }
    .cards-container {
        padding: 0 5px;
        gap: 15px;
    }
    .cards-container .card {
        margin: 0 2px;
        padding: 15px;
    }
    
    .hero {
        padding: 15px 10px;
    }
    .hero-content {
        padding: 15px 5px;
    }
    
    /* Blog responsive pour petits écrans */
    .blogs {
        padding: 0 10px;
        gap: 15px;
    }
    .blogpage {
        padding: 15px 10px;
    }
}