/* --- Variables pour les couleurs pastel et la typographie --- */
:root {
    --color-primary: #F0EAD6; /* Beige clair pastel */
    --color-secondary: #E0D8CC; /* Beige un peu plus foncé */
    --color-accent: #A8DADC; /* Bleu-vert pâle */
    --color-text-dark: #333333; /* Texte sombre */
    --color-text-light: #FFFFFF; /* Texte clair */
    --color-button-bg: #8EBAAE; /* Vert pastel pour les boutons */
    --color-button-hover: #7AA090; /* Vert pastel plus foncé au survol */

    --font-heading: 'Playfair Display', serif; /* Police élégante pour les titres */
    --font-body: 'Open Sans', sans-serif; /* Police lisible pour le corps */
}

/* --- Importation des polices Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');

/* --- Réinitialisation de base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-primary);
    overflow-x: hidden; /* Empêche le défilement horizontal */
}

a {
    text-decoration: none;
    color: var(--color-accent);
}

a:hover {
    color: var(--color-button-bg);
}

ul {
    list-style: none;
}

/* --- Barre de Navigation (Header) --- */
.header {
    background-color: rgba(255, 255, 255, 0.9); /* Fond légèrement transparent */
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-button-bg);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    gap: 2.5rem; /* Espace entre les éléments de la nav */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

/* Sous-menu Design */
.has-submenu .submenu {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.98); /* Légèrement plus opaque */
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    top: calc(100% + 10px); /* Décalé un peu du lien parent */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Maintenir le sous-menu visible au survol du parent */
.has-submenu:hover .submenu {
    display: block; /* Important pour que JS puisse ensuite le contrôler */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    color: var(--color-text-dark);
    padding: 12px 16px;
    display: block;
    font-weight: 400;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.submenu li a:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

/* Icône du menu Hamburger */
.menu-toggle {
    display: none; /* Masqué par défaut sur desktop */
    font-size: 2rem;
    color: var(--color-button-bg);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* --- Section Hero (Accueil) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
    overflow: hidden;
    background-image: url('../images/hero_background.jpg'); /* Chemin vers ton image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* L'image reste fixe lors du défilement */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Ombre pour rendre le texte lisible */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 900px;
    opacity: 0; /* Initialement invisible pour l'animation JS */
    animation: fadeInScale 1.5s ease-out forwards;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1.5s ease-out forwards 0.5s;
    opacity: 0; /* Pour l'animation */
}

.btn-discover {
    display: inline-block;
    background-color: var(--color-button-bg);
    color: var(--color-text-light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 1.5s ease-out forwards 1s;
    opacity: 0; /* Pour l'animation */
}

.btn-discover:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-5px);
}

/* Animations pour la page d'accueil */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* --- Sections générales --- */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-button-bg);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 5px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section "À Propos de Moi" */
.about-section {
    background-color: var(--color-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-item {
    background-color: var(--color-text-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.about-item h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.about-item p {
    font-size: 1rem;
    color: var(--color-text-dark);
}

/* Section Call to Action */
.call-to-action {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    padding: 5rem 2rem;
}

.call-to-action .section-title {
    color: var(--color-text-light);
}
.call-to-action .section-title::after {
    background-color: var(--color-button-hover);
}

.call-to-action .section-description {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.btn-contact {
    display: inline-block;
    background-color: var(--color-button-bg);
    color: var(--color-text-light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-contact:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* --- Page Contact --- */
.contact-page-content {
    padding-top: 10rem; /* Pour compenser la barre de navigation fixe */
    min-height: calc(100vh - 10rem - 4rem); /* Hauteur minimale moins header et footer */
}

.contact-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--color-text-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.contact-section .section-title,
.contact-section .section-description {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-primary); /* Fond des champs */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(168, 218, 220, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: var(--color-button-bg);
    color: var(--color-text-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    align-self: center; /* Centre le bouton */
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.success-message {
    background-color: #d4edda; /* Vert clair */
    color: #155724; /* Vert foncé */
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
}

/* --- Page Informations --- */
.info-page-content {
    padding-top: 10rem;
    min-height: calc(100vh - 10rem - 4rem);
    text-align: center;
}

.profile-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: var(--color-text-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-section .section-title {
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 1.4rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.profile-card,
.contact-details-card,
.skills-card,
.experience-card,
.social-media-card {
    background-color: var(--color-primary);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.profile-card h2,
.contact-details-card h2,
.skills-card h2,
.experience-card h2,
.social-media-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-button-bg);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.profile-card h2::after,
.contact-details-card h2::after,
.skills-card h2::after,
.experience-card h2::after,
.social-media-card h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.contact-details-card ul {
    list-style: none;
    padding-left: 0;
}
.contact-details-card li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}
.contact-details-card li strong {
    color: var(--color-text-dark);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-left: 0;
}

.skills-list li {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.skills-list li:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-3px);
}

.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-secondary);
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-item h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--color-button-bg);
    margin-bottom: 0.5rem;
}

.experience-role {
    font-style: italic;
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.experience-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-dark);
}

.social-list {
    display: flex;
    justify-content: center; /* Centre les liens sociaux */
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-left: 0;
}

.social-list li a {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-text-light);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-list li a:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-3px) scale(1.05);
}

.note-social {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1.5rem;
}

/* --- Pages Logiciels (Photoshop, InDesign, Illustrator) --- */
.software-page-content {
    padding-top: 10rem;
    min-height: calc(100vh - 10rem - 4rem);
    text-align: center;
}

.software-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background-color: var(--color-text-light);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.software-intro .section-title {
    margin-bottom: 1rem;
}

.software-description {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    line-height: 1.8;
}

.creations-section {
    padding-top: 0; /* Pas de padding top supplémentaire */
    margin-top: 0;
}

/* Nouveaux styles pour la grille des projets (sans div) */
ul.gallery-grid { /* Cible l'ul directement */
    list-style: none; /* Enlève les puces */
    padding: 0;
    margin: 0;
    display: grid; /* Utilise la grille CSS */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 3 colonnes flexibles */
    gap: 2.5rem; /* Espace entre les éléments */
    margin-top: 3rem;
    text-align: center;
}

ul.gallery-grid li { /* Chaque élément de la grille est un li */
    background-color: var(--color-text-light);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Pour que les coins arrondis fonctionnent avec l'image */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 1rem; /* Espace pour la légende */
}

ul.gallery-grid li:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

figure.gallery-item { /* Cible le figure à l'intérieur du li */
    margin: 0; /* Réinitialise la marge par défaut de figure */
    padding: 0; /* Le padding est sur le li parent */
    display: flex; /* Pour organiser le contenu verticalement */
    flex-direction: column;
    height: 100%; /* S'assure que figure prend toute la hauteur du li */
}

figure.gallery-item img {
    width: 100%;
    height: 250px; /* Hauteur fixe pour toutes les images */
    object-fit: cover; /* Recadre l'image pour couvrir l'espace */
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.5s ease;
}

figure.gallery-item:hover img {
    transform: scale(1.05); /* Effet de zoom léger sur l'image */
}

figure.gallery-item figcaption {
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-button-bg);
    font-weight: 600;
}

figure.gallery-item p { /* Style pour la description du projet */
    font-size: 0.95em;
    color: var(--color-text-dark);
    margin: 0 1.5rem 1rem; /* Marge latérale et inférieure pour la description */
    flex-grow: 1; /* Permet à la description de prendre l'espace restant */
    text-align: left; /* Alignement du texte de description */
}

figure.gallery-item a.button { /* Style pour le bouton "Voir le projet" */
    display: inline-block;
    background-color: var(--color-accent); /* Couleur du bouton */
    color: var(--color-text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Pousse le bouton vers le bas de la figure */
    margin-bottom: 1rem; /* Marge sous le bouton */
}

figure.gallery-item a.button:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-3px);
}


/* --- Page CV --- */
.cv-page-content {
    padding-top: 10rem; /* Pour compenser la barre de navigation fixe */
    min-height: calc(100vh - 10rem - 4rem); /* Hauteur minimale moins header et footer */
    text-align: center; /* Pour centrer le titre et la description */
}

.cv-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: var(--color-text-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left; /* Le contenu des cartes revient à gauche */
}

.cv-section .section-title,
.cv-section .section-description {
    text-align: center; /* Les titres de section restent centrés */
    margin-bottom: 1.5rem;
}

.cv-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.cv-card {
    background-color: var(--color-primary);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cv-card h2, .cv-card h3, .cv-card h4 {
    font-family: var(--font-heading);
    color: var(--color-button-bg);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.cv-card h2::after, .cv-card h3::after, .cv-card h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

/* Styles spécifiques pour le header du CV */
.header-cv h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.header-cv h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.cv-subtitle {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-align: center;
}

.cv-profile-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.education-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-secondary);
}

.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.education-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.education-institution, .education-date {
    font-style: italic;
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}


/* --- Responsive Design --- */

/* Tablette et petits ordinateurs (max 992px) */
@media (max-width: 992px) {
    .header {
        padding: 1rem 0; /* Réduit le padding du header */
    }

    .navbar {
        flex-wrap: wrap; /* Permet aux éléments de passer à la ligne */
        justify-content: space-between;
        padding: 0 1.5rem; /* Ajuste le padding */
    }

    .nav-brand {
        font-size: 1.8rem; /* Plus petit sur mobile */
    }

    .menu-toggle {
        display: block; /* Affiche l'icône hamburger */
    }

    .nav-menu {
        flex-direction: column; /* Les liens s'empilent verticalement */
        width: 100%;
        margin-top: 1rem;
        gap: 0; /* Réduit le gap entre les éléments */
        display: none; /* Masqué par défaut (sera affiché par JS) */
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .nav-menu.active {
        display: flex; /* Affiché quand la classe 'active' est ajoutée par JS */
    }

    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Ligne de séparation */
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 0.8rem 0;
        font-size: 1rem;
    }

    .nav-link::before { /* Désactive l'animation de soulignement sur mobile pour plus de clarté */
        display: none;
    }

    /* Le sous-menu est intégré au menu principal sur mobile */
    .has-submenu .submenu {
        position: static; /* Supprime le positionnement absolu */
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background-color: var(--color-primary); /* Fond légèrement différent */
        border-radius: 0;
        padding: 0.5rem 0;
        margin-top: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05); /* Séparation visuelle */
    }

    .submenu li a {
        padding: 10px 0 10px 40px; /* Indentation pour les sous-éléments */
        font-size: 0.95rem;
    }

    /* Page d'Accueil */
    .hero-section {
        height: 80vh; /* Moins haut sur mobile */
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .btn-discover {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Sections Générales */
    section {
        padding: 4rem 1.5rem; /* Moins de padding sur mobile */
    }
    .section-title {
        font-size: 2.5rem;
    }
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }

    .about-item {
        padding: 2rem;
    }
    .about-item h3 {
        font-size: 1.6rem;
    }

    /* Page Contact */
    .contact-section {
        padding: 2rem;
    }
    .contact-form label,
    .contact-form input,
    .contact-form textarea,
    .btn-submit {
        font-size: 1rem;
        padding: 0.8rem;
    }
    .btn-submit {
        width: 80%; /* Le bouton prend plus de place */
    }

    /* Page Informations & CV */
    .profile-section, .cv-section {
        padding: 2rem;
    }

    .profile-title, .cv-subtitle {
        font-size: 1.2rem;
    }

    .profile-card h2, .contact-details-card h2, .skills-card h2, .experience-card h2, .social-media-card h2,
    .cv-card h2, .cv-card h3, .cv-card h4 {
        font-size: 1.8rem;
    }
    .header-cv h2 {
        font-size: 2.2rem;
    }


    .contact-details-card li, .skills-list li, .social-list li a {
        font-size: 0.9rem;
    }
    .experience-item h3, .education-item h4 {
        font-size: 1.3rem;
    }
    .experience-role, .education-institution, .education-date {
        font-size: 0.9rem;
    }

    /* Pages Logiciels */
    .software-intro {
        padding: 1.5rem;
    }
    .software-description {
        font-size: 1rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 1.5rem;
    }
    .gallery-item img {
        height: 200px; /* Hauteur ajustée pour les petites images */
    }
    .gallery-item figcaption {
        font-size: 1.1rem;
    }
}

/* Téléphones mobiles (max 480px) */
@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.4rem;
    }
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    .hero-content p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    .section-title::after {
        width: 40px;
        height: 2px;
        bottom: -5px;
    }
    .section-description {
        font-size: 0.85rem;
    }

    .about-item {
        padding: 1.5rem;
    }
    .about-item h3 {
        font-size: 1.3rem;
    }

    .contact-section {
        padding: 1rem;
    }
    .contact-form {
        gap: 1rem;
    }

    .profile-card h2, .contact-details-card h2, .skills-card h2, .experience-card h2, .social-media-card h2,
    .cv-card h2, .cv-card h3, .cv-card h4 {
        font-size: 1.4rem;
    }
    .header-cv h2 {
        font-size: 1.8rem;
    }
    .skills-list li, .social-list li a {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .experience-item h3, .education-item h4 {
        font-size: 1.1rem;
    }
    .experience-role, .education-institution, .education-date {
        font-size: 0.8rem;
    }

    .software-intro {
        padding: 1rem;
    }
    .gallery-item img {
        height: 150px;
    }
    .gallery-item figcaption {
        font-size: 0.9rem;
    }
}