/**
 * Gamehoho.fr - Styles principaux
 * Thème sombre avec accents néon vert/bleu
 */

/* =====================================================
   VARIABLES CSS
   ===================================================== */
:root {
    /* Fonds */
    --bg-primary: #0a0c0f;
    --bg-secondary: #14181c;
    --bg-tertiary: #1e262c;
    --bg-card: #14181c;
    
    /* Accents néon */
    --accent-primary: #00ff88;
    --accent-secondary: #0066ff;
    --accent-tertiary: #b967ff;
    
    /* États */
    --success: #00c851;
    --danger: #ff4444;
    --warning: #ffbb33;
    --info: #33b5e5;
    
    /* Texte */
    --text-primary: #ffffff;
    --text-secondary: #9aa8b7;
    --text-muted: #4b5a6a;
    
    /* Bordures */
    --border-color: #2a343c;
    --border-light: #1e262c;
    
    /* Typographie */
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espacements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(0, 255, 157, 0.3);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 100px; /* Espace pour le header fixe augmenté */
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* =====================================================
   TYPOGRAPHIE
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 12, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: var(--space-lg) 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.75rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

/* =====================================================
   BOUTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    background: rgba(0, 255, 157, 0.1);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.6);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
}

.btn-small {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 157, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(10, 12, 15, 0.9), rgba(10, 12, 15, 0.9)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e262c' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Bracket Preview */
.hero-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bracket-preview {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.bracket-match {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-left: 3px solid var(--accent-primary);
}

.bracket-match.final {
    border-left-color: var(--accent-secondary);
}

.match-team {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
}

.match-team.winner {
    color: var(--accent-primary);
    font-weight: 600;
}

.match-score {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-secondary);
}

.bracket-connector {
    width: 2px;
    height: 30px;
    background: var(--border-color);
    margin: 0 auto;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-2xl);
}

.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Modes Section */
.modes {
    padding: 4rem 0;
}

.modes-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.mode-tag {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.mode-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Recent Tournaments */
.recent-tournaments {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.tournament-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.tournament-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tournament-header {
    border-top: 3px solid var(--accent-primary);
    padding-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.tournament-status {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.status-inscription { background: rgba(0, 255, 157, 0.2); color: var(--accent-primary); }
.status-en_cours { background: rgba(255, 187, 51, 0.2); color: var(--warning); }
.status-termine { background: rgba(0, 200, 81, 0.2); color: var(--success); }

.tournament-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.tournament-game {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tournament-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.05) 0%, rgba(0, 102, 255, 0.05) 100%);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   AUTH PAGES
   ===================================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-lg);
    background: var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
}

.auth-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.auth-form {
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-help {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-checkbox input {
    width: auto;
}

.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-success {
    background: rgba(0, 200, 81, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.auth-links {
    text-align: center;
    font-size: 0.9rem;
}

.auth-links p {
    margin-bottom: var(--space-sm);
}

.auth-back {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: var(--space-md);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =====================================================
   UTILITAIRES
   ===================================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }

/* =====================================================
   RESPONSIVE HEADER & FOOTER
   ===================================================== */

/* Tablette */
@media (max-width: 992px) {
    .header .container {
        padding: 0 var(--space-md);
    }
    
    .nav {
        gap: var(--space-lg);
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        padding: var(--space-sm) 0;
    }
    
    .header .container {
        padding: 0 var(--space-md);
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 12, 15, 0.98);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        padding: var(--space-sm) 0;
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .logo-img {
        height: 35px !important;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-preview {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Flash Message */
.flash-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.flash-success {
    background: var(--success);
    color: white;
}

.flash-error {
    background: var(--danger);
    color: white;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: var(--space-md);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

/* ============================================================
   STYLES D IMPRESSION
   ============================================================ */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }
    
    header, footer, .no-print, .btn, .form-actions, .admin-header,
    .menu-toggle, .mobile-menu, .export-buttons {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .bracket {
        background: #fff !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: none !important;
    }
    
    .bracket-match {
        background: #f5f5f5 !important;
        border: 1px solid #999 !important;
        color: #000 !important;
    }
    
    .match-player {
        background: #fff !important;
        border: 1px solid #ccc !important;
        color: #000 !important;
        padding: 8px !important;
    }
    
    .match-player.winner {
        background: #90EE90 !important;
        color: #000 !important;
        font-weight: bold;
    }
    
    .bracket-header h3,
    .round-name {
        color: #000 !important;
    }
    
    .page-break {
        page-break-before: always;
        break-before: page;
    }
    
    /* Header d impression */
    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #000;
    }
    
    .print-header h1 {
        font-size: 24pt;
        margin: 0;
        color: #000 !important;
    }
    
    .print-header .subtitle {
        font-size: 12pt;
        color: #666;
    }
    
    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        width: 100%;
        text-align: center;
        font-size: 10pt;
        color: #666;
        border-top: 1px solid #ccc;
        padding-top: 10px;
    }
    
    /* Tableaux */
    table {
        border-collapse: collapse;
        width: 100%;
    }
    
    th, td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: left;
    }
    
    th {
        background: #e0e0e0 !important;
    }
}

/* Bouton d impression (visible uniquement a l ecran) */
.print-button {
    background: linear-gradient(135deg, #4a9eff 0%, #0066cc 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.print-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.3);
}

/* Mode Presentation (pour ecran geant/projecteur) */
.presentation-mode {
    background: #000;
    padding: 40px;
}

.presentation-mode .bracket-match {
    font-size: 1.2em;
    padding: 15px;
}

.presentation-mode .match-player {
    padding: 12px;
}

/* Export options */
.export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.export-btn {
    background: #16213e;
    border: 1px solid #0f3460;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
}

.export-btn:hover {
    border-color: #00ff88;
    background: #0f3460;
}

/* Cache a l impression par defaut */
.print-only {
    display: none;
}

@media print {
    .print-only {
        display: block !important;
    }
}
/**
 * Gamehoho.fr - CORRECTIONS RESPONSIVE MOBILE
 * À ajouter à la fin de style.css
 */

/* =====================================================
   CORRECTIONS RESPONSIVE MOBILE - FÉVRIER 2026
   ===================================================== */

/* Empêcher le débordement horizontal sur tous les appareils */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Correction header mobile */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
        min-height: 60px;
    }
    
    .header .container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .logo-img {
        height: 35px !important;
        max-width: 150px;
    }
    
    /* Menu mobile */
    .nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 12, 15, 0.98);
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1.5rem;
        z-index: 999;
        overflow-y: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .menu-toggle {
        display: flex !important;
        padding: 0.5rem;
        z-index: 1001;
    }
    
    /* Ajuster le padding du body pour le header fixe */
    body {
        padding-top: 60px !important;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .header {
        min-height: 55px;
        padding: 0.5rem 0;
    }
    
    .logo-img {
        height: 30px !important;
    }
    
    .nav {
        top: 55px;
    }
    
    body {
        padding-top: 55px !important;
    }
}

/* Correction footer mobile */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer .container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 100%;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-brand a {
        justify-content: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .footer-column {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }
    
    .footer-column:last-child {
        border-bottom: none;
    }
    
    .footer-column h4 {
        margin-bottom: 0.75rem;
    }
    
    .footer-column a {
        padding: 0.5rem 0;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Correction contenu principal mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    main {
        width: 100%;
        overflow-x: hidden;
    }
    
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Correction boutons mobile */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Correction grille mobile */
@media (max-width: 768px) {
    .features-grid,
    .pricing-grid,
    .demo-grid,
    .templates-grid,
    .formats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

/* Correction hero mobile */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

/* Correction SEO hero mobile */
@media (max-width: 768px) {
    .seo-hero {
        padding: 3rem 1rem !important;
    }
    
    .seo-hero h1 {
        font-size: 1.75rem !important;
        word-wrap: break-word;
    }
    
    .seo-hero .subtitle {
        font-size: 1rem !important;
    }
}

/* Correction tables mobile */
@media (max-width: 768px) {
    .admin-table,
    .compare-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.875rem;
    }
}

/* Correction formulaires mobile */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    .auth-box {
        padding: 1.5rem;
        margin: 1rem;
        width: auto;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .hero-title,
    .seo-hero h1 {
        font-size: 1.5rem !important;
    }
    
    .footer-column h4 {
        font-size: 0.95rem;
    }
    
    .footer-column a {
        font-size: 0.9rem;
    }
}

/* Fix pour iPhone notch */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
    
    body {
        padding-top: calc(60px + env(safe-area-inset-top));
    }
}
