/**
 * ZAIRIDES Index Page Critical Styles
 * Extracted from index.html inline <style> block
 * Required for Hero section, navigation, and theme switcher
 */

/* Navigation overrides pour v5 */
nav {
    position: fixed;
    width: 100%;
    padding: 19px 5%;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e4e4e7;
}
[data-theme="dark"] nav {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
}
.logo-icon {
    width: 75px;
    height: 75px;
}
.logo-text {
    font-family: 'Audiowide', sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: #991b1b;
    letter-spacing: 3px;
    text-transform: uppercase;
}
[data-theme="dark"] .logo-text {
    color: #ef4444;
}
.nav-links a {
    color: #71717a;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}
[data-theme="dark"] .nav-links a {
    color: #a1a1aa;
}
.nav-links a:hover {
    color: #991b1b;
}
[data-theme="dark"] .nav-links a:hover {
    color: #ef4444;
}
/* Language switcher positioning */
#language-switcher {
    margin-left: 1.5rem;
}
/* Theme switcher buttons */
.nav-theme-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-theme-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 0.6;
}
.nav-theme-btn:hover {
    opacity: 1;
    background: rgba(185, 28, 28, 0.1);
}
[data-theme="dark"] .nav-theme-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}
/* Hero minimaliste avec beaucoup d'espace blanc/noir */
.hero-minimal {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: calc(113px + 3rem) 2rem 4rem;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .hero-minimal {
    background: #0a0a0a;
}
/* Contenu centré avec typographie imposante */
.hero-minimal-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: 0;
}
/* Typographie imposante avec Audiowide */
.hero-minimal-content h1 {
    font-family: 'Audiowide', cursive;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #0a0a0a;
    font-weight: 400;
    letter-spacing: -2px;
}
[data-theme="dark"] .hero-minimal-content h1 {
    color: #fafafa;
}
.hero-minimal-content h1 span {
    color: #b91c1c;
    position: relative;
}
[data-theme="dark"] .hero-minimal-content h1 span {
    color: #dc2626;
}
/* Style du prompt AI (comme Claude Code) */
.ai-prompt-container {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: #525252;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: left;
    padding: 1.5rem 2rem;
    background: rgba(185, 28, 28, 0.05);
    border-left: 3px solid #b91c1c;
    border-radius: 4px;
}
/* Sous-titre descriptif */
.hero-minimal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #525252;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    text-align: left;
}
[data-theme="dark"] .hero-minimal-content p {
    color: #a3a3a3;
}
[data-theme="dark"] .ai-prompt-container {
    color: #a3a3a3;
    background: rgba(220, 38, 38, 0.1);
    border-left-color: #dc2626;
}
.prompt-prefix {
    color: #b91c1c;
    font-weight: bold;
    margin-right: 0.5rem;
}
[data-theme="dark"] .prompt-prefix {
    color: #dc2626;
}
.prompt-text {
    color: #0a0a0a;
}
[data-theme="dark"] .prompt-text {
    color: #fafafa;
}
.prompt-cursor {
    color: #b91c1c;
    animation: blink 1s step-end infinite;
}
[data-theme="dark"] .prompt-cursor {
    color: #dc2626;
}
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}
/* Boutons minimalistes */
.hero-minimal-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.hero-minimal-buttons .btn-minimal-primary {
    padding: 1rem 3rem;
    background: #b91c1c;
    color: #ffffff;
    border: 2px solid #b91c1c;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.hero-minimal-buttons .btn-minimal-primary:hover {
    background: #7f1d1d;
    border-color: #7f1d1d;
    transform: translateY(-2px);
}
[data-theme="dark"] .hero-minimal-buttons .btn-minimal-primary {
    background: #dc2626;
    border-color: #dc2626;
}
[data-theme="dark"] .hero-minimal-buttons .btn-minimal-primary:hover {
    background: #991b1b;
    border-color: #991b1b;
}
.hero-minimal-buttons .btn-minimal-secondary {
    padding: 1rem 3rem;
    background: transparent;
    color: #b91c1c;
    border: 2px solid #b91c1c;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.hero-minimal-buttons .btn-minimal-secondary:hover {
    background: #b91c1c;
    color: #ffffff;
    transform: translateY(-2px);
}
[data-theme="dark"] .hero-minimal-buttons .btn-minimal-secondary {
    color: #dc2626;
    border-color: #dc2626;
}
[data-theme="dark"] .hero-minimal-buttons .btn-minimal-secondary:hover {
    background: #dc2626;
    color: #ffffff;
}
/* Animation subtile au scroll */
.hero-minimal-content {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Responsive */
@media (max-width: 968px) {
    .hero-minimal {
        padding: calc(113px + 1rem) 2rem 4rem;
    }
    /* Ajuster margin-top pour mobile */
    .hero-minimal-content {
        margin-top: 2vh;
    }
    .hero-minimal-content h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    .ai-prompt-container {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }
    .hero-minimal-content p {
        font-size: 1rem;
    }
    .hero-minimal-buttons {
        flex-direction: column;
    }
    .hero-minimal-buttons .btn-minimal-primary,
    .hero-minimal-buttons .btn-minimal-secondary {
        width: 100%;
        max-width: 300px;
    }
}
@media (max-width: 640px) {
    /* Ajuster margin-top pour petit mobile */
    .hero-minimal-content {
        margin-top: 3vh;
    }
    .hero-minimal-content h1 {
        font-size: 2rem;
    }
    .ai-prompt-container {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    .hero-minimal-content p {
        font-size: 0.95rem;
    }
}
/* Mobile Navigation styles moved to css/components/mobile-menu.css */
@media (max-width: 968px) {
    /* Ajustements navigation mobile uniformisés */
    nav .nav-container {
        padding-left: 0.5rem !important;
        padding-right: 1rem !important;
    }
    nav .logo {
        gap: 4px;
        margin-left: -0.5rem;
    }
    .logo-icon {
        width: 45px !important;
        height: 45px !important;
    }
    .logo-text {
        font-size: 16px !important;
        letter-spacing: 2px;
    }
    .nav-right .nav-links {
        display: none;
    }
    .nav-right .nav-theme-switcher {
        display: none;
    }
    .mobile-menu__btn {
        display: block;
    }
}

/* ===== TOGGLE BUTTON STYLES ===== */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.toggle-track {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    position: relative;
    transition: background 0.3s ease;
}

body.dark-mode .toggle-track,
[data-theme="dark"] .toggle-track {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .toggle-thumb,
[data-theme="dark"] .toggle-thumb {
    transform: translateX(30px);
}

/* Activer la transition uniquement après le chargement */
body.theme-loaded .toggle-thumb {
    transition: transform 0.3s ease;
}

.toggle-icon {
    font-size: 14px;
    line-height: 1;
}

.theme-toggle:hover .toggle-track {
    opacity: 0.9;
}

.theme-toggle:focus {
    outline: 2px solid var(--grenat-primary);
    outline-offset: 2px;
}
