@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

/* 🎯 Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter_regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

body, html {
    height: 100%;
    font-family: 'Inter', sans-serif;
}

/* ========================= */
/* 🎯 SECTION header (EN-TÊTE) */
/* ========================= */
.header-section {
    width: 100%;
    height: 100vh;
    background: url('assets/img/background.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.header-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(0, 0, 0, 0) 0%,        /* centre transparent */
        rgba(0, 0, 0, 0.4) 60%,     /* intermédiaire */
        rgba(0, 0, 0, 0.7) 100%     /* bords sombres */
    );
    z-index: 1;
}

.header-section > * {
    position: relative;
    z-index: 2;
}


/* Pour s'assurer que le texte passe au-dessus du filtre */
.header-section > * {
    position: relative;
    z-index: 2;
}


* { color:#ffffff; text-decoration: none;}

.header-content {
    position: relative;
    max-width: 90%;
}

/* Texte animé */
.header-content h1 {
    font-size: 5rem;
    display: inline-block;
    position: relative;
}

.header-content p {
    font-size: 1.5rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar.show-logo .logo {
    opacity: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: transparent;
    padding: 1rem 3rem;
    z-index: 1000;
}

/* Quand on scroll vers le bas, la navbar va monter puis redescendre */
.navbar.scrolled {
    animation: slideUpDown 1s ease forwards; /* Animation classique */
}

/* Animation : monter puis redescendre */
@keyframes slideUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
        background-color: #ffffff;
        justify-content: center;
    }
}

/* Animation inverse : quand on scroll vers le haut, redescendre puis monter */
.navbar.scrollUp {
    background-color: #ffffff;
    justify-content: center;
    animation: slideDownUp 1s ease forwards; /* Animation inverse */
}

/* Animation inverse : descendre puis remonter */
@keyframes slideDownUp {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
        justify-content: space-between;
        background-color: transparent;
    }
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    justify-content: center; /* Centrer horizontalement les éléments */
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.nav-links li {
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.68, -0.1, 0.265, 1.0), opacity 0.6s ease;
}

/* Délai d'animation pour chaque élément */
.navbar.scrolled .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}
.navbar.scrolled .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
}
.navbar.scrolled .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
}
.navbar.scrolled .nav-links li:nth-child(4) {
    transition-delay: 0.4s;
}

/* Retirer la classe 'scrolled' quand on est en haut, donc remettre la navbar à sa position originale */
.navbar:not(.scrolled) {
    transform: translateY(0);
}

.nav-links li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 1rem; /* taille de base */
    transition: color 0.3s, font-size 0.3s ease;
}

.navbar.scrolled .nav-links li a {
    color: rgb(0, 0, 0);

}

.nav-links li a:hover {
    color: #ffa600;
    font-size: 1.3rem; /* taille au survol */
}

.burger {
    font-size: 2rem;
    display: none;
    cursor: pointer;
}


/* ============================= */
/* 📸 SECTION SLIDESHOW + TEXTE */
/* ============================= */
.slideshow-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 50px 10%;
    background: #e1e1e1;
}

/* 🌍 PC : slideshow à gauche et texte à droite */
.slideshow-container {
    width: 50%;
    max-width: 100%;
    opacity: 0;
    transform: translateY(30px); /* Décalage vers le bas */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Lorsque le slideshow devient visible */
.slideshow-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.slides-wrapper {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    position: relative;
    border-radius: 30px;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.slides img.active {
    opacity: 1;
}

/* Selecteurs sous l'image */
.selectors {
    display: flex;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    gap: 30px;
    z-index: 2;
}

.selector {
    width: 22px;
    height: 22px;
    background: transparent;
    border: 3px solid white;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 0.7;
}

.selector.active {
    background: white;
}

/* 📝 TEXTE À DROITE */
.text-container {
    position: relative;
    width: 600px; /* Ajuste la largeur */
    height: 400px; /* Ajuste la hauteur */
    font-size: 20px;
    line-height: 1.8;
    justify-content: center;
    display: flex;
    text-align: center;
    margin-left: 0%;
    overflow: hidden;
    align-items: center;
}

/* Pseudo-élément pour afficher la bordure dans l'angle supérieur gauche */
.text-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;  /* Taille de la bordure */
    height: 50px; /* Taille de la bordure */
    border-top: 10px solid #ff9100; /* Bordure en haut */
    border-left: 10px solid #ff9100; /* Bordure à gauche */
    border-top-left-radius: 100%; /* Arrondi du coin supérieur gauche */
}

/* Pseudo-élément pour afficher la bordure dans l'angle inférieur droit */
.text-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;  /* Taille de la bordure */
    height: 50px; /* Taille de la bordure */
    border-bottom: 10px solid black; /* Bordure en bas */
    border-right: 10px solid black; /* Bordure à droite */
    border-bottom-right-radius: 100%; /* Arrondi du coin inférieur droit */
}

/* Animation texte */
.text-container p {
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.text-container p .part1,
.text-container p .part2 {
    display: block;
    font-weight: bold;
}

.text-container p .part1 {
    transform: translateX(100%);
    transition: transform 0.7s ease-out, opacity 0.7s ease-out;
}

.text-container p .part2 {
    transform: translateX(-100%);
    transition: transform 0.7s ease-out, opacity 0.7s ease-out;
}

/* Classe active qui déclenche l'animation */
.text-container.visible p {
    opacity: 1;
}

.text-container.visible p .part1 {
    transform: translateX(0);
}

.text-container.visible p .part2 {
    transform: translateX(0);
}

.button-grid-section {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* Aligne tout en haut */
    align-items: center;
    background-color: #f5f5f5;
    padding: 40px 0;  /* Padding autour de la section */
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 310px);
    gap: 60px 90px;
    padding: 20px;
}

.steps-section {
    padding: 60px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.steps-title {
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: bold;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.step-card {
    background-color: #ff9100;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 300px;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: #f0f0f0;
    border-radius: 50%;
    font-weight: bold;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-number p {
    color: #000;
}

.step-card h3 {
    margin: 0 0 40px;
    font-size: 30px;
    color: #000;
}

.step-card p {
    font-size: 25px;
    line-height: 1.4;
    color: #000;
}

.step-card a {
    color: #000;
    text-decoration: underline;
}

.square-button {
    width: 310px;
    height: 270px;
    background-color: #ff9100;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.4em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.square-button:hover {
    background-color: #b56701;
    transform: scale(1.03);
}

/* Pour le bouton avec la porte */
.door-button {
    padding: 0;
    position: relative;
}

.door {
    width: 150px;
    height: 250px;
    position: relative;
    transition: transform 0.5s ease; /* Animation de transformation de la porte */
}

/* Cadre de la porte */
.door-frame {
    width: 100%;
    height: 100%;
    border: 6px solid #4b2e14; /* Couleur du cadre */
    border-radius: 10px;
    background-color: transparent; /* Pour s'assurer que le fond est vide */
    position: relative;
    box-sizing: border-box;
}

/* Texte derrière la porte */
.button-text {
    position: absolute;
    top: 50%; /* Centrer verticalement */
    left: 50%; /* Centrer horizontalement */
    transform: translate(-50%, -50%); /* Centrage parfait */
    font-size: 24px;
    color: rgba(0, 0, 0, 0.7); /* Couleur du texte avec opacité */
    z-index: 0; /* Le texte est derrière la porte */
    pointer-events: none; /* Le texte n'interfère pas avec l'interaction */
    font-weight: bold;
}

/* Corps de la porte */
.door-body {
    width: 100%;
    height: 100%;
    background-color: #4b2e14;
    position: relative;
    transform-origin: left center; /* Point d'origine pour la rotation à gauche */
    transition: transform 0.5s ease; /* Transition de la rotation */
}

/* La poignée de la porte */
.handle {
    position: absolute;
    right: 15px;
    top: 110px;
    width: 20px;
    height: 20px;
    background-color: #444;
    border-radius: 50%;
}

/* Lorsque l'on survole le bouton (hover) */
.door-button:hover .door-body {
    transform: rotateY(-120deg); /* Rotation de la porte pour simuler l'ouverture */
}

/* Bouton spécifique contenant la fenêtre */
.window-button {
    padding: 0;
}

/* Texte derrière les battants de la fenêtre, dans le cadre */
.background-text {
    position: absolute;
    top: 50%; /* Positionner le texte au centre */
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(0, 0, 0, 0.7); /* Couleur du texte avec opacité */
    z-index: 0; /* Positionner derrière les battants de la fenêtre */
    pointer-events: none; /* Permet au texte d'être derrière la fenêtre sans interférer avec les clics */
}

/* Chaque battant de la fenêtre */
.window-leaf {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: #4b2e14;
    border: 3px solid #4b2e14;
    box-sizing: border-box;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Garder les battants devant le texte */
}

/* Positionnement de la fenêtre gauche */
.window-leaf.left {
    left: 0;
    transform-origin: left center;
    border-right: none;
}

/* Positionnement de la fenêtre droite */
.window-leaf.right {
    right: 0;
    transform-origin: right center;
    border-left: none;
}

/* Animation d’ouverture au survol */
.window-button:hover .left {
    transform: rotateY(-120deg);
}

.window-button:hover .right {
    transform: rotateY(120deg);
}

/* Grille de la fenêtre */
.grid {
    position: absolute;
    width: 90%;
    height: 90%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    z-index: 2; /* Assure que la grille reste au-dessus du texte */
}

/* Panneau de la fenêtre */
.pane {
    position: relative;
    background-color: #ffffff40;
    border: 1px solid #bbb;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Premier reflet en bande oblique */
.pane::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 10%;
    width: 120%;
    height: 40%;
    background: #ffffff4d;
    transform: rotate(25deg);
    pointer-events: none;
    filter: blur(1px);
}

/* Deuxième reflet plus fin et plus clair */
.pane::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 10%;
    width: 100%;
    height: 20%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(-20deg);
    pointer-events: none;
    filter: blur(1px);
}

/* Poignées de fenêtre */
.hand-window {
    position: absolute;
    width: 10px;
    height: 40px;
    background-color: #444;
    border-radius: 2px;
    z-index: 2; /* Poignées devant la grille */
}

/* Position des poignées */
.window-leaf.left .hand-window {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.window-leaf.right .hand-window {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Cadre de la fenêtre */
.window-frame {
    width: 200px;
    height: 200px;
    border: 6px solid #4b2e14;
    background-color: transparent;
    position: relative;
    box-sizing: border-box;
}


.products-title {
    font-size: 3em;
    text-align: center;
    margin-bottom: 30px;  /* Un peu d'espace sous le titre */
    color: #000000;
    font-weight: 600;
}

.stairs {
    position: relative;
    width: 250px; /* Réduit la largeur */
    height: 150px; /* Réduit la hauteur */
    transform-style: preserve-3d;
    transform: rotateX(-30deg) rotateY(270deg);
    animation: animate 10s linear infinite;
}

@keyframes animate {
    0% {
        transform: rotateX(-30deg) rotateY(120deg);
    }
    100% {
        transform: rotateX(-30deg) rotateY(480deg);
    }
}

.stairs .base {
    position: absolute;
    top: 0;
    left: 16px; /* Ajuste la position horizontale */
    width: 180px; /* Réduit la largeur de la base */
    height: 150px; /* Réduit la hauteur de la base */
    background: #874402;
    transform: rotateX(90deg) translateZ(-75px) scale(1.25);
    filter: blur(10px); /* Réduit le flou */
    opacity: 0.5;
}

.stairs .step {
    position: absolute;
    left: calc(18px * var(--j)); /* Réduit l'espace horizontal */
    bottom: 0;
    width: 30px; /* Réduit la largeur des marches */
    height: calc(18px * var(--j)); /* Réduit la hauteur des marches */
    transform-style: preserve-3d;
}

.stairs .step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px; /* Réduit la largeur de la marche */
    height: 150px; /* Réduit la hauteur de la marche */
    background: #874402;
    transform: rotateX(90deg) translateZ(75px);
}

.stairs .step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px; /* Réduit la largeur */
    height: 17px; /* Réduit la hauteur */
    background: #472401;
    transform: rotateY(90deg) translateZ(-75px);
}

.stairs .step i {
    position: absolute;
    display: block;
    width: 30px; /* Réduit la largeur des éléments internes */
    height: 100%;
    background: #472401;
    transform-style: preserve-3d;
}

.stairs .step i:nth-child(1) {
    transform: translateZ(75px);
}

.stairs .step i:nth-child(2) {
    transform: translateZ(-75px);
}

.stairs .step:last-child i:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px; /* Réduit la largeur */
    height: 100%;
    background: #472401;
    transform: rotateY(90deg) translate3d(-75px,0, -45px);
}

.square-button .stairs {
    position: relative;
    width: 250px;
    height: 150px;
    transform-style: preserve-3d;
    transform: rotateX(-30deg) rotateY(270deg);
    animation: animate 10s linear infinite paused; /* Animation en pause par défaut */
}

.square-button:hover .stairs {
    animation-play-state: running; /* L'animation commence lorsque la souris est dessus */
}

.stairs-button {
    padding: 0;
    position: relative;
}

/* Cadre bibliothèque */
.biblio-frame {
    width: 200px;
    height: 200px;
    border: 6px solid #4b2e14;
    background-color: transparent;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
}

/* Corps bibliothèque */
.biblio {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Moitiés de la bibliothèque */
.biblio-leaf {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: #7a4b25;
    border: 3px solid #4b2e14;
    box-sizing: border-box;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 6px;
    z-index: 1;
}

.biblio-leaf.left {
    left: 0;
    transform-origin: left center;
    border-right: none;
}

.biblio-leaf.right {
    right: 0;
    transform-origin: right center;
    border-left: none;
}

/* Animation à l’ouverture */
.biblio-button:hover .left {
    transform: rotateY(-120deg);
}

.biblio-button:hover .right {
    transform: rotateY(120deg);
}

/* Étagères */
.shelf {
    flex: 1;
    background-color: #5d381c;
    border-top: 2px solid #3b2411;
    padding: 3px 2px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    border-radius: 2px;
    margin: 2px 0;
}

/* Livres plus sobres */
.book {
    width: 10px;
    height: 28px;
    background-color: #6a4a3c;
    border-left: 2px solid #4a2e23;
    border-right: 2px solid #4a2e23;
    border-radius: 1px;
    box-shadow: inset 0 0 1px rgba(0,0,0,0.2);
}

/* Variantes de couleur brunes sobres */
.book:nth-child(2)  { background-color: #4e3b31; border-color: #2f1f18; }
.book:nth-child(3)  { background-color: #5c3c2e; border-color: #3a231a; }
.book:nth-child(4)  { background-color: #6b5840; border-color: #453625; }
.book:nth-child(5)  { background-color: #3f2e24; border-color: #241912; }
.book:nth-child(6)  { background-color: #593d3d; border-color: #372424; }

.kitchen-frame {
    width: 200px;
    height: 200px;
    border: 6px solid #3f4c5c;
    background-color: #e6f7f8;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
}

.kitchen-leaf {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: #7ea6b8;
    border: 2px solid #3f4c5c;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 5px;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
    z-index: 1;
}

.kitchen-leaf.left {
    left: 0;
    transform-origin: left center;
    border-right: none;
}

.kitchen-leaf.right {
    right: 0;
    transform-origin: right center;
    border-left: none;
}

.kitchen-button:hover .left {
    transform: rotateY(-120deg);
}

.kitchen-button:hover .right {
    transform: rotateY(120deg);
}

/* Éléments à l’intérieur */
.cabinet {
    background-color: #5f7688;
    height: 40%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 4px;
    padding: 4px;
}

.utensil {
    width: 6px;
    height: 24px;
    background-color: #3c3c3c;
    border-radius: 1px;
}

.pot {
    width: 30px;
    height: 20px;
    background-color: #888;
    border: 2px solid #444;
    border-radius: 4px;
    position: relative;
}

.bowl {
    width: 20px;
    height: 12px;
    background-color: #b3854d;
    border-radius: 0 0 10px 10px;
    border: 1px solid #5f4a2c;
}

.oven {
    background-color: #ddd;
    border: 2px solid #999;
    height: 35%;
    border-radius: 3px;
    position: relative;
}

.drawer {
    background-color: #b0c6d1;
    height: 35%;
    border: 2px solid #7ea6b8;
    border-radius: 3px;
}

/* Texte en bas */
.kitchen-frame .button-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.container {
    position: relative;
    width: 200px;
    height: 900px;
}

.rectangle {
    width: 500px;  /* Largeur des rectangles */
    height: 700px; /* Hauteur des rectangles */
    position: absolute;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.rectangle:hover {
    transform: scale(1.05);      
}

.rect1 {
    top: 0;
    left: -300px;
    background-image: url("assets/img/table1.jpg");
}

.rect2 {
    top: 70px; /* Le deuxième rectangle est décalé de 110px vers le bas */
    left: 180px; /* Décalé de 20px à droite */
    background-image: url("assets/img/cuisine.jpg");
}

.rect3 {
    top: 140px; /* Le troisième rectangle est décalé de 100px vers le bas */
    left: 660px; /* Décalé de 40px à droite */
    background-image: url("assets/img/escalier5.jpg");
}

.overlay-square {
    position: absolute;
    width: 120px;
    height: 120px;
    background-color: #ffffff; /* couleur semi-transparente */
    top: 75%;
    left: 20%;
    transform: rotate(45deg);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    border-radius: 8%;
}

.square-text {
    transform: rotate(-45deg); /* annule la rotation du parent pour que le texte soit droit */
    color: rgb(0, 0, 0);
    font-size: 20px;
    text-align: center;
}  

@media (max-width: 1080px) {

    /* Pour la grille des boutons */
    .button-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
        width: 100%;
        padding: 0 10px; /* Un petit padding pour éviter que ça colle aux bords */
        box-sizing: border-box;
    }

    /* Cartes d'étapes */
    .step-card {
        width: 90%; /* Plus de largeur si une seule colonne */
        padding: 25px 15px;
    }

    .steps-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .step-card h3 {
        font-size: 24px;
    }

    .step-card p {
        font-size: 20px;
    }

    .door-button, .window-button, .kitchen-button, .biblio-button {
        width: 100%;
        max-width: 270px; /* Pour garder une taille agréable */
        height: auto; /* Ou garde 240px si c’est nécessaire */
        box-sizing: border-box;
    }

    .door {
        width: 120px;
        height: 220px;
        position: relative;
        transition: transform 0.5s ease;
    }

    .handle {
        width: 20px;
        height: 20px;
    }

    .door, .window-leaf, .kitchen-leaf, .biblio-leaf {
        transition: transform 0.3s ease;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo, .navbar.show-logo .logo {
        opacity: 0;
    }

    .navbar {
        position: fixed; /* Toujours fixée à l'écran */
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1rem;
        box-sizing: border-box;
        background-color: transparent;
        z-index: 1000;
    }

    .burger {
        display: block;
        align-self: flex-end;
        margin-right: 1rem;
        z-index: 1001;
        font-size: 2rem;
        background: transparent;
        color: white;
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 100%;
        right: 0;
        width: 100%; /* prend toute la largeur de l'écran */
        padding: 1rem 10% 1rem 0; /* 10% d'espace à droite pour le texte */
        background-color: transparent;
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* aligne les enfants à droite */
        box-sizing: border-box; /* très important pour que padding ne dépasse pas */
        z-index: 999;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.show {
        opacity: 1;
        pointer-events: auto;
    }

    /* Reset */
    .nav-links li {
        opacity: 0;
        transform: translateY(10px);
    }

    .nav-links.show li {
        animation: fadeIn 0.4s ease forwards;
    }

    .nav-links.show li:nth-child(1) {
        animation-delay: 0.1s;
    }
    .nav-links.show li:nth-child(2) {
        animation-delay: 0.2s;
    }
    .nav-links.show li:nth-child(3) {
        animation-delay: 0.3s;
    }
    .nav-links.show li:nth-child(4) {
        animation-delay: 0.4s;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li a {
        font-size: 1.2rem;
        color: white;
    }
    
    .overlay-square {
        position: absolute;
        top: 20%;
        left: 10%;
        width: 90px;
        height: 90px;
    }

    .square-text {
        font-size: 100%;
    }

    .steps-title {
        font-size: 2rem;
    }

    .slideshow-section {
        margin: 0;
        padding: 0;
    }
    
    .slideshow-container {
        width: 100vw;
        padding: 0;
        margin-top: 10%;
        margin-bottom: 10%;
    }

    .products-title {
        font-size: 2em;
    }
    
    .container {
        position: relative;
        width: 100vw;
        height: 80vh;
        justify-content: left;
    }

    .rectangle {
        width: 100vw;               /* pleine largeur de l'écran */
        height: 30%;
        margin-top: 10%;                  /* plus d'espacement auto */
        background-size: cover;
        background-position: center;
        transition: background-size 0.3s ease-in-out;
        position: absolute;          /* plus de position absolute */
    }

    .rectangle:hover {
        background-size: 110%;       /* L'image s'agrandit de 10% lorsqu'on survole */
        transform: scale(1.0); 
    }

    .rect1 {
        top: auto;
        left: auto;
    }
    
    .rect2 {
        top: 35%; /* Le deuxième rectangle est décalé de 110px vers le bas */
        left: auto; /* Décalé de 20px à droite */
    }
    
    .rect3 {
        top: 70%; /* Le troisième rectangle est décalé de 100px vers le bas */
        left: auto; /* Décalé de 40px à droite */
    }
    
    .text-container {
        width: 600px; /* Ajuste la largeur */
    }

    .text-container::before {
        border-top: 3px solid rgb(255, 145, 0); /* Bordure en haut */
        border-left: 3px solid rgb(255, 145, 0); /* Bordure à gauche */
    }

    .text-container::after {
        border-bottom: 3px solid black; /* Bordure en bas */
        border-right: 3px solid black; /* Bordure à droite */
    }

    .header-content h1 {
        font-size: 3rem;
    }

    .header-content p {
        font-size: 1.3rem;
    }

    .text-container {
        font-size: 30px;
    }

    .slides-wrapper {
        height: 45vh;
    }

    .selector {
        width: 30px;
        height: 30px;
        background: transparent;
        border: 5px solid white;
        cursor: pointer;
        transition: transform 0.3s ease, background-color 0.3s ease;
        opacity: 0.7;
    }
}

.contact-section {
  padding: 4rem 2rem;
  background-color: #dadada;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #000000;
}

.contact-section p {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 2rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-icons a {
  font-size: 2rem;
  transition: transform 0.2s ease, color 0.3s ease;
}

.contact-icons a:hover {
  color: #ffa600;
  transform: scale(1.2);
}

.contact-icons a i {
  color: #000000;
  font-size: 2rem;
  transition: transform 0.2s ease, color 0.3s ease;
}

.contact-icons a:hover i {
  color: #bb7b03;
  transform: scale(1.2);
}