/* ==========================================================================
   1. VARIABLES ET CONFIGURATION
   ========================================================================== */
:root {
    color-scheme: dark;
    --bg-top: #0a0d13;
    --bg-bottom: #07090d;
    --bg-dark: #0c1017;
    --surface: #121623;
    --surface-soft: #171d28;
    --surface-strong: #1e2534;
    --text: #eff2f7;
    --muted: #9aa4b1;
    --accent: #8f99a8;
    --border: rgba(255, 255, 255, 0.1);
    --transition: 180ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #050505;
}

/* ==========================================================================
   VIDÉO DE FOND GLOBALE
   ========================================================================== */
.global-bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.section, .hero {
    background: transparent !important;
}

main {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   2. MISE EN PAGE GLOBALE
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.section p {
    font-size: 1.1rem;
    color: var(--muted);
}

img, svg, video {
    display: block;
    max-width: 100%;
}

/* ==========================================================================
   3. HEADER ET NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(12, 14, 20, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 80px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand {
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text);
}

.brand span {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 400;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
    transition: color var(--transition);
}

.site-nav a:hover, .site-nav a.active {
    color: var(--text);
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ==========================================================================
   4. TYPOGRAPHIE ET COMPOSANTS
   ========================================================================== */
.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

h1, h2, h3, h4 {
    margin: 0;
    text-align: center;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--text);
    margin-bottom: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition);
}

.button:hover {
    transform: translateY(-2px);
    background: rgb(114, 41, 41);
}

.button-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   5. SECTION HERO
   ========================================================================== */
.hero {
    padding: 3rem 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    background: linear-gradient(135deg, rgb(10, 5, 5) 0%, rgb(26, 26, 26) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.hero-header {
    padding: 3rem 3rem 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.1;
    background: linear-gradient(135deg, #f8f9fa 0%, #adb5bd 55%, #747e86 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 10px 0;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin: 0 auto 0;
    text-align: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 4rem 4rem;
}

.hero-copy {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
}

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

.hero-visual {
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* ==========================================================================
   6. SECTION ABOUT
   ========================================================================== */
.section-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.section-intro p {
    max-width: 640px;
    margin: 1rem auto 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.about-features {
    margin-top: 2rem;
}

/* ==========================================================================
   7. SERVICES GRID
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(214, 93, 60, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.service-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}

.service-body {
    padding: 1.75rem;
    flex: 1;
}

.service-body h3 {
    text-align: left;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-body p {
    font-size: 0.95rem !important;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   8. FEATURE ITEMS (ABOUT)
   ========================================================================== */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.feature-item {
    padding: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-6px);
    border-color: rgba(55, 2, 54, 0.578);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.feature-item h3 {
    margin-bottom: 0.85rem;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-item p {
    font-size: 0.95rem !important;
    color: var(--muted);
    margin: 0;
}

/* ==========================================================================
   9. CONTACT
   ========================================================================== */
.contact-section {
    padding: 4rem 0;
}

.contact-inner {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 3rem;
}

.contact-copy {
    display: grid;
    gap: 1.5rem;
    text-align: center;
}

.contact-copy p {
    max-width: 560px;
    margin: 0 auto;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   10. SECTION EXEMPLE AUDIO
   ========================================================================== */
.example-section {
    padding: 6rem 0;
}

.audio-example {
    display: flex;
    justify-content: center;
}

.audio-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 93, 60, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.audio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.audio-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.audio-subtitle {
    color: #7AA8A5;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.audio-card audio {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

.audio-card audio::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.05);
}

.audio-description {
    margin: 1rem 0 0 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(214, 93, 60, 0.2);
    color: var(--text);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4rem 0 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.brand-sub {
    color: #D65D3C;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin: 0 0 0.75rem 0;
    text-align: left;
}

.sas-info {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.footer-contact h4 {
    color: #7AA8A5;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    text-align: left;
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: left;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.contact-details a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #D65D3C;
}

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

.footer-bottom {
    background: #050505;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}

.legal-links a {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #D65D3C;
}

/* ==========================================================================
   11. ANIMATIONS
   ========================================================================== */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding: 2rem 2rem 3rem;
        gap: 2.5rem;
    }

    .hero-copy {
        text-align: center;
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-text {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

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

    .site-nav {
        position: absolute;
        top: 72px;
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        padding: 1.5rem;
        border-radius: 20px;
        background: rgba(18, 22, 30, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 200;
    }

    .site-nav.open {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-brand {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content {
        border-radius: 24px;
    }

    .hero-header {
        padding: 2rem 1.5rem 0;
    }

    .hero-grid {
        padding: 2rem 1.5rem;
    }

    .contact-inner {
        padding: 2rem 1.5rem;
    }
}
