/* FONT */

@font-face {
    font-family: 'Newake';
    src: url('../font/newake/NewakeFont-Demo.otf') format('opentype');
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

/* INITIALISATION */

h1 {
    font-weight: 400;
}

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

.header-container, main, footer {
    max-width: 1500px;
    width: 100%;
}

html {
  scroll-behavior: smooth;
}

header {
    background-color: #1c1c1c;
}

body {
    background-color: #1c1c1c;
    font-family: 'Newake', sans-serif;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: white;
}

h2, h3, h4, h5, h6 {
    font-family: 'Newake', sans-serif;
    font-weight: 100;
    text-transform: uppercase;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f5f5f5;
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 2;
}

.tags-container-hardskills {
    margin-bottom: 25px !important;
}

button {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid white;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #f5f5f5;
    color: #1c1c1c;
    transform: scale(1.05);
}

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

.aboutme img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-top: 20px;
    margin-bottom: 30px;
}

/* HEADER */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 100px;
    color: white;
    top: 0;
    left: 0;
    width: 100%;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: fixed;
    z-index: 999;
}

header * {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin: 0px 20px;
}

header nav ul li {
    color: white;
    transform: scale(1);
    transition: transform 0.2s;
}

header nav ul li:hover {
    transform: scale(1.1);
}

header {
    background-color: transparent;
    transition: background-color 0.4s;
}
header.header-bg-visible {
    background-color: #1c1c1c;
}

header nav ul li {
    margin-right: 0px !important;
    margin-left: 40px !important;

}


.header-pic {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
width: 100vw;

  background-image: url('../img/theo-herve-full-stack-developer.webp'); /* Remplace par le chemin de ton image */
  background-size: cover;      /* L’image couvre tout le conteneur */
  background-position: center; /* Centre l’image */
  background-repeat: no-repeat;
  z-index: -999;
}


/* Responsive tablette */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .header-pic {
        background-position: 90% 50%; /* Ajuste la position de l'image pour les tablettes */

    }
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
  .header-pic {
        background-position: 76% 70%; /* Ajuste la position de l'image pour les tablettes */

        



  }
}







.section-header {
    padding-left: 100px;
    padding-right: 100px;
    height: 100vh !important;
    display: flex;
    align-items: center;
}

.colorfilter {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: linear-gradient(to top, #1c1c1c, rgba(0, 0, 0, 0.281));
    z-index: -998;
}

.headercontent {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    color: white;
}

.headercontent h1 {
    font-size: 7rem;
    margin-bottom: 20px;
}

.header-statut {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    font-family: 'Newake', sans-serif;
    margin-top: -20px;
    text-transform: uppercase;
}

.section-about {
    display: flex;
    justify-content: space-between;
    padding: 100px;
    background-color: #1c1c1c;
    width: 100%;
    height: fit-content;
    padding: 20px 100px;
    margin-top: 200px;
}

.section-about img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.section-about * {
    color: white;
}

/* MES COMPETENCES / HOME */

.section {
    margin-top: 60px;
    width: 100%;
}



.tag {
    font-size: 1rem;
    font-weight: 300;
    color: #f5f5f5;
    font-family: 'roboto', sans-serif;
    border-radius: 25px;
    padding: 7px 15px;
    margin-right: 15px;
    font-weight: 400;
    border: 1px solid white;
    text-decoration: none;
    transform: scale(1);
    transition: all 0.2s;
    font-weight: bold;
}

.tags-container {
    margin-top: 30px;
}

.red {
    background-color: #F2622E;
    border: 0 !important;
}

.yellow {
    background-color: #F2E313;
    border: 0 !important;
}

.green {
    background-color: #4BF286;
    border: 0 !important;
}

.blue {
    background-color: #88A2F2;
    border: 0 !important;
}

.purple {
    background-color: #B294F2;
    border: 0 !important;
}

/* FOOTER */

footer {
    padding: 20px 100px;
    margin-top: 100px;
}

footer * {
    color: white;
}

.grid-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.grid-footer * {
    font-family: 'roboto', sans-serif;
    font-size: 0.6rem;
    margin-top: 10px;
    text-decoration: none;
}

.section1, .section2, .section3, .section4 {
    display: flex;
    flex-direction: column;
}

.section1 {
    grid-row: 1;
    grid-column: 1;
}

.section2 {
    grid-row: 1;
    grid-column: 2;
}

.section3 {
    grid-row: 1;
    grid-column: 3;
}

.section4 {
    grid-row: 1;
    grid-column: 4;
}

.home-real {
    margin: 20px 0;
}

.home-real-card {
    width: 100%;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transform: scale(1);
    transition: all 0.2s;
    text-decoration: none;
}

.home-real-card:hover {
    transform: scale(1.02);
}

.section-about-content {
    width: 100%;
}

.color-tag {
    background-color: #F2622E;
    padding: 10px 10px;
    border-radius: 25px;
    margin-right: 10px;
    font-size: 0.6rem;
    font-weight: 300;
}

/* PAGE ABOUT */

.container {
    padding: 20px 100px;
}

.choice {
    border: 0;
}

.date-format {
    text-transform: uppercase;
    margin-bottom: 35px !important;
}

.top-page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
}

.top-page-details {
    display: flex;
    flex-direction: column !important;
    align-items: start !important;
}

.top-page-details h2 {
    margin-top: 10px !important;
}

.top-page-details h1 {
    font-size: 8rem !important;
    font-weight: 100;
    margin-top: 75px !important;
}

.top-page h1 {
    font-size: 5rem;
    font-weight: 100;
}

.top-page p {
    font-size: 1rem;
    font-weight: 400;
    width: 50%;
}

.container h2 {
    font-weight: 100;
    margin-top: 50px;
}

.container h3 {
    font-weight: 100;
    margin-top: 25px;
}

.hardskills-container, .softskills-container, .hardskills-container-realisations {
    display: flex;
    flex-direction: row;
    margin-top: 25px;
    margin-bottom: 200px;
    flex-wrap: wrap;
}

.hardskills-container-details, .softskills-container-details, .hardskills-container-realisations {
    margin-top: 0px;
}

.hardskills-container a, .softskills-container a, .tags-container a, .hardskills-container-realisations a {
    margin-bottom: 25px !important;
    transform: scale(1);
    transition: all 0.2s;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
}


.hardskills-container a:hover, .hardskills-container-realisations a:hover  {
    transform: scale(1.02);
}

.margin-top {
    margin-top: 50px;
}

/* PORTFOLIO PAGE */

.top-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
    width: 100%;
}

.top-list h2 {
    margin-top: 0px !important;
}

.top-list * {
    color: white;
}

.top-list button {
    color: white;
    transform: scale(1);
    transition: all 0.2s;
}

.top-list button:hover {
    transform: scale(1.02);
    background-color: white;
    color: #1c1c1c;
}

.right-side * {
    margin-left: 10px;
}

.right-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

#grid-icon {
    transform: scale(0.82);
}

.button {
    transform: scale(1);
    transition: all 0.2s;
}

.button:hover {
    transform: scale(1.05);
}

.date {
    text-transform: uppercase;
}

.portfolio-item h3 {
    margin: 0px;
    width: 100% !important;
}

portfolio-item 

.date2 {
    text-align: end;
}

.align-start {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}

/* GRID VIEW */

.grid-view h3 {
    margin-top: 10px;
}

.grid-view .color {
    display: none;
}

.grid-view .date {
    text-align: left;
}

@media (min-width: 1024px) {
    .grid-view {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        margin-top: 50px;
    }

    .grid-view * {
        color: white;
    }

    .grid-view img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .grid-view .img-container {
        width: 100%;
        height: 400px;
        object-fit: cover;
        background-color: rgb(124, 124, 124);
    }

    h2 {
        font-size: 3rem;
    }


}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .grid-view {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 50px;
    }

    .grid-view * {
        color: white;
    }

    .grid-view img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .grid-view .img-container {
        width: 100%;
        height: 400px;
        object-fit: cover;
        background-color: rgb(124, 124, 124);
    }
}

@media screen and (max-width: 768px) {
    .grid-view {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 50px;
    }

    .grid-view * {
        color: white;
    }

    .grid-view img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .grid-view .img-container {
        width: 100%;
        height: 400px;
        object-fit: cover;
        background-color: rgb(124, 124, 124);
    }


}

/* LIST VIEW */

.list-view h3 {
    margin-top: 0px;
    font-family: 'roboto', sans-serif !important;
    font-weight: 500;
}

.list-view .color {
    display: block;
}

.list-view .date {
    text-align: right;
}

.list-view {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

.list-view a {
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    padding: 15px 0;
    margin: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aboutme p {
    margin-bottom: 20px !important;
}
.list-view * {
    color: white;
}

.list-view img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-view .img-container {
    display: none !important;
}

.list-view .portfolio-item a {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
}

.portfolio-item {
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

/* CONTACT PAGE */

.link-contact-container {
    margin-top: 150px;
    display: flex;
    flex-direction: column;
}

.link-contact-container a {
    margin-bottom: 20px;
    transform: scale(1);
    transition: all 0.2s;
    font-family: 'roboto', sans-serif;
    color: white !important;
    width: fit-content;
}

/* Underline animation */

.link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: white;
    transition: width .3s;
    color: white;
}

.link:hover::after {
    width: 100%;
}

li {
    font-family: 'roboto', sans-serif;
}

header li {
    font-family: 'Newake', sans-serif;
}

.flexrow {
    display: flex;
    flex-direction: row;
}

.cta-bouton {
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 20px;
    font-family: 'roboto', sans-serif;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-right: 10px;
}

.home-real-card p {
    text-transform: uppercase !important;
}

.cta-bouton:hover {
    background-color: white;
    color: #1c1c1c;
    transform: scale(1.05);
}

/* --------- MISE EN FORME DU MARKDOWN --------- */

.markdown img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-top: 25px !important;
    margin-bottom: 25px !important;
}

.markdown a {
    color: #88A2F2;
    font-weight: bold !important;
    text-decoration: none;
    transition: color 0.3s ease;
}


.markdown>* {
    width: 100%;
}



.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 {
    font-family: 'Newake', sans-serif;
    margin-top: 35px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #fff;
}

.markdown h3 {
    font-size: 3.5rem;

}
.markdown h4 {
    font-size: 2.5rem;
    margin-top: 75px;
}



.markdown ul, .markdown ol {
    margin-left: 2em;
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.markdown li {
    margin-bottom: 0.5em;
    font-size: 1.1rem;
    font-family: 'Roboto', sans-serif;
    position: relative;
}

.markdown ol li {
    counter-increment: markdown-ol;
}
.markdown ol {
    counter-reset: markdown-ol;
}

.markdown code {
    background: #23272e;
    color: #f8f8f2;
    border-radius: 5px;
    padding: 2px 6px;
    font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
    font-size: 1em;
    /* Ajout pour différencier le code inline */
    border: 1px solid #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    word-break: break-word;
}

.markdown pre {
    background: #23272e;
    color: #f8f8f2;
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    margin: 2em 0;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid #444;
    position: relative;
}

.markdown pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 1em;
    /* Ajout pour la lisibilité */
    display: block;
    line-height: 1.7;
    font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
}

/* Coloration simple pour le JS (simili syntax highlight) */
.markdown code .token.comment,
.markdown pre code .token.comment {
    color: #6a9955;
    font-style: italic;
}
.markdown code .token.keyword,
.markdown pre code .token.keyword {
    color: #569cd6;
    font-weight: bold;
}
.markdown code .token.string,
.markdown pre code .token.string {
    color: #ce9178;
}
.markdown code .token.number,
.markdown pre code .token.number {
    color: #b5cea8;
}
.markdown code .token.function,
.markdown pre code .token.function {
    color: #dcdcaa;
}
.markdown code .token.operator,
.markdown pre code .token.operator {
    color: #d4d4d4;
}
.markdown code .token.class-name,
.markdown pre code .token.class-name {
    color: #4ec9b0;
}
.markdown code .token.property,
.markdown pre code .token.property {
    color: #9cdcfe;
}
.markdown code .token.punctuation,
.markdown pre code .token.punctuation {
    color: #f8f8f2;
}

/* Ajout d'une barre décorative à gauche du bloc code */
.markdown pre::before {
    content: "";
    display: block;
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(180deg, #F2622E 0%, #F2E313 100%);
}

/* Responsive Design for the Markdown */

@media screen and (max-width: 1000px) {

    .top-page-details h1 {
        font-size: 2rem !important;
        font-weight: 100;
        margin-top: 0px !important;
        text-align: left !important;
    }

    .top-page-details h2 {
        font-size: 1.5rem !important;
        font-weight: 100;
        text-align: left !important;
    }

    .markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 {
        font-size: 2rem !important;
    }
    .markdown p {
        font-size: 0.9rem !important;
    }
    .markdown ul, .markdown ol {
        padding-left: 1em !important;
    }
    .markdown li {
        font-size: 0.9rem !important;
    }


}
/* Style pour le menu burger */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu span {
    height: 3px;
    width: 25px;
    background: white;
    margin-bottom: 4px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute ;
    top: 60px;
    left: 0;
    width: 100%;
    background: #1c1c1c;
    z-index: 1000;
    transition: max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.active {
    max-height: 100vh; /* Ajustez cette valeur en fonction de la hauteur de votre menu */
    height: 100vh;
    display: flex;
    justify-content: center;
    position: absolute !important;
    top: 60px;
    left: 0;
    z-index: 999 !important;
}


.mobile-menu li {
    margin: 20px 0;
    list-style: none !important;

}

.mobile-menu a {
    color: white;
    font-size: 1.2rem;
}

/* Media queries pour afficher le menu burger sur les petits écrans */
@media screen and (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }

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

    .container {
        padding: 40px;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 10px 0;
    }

    header {
        margin-bottom: 100px ;
        z-index: 99 !important;
    }

    .section-header img:first-child {
        left: 50%;
        transform: translateX(-100%);
        width: 100%;
        height: 100vh;
        overflow: visible;
    }

    .section-header {
        padding-left: 20px;
        padding-right: 20px;
        width: 100vw !important;
    }

    .section-about {
        flex-direction: column;
        padding: 20px;
        margin-top: 0px !important;
    }

    .headercontent p {
        text-align: center;
    }


    .section-about img {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .headercontent {
        align-items: center;
        width: 100%;
    }

    .headercontent h1 {
        font-size: 4rem;
        text-align: center;
        margin-bottom: 10px;
    }

    .button-flex {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 10PX;
    }
    
    .section-header a {
        font-size: 1rem;
        margin: 0px;
    }

    .header-statut {
        font-size: 1.2rem;
        text-align: center;
    }

    .top-page {
        flex-direction: column;
        align-items: center;
    }

    .top-page h1 {
        font-size: 3rem;
        text-align: center;
    }

    h2 {
        font-size: 3rem;
        margin-bottom: 25px;
    }

    p {
        font-size: 1.2rem;
        width: 100%;
    }

    .top-page p {
        width: 100%;
        text-align: center;
    }

    /* Footer responsive */

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

    footer {
        padding: 20px 40px;
    }

    .top-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .right-side {
        margin-top: 20px;
        width: 100%;
        justify-content: space-between;
    }

    .right-side * {
        margin-left: 0;
    }

    .home-real-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .home-real-card p:last-child {
        text-align: right;
        width: 100%;
    }

        .home-real-card p:first-child {
            width: 700px;
    }

    .color-tag {
        margin-right: -40px;
        margin-left: 20px;
    }

    .top-page-details h1 {
        font-size: 3rem !important;
        font-weight: 100;
        text-align: left !important;

    }

        .top-page-details h2 {
        font-size: 2rem !important;
        font-weight: 100;
        margin-bottom: 25px !important;
        text-align: left !important;
    }

    .scroll-down img {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .top-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .right-side {
        margin-top: 20px;
        width: 100%;
        justify-content: space-between;
    }

    .right-side * {
        margin-left: 0;
    }
}

/* Style pour l'élément select */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #1c1c1c;
    color: white;
    border: 1px solid white;
    border-radius: 100px;
    padding: 10px 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

select:hover {
    background-color: #333;
}

select:focus {
    outline: none;
    border-color: #f5f5f5;
}

select option {
    background-color: #1c1c1c;
    color: white;
    padding: 10px;
}

/* Style pour la flèche du select */
select::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.scroll-down {
    position: absolute !important;
    top : 80vh !important;
    left: 0 !important;
    width: 100% !important;
    height: 50px !important;
    display: flex;
    justify-content: center;

    cursor: pointer;
    z-index: 9999 !important;
    transition: all 0.3s ease;
}

.scroll-down img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scroll-down:hover {
    transform: scale(1.1);

}
/* Style pour le menu burger */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu span {
    height: 3px;
    width: 25px;
    background: white;
    margin-bottom: 4px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute ;
    top: 60px;
    left: 0;
    width: 100%;
    background: #1c1c1c;
    z-index: 1000;
    transition: max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.mobile-menu.active {
    max-height: 100vh; /* Ajustez cette valeur en fonction de la hauteur de votre menu */
    height: 100vh;
    display: flex;
    justify-content: center;
    position: absolute !important;
    top: 60px;
    left: 0;
    z-index: 999 !important;
}


.mobile-menu li {
    margin: 20px 0;
    list-style: none !important;

}

.mobile-menu a {
    color: white;
    font-size: 1.2rem;
}

/* Ajout/Corrigé : assure la superposition du menu burger sur le menu mobile */
.burger-menu {
    z-index: 1100;
    position: fixed;
    top: 20px !important;
    right: 40px !important;
}

/* Header fixe et menu burger en mobile */
@media screen and (max-width: 1024px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 1002;
    }
    .header-container {
        padding: 20px;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
    .burger-menu {
        display: flex !important;
        z-index: 1100;
        position: fixed;
        top: 30px;
        right: 30px;
    }
    .mobile-menu {
        display: none;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #1c1c1c;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        transition: max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }
    .mobile-menu.active {
        display: flex !important;
        max-height: 100vh;
    }
    .mobile-menu li {
        margin: 30px 0;
    }
}

/* Ajout : assure la superposition du menu mobile */
.mobile-menu {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #1c1c1c;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
    transition: max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
}
.mobile-menu.active {
    display: flex !important;
    max-height: 110vh;
    top: 0;

}

/* Ajout : le menu burger doit être au-dessus du menu mobile */
.burger-menu {
    z-index: 1100;
}
