:root {
    
    --primary-red: #dc2626;
    --secondary-red: #991b1b;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6; 
    
    --bg-dark: #ff000000;
    --bg-darker: #ff000000;
    --bg-card: #522222;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --border: #ffffff75;
    --shadow: rgba(220, 38, 38, 0.3);
    
    --gradient-red: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --gradient-accent: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* AMÉLIORATION ACCESSIBILITÉ : Focus visible pour navigation clavier */
*:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

/* AMÉLIORATION ACCESSIBILITÉ : Skip link pour navigation clavier */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a, #8b0000, #0a0a0a);
    animation: gradientBG 15s ease infinite;
    line-height: 1.6;
    overflow-x: hidden;
    /* AMÉLIORATION ACCESSIBILITÉ : Meilleure taille de texte de base */
    font-size: clamp(16px, 1vw + 14px, 18px);
}

/* AMÉLIORATION ACCESSIBILITÉ : Animations réduites pour préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 0, 0, 0);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 20px var(--shadow);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.2rem);
    transition: transform 0.3s ease;
}

.nav-brand:hover,
.nav-brand:focus {
    transform: scale(1.05);
}

.logo-img {
    height: clamp(50px, 8vw, 70px);
    width: auto;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: rotate(-5deg) scale(1.1);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    /* AMÉLIORATION ACCESSIBILITÉ : Zone de clic plus grande */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-red);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
    width: 100%;
}

#lang-toggle {
    padding: 0.6rem 1.2rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 50px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* AMÉLIORATION ACCESSIBILITÉ : Taille minimale de touche */
    min-height: 44px;
    min-width: 44px;
}

#lang-toggle:hover,
#lang-toggle:focus {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-darker);
    overflow: hidden;
    padding-top: 80px;
    /* AMÉLIORATION RESPONSIVE : Padding adaptatif */
    padding-left: clamp(1rem, 5vw, 2rem);
    padding-right: clamp(1rem, 5vw, 2rem);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(220,38,38,0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(153,27,27,0.1), transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 50px;
    color: var(--accent-red);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.hero-tag:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--text-primary);
    /* AMÉLIORATION RESPONSIVE : Word break pour petits écrans */
    word-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-bio {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* AMÉLIORATION ACCESSIBILITÉ : Fallback pour anciens navigateurs */
    color: var(--primary-red);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    /* AMÉLIORATION ACCESSIBILITÉ : Taille minimale de touche */
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: var(--gradient-red);
    color: white;
    box-shadow: 0 8px 20px var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}
/* Bouton CV stylisé */
.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cv::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;
}

.btn-cv:hover::before {
    left: 100%;
}

.btn-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.btn-cv:active {
    transform: translateY(0);
}

.btn-cv svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-cv {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}
/* Bouton CV stylisé */
.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #9f5151 0%, #ff0000 100%);
    color: black;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cv::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;
}

.btn-cv:hover::before {
    left: 100%;
}

.btn-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.btn-cv:active {
    transform: translateY(0);
}

.btn-cv svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-cv {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}
.social-link {
    width: 50px;
    height: 50px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.social-link:hover,
.social-link:focus {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px var(--shadow);
}

/* ===== MENU HAMBURGER MOBILE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    width: 48px;
    height: 48px;
    /* AMÉLIORATION ACCESSIBILITÉ : Bordure au focus */
    border: 2px solid transparent;
}

.mobile-menu-toggle:focus {
    outline: none;
    border-color: var(--primary-red);
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: var(--primary-red);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary-red);
}

/* ===== NAVIGATION MOBILE ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
    }

    .nav-link {
        display: block;
        padding: 1.2rem 1rem;
        font-size: 1.1rem;
        text-align: left;
        border-bottom: 1px solid rgba(220, 38, 38, 0.2);
        width: 100%;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* ===== PETITS ÉCRANS ===== */
@media (max-width: 480px) {
    .nav-menu {
        width: 85%;
        padding: 5rem 1.5rem 2rem;
    }

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

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hamburger-line {
        width: 24px;
        height: 3px;
    }
}

/* ===== TRÈS PETITS ÉCRANS ===== */
@media (max-width: 360px) {
    .nav-menu {
        width: 90%;
        padding: 4.5rem 1rem 2rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.9rem;
    }

    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .hamburger-line {
        width: 22px;
        height: 2.5px;
    }
}

.about,
.skills,
.projects,
.contact-section {
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.about {
    background: var(--bg-dark);
}

.skills {
    background: var(--bg-darker);
}

.projects {
    background: var(--bg-dark);
}

.contact-section {
    background: var(--bg-darker);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(82,34,34);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--accent-red);
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 4rem;
    margin-top: 4rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    justify-content: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text .lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-text p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    width: clamp(150px, 30vw, 180px);
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-item:hover,
.stat-item:focus-within {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 15px 30px var(--shadow);
}

.stat-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

/* ===== SKILLS SECTION RESPONSIVE ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    justify-items: center;
    padding: 2rem 1rem;
}

.skill-item {
    text-align: center;
    width: 100%;
    max-width: 160px;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-item:hover,
.skill-item:focus-within {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 15px 30px var(--shadow);
}

.skill-name {
    font-weight: 700;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-icon-inline {
    font-size: 1.3rem;
}

.skill-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 50px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-red);
    border-radius: 50px;
    box-shadow: 0 0 10px var(--shadow);
    transition: width 1s ease;
}

/* ===== MEDIA QUERIES POUR PETITS ÉCRANS ===== */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .skill-item {
        max-width: 140px;
    }

    .skill-bar-container {
        height: 6px;
    }
}

@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .skill-item {
        max-width: 120px;
        padding: 0.8rem;
    }

    .skill-bar-container {
        height: 5px;
    }
}

.icon-html {
  width: clamp(60px, 12vw, 80px);
  height: clamp(60px, 12vw, 80px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px var(--shadow);
}

.project-header {
    height: 180px;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* AMÉLIORATION RESPONSIVE : Hauteur adaptative */
    min-height: 180px;
}

.project-header img,
.project-header video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50px;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    font-weight: 600;
    color: var(--accent-red);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.project-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-title {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.3vw, 1rem);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.3rem 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 50px;
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    color: var(--accent-red);
    font-weight: 500;
}

.project-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.project-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    /* AMÉLIORATION ACCESSIBILITÉ : Zone de clic plus grande */
    padding: 0.5rem 0;
}

.project-link:hover,
.project-link:focus {
    gap: 0.8rem;
    color: var(--accent-red);
}

.contact-card-xl {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.2);
}

.contact-card-xl h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    margin-bottom: 2rem;
}

.success-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-weight: 500;
}

.error-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--accent-red);
    font-weight: 500;
}
/* Checkbox RGPD */
.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem 0;
}

.form-group-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.form-group-checkbox label {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.form-group-checkbox label a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group-checkbox label a:hover {
    color: #764ba2;
}


.form-group-checkbox input[type="checkbox"]:invalid {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}


@media (max-width: 768px) {
    .form-group-checkbox {
        gap: 0.5rem;
    }
    
    .form-group-checkbox label {
        font-size: 0.85rem;
    }
    
    .form-group-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: clamp(0.9rem, 1.3vw, 0.95rem);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: clamp(0.95rem, 1.3vw, 1rem);
    font-family: inherit;
    background: var(--bg-dark);
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

button[type="submit"] {
    padding: 1.2rem 2.5rem;
    background: var(--gradient-red);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--shadow);
    margin-top: 1rem;
    min-height: 44px;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.5);
}

.faq {
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
    background: var(--bg-dark);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover,
.faq-item:focus-within {
    border-color: var(--primary-red);
    box-shadow: 0 10px 25px var(--shadow);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    color: var(--text-primary);
    list-style: none;
    position: relative;
    padding-right: 30px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: "–";
    transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: clamp(0.95rem, 1.5vw, 1rem);
}

.footer {
    background: var(--bg-darker);
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
    border-top: 1px solid var(--border);
}

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

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.3vw, 1rem);
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    padding: 0.8rem 1.5rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 12px;
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.3);
    font-weight: 600;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    /* AMÉLIORATION ACCESSIBILITÉ : Taille minimale */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-social-link:hover,
.footer-social-link:focus {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-text {
    color: white;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s ease;
    /* AMÉLIORATION ACCESSIBILITÉ : Zone de clic plus grande */
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--primary-red);
    text-decoration: underline;
}

.legal-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    background: var(--bg-dark);
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.legal-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    font-style: italic;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.legal-section h3 {
    font-size: clamp(1.2rem, 2vw, 1.3rem);
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.legal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.legal-box.highlight {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.3);
}

.legal-box p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 1.3vw, 1rem);
}

.legal-box ul {
    list-style: none;
    padding-left: 0;
}

.legal-box ul li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: clamp(0.95rem, 1.3vw, 1rem);
}

.legal-box ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.legal-box a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-box a:hover,
.legal-box a:focus {
    color: var(--accent-red);
    text-decoration: underline;
}

/* ===== MEDIA QUERIES SUPPLÉMENTAIRES ===== */
@media (max-width: 968px) {
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.8rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* AMÉLIORATION ACCESSIBILITÉ : Styles pour lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* AMÉLIORATION ACCESSIBILITÉ : Contraste amélioré pour les textes */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #e5e5e5;
        --border: #ffffff;
    }
}

/* AMÉLIORATION RESPONSIVE : Orientation paysage mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 1rem 3rem;
    }
    
    .nav-menu {
        height: 100vh;
        overflow-y: auto;
    }
}

/* AMÉLIORATION RESPONSIVE : Très grands écrans */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1600px;
    }
}