/* ==========================================================================
   Variables CSS - Thème Sombre & Accessibilité
   ========================================================================== */
:root {
    /* Couleurs principales - Contraste WCAG AAA visé */
    --bg-color: #0d1117;
    --bg-alt: #161b22;
    --text-color: #e6edf3;
    --text-muted: #8b949e;

    /* Couleurs d'accentuation (Accessibles sur fond sombre) */
    --accent: #58a6ff;
    --accent-hover: #3182ce;
    --focus-ring: #fbbf24;
    /* Jaune très visible pour la navigation clavier */

    /* Typographie */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Espacements */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --section-pad: 5rem 0;

    /* Effets Premium */
    --transition: all 0.3s ease;
    --glass-bg: rgba(22, 27, 34, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Tailles maximales */
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    /* Défilement doux natif */
}

/* Si l'utilisateur préfère réduire les animations (A11y) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.125rem;
    overflow-x: hidden;
}

/* Typographie - Hiérarchie */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

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

img,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

ol,
ul {
    list-style: none;
}

/* ==========================================================================
   Accessibilité Focus State global
   ========================================================================== */
:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 4px;
    border-radius: 4px;
    /* Pour des coins propres sur le focus */
}

/* Lien d'évitement pour lecteur d'écran (Skip link) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--focus-ring);
    color: #000;
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s;
    font-weight: bold;
}

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

/* ==========================================================================
   Layout Structures
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-pad);
    position: relative;
}

.about-section {
    background-image: linear-gradient(rgba(13, 17, 23, 0.8), rgba(13, 17, 23, 0.9)), url('../images/bio-bg.png');
    background-size: cover;
    background-position: center;
}

.process-section {
    background-image: linear-gradient(rgba(22, 27, 34, 0.85), rgba(22, 27, 34, 0.85)), url('../images/process-bg.png');
    background-size: cover;
    background-position: center;
}

.videos-section {
    background-image: linear-gradient(rgba(13, 17, 23, 0.8), rgba(13, 17, 23, 0.9)), url('../images/hero-bg.png');
    /* Réutilisation dynamique si on veut, ou juste un blend */
    background-size: cover;
    background-position: center;
}

.pricing-section {
    background-image: linear-gradient(rgba(22, 27, 34, 0.85), rgba(22, 27, 34, 0.85)), url('../images/pricing-bg.png');
    background-size: cover;
    background-position: center;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.align-center {
    align-items: center;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--glass-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #000;
    text-decoration: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo a:hover {
    text-decoration: none;
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--accent);
    text-decoration: none;
}

/* Menu Mobile Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
    position: relative;
    border-radius: 3px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #000;
        border-left: 1px solid var(--glass-border);
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        padding: 2rem;
    }

    .main-nav.is-open {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    /* Animation croix quand on clique sur hamburger */
    .nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }

    .nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* offset header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    overflow: hidden;
}

.hero-bg::after {
    /* Overlay pour s'assurer que le texte h1 est toujours lisible (A11y) */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 17, 23, 0.4), rgba(13, 17, 23, 0.9));
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent);
    /* Optionnel: effet gradient texte pour le premium */
    background: linear-gradient(90deg, #58a6ff, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Glass Cards & UI Premium
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   Vidéos Section
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    padding: 0;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* Ratio 16:9 pour YouTube iframes */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.video-info p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ==========================================================================
   Tarifs Section
   ========================================================================== */
.pricing-grid {
    align-items: center;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--accent);
    position: relative;
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.price {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 1rem 0;
}

.price span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.pricing-features {
    margin: 1.5rem 0 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations (Intersection Observer)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.slide-up {
    transform: translateY(50px);
}

.slide-left {
    transform: translateX(50px);
}

.slide-right {
    transform: translateX(-50px);
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}