* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    font-size: 100%;
}

@font-face {
    font-family: 'Campton';
    src: url('../../ressources/fonts/CamptonBook.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Campton';
    src: url('../../ressources/fonts/CamptonSemiBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Campton';
    src: url('../../ressources/fonts/CamptonBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

body {
    background-color: var(--color-white);
    font-family: 'Campton', sans-serif;
    font-size: 1rem;
}

/* Variables couleurs */
:root {
    --primary-color: #325de7;
    --secondary-color: #1b1e27;
    --color-black-hover: #31343d;
    --color-cyan: #22d9ba;
    --color-white: #fff;
    --color-white-green: #f5f6f8;
    --color-grey: #9a9fae;
    --color-white-2: #ededed;
    --color-white-opacity: #ffffffcf;
    --color-green: #d7ffdf;
    --color-white-cyan: #dbfdf7;
    --color-dark-grey: #757d93;
    --disponible: #3fd83f ;
    --indisponible: #DD4040 ;
}

h1 {
    text-transform: uppercase;
    font-size: 3em;
    font-weight: 800;
    color: var(--secondary-color);
}

h2 {
    text-transform: uppercase;
    margin-bottom: 24px;
    font-size: 2em;
    font-weight: 800;
    color: var(--secondary-color);
}

h3 {
    margin-bottom: 16px;
    font-size: 1.4em;
    font-weight: 800;
    color: var(--secondary-color);
}

h4 {
    margin-bottom: 16px;
    font-size: 1.2em;
}

p {
    line-height: 1.5;
    color: var(--color-black-hover);
}

a {
    text-decoration: none;
}

br {
    content: "";
    display: block; /* Transforme le <br> en bloc pour lui appliquer des styles */
    margin-bottom: 16px; /* Ajoute un espace de 16px après chaque <br> */
}

h1 br {
    margin-bottom: 0px; /* Ajoute un espace de 16px après chaque <br> */
}

.empty-navbar {
    padding-top: 80px;
}

/* Navbar Styling */
.navbar {
    background-color: var(--color-white-opacity);
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 10px 20px;
    position: fixed;
    z-index: 5;
}

.container-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

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

.navbar-brand {
    display: grid;
    align-items: center;
}

.navbar-logo {
    width: auto;
    height: auto;
}

.nav-menu {
    display: flex;
}

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

.nav-link {
    color: var(--secondary-color);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 800;
    transition: color 0.3s;
}

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

.nav-link.active {
    color: var(--primary-color);
    font-weight: 800;
}

.burger-menu {
    display: none; /* Masquer sur desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container2 {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.centered-container {
    width: 90%;
    margin: 0 auto;
    max-width: 680px;
}

.hero {
    background: linear-gradient(90deg, var(--primary-color), var(--color-cyan), #1CB1ED,  #30d68f);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de même largeur */
    align-items: center; /* Centre les éléments verticalement */
    gap: 24px; /* Espace entre les colonnes */
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@keyframes rotate {
    0% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(10deg);
    }
}

@keyframes negative-rotate {
    0% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(-10deg);
    }
}

@keyframes negative-smooth-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-40deg);
    }
}

/* ajout */
.hero-images {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 540px;
}

.hero-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-images img.top-image {
    z-index: 2;
}

.hero-images img.rotating-image {
    z-index: 1;
    animation: rotate 3s ease-in-out infinite;
    animation-direction: alternate;
}

.hero-images img.negative-rotating-image {
    z-index: 0;
    animation: negative-rotate 4s ease-in-out infinite;
    animation-direction: alternate;
}

.hero-images img.negative-smooth-rotating-image {
    z-index: 0;
    animation: negative-smooth-rotate 6s ease-in-out infinite;
    animation-direction: alternate;
}
/* ajout */

.hero-image {
    width: 100%;
    max-width: 400px;
    justify-self: center; /* Centre horizontalement dans la cellule */
}

.hero-text {
    max-width: 600px;
    height: fit-content;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 40px;
}

/* Interactivity Effect */
.interactive {
    transition: transform 0.1s ease;
    will-change: transform;
    cursor: pointer;
}

.interactive:hover {
    transform: scale(1.05) rotateX(5deg) rotateY(5deg);
}

.hero-text h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-text span {
    color: var(--color-white);
}

/* Bouton modernisé */
.button {
    position: relative;
    background: var(--secondary-color);
    color: var(--color-white);
    padding: 16px 24px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    top: 3px;
    margin-top: 16px;
    overflow: hidden;
    transition: transform 0.5s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Effet d'onde au survol */
.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-white), transparent);
    transform: skewX(-45deg) translateX(-100%);
    transition: transform 0.5s ease-in-out;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.button:hover::before {
    transform: skewX(-45deg) translateX(100%);
}

/* Survol et effet tactile */
.button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Texte toujours lisible et interactif */
.button span {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: color 0.3s ease;
}

.button:hover span {
    color: var(--color-white);
}

@keyframes pulse {
    0% {
        transform:scale(1);
    }
    100% {
        transform:scale(1.05);
    }
}

.button-moovement {
    animation: pulse 1s ease infinite;
    animation-direction: alternate;
}

@keyframes wiggle-smooth {
    0%, 50% {
      transform: rotateZ(0);
    }
    51% {
      transform: rotateZ(-4deg);
    }
    52% {
      transform: rotateZ(2deg);
    }
    53% {
      transform: rotateZ(-2deg);
    }
    54% {
      transform: rotateZ(1deg);
    }
    55% {
      transform: rotateZ(-0.5deg);
    }
    60%, 100% {
      transform: rotateZ(0);
    }
  }

.button-moovement-sometimes {
    animation: wiggle-smooth 8s ease infinite;
}

@keyframes wiggle {
    0%, 60% {
      transform: rotateZ(0);
    }
    63% {
      transform: rotateZ(-10deg);
    }
    65% {
      transform: rotateZ(5deg);
    }
    67% {
      transform: rotateZ(-5deg);
    }
    69% {
      transform: rotateZ(3deg);
    }
    71% {
      transform: rotateZ(-2deg);
    }
    75%, 100% {
      transform: rotateZ(0);
    }
  }

.status {
    margin-top: 16px;
    background-color: var(--color-white);
    padding: 8px 12px;
    border-radius: 8px;
    display: table;
    animation: wiggle 4s linear infinite;
}

.status {
    &:before {
        content: "";
        display: inline-block;
        vertical-align: middle;
        width: 8px;
        height: 8px;
        background-color: var(--disponible);
        margin-right: 8px;
        border-radius: 50%;
    }
}

.bandeau {
    overflow: hidden;
    background-color: var(--color-white-cyan);
    padding: 16px 0;
    white-space: nowrap; /* Évite le retour à la ligne */
    position: relative;
}

@keyframes defilement {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-200%);
    }
}

/* Bande défilante */
.marquee {
    display: flex;
    animation: defilement 60s linear infinite;
    animation-direction: alternate;
    padding-left: 80px;
}

.bandeau h4 {
    margin-bottom: 0;
    color: var(--secondary-color);
}


.cv, .portfolio, .methodo, .contact, .collaborations, .linkedin {
    padding: 80px 0 80px 0;
    margin: auto;
}

.objectifs {
    padding: 0 0 80px 0;
    margin: auto;
}

.prestation {
    padding: 80px 0 80px 0;
    margin: auto;
}

.cv {
    background: linear-gradient(90deg, var(--primary-color), var(--color-cyan), #1CB1ED,  #30d68f);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
    color: var(--color-white);
}

.cv-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de même largeur */
    align-items: center; /* Centre les éléments verticalement */
    gap: 24px; /* Espace entre les colonnes */
}

.cv-image {
    width: 100%;
    max-width: 300px;
    justify-self: center; /* Centre horizontalement dans la cellule */
    border-radius: 16px;
    box-shadow: 0 0px 24px rgba(0, 0, 0, 0.16);
    grid-row: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.cv-text h2 {
    color: var(--color-white);
}

.cv-text {
    padding: 40px;
    height: fit-content;
    grid-row: 1;
}

.portfolio {
    background: linear-gradient(90deg, var(--primary-color), var(--color-cyan), #1CB1ED,  #30d68f);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.portfolio-gallery-wrapper {
    overflow: visible;
    width: 100%;
    margin: auto;
    position: relative; /* Nécessaire si des enfants utilisent des transformations */
}

.portfolio-gallery {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
}

.portfolio-item {
    width: 100%;
    text-align: left;
}

.portfolio-item:last-child {
    margin-right: 0; /* Supprime l'effet visuel d'un dernier gap si visible */
}

.portfolio-item img {
    width: 100%;
    /* height: 200px; pour les omages ayant pas les mêmes hauteurs */
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 13px 13px 0 0;
}

.item-selection {
    display: flex; /* Active Flexbox */
    flex-direction: column; /* Arrange les enfants verticalement */
    height: 480px; /* Assure une hauteur fixe pour toutes les cartes */
    background-color: var(--color-white);
    border-radius: 16px;
    color: var(--secondary-color);
    transition: transform 0.2s, background-color 0.3s;

    overflow: hidden;
}

.item-selection:hover {
    transform: scale(1.02);
    border: 2px solid var(--color-black-hover);
}

.description-portfolio {
    padding: 0 24px 24px 24px;
    flex-grow: 1; /* Remplit l'espace restant */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Espace entre titre/description et CTA */
}

.CTA-hover {
    font-weight: 400;
    margin-top: auto; /* Pousse l'élément vers le bas */
    margin-bottom: 0;
}

.portfolio-item:hover .CTA-hover {
    font-weight: 700;
    color: var(--primary-color);
}

.portfolio-item:hover .CTA-hover::after {
    display:inline-table;
}

.CTA-hover {
    &:after {
        content: "";
        display: inline-block;
        vertical-align: middle;
        width: 16px;
        height: 16px;
        background-color: var(--primary-color);
        border-radius: 25%;
        margin-left: 8px;
        z-index: 1;
        animation: spin 0.7s linear infinite;
        display: none;
    }
}

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

/*carousel progresse bar */
.carousel-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

.carousel-progress {
    height: 100%;
    width: 0%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/*carousel dot pagination*/
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Boutons de navigation */
@keyframes inclineson1 {
    0%, 50% {
        transform: rotateZ(0deg);
      }
      55%, 100% {
        transform: rotateZ(-360deg);
      }
}

@keyframes inclineson2 {
    0%, 50% {
        transform: rotateZ(0deg);
      }
      55%, 100% {
        transform: rotateZ(360deg);
      }
}

.carousel-button {
    position: absolute;
    top: 50%;
    width: 56px;
    height: 56px;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    padding: 10px;
    font-size: 1.5em;
    z-index: 1;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 10px;
    animation: inclineson1 10s ease infinite;
}

.next {
    right: 10px;
    animation: inclineson2 10s ease infinite;
}

.post-it-container {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
}

.post-it {
    background-color: #fbeb75;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.16);
    transform: rotate(-3deg);
    font-size: 1.1em;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.post-it:hover {
    transform: rotate(0deg) scale(1.05);
}

.prestation {
    background-image: url('../../ressources/images/Image-quadrillage-papier.avif');
    background-position: 0 0;
    background-size: auto;
}

.methodo-content, .objectifs-content, .prestation-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de même largeur */
    align-items: center; /* Centre les éléments verticalement */
    gap: 24px; /* Espace entre les colonnes */
}

.methodo-text, .objectifs-text, .prestation-text {
    border-radius: 16px;
    height: fit-content;
    padding: 40px;
    grid-column: 2;
    grid-row: 1;
    background-color: var(--color-white);
    background-color: var(--color-white-cyan);
}

.methodo-image, .objectifs-image, .prestation-image {
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    object-fit: cover;
    justify-self: center; /* Centre horizontalement dans la cellule */
    border-radius: 16px;
    grid-column: 1;
    grid-row: 1;
    box-shadow: 0 0px 24px rgba(0, 0, 0, 0.16);
}

.objectifs-text, .prestation-text {
    grid-column: 1;
}

.objectifs-image, .prestation-image {
    grid-column: 2;
}

.collaborations h2 {
    margin-bottom: 32px;
}

.collaborations-clients {
    display: grid;
    list-style: none;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur grand écran */
    grid-template-rows: repeat(2, 1fr); /* 2 lignes */
    gap: 8px; /* Espace entre les colonnes */
}

.client {
    background-color: var(--color-white-green);
    border-radius: 4px;
    border: 1px solid var(--color-white);
    display: flex; /* Flexbox pour centrer le contenu */
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    padding: 16px;
    height: 100px; /* Ajuste la hauteur de chaque case selon tes besoins */
    transition: transform 0.3s;
}

.client:hover {
    border: 1px solid var(--secondary-color);
    transform: rotate(0deg) scale(1.05);
}

.client img {
    max-width: 80%; /* Pour que les logos restent dans les limites */
    max-height: 80%;
}

.linkedin {
    text-align: center;
    background-color: var(--color-white);
}

.linkedin-gallery {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center; /* Centre les éléments verticalement */
    gap: 32px; /* Espace entre les colonnes */
    text-align: center;
}

.image-linkedin {
    width: 100%;
    max-width: 640px;
    max-height: 640px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 0px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-linkedin:hover {
    transform: scale(1.015);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
}

.contact {
    text-align: center;
    background-color: var(--color-white-green);
}

.contact h2 {
    margin-bottom: 32px;
}

.contact p {
    margin-top: 32px;
}

.buttongap {
    margin-bottom: 0px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    gap: 8px;
}

.contact-form label {
    text-align: left;
    font-weight: 700;
    margin-top: 8px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #9a9fae;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    border: none; /* Supprime la bordure */
    box-shadow: none; /* Supprime l'ombre */
    outline: none; /* Supprime l'effet de focus par défaut */
    cursor: pointer;
}

#back-to-top {
    position: fixed;
    bottom: 20px; /* Position depuis le bas de l'écran */
    right: 20px; /* Position depuis le bord droit */
    width: 50px;
    height: 50px;
    background-color: var(--color-white); /* Couleur de fond */
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    box-shadow: 0 0px 24px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    display: none; /* Masqué par défaut */
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

#back-to-top:hover {
    background-color: var(--color-white); /* Couleur au survol */
    transform: scale(1.1); /* Légère augmentation de la taille au survol */
}

.footer {
    background-color: var(--secondary-color);
    color: var(--color-white);
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
    padding-top: 32px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-white);
}

.footer a {
    font-size: 14px;
    color: var(--color-white);
    font-weight: 400;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--color-cyan);
}

.footer-divider {
    background-color: var(--color-white);
    width: 100%;
    height: 1px;
    margin-top: 32px;
}

.linkedIn {
    transition: transform 0.2s;
}

.linkedIn:hover {
    transform: scale(1.2);
}

.footer p {
    margin: 0;
    padding: 16px 0 16px 0;
    color: var(--color-white);    
}

/* Lightbox Container */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Lightbox Image */
.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

/* Close Button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

/* Navigation Buttons */
.lightbox .prev, .lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5); /* Ajout d'un fond semi-transparent */
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    border-radius: 50%; /* Rendre les boutons ronds */
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

.lightbox .prev:hover, .lightbox .next:hover {
    color: #ddd;
    background-color: rgba(0, 0, 0, 0.7);
}

.pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    padding: 5px 10px;
    border-radius: 20px;
    z-index: 1001;
}

.deco-images {
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    height: 540px;
}

.deco-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.deco-images img.top-image {
    z-index: 2;
}

.deco-images img.rotating-image {
    z-index: 1;
    animation: rotate 3s ease-in-out infinite;
    animation-direction: alternate;
}

.deco-images img.negative-rotating-image {
    z-index: 0;
    animation: negative-rotate 4s ease-in-out infinite;
    animation-direction: alternate;
}

.deco-images img.negative-smooth-rotating-image {
    z-index: 0;
    animation: negative-smooth-rotate 6s ease-in-out infinite;
    animation-direction: alternate;
}
/* ajout */

.deco-image {
    width: 100%;
    max-width: 400px;
    justify-self: center; /* Centre horizontalement dans la cellule */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.25em;
    }

    .nav-menu {
        display: none;
        position: fixed; /* Positionnement pour qu'il couvre tout l'écran */
        top: 0;
        left: 0;
        width: 100%; /* Prend toute la largeur */
        margin-top: 78px;
        padding: 32px 0 32px 0;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centre verticalement les éléments */
        gap: 24px;
        z-index: 1; /* Assure qu'il est au-dessus du reste */
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: baseline;
        gap: 24px;
    }

    .nav-link {
        font-size: 24px;
    }

    .burger-menu {
        display: flex; /* Afficher le burger menu en mobile */
    }

    .container {
        width: 100%;
    }

    .container2 {
        width: 100%;
        padding: 0 10% 0 10%;
    }

    .button {
        display: block;
        text-align: center;
    }

    .hero-image {
        max-width: 300px;
        margin-left: 40px;
    }

    .hero-images {
        height: 409px;
    }

    .hero-text {
        margin: 0 0 32px 0;
        max-width: none;
    }

    .hero-content,
    .cv-content,
    .methodo-content,
    .objectifs-content,
    .prestation-content {
        grid-template-columns: 1fr; /* Une seule colonne */
        grid-template-rows: auto auto; /* Deux lignes */
    }

    .methodo-text, 
    .objectifs-text, 
    .prestation-text,
    .methodo-image, 
    .objectifs-image, 
    .post-it-container {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-content {
        gap: 0;
    }

    .marquee {
        animation: defilement 16s linear infinite;
        animation-direction: alternate;
        padding-left: 0;
    }

    .cv {
        padding-top: 16px;
        padding-bottom: 56px;
    }

    .objectifs-text, .post-it-container {
        grid-column: 1;
    }
    
    .objectifs-image, .post-it-container {
        grid-row: 2;
    }

    .portfolio-item {
        flex: 0 0 calc(100% - 16px); /* Chaque projet prend 1/3 de l'espace total + Réduction pour compenser le gap */
        /* flex: 0 0 100%; */
    }

    .portfolio-gallery {
        grid-template-columns: 1fr; /* Une colonne */
    }

    .item-selection {
        height: 504px;
    }

    .collaborations-clients {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    }

    .linkedin-gallery {
        grid-template-columns: 1fr;
    }

    .image-linkedin {
        max-width: none;
        max-height: none;
    }

    .buttongap {
        margin-bottom: 16px;
    }

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

    .footer a, .footer p {
        font-size: 16px !important;
    }

    .footer h3 {
        font-size: 24px;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 70%;
    }

    .lightbox .prev, .lightbox .next {
        font-size: 24px; /* Réduire la taille des flèches */
        padding: 8px;    /* Réduire le padding pour un rendu plus compact */
    }

    /* Positionner les flèches par-dessus l'image */
    .lightbox .prev {
        left: 10px; /* Plus proche de l'image */
    }

    .lightbox .next {
        right: 10px; /* Plus proche de l'image */
    }
}

/* Pour les tablettes (768px à 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 1.75em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.25em;
    }

    .button {
        display: block;
        text-align: center;
    }

    .buttongap {
        margin-bottom: 16px;
    }

    .portfolio-item {
        flex: 0 0 calc(50% - 16px); /* Chaque projet prend 1/3 de l'espace total + Réduction pour compenser le gap */
    }

    .item-selection {
        height: 500px;
    }

    .collaborations-clients {
        grid-template-columns: 1fr 1fr 1fr; /* Une seule colonne */
        grid-template-rows: auto auto; /* Deux lignes */
    }

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

/* Pour les écrans de bureau (1024px et plus) */
@media (min-width: 1024px) {
    .portfolio-item {
        flex: 0 0 calc(33.33% - 16px); /* Chaque projet prend 1/3 de l'espace total + Réduction pour compenser le gap */
    }
}