/*
* Style.css - Portfolio MMI
* Palette: Vieux rose (#C8A2A5), Charbon (#2A2729), Crème (#FEF6ED)
*/

/* === IMPORT DES POLICES === */
@import url('https://fonts.googleapis.com/css2?family=League+Gothic:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Glacial+Indifference:wght@400;500;600;700&display=swap');

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Glacial Indifference', sans-serif; /* Police par défaut changée */
}

:root {
    --vieux-rose: #C8A2A5;
    --vieux-rose-dark: #A88285;
    --vieux-rose-light: #DBBBBD;
    --charbon: #2A2729;
    --charbon-light: #403C3F;
    --white: rgba(255, 255, 255, 0.7); /* Remplacé --creme par --white */
    --light-gray: #F9F9F9; /* Remplacé --creme-dark par --light-gray */
    --gray: #6D6366;
    --noir: #000000;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--charbon);
    line-height: 1.6;
    font-family: 'Glacial Indifference', sans-serif; /* Police du body changée */
}


/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'League Gothic', sans-serif; /* Police des titres changée */
    font-weight: 400; /* League Gothic fonctionne mieux avec un poids normal */
    line-height: 1.2; /* Ajusté pour League Gothic */
    margin-bottom: 1rem;
    text-transform: uppercase; /* League Gothic est souvent utilisée en majuscules */
    letter-spacing: 0.5px; /* Légère espacement pour League Gothic */
}

h1 {
    font-size: 3rem; /* Augmenté car League Gothic peut être plus compacte */
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem; /* Augmenté */
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: var(--vieux-rose);
    transition: var(--transition);
}

h2:hover::after {
    width: 100%;
}

h3 {
    font-size: 1.8rem; /* Augmenté */
}

p {
    margin-bottom: 1rem;
    font-family: 'Glacial Indifference', sans-serif; /* Explicitement défini */
}

a {
    color: var(--charbon);
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Glacial Indifference', sans-serif; /* Explicitement défini */
}

a:hover {
    color: var(--vieux-rose-dark);
}

/* === ALIGNEMENT DES TEXTES === */

/* Alignement global */
body {
    text-align: left; /* Alignement par défaut */
}

/* Alignement des titres de sections */
section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Alignement des textes d'introduction des sections */
section > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/* Alignement spécifique pour certaines sections */
.page-header {
    text-align: center; /* Déjà présent dans votre CSS mais confirmé ici */
}

/* Alignement dans les cartes de projet */
.project-info {
    text-align: left;
}

.project-info h3 {
    text-align: center;
}

/* Alignement dans la section about */
.about-content {
    text-align: justify; /* Pour une présentation plus professionnelle */
}

/* Alignement dans la section compétences */
.skill-category h3 {
    text-align: center;
}

/* Alignement dans le timeline */
.timeline-item {
    text-align: left;
}

/* Formulaire de contact */
.contact-form {
    text-align: left;
}

.form-btn {
    text-align: right; /* Déjà présent dans votre CSS */
}

/* Pied de page */
footer {
    text-align: center;
}

/* Modification pour les éléments centrés */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

/* Ajustements responsive */
@media (max-width: 768px) {
    .about-content {
        text-align: left; /* Passage à left sur mobile pour une meilleure lisibilité */
    }
}

/* === LAYOUT === */
.container {
    width: 80%; /* Réduit de 90% à 80% pour avoir des marges plus grandes */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px; /* Augmenté de 15px à 30px */
}

section {
    padding: 4rem 5%; /* Ajout de marges horizontales de 5% */
}

main {
    min-height: 70vh;
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
    background-color: var(--vieux-rose);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.page-header h1, .page-header p {
    position: relative;
    z-index: 1;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* === NAVIGATION === */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%; /* Augmenté de 5% à 8% */
}

.logo {
    font-size: 2rem; /* Ajusté pour League Gothic */
    font-weight: 400; /* League Gothic normal */
    color: var(--charbon);
    position: relative;
    font-family: 'League Gothic', sans-serif; /* Explicitement défini pour le logo */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--vieux-rose);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    font-family: 'Glacial Indifference', sans-serif; /* Navigation en Glacial Indifference */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--vieux-rose);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* === HERO/CAROUSEL === */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
    margin-bottom: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--vieux-rose);
    color: var(--white);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active, .carousel-dot:hover {
    background-color: var(--vieux-rose);
    transform: scale(1.2);
}
/* === AMÉLIORATION DU CARROUSEL AVEC EFFET DE FLOU === */

.carousel-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    color: var(--white);
    background-size: cover;
    background-position: center;
    position: relative;
    /* Suppression de l'overlay sombre car on va utiliser le flou */
}

/* Pseudo-élément pour l'image de fond avec flou */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(3px); /* Effet de flou sur l'image de fond */
    z-index: -2;
}

/* Overlay sombre léger pour améliorer encore la lisibilité */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.4)
    );
    z-index: -1;
}

/* Amélioration du contraste du texte */
.carousel-item h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow:
            2px 2px 4px rgba(0, 0, 0, 0.7),
            0 0 10px rgba(0, 0, 0, 0.5);
    font-family: 'League Gothic', sans-serif;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.carousel-item p {
    font-size: 1.2rem;
    max-width: 700px;
    text-shadow:
            1px 1px 3px rgba(0, 0, 0, 0.8),
            0 0 8px rgba(0, 0, 0, 0.6);
    font-family: 'Glacial Indifference', sans-serif;
    position: relative;
    z-index: 1;
    color: #ffffff;
    line-height: 1.6;
}

/* Variante alternative avec flou plus prononcé pour les cas difficiles */
.carousel-item.high-blur::before {
    filter: blur(5px);
}

.carousel-item.high-blur::after {
    background: linear-gradient(
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.5)
    );
}

/* Animation douce pour la transition entre les slides */
.carousel-item {
    transition: all 0.5s ease-in-out;
}

/* Responsive - Ajustement du flou sur mobile */
@media (max-width: 768px) {
    .carousel-item::before {
        filter: blur(2px); /* Flou plus léger sur mobile */
    }

    .carousel-item h2 {
        font-size: 2.5rem;
    }

    .carousel-item p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-item h2 {
        font-size: 2rem;
    }

    .carousel-item p {
        font-size: 1rem;
    }
}

/* === ABOUT SECTION === */
.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-img {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50%;
    height: 50%;
    border-top: 3px solid var(--vieux-rose);
    border-left: 3px solid var(--vieux-rose);
    z-index: -1;
}

.about-img::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50%;
    height: 50%;
    border-bottom: 3px solid var(--vieux-rose);
    border-right: 3px solid var(--vieux-rose);
    z-index: -1;
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content {
    padding: 1rem 0;
    font-family: 'Glacial Indifference', sans-serif;
}

.about-me {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* === SKILLS (NOUVEAU STYLE) === */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.skill-category {
    background-color: var(--white);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--vieux-rose) 0%, var(--vieux-rose-light) 100%);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    margin-bottom: 1.2rem;
    color: var(--charbon);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    font-size: 1.6rem; /* Augmenté pour League Gothic */
    font-family: 'League Gothic', sans-serif;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--vieux-rose);
    transition: width 0.3s ease;
}

.skill-category:hover h3::after {
    width: 100%;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Glacial Indifference', sans-serif;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.skill-expert {
    background: linear-gradient(135deg, var(--vieux-rose-dark) 0%, var(--vieux-rose) 100%);
    color: var(--white);
}

.skill-advanced {
    background: linear-gradient(135deg, var(--vieux-rose-light) 0%, #F2D4D7 100%);
    color: var(--charbon);
}

.skill-intermediate {
    background: linear-gradient(135deg, var(--gray) 0%, #8E8586 100%);
    color: var(--white);
}

/* Responsive pour les compétences */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }
}

/* === TIMELINE === */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;

}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--vieux-rose);
}

.timeline-item {
    position: relative;
    margin-left: 40px;

}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--vieux-rose);
    border: 4px solid var(--light-gray);
}

.timeline-date {
    font-weight: 600;
    color: var(--vieux-rose-dark);
    margin-bottom: 0.5rem;
    font-family: 'Glacial Indifference', sans-serif;
}

.timeline-title {
    font-weight: 600;
    font-size: 1.3rem; /* Ajusté pour League Gothic */
    margin-bottom: 0.2rem;
    font-family: 'League Gothic', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline-location {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 0.5rem;
    font-family: 'Glacial Indifference', sans-serif;
}

/* === MMI INFO === */
.mmi-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgb(9, 1, 1);
    margin-top: 3rem;
}

.mmi-info h2 {
    color: var(--charbon);
    font-family: 'League Gothic', sans-serif;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--charbon);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--charbon);
    cursor: pointer;
    font-family: 'Glacial Indifference', sans-serif;
}

.btn:hover {
    background-color: transparent;
    color: var(--charbon);
}

.btn-cv {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--vieux-rose);
    border-color: var(--vieux-rose);
    color: var(--white);
    font-family: 'Glacial Indifference', sans-serif;
}

.btn-cv:hover {
    background-color: transparent;
    color: var(--charbon);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.1em;
    margin-top: 20px;
    font-family: 'Glacial Indifference', sans-serif;
}

.center-button {
    text-align: center;
    margin-top: 30px;
}

/* === PROJECTS === */
.projects {
    padding: 4rem 0;
    text-align: center;
}

.projects > p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-family: 'Glacial Indifference', sans-serif;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem; /* Augmenté de 2rem à 2.5rem */
    margin-top: 2rem;
    padding: 0 2%; /* Ajout d'un padding horizontal */
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-img {
    position: relative;
    padding-top: 66.67%; /* Ratio 3:2 (largeur:hauteur) */
    overflow: hidden;
    background-color: #f5f5f5; /* Couleur de fond neutre */
}

.project-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image remplit tout l'espace */
    transform: translate(-50%, -50%); /* Centre l'image parfaitement */
    display: block;
    transition: all 0.5s ease;
}

/* Effet zoom au survol */
.project-card:hover .project-img img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Amélioration des images dans la modale */
.modal-img {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 pour les détails du projet */
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
}

.modal-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    border-radius: 5px;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem; /* Ajusté pour League Gothic */
    font-family: 'League Gothic', sans-serif;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background-color: var(--light-gray);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: 'Glacial Indifference', sans-serif;
}

/* === PROJECT FILTERS === */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--charbon);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Glacial Indifference', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--vieux-rose);
    border-color: var(--vieux-rose);
    color: var(--white);
}

.category-section {
    margin-bottom: 3rem;
}

.category-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
    font-family: 'League Gothic', sans-serif;
}

/* === CONTACT === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin: 0 5% 3rem; /* Ajout de marges horizontales */
}

.contact-info {
    background-color: var(--charbon);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 2rem;
    font-family: 'League Gothic', sans-serif;
}

.contact-info h2::after {
    background-color: var(--vieux-rose);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--vieux-rose);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}

.info-content h3 {
    font-size: 1.3rem; /* Ajusté pour League Gothic */
    margin-bottom: 0.3rem;
    color: var(--vieux-rose);
    font-family: 'League Gothic', sans-serif;
}

.info-content p, .info-content a {
    color: var(--white);
    font-family: 'Glacial Indifference', sans-serif;
}

.info-content a:hover {
    color: var(--vieux-rose-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--vieux-rose);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: var(--transition);
    font-family: 'Glacial Indifference', sans-serif;
}

.social-link:hover {
    background-color: var(--white);
    color: var(--vieux-rose);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
    margin-bottom: 2rem;
    font-family: 'League Gothic', sans-serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Glacial Indifference', sans-serif;
}

.form-control:focus {
    border-color: var(--vieux-rose);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 162, 165, 0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-btn {
    text-align: right;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-family: 'Glacial Indifference', sans-serif;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.map-container {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* === HEADER MODERNE === */
.modern-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 8%; /* Augmenté de 5% à 8% */
    position: relative;
}

/* Logo avancé */
.logo-container {
    display: flex;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.logo .highlight {
    color: var(--vieux-rose);
    position: relative;
}

.logo .highlight::after {
    content: '';
    position: absolute;
    width: 110%;
    height: 8px;
    background-color: rgba(242, 212, 215, 0.4);
    bottom: 0;
    left: -5%;
    z-index: -1;
    transition: height 0.3s ease;
}

.logo:hover .highlight::after {
    height: 70%;
}



.logo-container:hover .logo-circle {
    transform: scale(1.2) translateY(-5px);
}

/* Navigation principale */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--noir);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.link-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--vieux-rose);
    margin-right: 6px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.nav-link:hover .link-indicator,
.nav-link.active .link-indicator {
    opacity: 1;
    transform: scale(1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--vieux-rose) 0%, var(--vieux-rose-dark) 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--noir);
    font-weight: 600;
}

/* Accent décoratif du header */
.header-accent {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--vieux-rose-dark) 0%, var(--white) 100%);
}

/* Toggle pour mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 100;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--noir);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Animation au scroll */
.header-scroll {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Media queries pour responsive */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 90;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    body.nav-active {
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.8rem;
    }

    .main-nav {
        width: 85%;
    }
}
#projectModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal-header h2 {
    margin-bottom: 10px;
    color: #333;
}

.modal-img {
    width: 100%;
    margin-bottom: 20px;
}

.modal-img img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-metadata {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

.modal-tag {
    background-color: #e9f0ff;
    color: #3366cc;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .modal-details {
        grid-template-columns: 1fr;
    }
}

/* Amélioration des cartes de projet */
.project-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
}
/* Modification des marges globales */
.container {
    width: 80%; /* Réduit de 90% à 80% pour avoir des marges plus grandes */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px; /* Augmenté de 15px à 30px */
}

/* Augmentation des marges dans le header */
.header-container {
    padding: 0 8%; /* Augmenté de 5% à 8% */
}

/* Augmentation des marges dans les sections */
section {
    padding: 4rem 5%; /* Ajout de marges horizontales de 5% */
}

/* Augmentation des marges dans la navigation */
nav {
    padding: 1rem 8%; /* Augmenté de 5% à 8% */
}

/* Augmentation de l'espacement des éléments de la grille de projets */
.projects-grid {
    gap: 2.5rem; /* Augmenté de 2rem à 2.5rem */
    padding: 0 2%; /* Ajout d'un padding horizontal */
}

/* Augmentation des marges pour le contenu de contact */
.contact-container {
    margin: 0 5% 3rem; /* Ajout de marges horizontales */
}

/* Adaptation responsive pour les grands écrans */
@media (min-width: 1400px) {
    .container {
        width: 70%; /* Marges encore plus grandes sur très grands écrans */
    }
}

/* Adaptation responsive pour les petits écrans */
@media (max-width: 768px) {
    .container {
        width: 90%; /* Retour à 90% sur petit écran */
        padding: 0 20px; /* Réduction des paddings mais toujours plus grands qu'avant */
    }

    section {
        padding: 3rem 3%; /* Réduction des marges mais toujours présentes */
    }
}*/* CSS à ajouter à votre fichier style.css */

 .page-header {
     background: linear-gradient(135deg, var(--vieux-rose) 0%, var(--vieux-rose-dark) 100%);
     position: relative;
     padding: 80px 0 100px;
     overflow: hidden;
     color: var(--charbon);
 }

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 80%, rgba(200, 162, 165, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(168, 130, 133, 0.2) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background:
            radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: translateY(50%);
}

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, #ffffff, #FEF6ED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideDown 1s ease-out;
}

.page-header p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    animation: slideUp 1s ease-out 0.3s both;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Effet de particules flottantes */
.page-header .container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
            radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
            radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
            radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
            radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.2), transparent),
            radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 8s linear infinite;
    z-index: 1;
}

@keyframes sparkle {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-200px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 80px;
    }

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .page-header p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .page-header .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}
/* === SECTION CENTRES D'INTÉRÊT (VERSION COMPACTE AVEC IMAGES) === */
.interests-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.interests-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(200, 162, 165, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.interests-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.4rem;
    font-family: 'League Gothic', sans-serif;
    color: var(--charbon);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.interests-section > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.6;
    font-family: 'Glacial Indifference', sans-serif;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.interest-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.08),
            0 1px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(200, 162, 165, 0.1);
    height: 220px;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vieux-rose) 0%, var(--vieux-rose-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.interest-card:hover::before {
    transform: scaleX(1);
}

.interest-card:hover {
    transform: translateY(-8px);
    box-shadow:
            0 12px 25px rgba(0, 0, 0, 0.12),
            0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--vieux-rose-light);
}

.interest-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.interest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9) saturate(1.1);
}

.interest-card:hover .interest-image img {
    transform: scale(1.1);
    filter: brightness(1) saturate(1.2);
}

.interest-content {
    padding: 1.2rem 1rem;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.interest-content h3 {
    color: var(--charbon);
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-family: 'League Gothic', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.interest-content p {
    color: var(--gray);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
    font-family: 'Glacial Indifference', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animation pour l'apparition progressive des cartes */
.interest-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.interest-card:nth-child(1) { animation-delay: 0.1s; }
.interest-card:nth-child(2) { animation-delay: 0.2s; }
.interest-card:nth-child(3) { animation-delay: 0.3s; }
.interest-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Responsive pour les centres d'intérêt */
@media (max-width: 1024px) {
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .interests-section {
        padding: 2.5rem 0;
        margin: 2.5rem 0;
    }

    .interests-section h2 {
        font-size: 2rem;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    .interest-card {
        height: 200px;
    }

    .interest-image {
        height: 100px;
    }

    .interest-content {
        padding: 1rem 0.8rem;
        height: 100px;
    }

    .interest-content h3 {
        font-size: 1.2rem;
    }

    .interest-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .interests-section {
        padding: 2rem 0;
    }

    .interests-section h2 {
        font-size: 1.8rem;
    }

    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .interest-card {
        height: 180px;
        max-width: 280px;
        margin: 0 auto;
    }

    .interest-image {
        height: 90px;
    }

    .interest-content {
        height: 90px;
        padding: 0.8rem;
    }

    .interest-content h3 {
        font-size: 1.1rem;
    }

    .interest-content p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
}
/* ===== GALERIE DE PHOTOS ===== */

/* Conteneur principal de la galerie */
.about-me .about-img-gallery {
    flex: 1;
    max-width: 450px;
    margin-right: 3rem;
}

.about-me .gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Image principale */
.about-me .main-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(183, 152, 137, 0.3);
    transition: transform 0.3s ease;
    border: 2px solid rgba(183, 152, 137, 0.2);
}

.about-me .main-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(183, 152, 137, 0.4);
}

.about-me .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Conteneur des miniatures */
.about-me .thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(183, 152, 137, 0.3) transparent;
}

.about-me .thumbnails::-webkit-scrollbar {
    height: 4px;
}

.about-me .thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.about-me .thumbnails::-webkit-scrollbar-thumb {
    background: rgba(183, 152, 137, 0.3);
    border-radius: 2px;
}

/* Miniatures */
.about-me .thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.about-me .thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
    border: 2px solid rgba(183, 152, 137, 0.5);
}

.about-me .thumbnail.active {
    opacity: 1;
    border: 2px solid #b79889;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(183, 152, 137, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .about-me {
        flex-direction: column !important;
        text-align: center !important;
    }

    .about-me .about-img-gallery {
        margin-right: 0 !important;
        margin-bottom: 2rem !important;
        max-width: 100% !important;
    }

    .about-me .main-image {
        height: 400px !important;
    }

    .about-me .thumbnail {
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    .about-me .main-image {
        height: 350px !important;
        border-radius: 10px !important;
    }

    .about-me .thumbnail {
        width: 50px !important;
        height: 50px !important;
        border-radius: 8px !important;
    }

    .about-me .thumbnails {
        gap: 0.3rem !important;
    }
}
