/* =========================================================
   WINEOS — "Glow-up" overlay stylesheet
   Charge APRÈS styles.css. Ne supprime rien : override uniquement.
   ========================================================= */

:root {
    /* Palette orange unifiée (remplace les anciens rgba cyan) */
    --brand-50:  #FFF4E6;
    --brand-300: #FFB26B;
    --brand-500: #FF8A1F;
    --brand-600: #FF6600;
    --brand-700: #F7941C;
    --brand-glow: rgba(255, 130, 36, 0.45);
    --brand-glow-soft: rgba(255, 130, 36, 0.15);

    /* Surfaces */
    --surface-1: rgba(19, 35, 64, 0.65);
    --surface-2: rgba(19, 35, 64, 0.85);
    --stroke-soft: rgba(255, 255, 255, 0.08);
    --stroke-brand: rgba(255, 130, 36, 0.35);

    /* Dégradés premium */
    --gradient-hero:
        radial-gradient(1200px 600px at 15% 10%, rgba(255, 102, 0, 0.22), transparent 60%),
        radial-gradient(900px 500px at 85% 30%, rgba(247, 148, 28, 0.18), transparent 65%),
        radial-gradient(700px 600px at 50% 100%, rgba(255, 138, 31, 0.20), transparent 60%);
    --gradient-text:
        linear-gradient(135deg, #FFD08A 0%, #FF8A1F 40%, #FF6600 70%, #FFB26B 100%);
    --gradient-border:
        linear-gradient(135deg, rgba(255, 178, 107, 0.6), rgba(255, 102, 0, 0.15) 40%, rgba(255, 255, 255, 0.05));

    /* Grain + noise */
    --noise-opacity: 0.04;
}

/* Police display pour les titres */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

body {
    /* Un soupçon de texture pour un rendu plus premium */
    background:
        radial-gradient(ellipse at top, rgba(247, 148, 28, 0.06), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(255, 102, 0, 0.05), transparent 50%),
        var(--dark-bg);
    background-attachment: fixed;
}

/* Grain subtil sur toute la page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    background: rgba(10, 22, 40, 0.55) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--stroke-soft);
}
.navbar.scrolled {
    background: rgba(10, 22, 40, 0.82) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.nav-menu a::after { background: var(--gradient-text); }
.logo-img { filter: drop-shadow(0 0 14px var(--brand-glow-soft)); }

/* =========================================================
   HERO — Aurora + halo + titre éblouissant
========================================================= */
.hero { padding-top: 120px; }

.hero .gradient-overlay {
    background: var(--gradient-hero);
    animation: auroraShift 18s ease-in-out infinite alternate;
}
@keyframes auroraShift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-30px, 20px, 0) scale(1.05); }
    100% { transform: translate3d(20px, -20px, 0) scale(1.02); }
}

.hero .shape-1 { background: rgba(255, 102, 0, 0.35); }
.hero .shape-2 { background: rgba(247, 148, 28, 0.30); }
.hero .shape-3 { background: rgba(255, 178, 107, 0.28); }
.hero .shape-4 { background: rgba(255, 138, 31, 0.32); }

/* Grille lumineuse en toile de fond */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.04em;
    font-size: clamp(3.5rem, 10vw, 8rem);
}
.hero-title .title-line {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(255, 138, 31, 0.35));
    animation: titleSlideUp 1s ease-out, titleGlow 4s ease-in-out infinite alternate;
}
@keyframes titleGlow {
    from { filter: drop-shadow(0 0 25px rgba(255, 138, 31, 0.25)); }
    to   { filter: drop-shadow(0 0 55px rgba(255, 138, 31, 0.55)); }
}

.hero-subtitle {
    color: #e4ecf7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}
.hero-subtitle::before {
    content: '';
    display: block;
    width: 64px; height: 2px;
    margin: 0 auto 1.25rem;
    background: var(--gradient-text);
    border-radius: 2px;
    opacity: 0.9;
}

/* =========================================================
   BOUTONS — Glow + shimmer renforcé
========================================================= */
.btn {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 1.05rem 2.6rem;
}
.btn-primary {
    background: linear-gradient(135deg, #FF8A1F, #FF6600);
    box-shadow:
        0 10px 30px rgba(255, 102, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
    box-shadow:
        0 18px 50px rgba(255, 102, 0, 0.55),
        0 0 0 1px rgba(255, 178, 107, 0.5) inset;
    transform: translateY(-4px);
}
.btn-secondary {
    border: 1px solid rgba(255, 178, 107, 0.5);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255, 138, 31, 0.12);
    border-color: var(--brand-500);
    box-shadow: 0 12px 35px rgba(255, 102, 0, 0.30);
    transform: translateY(-4px);
}

/* =========================================================
   SECTION TITLES — Halo doux + eyebrow
========================================================= */
.section-header { margin-bottom: 3rem; }
.section-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(255, 138, 31, 0.20));
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -14px;
    width: 80px; height: 3px;
    transform: translateX(-50%);
    background: var(--gradient-text);
    border-radius: 999px;
    box-shadow: 0 0 20px var(--brand-glow);
}
.section-tag {
    background: rgba(255, 138, 31, 0.10);
    color: var(--brand-500);
    border: 1px solid rgba(255, 138, 31, 0.25);
}

/* =========================================================
   CARTES — Glassmorphism + bordure dégradée + spotlight
========================================================= */
.visual-card,
.expertise-card,
.sector-card,
.offer-card,
.team-card,
.stat-card,
.contact-form,
.image-placeholder {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) padding-box,
        var(--gradient-border) border-box;
    border: 1px solid transparent !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Spotlight qui suit la souris — alimenté via variables CSS depuis JS */
.visual-card::after,
.expertise-card::after,
.sector-card::after,
.offer-card::after,
.team-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
        320px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 138, 31, 0.22),
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}
.visual-card:hover::after,
.expertise-card:hover::after,
.sector-card:hover::after,
.offer-card:hover::after,
.team-card:hover::after { opacity: 1; }

.visual-card > *,
.expertise-card > *,
.sector-card > *,
.offer-card > *,
.team-card > * { position: relative; z-index: 1; }

/* Glow au survol unifié */
.visual-card:hover,
.expertise-card:hover,
.sector-card:hover,
.offer-card:hover,
.team-card:hover,
.stat-card:hover {
    border-color: var(--brand-500) !important;
    box-shadow:
        0 25px 60px rgba(255, 102, 0, 0.30),
        0 0 0 1px rgba(255, 178, 107, 0.25) inset;
}

/* Icônes dans cartes : halo */
.card-icon-wrapper {
    background: linear-gradient(135deg, #FF8A1F 0%, #FF6600 100%);
    box-shadow:
        0 10px 25px rgba(255, 102, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Stats : plus spectaculaires */
.stat-number {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2rem, 3.2vw, 3rem);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 138, 31, 0.35));
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: visible;
}
.stat-card {
    padding: 2rem 1rem;
    overflow: visible !important;
}

/* =========================================================
   CLIENTS CAROUSEL — logos plus propres
========================================================= */
.client-logo {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--stroke-soft) !important;
}
.client-logo:hover {
    box-shadow: 0 20px 50px rgba(255, 102, 0, 0.30) !important;
    border-color: var(--brand-500) !important;
}
.logo-placeholder img { filter: grayscale(100%) contrast(0.95); }
.client-logo:hover .logo-placeholder img { filter: none; }

/* =========================================================
   CONTACT — formulaire plus propre
========================================================= */
.form-group input,
.form-group textarea {
    background: rgba(10, 22, 40, 0.6) !important;
    border: 1px solid var(--stroke-soft) !important;
    transition: all 0.25s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-500) !important;
    box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.18) !important;
}

/* Lien email (mailto) dans la section Contact */
.contact-item a[href^="mailto:"] {
    color: var(--brand-300);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 178, 107, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}
.contact-item a[href^="mailto:"]:hover {
    color: #FFD08A;
    border-bottom-color: var(--brand-500);
    text-shadow: 0 0 12px var(--brand-glow);
}

/* =========================================================
   FOOTER
========================================================= */
.footer { border-top: 1px solid var(--stroke-soft); }

/* =========================================================
   SCROLL INDICATOR — plus discret
========================================================= */
.mouse {
    border-color: rgba(255, 178, 107, 0.7);
    opacity: 0.8;
}
.mouse::before { background: var(--brand-500); }

/* =========================================================
   ACCESSIBILITÉ — respect du prefers-reduced-motion
========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Assure que le grain ne bloque pas les clics */
.navbar, .hero-content, section .container { position: relative; z-index: 2; }
