/* 
   Fichier: css/style.css
   PêlêTech Nexus - Agence Numérique
   Version: 3.2 - Corrections critiques appliquées
   
   CORRECTIONS v3.2 :
   - Suppression du double import FontAwesome (était chargé ici ET dans chaque <head>)
   - Ajout de .grid-5 (manquant, cassait process.php)
   - Fix .card:hover trop agressif (désactivé sur cards dans footer/nav/forms)
   - Fix h1 responsive plus fluide
   - Correction position @import (doit être en tout premier)
*/

/* ============= ROOT VARIABLES ============= */
:root {
    --primary: #8A6FE8;
    --primary-dark: #6A5ACD;
    --primary-light: #A28CF8;
    --secondary: #4FA3D9;
    --secondary-dark: #4B79C6;
    --accent: #5B3FBF;
    --accent-light: #6A5ACD;
    --dark: #0B1020;
    --darker: #070B18;
    --dark-light: #12172A;
    --light: #EADFCF;
    --light-secondary: #D4C9B9;
    --gray-light: #A0A8C0;
    --gray: #7A839B;
    --gray-dark: #5A637B;
    --border: rgba(234, 223, 207, 0.15);
    --border-light: rgba(234, 223, 207, 0.1);
    --border-dark: rgba(234, 223, 207, 0.25);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(11, 16, 32, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(11, 16, 32, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(11, 16, 32, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(11, 16, 32, 0.6);
    --shadow-2xl: 0 25px 50px -12px rgba(11, 16, 32, 0.7);
    --shadow-primary: 0 10px 30px rgba(138, 111, 232, 0.25);
    --shadow-secondary: 0 10px 30px rgba(79, 163, 217, 0.25);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ============= DARK MODE SUPPORT ============= */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #070B18;
        --darker: #050913;
    }
}

/* ============= HIGH CONTRAST MODE ============= */
@media (prefers-contrast: high) {
    :root {
        --primary: #6A5ACD;
        --secondary: #4B79C6;
        --accent: #5B3FBF;
        --light: #FFFFFF;
    }

    .nav-link {
        color: var(--light);
    }

    .nav-link.active {
        color: var(--primary);
        font-weight: 700;
    }
}

/* ============= RESET & BASE ============= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--dark);
    color: var(--light-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(138, 111, 232, 0.3);
    color: var(--light);
}

::-moz-selection {
    background: rgba(138, 111, 232, 0.3);
    color: var(--light);
}

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--light);
}

/* FIX : h1 avec clamp() pour une transition fluide entre les tailles */
h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

/* Utilitaire : hiérarchie de titres correcte (h2 -> h3, jamais de saut à h4)
   sans changer l'apparence visuelle. Un <h3 class="heading-sm"> garde
   exactement la taille d'un h4, mais reste sémantiquement au bon niveau
   pour l'accessibilité et le SEO. */
.heading-sm {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============= CONTAINER ============= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============= NAVBAR ============= */
.navbar {
    background: rgba(11, 16, 32, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition-slow);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(11, 16, 32, 0.98);
    box-shadow: var(--shadow-xl);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    position: relative;
    padding-right: 0.5rem;
    flex-shrink: 0;
}

.logo::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
    margin-right: 1rem;
}

.nav-link {
    color: var(--gray-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    letter-spacing: -0.01em;
    z-index: 1;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    z-index: -1;
    opacity: 0.7;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light);
}

.cta-nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light) !important;
    padding: 0.85rem 2.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 2;
    min-width: 160px;
    font-size: 1rem;
    flex-shrink: 0;
    animation: pulse-glow 3s infinite;
}

.cta-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-nav:hover::before {
    left: 100%;
}

.cta-nav:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(138, 111, 232, 0.4);
}

.cta-nav::after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(138, 111, 232, 0.1);
    color: var(--primary);
}

/* ============= BUTTONS ============= */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(138, 111, 232, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--light);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ============= SECTIONS ============= */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--light), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.025em;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============= CARDS ============= */
.card {
    background: rgba(18, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* FIX : hover uniquement sur les cards "interactives" dans les sections de contenu */
/* On exclut les cards dans footer, navbar, forms */
section .card:hover,
main .card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

section .card:hover::before,
main .card:hover::before {
    transform: scaleX(1);
}

/* Cards statiques — pas de hover lift */
.card-static:hover,
.footer .card:hover,
.galerie-modal .card:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.card-static::before,
.footer .card::before {
    display: none;
}

.card-gradient {
    background: linear-gradient(135deg, rgba(138, 111, 232, 0.1), rgba(79, 163, 217, 0.1));
    border: 1px solid rgba(138, 111, 232, 0.2);
}

/* ============= GRIDS ============= */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* FIX AJOUTÉ : .grid-5 manquait, cassait process.php */
.grid-5 {
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ============= FORMS ============= */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(11, 16, 32, 0.6);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    color: var(--light-secondary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 111, 232, 0.15);
    background: rgba(11, 16, 32, 0.8);
}

.form-control::placeholder {
    color: var(--gray);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

/* ============= UTILITY CLASSES ============= */
.text-gradient {
    background: linear-gradient(135deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.shadow-primary {
    box-shadow: var(--shadow-primary);
}

.shadow-secondary {
    box-shadow: var(--shadow-secondary);
}

.bg-dark { background: var(--dark); }
.bg-darker { background: var(--darker); }
.bg-dark-light { background: var(--dark-light); }
.text-light { color: var(--light); }
.text-light-secondary { color: var(--light-secondary); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.border-primary { border-color: var(--primary); }
.border-secondary { border-color: var(--secondary); }

/* ============= ANIMATIONS ============= */
.animate-fade-in   { animation: fadeIn 0.5s ease-out; }
.animate-slide-up  { animation: slideUp 0.5s ease-out; }
.animate-slide-down{ animation: slideDown 0.5s ease-out; }
.animate-slide-left{ animation: slideLeft 0.5s ease-out; }
.animate-slide-right{animation: slideRight 0.5s ease-out; }
.animate-float     { animation: float 6s ease-in-out infinite; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.95); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(138, 111, 232, 0.25); }
    50%       { box-shadow: 0 10px 40px rgba(138, 111, 232, 0.4); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============= BADGES & TAGS ============= */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-primary {
    background: rgba(138, 111, 232, 0.1);
    color: var(--primary);
    border: 1px solid rgba(138, 111, 232, 0.3);
}

.badge-secondary {
    background: rgba(79, 163, 217, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(79, 163, 217, 0.3);
}

.badge-accent {
    background: rgba(91, 63, 191, 0.1);
    color: var(--accent-light);
    border: 1px solid rgba(91, 63, 191, 0.3);
}

/* ============= ICONS ============= */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-sm  { width: 40px; height: 40px; font-size: 1.25rem; }
.icon-md  { width: 60px; height: 60px; font-size: 1.5rem; }
.icon-lg  { width: 80px; height: 80px; font-size: 2rem; }

.icon-circle  { border-radius: 50%; }
.icon-rounded { border-radius: var(--radius-lg); }

.icon-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
}

.icon-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* ============= SOCIAL LINKS ============= */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(138, 111, 232, 0.1);
    border: 1px solid rgba(138, 111, 232, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.25rem;
}

.social-link:hover {
    background: var(--primary);
    color: var(--light);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

/* FIX : liens sociaux inactifs (pas encore d'URL) */
.social-link.inactive {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============= FOOTER ============= */
.footer {
    background: rgba(11, 16, 32, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--light);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--gray-light);
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============= SCROLLBAR ============= */
::-webkit-scrollbar       { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: rgba(11, 16, 32, 0.5); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    border: 3px solid var(--dark);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

/* ============= SCROLL PROGRESS ============= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* ============= BACK TO TOP ============= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-primary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(138, 111, 232, 0.4);
}

/* ============= LOADING / SPINNER ============= */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(138, 111, 232, 0.2);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

/* ============= FOCUS & ACCESSIBILITÉ ============= */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--light);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ============= PERFORMANCE ============= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
    .nav-menu  { gap: 2rem; margin-right: 2rem; }
    .grid-4    { grid-template-columns: repeat(2, 1fr); }
    /* FIX : grid-5 sur tablette → 3 colonnes pour la timeline */
    .grid-5    { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .navbar      { padding: 1rem 0; }
    .nav-container { padding: 0 1.5rem; }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0; right: 0;
        background: rgba(11, 16, 32, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        margin: 0; padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 1.5rem;
    }

    .nav-menu li { width: 100%; }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-link::after { display: none; }
    .nav-link:last-child { border-bottom: none; }

    .cta-nav {
        width: 100%;
        margin: 1.5rem auto 0;
        max-width: 280px;
        padding: 1rem 2rem !important;
        font-size: 1.05rem !important;
    }

    section { padding: 3rem 0; }
    .container { padding: 0 1.5rem; }

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }

    /* FIX : grid-5 sur mobile → 1 colonne (timeline empilée) */
    .grid-5 { grid-template-columns: 1fr; }

    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .card { padding: 1.5rem; }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* ============= PRINT ============= */
@media print {
    .navbar, .footer, .menu-toggle,
    .back-to-top, .scroll-progress { display: none; }

    body { color: #000; background: #fff; }
    a    { color: #000; text-decoration: underline; }
    .container { max-width: 100%; padding: 0; }
    section { padding: 2rem 0; page-break-inside: avoid; }
}
