/* Variables de couleurs */
:root {
    --color-background: #4d4d4d;
    --color-secondary: #1a1a1a;
    --color-tertiary: #2c2c2c;
    --color-text: #f5f5f5;
    --color-primary: #b00000;
    --color-accent: #540000;
    --color-header-bg: rgba(26, 26, 26, 0.9);
    --color-header-shadow: rgba(0, 0, 0, 0.3);
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
/* Styles généraux */
body {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 0;
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

p {
    margin-bottom: 1rem;
}

/* Styles des boutons */
.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-accent);
}

/* --- Styles communs --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.5s ease;
    transition: box-shadow 0.5s ease;
}

header.scrolled {
    background-color: var(--color-secondary);
    box-shadow: 0px 6px 5px black;
    
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 80px;
    position: relative;
    z-index: 10;
}

.logo {
    max-height: 60px;
    width: auto;
    height: auto;
}

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

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

nav {
    height: 100%;
    margin-right: -10rem; /* Décale la navbar vers la droite */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 4rem; /* Augmente l'espacement entre les liens */
    height: 100%;
    align-items: center;
    padding-left: 2rem; /* Ajoute un petit décalage sur la droite */
}

nav ul li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem; /* Augmente l'espacement interne pour un meilleur équilibre */
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-item {
    position: relative;
    text-decoration: none;
    color: var(--color-text);
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0px;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item:hover,
.nav-item.active {
    color: var(--color-primary);
}

/* --- Menu mobile --- */
.menu-hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    z-index: 1001; /* S'assurer que c'est au-dessus du menu */
    transition: transform 0.3s ease;
}

.menu-hamburger .bar {
    width: 100%;
    height: 5px;
    background-color: var(--color-text);
    transition: 0.3s ease;
}

.menu-hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
}

.menu-hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
}

/* --- Généralités pour mobile --- */
@media screen and (max-width: 768px) {

    /* Navigation principale - affichage de base */
    nav {
        display: none; /* Caché par défaut */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-secondary);
        z-index: 15;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%); /* Commence caché à droite */
        transition: transform 0.3s ease; /* Animation pour ouverture */
    }

    nav.active {
        transform: translateX(0); /* Menu qui glisse de droite à gauche */
    }

    nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 15px 0; /* Espacement entre les liens */
    }

    nav ul li a {
        text-decoration: none;
        color: #333;
        font-size: 18px;
        font-weight: 600;
        text-transform: uppercase;
    }

    nav ul li a:hover {
        color: #007bff; /* Couleur au survol */
    }

    /* Menu Hamburger */
    .menu-hamburger {
        display: block; /* Visible sur mobile */
        position: absolute;
        top: 20px;
        right: 20px; /* Le bouton hamburger est maintenant à droite */
        z-index: 20; /* Au-dessus de tout le reste */
        cursor: pointer;
    }

    .menu-hamburger .bar {
        display: block;
        width: 30px;
        height: 4px;
        margin: 5px auto;
        background-color: #333;
        transition: transform 0.3s ease;
    }

    .menu-hamburger.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px); /* Première barre en rotation */
    }

    .menu-hamburger.open .bar:nth-child(2) {
        opacity: 0; /* La barre du milieu disparaît */
    }

    .menu-hamburger.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px); /* Troisième barre en rotation */
    }

    /* Fond d'écran de la navbar */
    .nav-background {
        display: none; /* Caché par défaut */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Recouvre toute la page */
        background-color: rgba(0, 0, 0, 0.5); /* Fond sombre semi-transparent */
        z-index: 10; /* Sous la navbar */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Quand la nav est active, on affiche le fond */
    nav.active + .nav-background {
        display: block;
        opacity: 1; /* Le fond devient visible */
    }

    /* --- Header --- */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        z-index: 100;
        padding: 0px 0;
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .logo-container {
        display: flex;
        align-items: center;
        margin-top: 15px;
    }

    .logo {
        width: 40px;
        height: auto;
    }

    /* --- Modification du comportement de la navbar --- */
    nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    nav ul li {
        padding: 10px;
        font-size: 18px;
    }

    nav ul li a {
        color: #333;
        font-weight: 600;
        text-transform: uppercase;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: #007bff;
    }

    /* --- Barre de recherche mobile --- */
    .search-bar {
        display: none; /* Par défaut, cacher */
    }

    .search-bar.active {
        display: block;
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-top: 20px;
    }

    /* Ajustements du fond de la navbar */
    nav.active + .nav-background {
        display: block;
        opacity: 1;
    }
}



/* Styles de la section hero */
.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg, .parallax-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-bg {
    background-image: url('../images/background.webp');
    background-attachment: fixed;
    z-index: 1;
}

.parallax-fg {
    background-image: url('../images/frontscreen.webp');
    background-attachment: fixed;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.35s ease-out, filter 0.35s ease-out;
    filter: drop-shadow(0 30px 20px rgba(0, 0, 0, 85)); 
}

.parallax-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title, .hero-description {
    color: #ffffff; /* Texte en blanc */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-name {
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: 3rem;
    margin: 1rem 0;
    font-weight: bold;
}

.hero-description {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-content .btn {
    font-size: 1.3rem;
    padding: 14px 28px;
    width: auto;
    background-color: var(--color-primary);
    color: var(--color-text);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-content .btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Styles des sections mises en avant et "à propos" */
.featured-projects,
.about {
    background-color: var(--color-secondary);
    border: none;
    border-radius: 15px;
    margin: 3rem auto;
    padding: 3rem;
    position: relative;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: var(--color-text);
    text-align: center;
}

.featured-projects::before,
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--color-primary), var(--color-accent));
}

.featured-projects h2,
.about h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.featured-projects h3,
.about h3 {
    color: var(--color-text);
}

.featured-projects p,
.about p {
    color: var(--color-text);
}

/* PROJETS */

.projects-header {
    background-color: var(--color-secondary);
    padding: 40px 5%;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
}

.projects-header .section-title,
.projects-header .section-description {
    color: white; /* Texte blanc pour contraster */
}

.projects-list {
    background-color: var(--color-background);
    padding: 80px 5%;
}

/* Titre et description centrés */
.projects-list .section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.projects-list .section-description {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text);
}

/* Barre de filtrage */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px;
}

.filter-btn {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
}

.filter-btn i {
    font-size: 1.2rem;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--color-accent);
    transform: scale(1.05);
}

/* Affichage uniquement des icônes sur mobile */
@media (max-width: 768px) {
    .filter-btn {
        padding: 10px;
        font-size: 0.9rem;
        justify-content: center;
        width: 50px; /* Taille réduite */
        height: 50px;
    }

    .filter-text {
        display: none;
    }

    .filter-btn i {
        font-size: 1.5rem;
    }
}


/* Grille des projets */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 projets par ligne */
    gap: 30px; /* Espacement entre les cartes */
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

/* Cartes des projets */
.project-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    border: 2px solid transparent;
}

/* Les vidéos et images doivent s'adapter proprement */
.project-card iframe,
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Titre des projets */
.project-card h3 {
    margin: 15px 0;
    font-size: 1.3rem;
    color: var(--color-primary);
}

/* Description des projets */
.project-card p {
    font-size: 1rem;
    color: var(--color-text);
    flex-grow: 1; /* Permet d'ajuster les textes */
}

.project-card:hover {
    border: 2px solid red;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 0, 0, 1);
}

/* Boutons */
.project-card .btn {
    display: block;
    width: 85%;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 5px;
    transition: 0.3s ease;
    text-decoration: none;
}

.project-card .btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

/* Responsive - 2 colonnes sur tablette */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - 1 colonne sur mobile */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
/* BIOGRAPHIE */

.content-wrapper {
    padding-top: 120px;
}

.about-page .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Photo de profil */
.profile-image {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    object-fit: cover;
    transition: 0.15s;
}

.profile-image:hover {
    transform: scale(1.1);
}

.cv-download {
    text-align: center;
    margin-top: 20px;
}

/* Style du bouton */
.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
    animation: pulse-red 0.8s infinite alternate;
}

/* Icône */
.btn-cv i {
    font-size: 1.2rem;
}

/* Effet de néon au hover */
.btn-cv:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.5);
}

/* Animation continue (pulsation rouge) */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.5);
    }
}


/* QUALITÉS */
.qualities {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quality {
    background-color: var(--color-secondary);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: 150px;
    transition: transform 0.2s ease;
}

.quality i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.quality:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

.quality:hover i {
    text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

/* COMPÉTENCES */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skills-list li {
    background-color: var(--color-primary);
    color: var(--color-text);
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s ease;
}

.skills-list li:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

/* Styles de la timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--color-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    animation: grow 3s ease-out forwards;
}

@keyframes grow {
    from { height: 0; }
    to { height: 100%; }
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--color-secondary);
    position: relative;
    border-radius: 6px;
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.timeline-item:nth-child(1) .timeline-content { animation-delay: 0.5s; }
.timeline-item:nth-child(2) .timeline-content { animation-delay: 1s; }
.timeline-item:nth-child(3) .timeline-content { animation-delay: 1.5s; }
.timeline-item:nth-child(4) .timeline-content { animation-delay: 2s; }

.timeline-content h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* LOGICIELS */
.software-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.software-item {
    text-align: center;
    border-radius: 10px;
    width: 130px;
    padding: 10px;
    transition: transform 0.2s ease
}

.software-item:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

.software-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* Notation en étoiles */
.stars {
    display: flex;
    gap: 3px;
}

.stars i {
    color: gold;
    font-size: 1rem;
    animation: glowing 1s infinite alternate ease-in-out;
}

/* Animation de brillance continue */
@keyframes glowing {
    0% {
        text-shadow: 0 0 3px gold, 0 0 5px gold, 0 0 8px rgba(255, 215, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 6px gold, 0 0 12px gold, 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .software-item {
        width: 110px;
    }
}

/* Styles du formulaire de contact */
.contact-form {
    padding-top: 100px;
    padding-bottom: 50px;
    background-color: var(--color-background);
}

.contact-form .container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-secondary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-tertiary);
    border-radius: 4px;
    background-color: var(--color-tertiary);
    color: var(--color-text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

#contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.success-message,
.error-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.success-message {
    background-color: #4CAF50;
    color: white;
}

.error-message {
    background-color: #f44336;
    color: white;
}

/* Styles du pied de page */
footer {
    background-color: var(--color-secondary);
    color: var(--color-text);
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 10;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Centre les éléments horizontalement */
    align-items: flex-start; /* Aligne les éléments en haut */
    gap: 20px;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    text-align: center; /* Centre le texte dans chaque section */
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-icons {
    display: flex;
    justify-content: center; /* Centre les icônes horizontalement */
    gap: 1rem;
}

.social-icons a {
    color: var(--color-text);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid var(--color-tertiary);
    padding-top: 1rem;
    text-align: center;
}

.legal-link {
    color: var(--color-text);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* Styles de la page légale */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-secondary);
    color: var(--color-text);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legal-page h2 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.legal-page h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page p, .legal-page ul {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-page ul {
    padding-left: 2rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-page a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-page strong {
    color: var(--color-primary);
}

/* Styles du bouton de retour */
.return-button-container {
    text-align: center;
    margin: 20px 0;
}

/* Style du bouton de retour avec une plus grande spécificité */
body .return-button-container .btn-return {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: #ffffff; /* Assurez-vous que le texte est blanc pour un bon contraste */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

/* Style du bouton de retour au survol avec une plus grande spécificité */
body .return-button-container .btn-return:hover {
    background-color: var(--color-accent);
    color: #ffffff; /* Gardez le texte blanc au survol */
}

/* Media Queries */
@media (max-width: 768px) {
    header .container {
        padding: 0 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 0.3rem 0.7rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

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

    header nav ul li {
        margin-bottom: 0.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-content .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}
   
@media (max-width: 768px) {
    .timeline {
        padding: 10px;
    }

    .timeline-item {
        width: 100%; /* Élargir les éléments pour qu'ils prennent toute la largeur */
        padding: 10px 20px;
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0; /* Centrer tous les items */
    }

    .timeline::after {
        left: 30px; /* Aligner la ligne centrale */
        margin-left: 0;
    }
}

/* 📱 RESPONSIVE FOOTER (MOBILE) */
/* ========================= */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-section {
        width: 100%;
    }

    .social-icons {
        justify-content: center;
    }
}