@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Oswald:wght@400;600;700;900&family=Jomhuria&display=swap');


/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('/assets/img/background.png') !important ;
    background-size: auto;
    background-position: top left;
    background-repeat: repeat;
    background-attachment: fixed;
    background-color: #110A22;
    color: white;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 3rem; /* Space for the fixed header, reduced */
}


body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/img/abstract-pattern.png') repeat;
    opacity: 0.1;
    z-index: -1;
}


.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus { /* Pour cibler l'icône si elle hérite le focus */
    outline: none !important; /* Supprime le contour par défaut du navigateur */
    box-shadow: none !important; /* Supprime l'ombre/glow de Bootstrap au focus/clic */
}

/* Si vous voulez un effet subtil, vous pouvez ajouter une bordure colorée au lieu de la supprimer totalement */
/*
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25); // Une ombre dorée subtile
    border-color: #ffd700; // Ou une bordure colorée
}
*/

/* --- Navigation Bar Styles --- */
/* Style des liens de navigation */
.navbar-nav .nav-item .nav-link {
    color: white; /* Définit la couleur du texte en blanc */
    font-family: 'Oswald', sans-serif; /* Définit la police "Oswald" */
    font-weight: 400; /* 'regular' est généralement 400 pour Oswald */
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    position: relative; /* Nécessaire pour positionner le pseudo-élément */
    transition: color 0.3s ease-in-out; /* Conserve la transition de couleur */
}

/* Pseudo-élément pour la ligne au survol */
.navbar-nav .nav-item .nav-link::after {
    content: ''; /* Obligatoire pour les pseudo-éléments */
    position: absolute;
    bottom: 0; /* Positionne la ligne en bas du lien */
    left: 50%; /* Commence au milieu */
    width: 0; /* Largeur initiale de la ligne (cachée) */
    height: 2px; /* Épaisseur de la ligne */
    background-color: #ffffff; /* Couleur or pour la ligne */
    transition: width 0.3s ease-out, left 0.3s ease-out; /* Animation de la largeur et de la position */
}



/* Animation de la ligne au survol */
.navbar-nav .nav-item .nav-link:hover::after {
    width: 100%; /* La ligne prend toute la largeur du lien */
    left: 0; /* La ligne se déplace vers la gauche pour couvrir tout le lien */
}

/* Style du bouton CONNEXION/DÉCONNEXION (ajusté pour la ligne si désiré) */
.navbar-nav .nav-item .btn {
   
    border-radius: 5px;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    color: white;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    position: relative; /* Également nécessaire pour le bouton si vous voulez l'effet de ligne */
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* Appliquez le même effet de ligne au bouton si vous le souhaitez */
.navbar-nav .nav-item .btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px; /* Hauteur de la ligne */
    background-color: rgb(255, 255, 255); /* Couleur de la ligne pour le bouton */
    transition: width 0.3s ease-out, left 0.3s ease-out;
}



.navbar-nav .nav-item .btn:hover::after {
    width: 100%;
    left: 0;
}


















































/* --- Navigation Bar Styles --- */
.barre-nav {
    background-color: rgba(29, 13, 58, 0.95);
    padding: 1.2rem 2rem 0.6rem 4rem; /* Reduced padding */
    display: flex;
    justify-content: flex-end; /* Pushes content to the right */
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: none;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.liste-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem; /* Reduced gap */
    margin-right: 1.5rem; /* Adjusted right margin for nav items */
}



.liste-nav a.nav-link,
.liste-nav .btn-connexion {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 0.5rem 0; /* Reduced padding */
    transition: color 0.3s ease, border-bottom 0.3s ease, padding-bottom 0.3s ease;
    font-size: 1rem; /* Reduced font size */
    outline: none;
    border-bottom: 2px solid transparent;
}

.liste-nav a.nav-link:hover,
.liste-nav .btn-connexion:hover {
    color: white;
    border-bottom: 2px solid white;
    padding-bottom: 0.3rem; /* Adjusted padding */
}

/* --- Home Page Specific Styles --- */
.section-presentation {
    text-align: center;
    padding-bottom: 4rem; /* Reduced padding */
    position: relative;
    height: 600px; /* Reduced height */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.photo-profil {
    max-width: 500px; /* Reduced max-width */
    height: auto;
    display: block;
    position: absolute;
    bottom: -210px; /* Adjusted position */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    box-shadow: none;
    border: none;
    object-fit: cover;
    z-index: 4;
}

.titre-principal {
    font-family: 'Jomhuria', sans-serif;
    font-size: 12rem; /* Reduced font size */
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1;
    position: absolute;
    white-space: nowrap;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
}

.titre-haut-gauche {
    top: 25%; /* Adjusted position */
    transform: translateX(calc(-50% - 60px)); /* Adjusted position */
    color: transparent;
    -webkit-text-stroke: 3px white; /* Reduced stroke */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Reduced shadow */
    letter-spacing: 1rem; /* Reduced letter spacing */
    z-index: 2;
}

.titre-milieu-plein {
    top: 305PX; /* Adjusted position */
    transform: translate(-50%, -50%);
    color: white;
    -webkit-text-stroke: none;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.8); /* Reduced shadow */
    letter-spacing: 1rem; /* Reduced letter spacing */
    z-index: 3;
}

.titre-bas-droit {
    bottom: 130px; /* Adjusted position */
    transform: translateX(calc(-50% + 60px)); /* Adjusted position */
    color: transparent;
    -webkit-text-stroke: 3px white; /* Reduced stroke */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Reduced shadow */
    letter-spacing: 1rem; /* Reduced letter spacing */
    z-index: 2;
}

.separateur-blanc {
    width: 100%;
    height: 1px; /* Reduced height */
    background-color: white;
    margin: 0;
    position: absolute;
    top: 858px; /* Adjusted position */
    z-index: 5;
    left: 0;
}

.texte-apropos {
    max-width: 1100px; /* Reduced max-width */
    margin: 70px 350px auto 4rem; /* Reduced margins */
    margin-left: 350px; /* Reduced margin */
    padding: 2rem 2.5rem; /* Reduced padding */
    background-color: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.texte-apropos h3 {
    font-family: 'Oswald', sans-serif;
    color: #ff007f;
    font-weight: 700;
    margin-bottom: 2rem; /* Reduced margin */
    font-size: 3rem; /* Reduced font size */
    text-align: left;
}

.texte-apropos p {
    font-size: 1.3rem; /* Reduced font size */
    color: #ddd;
    line-height: 1.8; /* Reduced line height */
    text-align: left;
    margin-top: 15px; /* Reduced margin */
}

.texte-intro {
    max-width: 1100px; /* Reduced max-width */
    margin: 350px auto 4rem; /* Reduced margins */
    padding: 2rem 2.5rem; /* Reduced padding */
    background-color: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.texte-intro h3 {
    font-family: 'Oswald', sans-serif;
    color: #ff007f;
    font-weight: 700;
    margin-bottom: 2rem; /* Reduced margin */
    font-size: 3rem; /* Reduced font size */
    text-align: left;
}

.texte-intro p {
    font-size: 1.3rem; /* Reduced font size */
    color: #ddd;
    line-height: 1.8; /* Reduced line height */
    text-align: left;
    margin-top: 15px; /* Reduced margin */
}

.parcours{
    font-family: 'Oswald', sans-serif;
    color: #ff007f;
    font-weight: 700;
    margin-bottom: 2rem; /* Reduced margin */
    margin-top: 50px; /* Reduced margin */
    font-size: 3rem; /* Reduced font size */
    text-align: left;
}

.content-aligned-wrapper {
    max-width: 1100px; /* Reduced max-width */
    margin: 0 auto;
    padding: 0 2.5rem; /* Reduced padding */
    box-sizing: border-box;
}

.btn-afficherplus {
    color: #fff;
    text-decoration: none;
}

.btn-cv {
    display: block;
    width: max-content;
    margin: 3.5rem auto 5rem; /* Reduced margins */
    border: 3px solid white; /* Reduced border */
    color: white;
    padding: 1.2rem 3rem; /* Reduced padding */
    text-decoration: none;
    border-radius: 12px; /* Reduced border-radius */
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem; /* Reduced font size */
}

.btn-cv:hover {
    background-color: #ff007f;
    color: white;
    border-color: #ff007f;
}

/* Titre "MES PROJETS" sur la page d'accueil (inchangé) */
.titre-mes-projets {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem; /* Reduced font size */
    color: #ff007f;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 4rem; /* Reduced margin */
    margin-bottom: 2rem; /* Reduced margin */
}

.grille-projets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* Reduced gap */
    max-width: 1100px; /* Reduced max-width */
    margin: 3rem auto 4rem; /* Reduced margins */
    padding: 0 2.5rem; /* Reduced padding */
}

/* ****************************************************************************************** */
/* DÉBUT DES MODIFICATIONS STRICTES DE LA CARTE */
/* ****************************************************************************************** */

/* Updated: .carte-projet is now inside .project-card-link */
.carte-projet {
    background-color: rgba(255, 255, 255, 0.1);
    height: 100%; /* Take full height of the link wrapper */
    border-radius: 10px; /* Reduced border-radius */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* Reduced shadow */
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Pseudo-élément pour l'effet de brillance (::before) */
.carte-projet::before {
    content: '';
    position: absolute;
    top: -2px; /* Reduced size */
    left: -2px; /* Reduced size */
    right: -2px; /* Reduced size */
    bottom: -2px; /* Reduced size */
    border-radius: 12px; /* Reduced border-radius */
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 80%); /* Reduced opacity */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
    z-index: 1;
    transform: scale(0.9);
}

/* Pseudo-élément pour le filtre noir transparent (::after) - Titre supprimé */
.carte-projet::after {
    content: ''; /* Supprime l'affichage du titre */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay noir simple */
    /* Suppression des styles de texte car le titre n'y est plus */
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px; 
    z-index: 3;
}

/* Hover effects moved to .project-card-link */
.project-card-link:hover .carte-projet {
    transform: scale(1.02); /* Slightly reduced scale */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25); /* Reduced shadow */
}

.project-card-link:hover .carte-projet::before {
    opacity: 1;
    transform: scale(1);
}

.project-card-link:hover .carte-projet::after {
    opacity: 1; /* L'overlay apparaît toujours au survol */
}

/* Nouvelle règle pour adapter les images dans les cartes de projet */
.carte-projet img {
    width: 100%;
    height: calc(100% - 3.8rem); /* Réduit la hauteur pour laisser de la place au pied de carte */
    object-fit: cover;
    border-radius: 10px 10px 0 0; /* Seulement en haut */
    position: relative;
    z-index: 1; /* Ensure image is behind pseudo-elements */
}

/* AJOUT: Style pour le conteneur d'information affiché en bas de la carte */
.project-card-info-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.8rem; /* Hauteur fixe pour le titre et le domaine */
    padding: 0.3rem 0.5rem;
    background-color: rgba(29, 13, 58, 0.95); /* Fond sombre pour la lisibilité */
    color: white; 
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: center;
    border-radius: 0 0 10px 10px; /* Bords arrondis en bas */
    z-index: 4; /* Au-dessus de tout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
}

.project-card-info-bottom .title {
    font-size: 1rem;
    font-weight: 700;
    color: #ff007f; /* Couleur accent pour le titre */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.project-card-info-bottom .domain {
    font-size: 0.8rem;
    font-weight: 400;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Styles pour la page Projets (si non sur la page d'accueil) */
.project-card-link {
    /* Remplacement de la hauteur initiale pour accommoder le pied de carte */
    height: 280px; 
}
.project-card {
    /* Pas de modifications spécifiques nécessaires ici */
}
.project-card-image {
    /* Hérite de .carte-projet img */
}
.project-card-no-image {
    /* Hérite de .carte-projet img */
    /* Assurez-vous que l'affichage est correct même sans image */
    justify-content: space-around; /* Pour centrer le texte sans l'écraser */
    flex-direction: column; 
    padding: 10px 0;
}
/* ****************************************************************************************** */
/* FIN DES MODIFICATIONS STRICTES DE LA CARTE */
/* ****************************************************************************************** */


.btn-projets {
    display: block;
    width: max-content;
    margin: 4rem auto 10rem; /* Reduced margins */
    border: 3px solid white; /* Reduced border */
    color: white;
    padding: 1.2rem 3.5rem; /* Reduced padding */
    text-decoration: none;
    border-radius: 12px; /* Reduced border-radius */
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem; /* Reduced font size */
}

.btn-projets:hover {
    background-color: #ff007f;
    color: white;
    border-color: #ff007f;
}

/* --- Footer Styles --- */
.pied-page {
    background-color: rgba(29, 13, 58, 0.95);
    color: #aaa;
    text-align: center;
    padding: 2.5rem 1.5rem; /* Reduced padding */
    font-size: 1.2rem; /* Reduced font size */
    position: relative;
    width: 100%;
    margin-top: 6rem; /* Reduced margin */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pied-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Reduced gap */
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 60px; /* Reduced gap */
    margin-bottom: 10px; /* Reduced margin */
}

.social-icons a {
    color: white;
    font-size: 3.5rem; /* Reduced font size */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #ff007f;
    transform: scale(1.08); /* Slightly reduced scale */
}

.pied-page p {
    margin: 0;
    color: #ddd;
    font-size: 1rem; /* Reduced font size */
}

.pied-page a {
    color: #ff007f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pied-page a:hover {
    color: #fff;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

:target {
    scroll-margin-top: 8rem; /* Reduced scroll margin */
}

/* --- JavaScript Animation Classes (unchanged) --- */

/* Main title (middle) */
.titre-milieu-plein.hidden {
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.titre-milieu-plein.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Profile photo */
.photo-profil.hidden {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.photo-profil.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Text sections (About Me, Journey) */
.section-texte-hidden {
    opacity: 0;
    transform: translateY(40px); /* Reduced translate */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section-texte-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Project Cards (on homepage) */
.carte-projet-hidden {
    opacity: 0;
    transform: translateY(40px); /* Reduced translate */
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.carte-projet-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Project Page Specific Styles (Updated to make cards clickable) --- */

/* Base Styles for Project Page */
.page-container {
    max-width: 1100px; /* Reduced max-width */
    margin: 0 auto;
    padding: 1.5rem 2.5rem; /* Reduced padding */
    box-sizing: border-box;
}

/* Modifié : page-title pour le titre "MES PROJETS" */
.page-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem; /* Reduced font size */
    color: #ff007f;
    margin-bottom: 2rem; /* Reduced margin */
    text-align: center;
    text-transform: uppercase;
    font-weight: 700; /* Assurez-vous qu'il est bien gras */
    margin-top: 4rem; /* Reduced margin */
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem; /* Reduced margin */
    gap: 0.8rem; /* Reduced gap */
}

.filter-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 1rem; /* Reduced font size */
	
}

.filter-select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #ff007f;
    background-color: rgba(29, 13, 58, 0.9);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 1.2em;

    width: max-content;        /* ← largeur = plus longue option */
    min-width: max-content;
    padding-right: 3rem;

    flex-shrink: 0;            /* ← empêche flex de réduire la largeur */
}
#domaine.filter-select {
    width: 180px; /* ajuste selon la longueur maximale des options */
}
.select-arrow {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff; /* Fond blanc comme les autres */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><polygon points="5,7 15,7 10,14" fill="%23333"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px; /* pour que le texte ne chevauche pas la flèche */
}

.filter-select:focus {
    outline: none;
    border-color: #e6006f;
    box-shadow: 0 0 0 2px rgba(255, 0, 127, 0.2); /* Reduced shadow */
}

/* No Projects Message */
.no-projects-message {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffd700;
    padding: 1.2rem; /* Reduced padding */
    border-radius: 10px; /* Reduced border-radius */
    text-align: center;
    font-size: 1.2rem; /* Reduced font size */
    margin-top: 2.5rem; /* Reduced margin */
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced minmax */
    gap: 2.5rem; /* Reduced gap */
    margin-bottom: 4rem; /* Reduced margin */
}

.project-item {
    display: flex;
    justify-content: center;
}

/* New: Styles for the anchor tag wrapping the project card */
.project-card-link {
    text-decoration: none; /* Remove default underline */
    color: inherit; /* Inherit text color (though not much text directly here) */
    display: block; /* Make the link fill its container */
    width: 100%; /* Make the link take full width */
    height: 280px; /* AUGMENTÉ: Laisser de la place pour l'info du bas */
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1);
    height: 100%; /* Take full height of the link wrapper */
    border-radius: 10px; /* Reduced border-radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Reduced shadow */
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Needed for ::before and ::after */
}

/* Use the existing ::after pseudo-element to display the title on hover */
.project-card::after {
    content: ''; /* Supprime l'affichage du titre */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay noir simple */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px; 
    z-index: 3;
}

/* Add a pseudo-element for a subtle hover effect if desired */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 80%); /* Reduced opacity */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2; /* Below the title overlay */
}

/* Hover effects for the ENTIRE CARD (now on .project-card-link) */
.project-card-link:hover .project-card {
    transform: translateY(-8px); /* Reduced translate */
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.3); /* Reduced shadow */
}

.project-card-link:hover .project-card::before {
    opacity: 1; /* Subtle gradient appears on hover */
}

.project-card-link:hover .project-card::after {
    opacity: 1; /* Title overlay appears on hover */
}

/* Ajustement de la hauteur de l'image pour laisser de la place au titre du bas */
.project-card-image {
    width: 100%;
    height: calc(100% - 3.8rem); /* Hauteur réduite pour laisser 3.8rem au pied */
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0; /* Bords arrondis en haut */
    position: relative;
    z-index: 1; /* Ensure image is behind pseudo-elements */
}

/* AJOUT: Style pour le conteneur d'information affiché en bas de la carte */
.project-card-info-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.8rem; /* Hauteur fixe pour le titre et le domaine */
    padding: 0.3rem 0.5rem;
    background-color: rgba(29, 13, 58, 0.95); /* Fond sombre pour la lisibilité */
    color: white; 
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: center;
    border-radius: 0 0 10px 10px; /* Bords arrondis en bas */
    z-index: 4; /* Au-dessus de tout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
}

.project-card-info-bottom .title {
    font-size: 1rem;
    font-weight: 700;
    color: #ff007f; /* Couleur accent pour le titre */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.project-card-info-bottom .domain {
    font-size: 0.8rem;
    font-weight: 400;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}


.project-card-no-image {
    /* Ajustement de la hauteur pour les cartes sans image */
    height: calc(100% - 3.8rem); /* Hauteur réduite pour laisser 3.8rem au pied */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a194a 25%, #422d6b 100%); 
    border-radius: 10px 10px 0 0;
    position: relative;
    z-index: 1;
    flex-direction: column; /* Ajouté pour centrer le texte sans image */
    padding: 10px 0;
}


.navbar-toggler {
    display: none;
}

.no-image-text {
    color: #fff;
    font-size: 1rem; /* Reduced font size */
    font-weight: 600;
    opacity: 0.7;
}

@media (max-width: 991.98px) { /* Point de rupture 'lg' de Bootstrap */
    /* ... règles spécifiques au mobile ici ... */ .navbar-toggler {
        display: block; /* Afficher le bouton burger sur mobile */
        border-color: rgba(255, 255, 255, 0.5); /* Bordure claire pour le bouton */
    }

    .navbar-toggler {
        display: flex; /* Utilise flexbox pour aligner les lignes */
        flex-direction: column; /* Empile les lignes verticalement */
        justify-content: space-around; /* Distribue l'espace entre les lignes */
        align-items: center; /* Centre les lignes horizontalement */
        width: 40px; /* Taille du bouton hamburger */
        height: 40px; /* Taille du bouton hamburger */
        padding: 0; /* Supprime le padding par défaut du bouton */
        background-color: transparent; /* Fond transparent pour le bouton lui-même */
        border: none !important; /* Supprime toute bordure */
        outline: none !important; /* Supprime le contour au focus */
        box-shadow: none !important; /* Supprime l'ombre au focus */
        cursor: pointer;
        position: relative; /* Pour positionner les lignes absolument si besoin */
        
        /* Assurez-vous que le texte "Menu" (si présent) est géré par ailleurs */
    }

    .navbar-toggler:focus,
    .navbar-toggler:active {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Styles pour les barres individuelles */
    .navbar-toggler-line {
        display: block;
        width: 28px; /* Largeur des barres */
        height: 3px; /* Épaisseur des barres */
        background-color: white; /* Couleur des barres */
        border-radius: 2px; /* Bords légèrement arrondis */
        /* Transition pour l'animation douce */
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
        position: absolute; /* Permet de les superposer */
        left: 50%;
        transform: translateX(-50%); /* Centrer horizontalement */
    }

    .navbar-toggler-line.top {
        top: 10px; /* Position initiale de la barre du haut */
    }

    .navbar-toggler-line.middle {
        top: 50%; /* Position initiale de la barre du milieu */
        transform: translate(-50%, -50%);
    }

    .navbar-toggler-line.bottom {
        bottom: 10px; /* Position initiale de la barre du bas */
    }

    /* Transformation quand le menu est ouvert (navbar-toggler a aria-expanded="true") */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-line.top {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg); /* Déplace au centre et pivote */
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-line.middle {
        opacity: 0; /* Masque la barre du milieu */
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-line.bottom {
        bottom: 50%;
        transform: translate(-50%, 50%) rotate(-45deg); /* Déplace au centre et pivote */
    }

    /* Assurez-vous que le texte de la marque mobile est visible */
    .navbar-brand {
        color: white; /* Ou la couleur de votre choix pour le texte "Menu" */
        font-family: 'Oswald', sans-serif;
        font-weight: 700;
    }
    .navbar-nav {
        width: 100%;
        /* text-align: center; -- Cette ligne sur le .navbar-nav peut être retirée si les liens sont display: block */
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0; /* Espacement vertical pour les éléments de nav */
    }

    .navbar-nav .nav-item .nav-link,
    .navbar-nav .nav-item .btn {
        padding: 0.75rem 1rem;
        display: block; /* Les liens/boutons prennent toute la largeur */
        width: 100%;
        margin-left: 0; /* Supprime la marge gauche pour le bouton */
        text-align: center; /* AJOUTEZ OU ASSUREZ-VOUS QUE CETTE LIGNE EST PRÉSENTE */
    }
    /* ... le reste de votre CSS mobile ... */
}
    /* ... le reste de votre CSS mobile existant ... */



/* --- Project Detail Page Styles --- */

.project-detail-main-content {
    max-width: 900px; /* Reduced max-width */
    margin: 4rem auto 5rem; /* Reduced margins */
    padding: 0 1.5rem; /* Reduced padding */
    box-sizing: border-box;
    color: white; /* Ensure text is visible on dark background */
}

.project-detail-message {
    padding: 0.8rem; /* Reduced padding */
    margin: 1.5rem auto; /* Reduced margin */
    border-radius: 6px; /* Reduced border-radius */
    text-align: center;
    font-weight: 600;
    max-width: 500px; /* Reduced max-width */
}

.project-detail-message.error-message {
    background-color: rgba(255, 0, 0, 0.15); /* Reduced opacity */
    color: #ffcccc;
    border: 1px solid rgba(255, 0, 0, 0.3); /* Reduced opacity */
}

.project-detail-message.warning-message {
    background-color: rgba(255, 165, 0, 0.15); /* Reduced opacity */
    color: #ffebcc;
    border: 1px solid rgba(255, 165, 0, 0.3); /* Reduced opacity */
}

.project-detail-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem; /* Reduced font size */
    color: #ff007f;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1.5rem; /* Reduced margin */
    margin-top: 2.5rem; /* Reduced margin */
    line-height: 1.2;
}

.project-meta-info {
    text-align: center;
    margin-bottom: 2rem; /* Reduced margin */
    font-size: 1rem; /* Reduced font size */
    color: #ddd;
}

.project-meta-item {
    display: inline-block; /* For horizontal display */
    margin: 0 0.8rem; /* Reduced margin */
    margin-bottom: 0.4rem; /* For wrapping on smaller screens */
    line-height: 1.5; /* Reduced line height */
}

/* --- Carousel Styles --- */
.project-carousel {
    position: relative;
    width: 100%;
    max-width: 700px; /* Reduced max-width */
    margin: 2.5rem auto; /* Reduced margins */
    border-radius: 10px; /* Reduced border-radius */
    overflow: hidden; /* Ensures images respect border-radius */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6); /* Reduced shadow */
    background-color: rgba(255, 255, 255, 0.04); /* Slightly reduced background opacity */
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 380px; /* Reduced fixed height */
}

.carousel-item {
    display: none;
    position: relative;
    transition: transform 0.6s ease-in-out;
    height: 100%; /* Take full height of inner */
    width: 100%;
    justify-content: center;
    align-items: center;
}

.carousel-item.active {
    display: flex; /* Flex to center image */
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 'contain' to fit image without cropping, 'cover' to fill and crop */
    display: block;
    border-radius: 10px; /* Inherit from parent */
}

.carousel-no-image {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a194a 25%, #422d6b 100%); /* Slightly darker gradient */
    border-radius: 10px;
    color: #fff;
    font-size: 1rem; /* Reduced font size */
    font-weight: 600;
    opacity: 0.7;
}

.project-carousel-control-prev,
.project-carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4); /* Reduced opacity */
    border: none;
    border-radius: 50%;
    width: 40px; /* Reduced size */
    height: 40px; /* Reduced size */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10; /* Ensure controls are above images */
}

.project-carousel-control-prev:hover,
.project-carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.6); /* Reduced opacity */
}

.project-carousel-control-prev {
    left: 8px; /* Reduced position */
}

.project-carousel-control-next {
    right: 8px; /* Reduced position */
}

/* Custom SVG icons for carousel controls */
.project-carousel-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3e%3cpath d='M5.5 0L1.5 4l4 4'/%3e%3c/svg%3e");
    width: 18px; /* Reduced size */
    height: 18px; /* Reduced size */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: block;
}

.project-carousel-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 8 8'%3e%3cpath d='M2.5 0l4 4-4 4'/%3e%3c/svg%3e");
    width: 18px; /* Reduced size */
    height: 18px; /* Reduced size */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: block;
}


/* --- Card Styles (Description, Comment Form, Comment List) --- */
.project-description-card,
.comment-form-card,
.comments-list-card {
    background-color: rgba(255, 255, 255, 0.08); /* Reduced opacity */
    border-radius: 10px; /* Reduced border-radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Reduced shadow */
    margin-bottom: 2rem; /* Reduced margin */
    padding: 1.8rem; /* Reduced padding */
    border: 1px solid rgba(255, 255, 255, 0.04); /* Reduced opacity */
}



.project-card-title {
    font-family: 'Oswald', sans-serif;
    color: #ff007f;
    font-weight: 600;
    font-size: 1.6rem; /* Reduced font size */
    margin-bottom: 1.2rem; /* Reduced margin */
}

.project-card-text {
    font-size: 1rem; /* Reduced font size */
    line-height: 1.6; /* Reduced line height */
    color: #ddd;
}

/* --- Form Styles (Comments) --- */
.form-group {
    margin-bottom: 1.2rem; /* Reduced margin */
}

.form-label {
    display: block;
    font-size: 1rem; /* Reduced font size */
    color: #eee;
    margin-bottom: 0.4rem; /* Reduced margin */
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem; /* Reduced padding */
    border-radius: 6px; /* Reduced border-radius */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Reduced opacity */
    background-color: rgba(0, 0, 0, 0.25); /* Slightly lighter background */
    color: white;
    font-size: 0.95rem; /* Reduced font size */
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff007f;
    box-shadow: 0 0 0 2px rgba(255, 0, 127, 0.15); /* Reduced shadow */
    background-color: rgba(0, 0, 0, 0.4); /* Slightly lighter on focus */
}

/* Adjust textarea height */
.form-textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 80px; /* Reduced min-height */
}

/* --- Comment List Styles --- */
.comment-item {
    background-color: rgba(255, 255, 255, 0.04); /* Reduced opacity */
    padding: 1rem; /* Reduced padding */
    border-radius: 6px; /* Reduced border-radius */
    margin-bottom: 0.8rem; /* Reduced margin */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Reduced opacity */
}

.comment-author-date {
    font-size: 0.95rem; /* Reduced font size */
    color: #ff007f; /* Author name in accent color */
    margin-bottom: 0.4rem; /* Reduced margin */
    font-weight: 600;
}

.comment-author-date strong {
    color: #fff; /* Make name stand out more */
}

.comment-text {
    font-size: 0.9rem; /* Reduced font size */
    line-height: 1.5; /* Reduced line height */
    color: #ccc;
    margin-bottom: 0;
}

/* --- Button Styles --- */
.button {
    display: inline-block;
    padding: 0.7rem 1.8rem; /* Reduced padding */
    border-radius: 8px; /* Reduced border-radius */
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem; /* Reduced font size */
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none; /* Remove default button border */
}

.primary-button {
    background-color: #ff007f; /* Accent color */
    color: white;
    border: 1px solid #ff007f; /* Reduced border */
}

.primary-button:hover {
    background-color: #e6006f; /* Slightly darker on hover */
    border-color: #e6006f;
    transform: translateY(-1px); /* Reduced translate */
}

.secondary-button {
    background-color: transparent;
    color: white;
    border: 1px solid white; /* Reduced border */
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.08); /* Reduced opacity */
    border-color: white;
    transform: translateY(-1px); /* Reduced translate */
}

.return-button-container {
    text-align: center;
    margin-top: 2.5rem; /* Reduced margin */
    margin-bottom: 4rem; /* Reduced margin */
}

@media (max-width: 1440px) {
    .barre-nav {
        padding: 1rem 1.5rem 0.5rem 3rem; /* Further reduced padding */
    }

    .liste-nav {
        gap: 1.2rem; /* Further reduced gap */
        margin-right: 0.8rem; /* Further adjusted margin */
    }

    .liste-nav a.nav-link,
    .liste-nav .btn-connexion {
        font-size: 0.9rem; /* Further reduced font size */
    }

    .section-presentation {
        height: 500px; /* Further reduced height */
    }

    .photo-profil {
        max-width: 400px; /* Further reduced max-width */
        bottom: -120px; /* Further adjusted position */
    }

    .titre-principal {
        font-size: 10rem; /* Further reduced font size */
        letter-spacing: 0.6rem; /* Further reduced letter spacing */
    }

    .titre-haut-gauche {
        top: 28%; /* Further adjusted position */
    }

    .titre-milieu-plein {
        top: 48%; /* Further adjusted position */
    }

    .titre-bas-droit {
        bottom: 22%; /* Further adjusted position */
    }

    .separateur-blanc {
        top: 750px; /* Further adjusted position */
    }

    .texte-apropos {
        margin: 40px auto auto 250px; /* Further reduced margins */
        padding: 1.2rem 1.8rem; /* Further reduced padding */
    }

    .texte-apropos h3,
    .texte-intro h3,
    .parcours {
        font-size: 2.2rem; /* Further reduced font size */
    }

    .texte-apropos p,
    .texte-intro p {
        font-size: 1rem; /* Further reduced font size */
    }

    .texte-intro {
        margin: 220px auto 2.5rem; /* Further reduced margins */
        padding: 1.2rem 1.8rem; /* Further reduced padding */
    }

    .btn-cv {
        padding: 0.9rem 2rem; /* Further reduced padding */
        font-size: 1rem; /* Further reduced font size */
        margin: 2.5rem auto 3.5rem; /* Further reduced margins */
    }

    .titre-mes-projets,
    .page-title {
        font-size: 3rem; /* Further reduced font size */
        margin-top: 3rem; /* Further reduced margin */
        margin-bottom: 1.2rem; /* Further reduced margin */
    }

    .grille-projets {
        gap: 1.2rem; /* Further reduced gap */
        margin: 2.5rem auto 3.5rem; /* Further reduced margins */
        padding: 0 1.2rem; /* Further reduced padding */
    }

    .carte-projet::after {
        /* Ne change rien à cause du content: attr(data-title); */
    }

    .btn-projets {
        padding: 0.9rem 2.5rem; /* Further reduced padding */
        font-size: 1rem; /* Further reduced font size */
        margin: 3.5rem auto 8rem; /* Further reduced margins */
    }

    .pied-page {
        padding: 1.8rem 1rem; /* Further reduced padding */
        font-size: 1rem; /* Further reduced font size */
        margin-top: 4rem; /* Further reduced margin */
    }

    .social-icons {
        gap: 35px; /* Further reduced gap */
    }

    .social-icons a {
        font-size: 3rem; /* Further reduced font size */
    }

    .page-container {
        padding: 0.8rem 1.5rem; /* Further reduced padding */
    }

    .project-detail-title {
        font-size: 2.5rem; /* Further reduced font size */
    }

    .project-meta-info {
        font-size: 0.9rem; /* Further reduced font size */
    }

    .project-carousel {
        max-width: 550px; /* Further reduced max-width */
    }

    .carousel-inner {
        height: 300px; /* Further reduced height */
    }

    .project-card-title {
        font-size: 1.4rem; /* Further reduced font size */
    }

    .project-card-text {
        font-size: 0.9rem; /* Further reduced font size */
    }
}


/* ---------------------------------------------------------------- */
/* Tablet (Max-width 1024px)         */
/* ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    body {
        padding-top: 3rem; /* Further reduced padding */
    }

    .barre-nav {
        padding: 0.8rem 1.2rem 0.4rem 1.5rem; /* Further reduced padding */
        justify-content: space-between; /* Align logo left, nav right */
    }

    .liste-nav {
        gap: 0.8rem; /* Further reduced gap */
        margin-right: 0;
    }

    .liste-nav a.nav-link,
    .liste-nav .btn-connexion {
        font-size: 0.85rem; /* Further reduced font size */
        padding: 0.4rem 0; /* Further reduced padding */
    }

    .section-presentation {
        height: 450px; /* Further reduced height */
        padding-bottom: 2.5rem; /* Further reduced padding */
    }

    .photo-profil {
        max-width: 300px; /* Further reduced max-width */
        bottom: -80px; /* Further adjusted position */
    }

    .titre-principal {
        font-size: 6rem; /* Further reduced font size */
        letter-spacing: 0.4rem; /* Further reduced letter spacing */
    }

    .titre-haut-gauche {
        top: 23%; /* Further adjusted position */
        transform: translateX(calc(-50% - 20px)); /* Further adjusted position */
        -webkit-text-stroke: 1px white; /* Further reduced stroke */
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.15); /* Further reduced shadow */
    }

    .titre-milieu-plein {
        top: 45%; /* Further adjusted position */
        transform: translate(-50%, -50%);
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Further reduced shadow */
    }

    .titre-bas-droit {
        bottom: 18%; /* Further adjusted position */
        transform: translateX(calc(-50% + 20px)); /* Further adjusted position */
        -webkit-text-stroke: 1px white; /* Further reduced stroke */
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.15); /* Further reduced shadow */
    }

    .separateur-blanc {
        top: 650px; /* Further adjusted position */
    }

    .texte-apropos {
        margin: 20px auto; /* Further adjusted margin */
        max-width: 90%;
        padding: 1.2rem; /* Further reduced padding */
    }

    .texte-apropos h3,
    .texte-intro h3,
    .parcours {
        font-size: 1.8rem; /* Further reduced font size */
    }

    .texte-apropos p,
    .texte-intro p {
        font-size: 0.9rem; /* Further reduced font size */
    }

    .texte-intro {
        margin: 180px auto 2rem; /* Further adjusted margin */
        max-width: 90%;
        padding: 1.2rem; /* Further reduced padding */
    }

    .parcours {
        margin-top: 30px; /* Further adjusted margin */
    }

    .btn-cv {
        padding: 0.8rem 1.8rem; /* Further reduced padding */
        font-size: 0.9rem; /* Further reduced font size */
        margin: 2rem auto 2.5rem; /* Further reduced margins */
    }

    .titre-mes-projets,
    .page-title {
        font-size: 2.5rem; /* Further reduced font size */
        margin-top: 2.5rem; /* Further reduced margin */
        margin-bottom: 0.8rem; /* Further reduced margin */
    }

    .grille-projets {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
        gap: 1.2rem; /* Further reduced gap */
        margin: 2rem auto 3rem; /* Further reduced margins */
        padding: 0 1.2rem; /* Further reduced padding */
        max-width: 90%;
    }

    .carte-projet::after {
        /* Ne change rien à cause du content: attr(data-title); */
    }

    .btn-projets {
        padding: 0.8rem 2rem; /* Further reduced padding */
        font-size: 0.9rem; /* Further reduced font size */
        margin: 3rem auto 7rem; /* Further reduced margins */
    }

    .pied-page {
        padding: 1.5rem 0.8rem; /* Further reduced padding */
        font-size: 0.9rem; /* Further reduced font size */
        margin-top: 3.5rem; /* Further reduced margin */
    }

    .social-icons {
        gap: 25px; /* Further reduced gap */
    }

    .social-icons a {
        font-size: 2.5rem; /* Further reduced font size */
    }

    .page-container {
        padding: 0.8rem 1.2rem; /* Further reduced padding */
        max-width: 95%;
    }

    .filter-controls {
        flex-direction: column;
        gap: 0.4rem; /* Further reduced gap */
        margin-bottom: 1.5rem; /* Further reduced margin */
    }

    .project-detail-main-content {
        max-width: 700px; /* Further reduced max-width */
        margin: 2.5rem auto 4rem; /* Further reduced margins */
        padding: 0 0.8rem; /* Further reduced padding */
    }

    .project-detail-title {
        font-size: 2rem; /* Further reduced font size */
        margin-bottom: 1.2rem; /* Further reduced margin */
    }

    .project-meta-info {
        font-size: 0.85rem; /* Further reduced font size */
    }

    .project-carousel {
        max-width: 450px; /* Further reduced max-width */
    }

    .carousel-inner {
        height: 250px; /* Further reduced height */
    }

    .project-description-card,
    .comment-form-card,
    .comments-list-card {
        padding: 1.2rem; /* Further reduced padding */
        margin-bottom: 1.2rem; /* Further reduced margin */
    }

    .project-card-title {
        font-size: 1.2rem; /* Further reduced font size */
        margin-bottom: 0.8rem; /* Further reduced margin */
    }

    .project-card-text {
        font-size: 0.85rem; /* Further reduced font size */
    }

    .form-group {
        margin-bottom: 0.8rem; /* Further reduced margin */
    }

    .form-label {
        font-size: 0.8rem; /* Further reduced font size */
    }

    .form-input,
    .form-textarea {
        padding: 0.5rem 0.7rem; /* Further reduced padding */
        font-size: 0.85rem; /* Further reduced font size */
    }

    .comment-item {
        padding: 0.7rem; /* Further reduced padding */
        margin-bottom: 0.5rem; /* Further reduced margin */
    }

    .comment-author-date,
    .comment-text {
        font-size: 0.85rem; /* Further reduced font size */
    }

    .button {
        padding: 0.5rem 1.2rem; /* Further reduced padding */
        font-size: 0.85rem; /* Further reduced font size */
    }
}

/* ---------------------------------------------------------------- */
/* Mobile (Max-width 767px)          */
/* ---------------------------------------------------------------- */
@media (max-width: 767px) {
   

    .burger {
      width: 25px;
      height: 18px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
    }

    .burger span {
      display: block;
      height: 3px;
      background: white;
      border-radius: 2px;
      transition: 0.3s;
      
    }

    .section-presentation {
        height: 380px; /* Further reduced height */
        padding-bottom: 1.5rem; /* Further reduced padding */
    }

    .photo-profil {
        max-width: 250px; /* Further reduced max-width */
        bottom: -42px; /* Further adjusted position */
    }

    .titre-principal {
        font-size: 3.8rem; /* Further reduced font size */
        letter-spacing: 0.2rem; /* Further reduced letter spacing */
        white-space: normal; /* Allow text to wrap */
        line-height: 1;
        width: 90%;
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }

    .titre-haut-gauche {
        top: 38%; /* Further adjusted position */
        -webkit-text-stroke: 0.8px white; /* Further reduced stroke */
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.1); /* Further reduced shadow */
        transform: translateX(-50%); /* Center on mobile */
        padding-right: 40px;
    }

    .titre-milieu-plein {
        top: 42%; /* Further adjusted position */
        text-shadow: 0 0 7px rgba(255, 255, 255, 0.4); /* Further reduced shadow */
    }

    .titre-bas-droit {
        bottom: 37%; /* Further adjusted position */
        -webkit-text-stroke: 0.8px white; /* Further reduced stroke */
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.1); /* Further reduced shadow */
        transform: translateX(-50%); /* Center on mobile */
        padding-left: 40px;
    }

    .separateur-blanc {
        top: 469px; /* Further adjusted position */
    }

    .texte-apropos,
    .texte-intro {
        margin: 15px auto; /* Further reduced margin */
        padding: 0.8rem; /* Further reduced padding */
        max-width: 95%;
    }

    .texte-apropos h3,
    .texte-intro h3,
    .parcours {
        font-size: 1.5rem; /* Further reduced font size */
        margin-bottom: 1rem; /* Further reduced margin */
    }

    .texte-apropos p,
    .texte-intro p {
        font-size: 0.85rem; /* Further reduced font size */
        line-height: 1.5; /* Further reduced line height */
    }

    .texte-intro {
        margin: 120px auto 1.5rem; /* Further adjusted margin */
    }

    .parcours {
        margin-top: 20px; /* Further adjusted margin */
    }

    .btn-cv {
        padding: 0.7rem 1.5rem; /* Further reduced padding */
        font-size: 0.9rem; /* Further reduced font size */
        margin: 1.5rem auto 2rem; /* Further reduced margins */
    }

    .titre-mes-projets,
    .page-title {
        font-size: 2.2rem; /* Further reduced font size */
        margin-top: 2rem; /* Further reduced margin */
        margin-bottom: 0.6rem; /* Further reduced margin */
    }

    .grille-projets {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 1rem; /* Further reduced gap */
        margin: 1.5rem auto 2.5rem; /* Further reduced margins */
        padding: 0 0.8rem; /* Further reduced padding */
        max-width: 70%;
    }

    .carte-projet::after {
        /* Ne change rien à cause du content: attr(data-title); */
    }

    .btn-projets {
        padding: 0.7rem 1.8rem; /* Further reduced padding */
        font-size: 0.9rem; /* Further reduced font size */
        margin: 2.5rem auto 5rem; /* Further reduced margins */
    }

    .pied-page {
        padding: 1.2rem 0.6rem; /* Further reduced padding */
        font-size: 0.85rem; /* Further reduced font size */
        margin-top: 3rem; /* Further reduced margin */
    }

    .social-icons {
        gap: 15px; /* Further reduced gap */
        margin-bottom: 5px; /* Further reduced margin */
    }

    .social-icons a {
        font-size: 2.2rem; /* Further reduced font size */
    }

    .pied-page p {
        font-size: 0.8rem; /* Further reduced font size */
    }

    .page-container {
        padding: 0.6rem 0.8rem; /* Further reduced padding */
    }

    .filter-controls {
        flex-direction: column;
        gap: 0.3rem; /* Further reduced gap */
        margin-bottom: 1rem; /* Further reduced margin */
    }

    .filter-label {
        font-size: 0.9rem; /* Further reduced font size */
    }

    .filter-select {
        padding: 0.3rem 0.6rem; /* Further reduced padding */
        font-size: 0.8rem; /* Further reduced font size */
    }

    .no-projects-message {
        padding: 0.8rem; /* Further reduced padding */
        font-size: 0.9rem; /* Further reduced font size */
        margin-top: 1rem; /* Further reduced margin */
    }

    .projects-grid {
        gap: 1rem; /* Further reduced gap */
        margin-bottom: 2.5rem; /* Further reduced margin */
    }

    .project-card-link {
        height: 180px; /* Further reduced height */
    }

    .project-detail-main-content {
        max-width: 95%;
        margin: 2rem auto 3rem; /* Further reduced margins */
        padding: 0 0.6rem; /* Further reduced padding */
    }

    .project-detail-title {
        font-size: 1.6rem; /* Further reduced font size */
        margin-bottom: 0.8rem; /* Further reduced margin */
    }

    .project-meta-info {
        font-size: 0.75rem; /* Further reduced font size */
        margin-bottom: 1.2rem; /* Further reduced margin */
    }

    .project-meta-item {
        margin: 0 0.4rem; /* Further reduced margin */
        margin-bottom: 0.1rem; /* Further reduced margin */
    }

    .project-carousel {
        margin: 1.5rem auto; /* Further reduced margin */
    }

    .carousel-inner {
        height: 200px; /* Further reduced height */
    }

    .project-description-card,
    .comment-form-card,
    .comments-list-card {
        padding: 1rem; /* Further reduced padding */
        margin-bottom: 1rem; /* Further reduced margin */
    }

    .project-card-title {
        font-size: 1rem; /* Further reduced font size */
        margin-bottom: 0.6rem; /* Further reduced margin */
    }

    .project-card-text {
        font-size: 0.8rem; /* Further reduced font size */
    }

    .form-group {
        margin-bottom: 0.6rem; /* Further reduced margin */
    }

    .form-label {
        font-size: 0.75rem; /* Further reduced font size */
    }

    .form-input,
    .form-textarea {
        padding: 0.4rem 0.6rem; /* Further reduced padding */
        font-size: 0.8rem; /* Further reduced font size */
    }

    .form-textarea {
        min-height: 50px; /* Further reduced min-height */
    }

    .comment-item {
        padding: 0.4rem; /* Further reduced padding */
        margin-bottom: 0.4rem; /* Further reduced margin */
    }

    .comment-author-date,
    .comment-text {
        font-size: 0.8rem; /* Further reduced font size */
    }

    .button {
        padding: 0.4rem 1rem; /* Further reduced padding */
        font-size: 0.8rem; /* Further reduced font size */
    }
}

/* ---------------------------------------------------------------- */
/* Small Mobile (Max-width 480px)    */
/* ---------------------------------------------------------------- */
@media (max-width: 480px) {
    body {
        padding-top: 2rem; /* Further reduced padding */
    }

    .barre-nav {
        padding: 0.5rem 0.6rem; /* Further reduced padding */
    }

    .burger-menu-icon {
        width: 20px; /* Further reduced size */
        height: 16px; /* Further reduced size */
    }

    .burger-menu-icon.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg); /* Further adjusted transform */
    }

    .burger-menu-icon.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg); /* Further adjusted transform */
    }

    .section-presentation {
        height: 300px; /* Further reduced height */
    }

    .photo-profil {
        max-width: 200px; /* Further reduced max-width */
        bottom: -26px; /* Further adjusted position */
    }

    .titre-principal {
        font-size: 3.4rem; /* Further reduced font size */
        letter-spacing: 0.15rem; /* Further reduced letter spacing */
    }

    .titre-haut-gauche {
        top: 34%; /* Further adjusted position */
        -webkit-text-stroke: 0.6px white; /* Further reduced stroke */
    }

    .titre-milieu-plein {
        top: 38%; /* Further adjusted position */
    }

    .titre-bas-droit {
        bottom: 37.5%; /* Further adjusted position */
        -webkit-text-stroke: 0.6px white; /* Further reduced stroke */
    }

    .separateur-blanc {
        top: 357px; /* Further adjusted position */
    }

    .texte-apropos,
    .texte-intro {
        padding: 0.6rem; /* Further reduced padding */
    }

    .texte-apropos h3,
    .texte-intro h3,
    .parcours {
        font-size: 1.3rem; /* Further reduced font size */
        margin-bottom: 0.8rem; /* Further reduced margin */
    }

    .texte-apropos p,
    .texte-intro p {
        font-size: 0.8rem; /* Further reduced font size */
    }

    .texte-intro {
        margin: 90px auto 1rem; /* Further adjusted margin */
    }

    .parcours {
        margin-top: 40px; /* Further adjusted margin */
    }

    .btn-cv {
        padding: 0.6rem 1.2rem; /* Further reduced padding */
        font-size: 0.85rem; /* Further reduced font size */
        margin: 1.2rem auto 1.5rem; /* Further reduced margins */
    }

    .titre-mes-projets,
    .page-title {
        font-size: 1.8rem; /* Further reduced font size */
        margin-top: 1.5rem; /* Further reduced margin */
    }

    .grille-projets {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 0.8rem; /* Further reduced gap */
        margin: 1.2rem auto 2rem; /* Further reduced margins */
    }

    .carte-projet::after {
        /* Ne change rien à cause du content: attr(data-title); */
    }

    .btn-projets {
        padding: 0.6rem 1.5rem; /* Further reduced padding */
        font-size: 0.85rem; /* Further reduced font size */
        margin: 2rem auto 4rem; /* Further reduced margins */
    }

    .pied-page {
        padding: 1rem 0.5rem; /* Further reduced padding */
        font-size: 0.75rem; /* Further reduced font size */
    }

    .social-icons {
        gap: 10px; /* Further reduced gap */
    }

    .social-icons a {
        font-size: 1.8rem; /* Further reduced font size */
    }

    .pied-page p {
        font-size: 0.7rem; /* Further reduced font size */
    }

    .filter-label {
        font-size: 0.8rem; /* Further reduced font size */
    }

    .filter-select {
        font-size: 0.7rem; /* Further reduced font size */
    }

    .no-projects-message {
        padding: 0.6rem; /* Further reduced padding */
        font-size: 0.8rem; /* Further reduced font size */
    }

    .project-card-link {
        height: 140px; /* Further reduced height */
    }

    .project-detail-title {
        font-size: 1.5rem; /* Further reduced font size */
    }

    .project-meta-info {
        font-size: 0.7rem; /* Further reduced font size */
    }

    .project-carousel {
        margin: 1.2rem auto; /* Further reduced margin */
    }

    .carousel-inner {
        height: 180px; /* Further reduced height */
    }

    .project-description-card,
    .comment-form-card,
    .comments-list-card {
        padding: 0.8rem; /* Further reduced padding */
    }

    .project-card-title {
        font-size: 0.9rem; /* Further reduced font size */
    }

    .project-card-text {
        font-size: 0.75rem; /* Further reduced font size */
    }

    .form-group {
        margin-bottom: 0.5rem; /* Further reduced margin */
    }

    .form-label {
        font-size: 0.7rem; /* Further reduced font size */
    }

    .form-input,
    .form-textarea {
        padding: 0.3rem 0.5rem; /* Further reduced padding */
        font-size: 0.75rem; /* Further reduced font size */
    }

    .form-textarea {
        min-height: 40px; /* Further reduced min-height */
    }

    .comment-item {
        padding: 0.3rem; /* Further reduced padding */
    }

    .comment-author-date,
    .comment-text {
        font-size: 0.75rem; /* Further reduced font size */
    }

    .button {
        padding: 0.3rem 0.8rem; /* Further reduced padding */
        font-size: 0.75rem; /* Further reduced font size */
    }
}