/* ========================================
   Variables CSS & Reset
   ======================================== */

/**
 * :root - Pseudo-classe qui cible l'élément racine (html)
 * Les variables CSS (custom properties) permettent de réutiliser des valeurs
 * Syntaxe : --nom-variable: valeur;
 * Utilisation : var(--nom-variable)
 * Avantage : Modifier une couleur partout en changeant une seule ligne
 */
:root {
    /* Palette de couleurs principale */
    --primary-color: #5B7DB1;      /* Bleu principal */
    --secondary-color: #4A9B8E;    /* Vert secondaire */
    --accent-color: #6BA5A0;       /* Accent turquoise */
    --dark-color: #2C3E50;         /* Texte sombre */
    --light-color: #ECF0F1;        /* Fond clair */
    --white: #FFFFFF;              /* Blanc pur */
    --gray: #95A5A6;               /* Gris pour textes secondaires */
    
    /* Couleurs de statut (feedback utilisateur) */
    --success: #27AE60;            /* Vert pour succès */
    --error: #E74C3C;              /* Rouge pour erreurs */
    --warning: #F39C12;            /* Orange pour avertissements */
    
    /**
     * linear-gradient() - Crée un dégradé linéaire
     * 135deg : Angle du dégradé (diagonale)
     * Usage fréquent pour les boutons et sections hero modernes
     */
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    
    /**
     * box-shadow - Ombres portées pour donner de la profondeur
     * Syntaxe : offset-x offset-y blur spread couleur
     * sm/md/lg : Small, Medium, Large (convention personnelle)
     */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);    /* Ombre légère */
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);  /* Ombre moyenne */
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);   /* Ombre forte */
    
    /* Variables pour transitions et styles */
    --transition: all 0.3s ease;   /* Transition fluide de 0.3 secondes */
    --border-radius: 8px;          /* Coins arrondis standard */
}

/**
 * Sélecteur universel * - Cible TOUS les éléments
 * Reset CSS : Annule les styles par défaut du navigateur
 * Assure une cohérence entre navigateurs
 */
* {
    margin: 0;                     /* Retire toutes les marges */
    padding: 0;                    /* Retire tous les paddings */
    box-sizing: border-box;        /* Inclut padding et border dans la largeur totale */
}

/**
 * scroll-behavior - Contrôle le défilement de la page
 * smooth : Défilement fluide au lieu de saut brusque
 * Fonctionne avec les liens d'ancre (#section)
 */
html {
    scroll-behavior: smooth;
}

/**
 * Styles de base pour le body
 * Ces styles s'appliquent par défaut à tout le contenu
 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Liste de polices de secours */
    line-height: 1.6;                    /* Espacement entre les lignes (améliore la lisibilité) */
    color: var(--dark-color);            /* Couleur du texte */
    background-color: var(--white);      /* Couleur de fond */
}

/**
 * Images responsives
 * max-width: 100% - L'image ne dépasse jamais son conteneur
 * height: auto - Conserve les proportions de l'image
 */
img {
    max-width: 100%;
    height: auto;
}

/**
 * Styles par défaut pour tous les liens
 * text-decoration: none - Retire le soulignement
 * color: inherit - Hérite de la couleur du parent
 */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);  /* Transitions fluides sur tous les effets hover */
}

/* ========================================
   Container & Layout
   ======================================== */

/**
 * Conteneur principal - Limite la largeur du contenu
 * max-width - Empêche le contenu d'être trop large sur grands écrans
 * margin: 0 auto - Centre le conteneur horizontalement
 * padding - Espacement intérieur pour éviter que le contenu touche les bords
 */
.container {
    max-width: 1200px;           /* Largeur maximale pour une bonne lisibilité */
    margin: 0 auto;              /* Centre le conteneur */
    padding: 0 20px;             /* Espaces sur les côtés */
}

/* ========================================
   Header & Navigation
   ======================================== */

/**
 * Header fixe qui reste en haut lors du scroll
 * position: sticky - Reste en haut quand on scrolle
 * z-index: 1000 - S'affiche au-dessus de tout le contenu
 */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);    /* Ombre légère pour détacher du contenu */
    position: sticky;                /* Reste visible en scrollant */
    top: 0;                          /* Collé en haut */
    z-index: 1000;                   /* Au-dessus de tout */
    animation: slideDown 0.5s ease;  /* Animation d'apparition */
}

/**
 * Animation @keyframes - Définit une animation personnalisée
 * from/to - États de début et fin
 * On peut aussi utiliser des pourcentages (0%, 50%, 100%)
 */
@keyframes slideDown {
    from {
        transform: translateY(-100%);  /* Commence 100% au-dessus */
        opacity: 0;                    /* Invisible */
    }
    to {
        transform: translateY(0);      /* Position finale normale */
        opacity: 1;                    /* Complètement visible */
    }
}

.navbar {
    padding: 15px 0;
}

/**
 * Flexbox - Système de mise en page moderne et puissant
 * display: flex - Active le mode flexbox
 * justify-content - Aligne sur l'axe principal (horizontal)
 * align-items - Aligne sur l'axe secondaire (vertical)
 */
.nav-container {
    display: flex;
    justify-content: space-between;   /* Logo à gauche, menu à droite */
    align-items: center;              /* Centré verticalement */
}

.logo img {
    height: 50px;                     /* Hauteur fixe du logo */
    width: auto;                      /* Largeur automatique (garde les proportions) */
    transition: var(--transition);
}

/**
 * :hover - Pseudo-classe qui s'active quand on survole avec la souris
 * transform: scale() - Agrandit/réduit l'élément
 */
.logo:hover img {
    transform: scale(1.05);           /* Agrandit de 5% au survol */
}

/**
 * Navigation - Liste de liens
 * list-style: none - Retire les puces de la liste
 * gap - Espace entre les éléments flex (plus moderne que margin)
 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;                        /* 30px d'espace entre chaque lien */
    align-items: center;
}

.nav-menu a {
    font-weight: 500;                 /* Texte semi-gras */
    color: var(--dark-color);
    padding: 8px 0;
    position: relative;               /* Nécessaire pour le ::after absolu */
}

/**
 * ::after - Pseudo-élément qui crée un élément après le contenu
 * Utilisé ici pour créer un soulignement animé
 * position: absolute - Positionné par rapport au parent relative
 */
.nav-menu a::after {
    content: '';                      /* Obligatoire pour afficher le pseudo-élément */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;                         /* Commence à largeur 0 */
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;      /* Animation de la largeur */
}

/**
 * Au survol ou si actif, la barre s'étend
 * .active - Classe ajoutée à la page courante
 */
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;                      /* S'étend à 100% */
}

/**
 * Bouton email dans la navigation
 * !important - Force le style (à utiliser avec parcimonie)
 */
.btn-email {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.btn-email::after {
    display: none;                    /* Pas de soulignement pour ce bouton */
}

/**
 * Effet de levée au survol
 * translateY négatif - Déplace vers le haut
 */
.btn-email:hover {
    transform: translateY(-2px);      /* Monte de 2px */
    box-shadow: var(--shadow-md);     /* Ajoute une ombre pour effet de profondeur */
}

/**
 * Menu hamburger pour mobile
 * display: none - Caché par défaut (desktop)
 * flex-direction: column - Empile les barres verticalement
 */
.mobile-menu-toggle {
    display: none;                    /* Caché sur desktop */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;                  /* Curseur pointeur au survol */
}

/* Les 3 barres du menu hamburger */
.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */

/**
 * Section Hero - Première section accrocheuse
 * background: gradient - Fond en dégradé
 * position: relative - Pour positionner le ::before en absolu
 * overflow: hidden - Cache les débordements de l'animation
 */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 100px 0;                 /* Grand padding pour une section imposante */
    text-align: center;
    position: relative;
    overflow: hidden;                 /* Cache les éléments qui dépassent */
}

/**
 * Effet de fond animé avec ::before
 * Crée un cercle flou qui flotte en arrière-plan
 */
.hero::before {
    content: '';
    position: absolute;               /* Positionné par rapport au .hero */
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05); /* Blanc transparent */
    border-radius: 50%;               /* Forme circulaire */
    animation: float 20s infinite ease-in-out; /* Animation infinie */
}

/**
 * Animation de flottement complexe
 * translate() - Déplace l'élément
 * rotate() - Fait tourner l'élément
 */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/**
 * z-index - Contrôle l'ordre d'empilement
 * z-index: 1 - Apparaît au-dessus du ::before (qui est à z-index: 0 par défaut)
 */
.hero-content {
    position: relative;
    z-index: 1;                       /* Au-dessus de l'effet de fond */
}

.hero h1 {
    font-size: 3.5rem;                /* rem - Unité relative à la taille de base */
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease;    /* Animation d'apparition */
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.95;                    /* Légèrement transparent */
    animation: fadeInUp 0.8s ease 0.2s backwards; /* Délai de 0.2s */
}

/**
 * backwards - L'élément prend le style du premier keyframe avant le démarrage
 * Évite un "flash" avant le démarrage de l'animation
 */
.hero-description {
    max-width: 700px;                 /* Limite la largeur pour une meilleure lisibilité */
    margin: 0 auto 30px;              /* Centré horizontalement */
    font-size: 1.1rem;
    line-height: 1.8;                 /* Espacement généreux pour la lisibilité */
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/**
 * flex-wrap: wrap - Permet aux éléments de passer à la ligne si nécessaire
 * Utile pour le responsive
 */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;                  /* Passe à la ligne sur mobile */
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

/**
 * Animation fadeInUp - Apparition par le bas
 * Très utilisée pour donner du dynamisme aux contenus
 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);  /* Commence 30px plus bas */
    }
    to {
        opacity: 1;
        transform: translateY(0);     /* Position finale */
    }
}

/* ========================================
   Buttons
   ======================================== */

/**
 * Styles de boutons réutilisables
 * display: inline-block - Permet d'appliquer padding et margin comme un block
 * cursor: pointer - Indique que c'est cliquable
 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;    /* Bordure transparente pour éviter le "saut" au hover */
    font-size: 16px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);      /* Effet de levée */
    box-shadow: var(--shadow-lg);     /* Ombre forte */
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);       /* Bouton outline */
}

.btn-secondary:hover {
    background: var(--white);         /* Fond plein au hover */
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 50px;
}

/* ========================================
   Skills Section
   ======================================== */

.skills {
    background: var(--light-color);   /* Fond clair pour contraster */
}

/**
 * CSS Grid - Système de grille puissant pour les layouts
 * repeat() - Répète une définition
 * auto-fit - Ajuste automatiquement le nombre de colonnes
 * minmax() - Définit une taille min et max
 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grille responsive */
    gap: 30px;                        /* Espacement entre les cellules */
}

/**
 * Cartes de compétences
 * Utilise transitions pour des effets fluides
 */
.skill-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

/**
 * Effet de levée au survol
 * Combinaison de transform et box-shadow pour un effet 3D
 */
.skill-card:hover {
    transform: translateY(-10px);     /* Monte de 10px */
    box-shadow: var(--shadow-lg);     /* Ombre plus prononcée */
}

.skill-icon {
    font-size: 3.5rem;                /* Très grande icône */
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skill-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/**
 * Liste de technologies
 * Utilise flexbox pour un alignement flexible
 */
.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/**
 * Pills/badges de technologies
 * border-radius: 20px - Crée des "pilules" arrondies
 */
.tech-list li {
    background: var(--light-color);
    padding: 6px 15px;
    border-radius: 20px;              /* Forme de pilule */
    font-size: 14px;
    color: var(--dark-color);
    font-weight: 500;
}

/* Animations d'entrée */
.fade-in {
    animation: fadeIn 1s ease;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

.slide-in-up {
    animation: slideInUp 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    border-left-width: 8px;
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--dark-color);
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ========================================
   Projects Section
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.project-content {
    padding: 30px;
}

.project-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: var(--light-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: var(--dark-color);
    font-weight: 500;
}

/* ========================================
   Comments Section
   ======================================== */
.comments-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--light-color);
}

.comments-list {
    margin-bottom: 50px;
}

.comment {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.comment-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-meta {
    flex: 1;
}

.comment-meta strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.comment-date,
.comment-project {
    font-size: 0.85rem;
    color: var(--gray);
    margin-right: 15px;
}

.comment-text {
    color: var(--dark-color);
    line-height: 1.7;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    font-style: italic;
}

/* ========================================
   Forms
   ======================================== */

/**
 * Grille pour le formulaire de contact
 * 1fr 2fr - La deuxième colonne est 2x plus large
 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

/**
 * position: sticky - L'élément suit le scroll jusqu'à une certaine limite
 * top: 100px - S'arrête à 100px du haut
 */
.contact-info {
    background: var(--light-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    position: sticky;                 /* Reste visible en scrollant */
    top: 100px;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: start;
}

.info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.info-item p {
    color: var(--gray);
    margin: 0;
}

.info-item a {
    color: var(--primary-color);
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-form-wrapper,
.comment-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.comment-form-wrapper {
    margin-top: 30px;
}

.comment-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

/**
 * Inputs et textareas
 * appearance: none - Retire les styles par défaut du navigateur
 */
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--light-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    font-family: inherit;             /* Hérite de la police du parent */
    transition: var(--transition);
    background: var(--white);
}

/**
 * :focus - Pseudo-classe activée quand l'élément a le focus (clic ou tab)
 * outline: none - Retire le contour par défaut (mais on ajoute notre propre style)
 */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;                    /* Retire le contour par défaut */
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 125, 177, 0.1); /* Halo de focus */
}

/**
 * États de validation
 * Classes ajoutées dynamiquement par JavaScript
 */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);       /* Bordure rouge si erreur */
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: var(--success);     /* Bordure verte si valide */
}

/**
 * resize: vertical - L'utilisateur ne peut redimensionner que verticalement
 * min-height - Hauteur minimale garantie
 */
.form-group textarea {
    resize: vertical;                 /* Redimensionnement vertical uniquement */
    min-height: 120px;
}

/**
 * Animation shake - Secoue l'élément (pour attirer l'attention sur une erreur)
 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.char-count {
    font-size: 13px;
    color: var(--gray);
    text-align: right;
    margin-top: 5px;
}

.form-note {
    color: var(--gray);
    font-size: 14px;
}

.btn-loading {
    display: none;
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

button[disabled] .btn-text {
    display: none;
}

button[disabled] .btn-loading {
    display: inline;
}

.form-feedback {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    animation: slideInUp 0.3s ease;
}

.form-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin: 10px 0;
    opacity: 0.9;
}

footer a {
    color: var(--secondary-color);
}

footer a:hover {
    text-decoration: underline;
}

/* ========================================
   Responsive Design
   ======================================== */

/**
 * Media Queries - Applique des styles selon la taille d'écran
 * max-width: 968px - Pour tablettes et écrans moyens
 * min-width existerait pour mobile-first approach
 */
@media (max-width: 968px) {
    /**
     * Menu mobile
     * position: fixed - Fixé à l'écran
     * left: -100% - Caché hors écran à gauche
     */
    .nav-menu {
        position: fixed;
        left: -100%;                  /* Caché à gauche */
        top: 70px;
        flex-direction: column;       /* Liens empilés verticalement */
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 20px 0;
        gap: 15px;
    }

    /**
     * Quand active, le menu slide de la gauche
     */
    .nav-menu.active {
        left: 0;                      /* Apparaît à l'écran */
    }

    /**
     * Afficher le menu hamburger sur mobile
     */
    .mobile-menu-toggle {
        display: flex;                /* Visible sur mobile */
    }

    /**
     * Animation du menu hamburger en X
     * rotate() - Fait tourner les barres
     * translate() - Déplace pour former un X
     */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;                   /* Barre du milieu disparaît */
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Ajustements des tailles de texte pour mobile */
    .hero h1 {
        font-size: 2.5rem;            /* Plus petit sur tablette */
    }

    .subtitle {
        font-size: 1.2rem;
    }

    /**
     * Passer en une seule colonne sur mobile
     */
    .contact-content {
        grid-template-columns: 1fr;   /* 1 colonne au lieu de 2 */
        gap: 40px;
    }

    .contact-info {
        position: static;             /* Plus sticky sur mobile */
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /**
     * Toutes les grilles passent en 1 colonne
     */
    .skills-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/**
 * Breakpoint pour petits mobiles
 */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;              /* Moins de padding sur mobile */
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;              /* Marges réduites */
    }

    .logo img {
        height: 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .skill-card,
    .service-card,
    .contact-form-wrapper,
    .comment-form-wrapper {
        padding: 25px 20px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

/**
 * Classes utilitaires - Styles réutilisables
 * Pratique pour des ajustements rapides sans créer de nouvelles classes
 */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ========================================
   Print Styles
   ======================================== */

/**
 * Styles pour l'impression
 * Retire les éléments inutiles à l'impression
 */
@media print {
    header,
    footer,
    .btn,
    .hero-buttons,
    .cta,
    .comment-form-wrapper {
        display: none;                /* Caché à l'impression */
    }

    body {
        font-size: 12pt;              /* pt - Unité pour l'impression */
    }

    .container {
        max-width: 100%;              /* Utilise toute la largeur */
    }
}