/* ========================================
   DESIGN GRANDE AGENCE INTERNATIONALE
   Excellence visuelle & Architecture précise
   Inspiré par : Apple, Stripe, Linear, Vercel
   ======================================== */

/* ===== SYSTÈME TYPOGRAPHIQUE RAFFINÉ ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2d2d2d;
    line-height: 1.65;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: #0a0a0a;
    letter-spacing: -0.035em;
    line-height: 1.1;
    font-feature-settings: 'ss01', 'ss02', 'cv05', 'cv11';
}

h1 { 
    font-size: clamp(2.75rem, 6vw, 5.5rem); 
    font-weight: 700; 
    letter-spacing: -0.045em;
}
h2 { 
    font-size: clamp(2.25rem, 5vw, 3.75rem); 
    font-weight: 650; 
    letter-spacing: -0.035em;
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2.25rem); 
    font-weight: 600; 
    letter-spacing: -0.025em;
}

/* ===== COULEURS GLOBALES ===== */
:root {
    --gold-primary: #B8962E;
    --black-primary: #0a0a0a;
    --gray-text: #4a4a4a;
    --gray-light: #f5f5f5;
}

/* ===== SECTIONS BACKGROUNDS ===== */
section {
    padding: 100px 0 !important;
}

/* Background blanc épuré */
.why-us-section,
.portfolio-refactored,
.faq-refactored {
    background: #ffffff !important;
}

/* Background gris très clair */
.testimonials-section {
    background: #fafafa !important;
}

/* ===== TITRES DE SECTIONS ===== */
.section-title,
h2 {
    font-size: clamp(2.25rem, 5vw, 3.5rem) !important;
    font-weight: 600 !important;
    color: #0a0a0a !important;
    letter-spacing: -0.03em !important;
    line-height: 1.15 !important;
    margin-bottom: 1.5rem !important;
}

.section-title-highlight {
    background: linear-gradient(135deg, #B8962E 0%, #9A7D26 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 600 !important;
}

/* Network section - TEXTE NOIR AVEC FOND DORÉ (override tous les autres styles) */
.network-section h2 .section-title-highlight,
.network-section .section-title-highlight,
.network-content .section-title-highlight {
    background: linear-gradient(135deg, rgba(184, 150, 46, 0.18) 0%, rgba(154, 125, 38, 0.15) 100%) !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #0a0a0a !important;
    background-clip: unset !important;
    color: #0a0a0a !important;
    text-shadow: none !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    box-decoration-break: clone !important;
    -webkit-box-decoration-break: clone !important;
}

.section-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem) !important;
    color: #5a5a5a !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
}

/* ===== SYSTÈME DE CARTES ARCHITECTURAL ===== */
.spotlight-card,
.why-us-card-v2,
.portfolio-card,
.testimonial-card,
.service-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    padding: 3rem 2.75rem !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.02),
        0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative;
    overflow: hidden;
}

.spotlight-card::after,
.why-us-card-v2::after,
.portfolio-card::after,
.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 150, 46, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.spotlight-card:hover,
.why-us-card-v2:hover,
.portfolio-card:hover,
.testimonial-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(184, 150, 46, 0.15) !important;
}

.spotlight-card:hover::after,
.why-us-card-v2:hover::after,
.portfolio-card:hover::after,
.testimonial-card:hover::after {
    opacity: 1;
}

/* ===== ICÔNES MINIMALISTES ===== */
.spotlight-icon,
.why-us-icon-v2 {
    color: #B8962E !important;
    font-size: 2rem !important;
}

/* ===== SYSTÈME DE BOUTONS PREMIUM ===== */
.btn-primary,
.btn-accent {
    background: #0a0a0a !important;
    color: #ffffff !important;
    padding: 17px 36px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before,
.btn-accent:hover::before {
    left: 100%;
}

.btn-primary:hover,
.btn-accent:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 8px 28px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    background: #1a1a1a !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.btn-primary:active,
.btn-accent:active {
    transform: translateY(-1px) !important;
}

.btn-outline,
.btn-automation {
    background: transparent !important;
    color: #0a0a0a !important;
    border: 2px solid #0a0a0a !important;
    padding: 14px 30px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-outline:hover,
.btn-automation:hover {
    background: #0a0a0a !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* ===== TYPOGRAPHIE DES CARDS ===== */
.spotlight-title,
.why-us-card-content h3,
.portfolio-title,
.testimonial-author-info h4 {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    color: #0a0a0a !important;
    margin-bottom: 0.75rem !important;
    letter-spacing: -0.02em !important;
}

.spotlight-description,
.why-us-card-content p,
.portfolio-description,
.testimonial-content {
    font-size: 1.05rem !important;
    color: #5a5a5a !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
}

/* ===== HERO SECTION ARCHITECTURAL ===== */
.hero-split {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(250, 250, 250, 0.6) 100%),
        radial-gradient(circle at 80% 20%, rgba(184, 150, 46, 0.03) 0%, transparent 50%),
        #ffffff !important;
    padding: 140px 0 100px !important;
    position: relative;
}

.hero-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.01) 50%, transparent 100%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 5.5rem) !important;
    font-weight: 700 !important;
    color: #0a0a0a !important;
    letter-spacing: -0.045em !important;
    line-height: 1.05 !important;
    margin-bottom: 1.5rem !important;
}

.hero-text {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem) !important;
    color: #4a4a4a !important;
    line-height: 1.65 !important;
    max-width: 600px !important;
    font-weight: 400 !important;
}

.hero-badge {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%) !important;
    color: #0a0a0a !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.hero-badge::before {
    content: '●';
    color: #B8962E;
    margin-right: 8px;
    font-size: 0.6rem;
    vertical-align: middle;
}

/* ===== FOOTER MINIMALISTE ===== */
.footer {
    background: #0a0a0a !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer h4 {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 400 !important;
}

.footer a:hover {
    color: #B8962E !important;
}

/* ===== NAVIGATION ULTRA-PROFESSIONNELLE GRANDE AGENCE ===== */
.header {
    background: rgba(10, 10, 10, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

.navbar {
    padding: 1rem 3rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
}

.nav-left {
    display: flex !important;
    align-items: center !important;
}

.logo {
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    font-size: 1.25rem !important;
    transition: all 0.35s ease !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.logo:hover {
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.6)) brightness(1.15);
    transform: translateY(-1px);
}

.logo-text {
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.logo-text span {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    display: inline !important;
}

.logo-text::after {
    display: none !important;
}

.nav-container {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.01em !important;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative;
    padding: 10px 18px !important;
    text-transform: none !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.nav-link::after {
    display: none !important;
}

.nav-link:hover,
.nav-link.active {
    color: #D4AF37 !important;
    background: transparent !important;
}

.nav-right {
    display: flex !important;
    align-items: center !important;
}

.nav-right .btn-primary,
.nav-right .btn-accent {
    background: linear-gradient(135deg, #B8962E 0%, #9A7D26 100%) !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(184, 150, 46, 0.3) !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.nav-right .btn-primary:hover,
.nav-right .btn-accent:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 20px rgba(184, 150, 46, 0.4) !important;
    background: linear-gradient(135deg, #9A7D26 0%, #B8962E 100%) !important;
}

.nav-indicator {
    display: none !important;
}

/* Compensation pour la navbar fixe */
body {
    padding-top: 80px !important;
}

/* ===== MENU HAMBURGER MOBILE ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    background: transparent;
    border: none;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover .bar {
    background-color: #B8962E;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem !important;
    }

    .logo-text {
        font-size: 0.95rem !important;
    }

    .logo-text span:first-child {
        font-size: 1.1rem !important;
    }

    .menu-toggle {
        display: flex !important;
    }

    .nav-container {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        transition: left 0.3s ease !important;
        z-index: 10000 !important;
        padding-top: 80px !important;
        flex: none !important;
        justify-content: flex-start !important;
    }

    .nav-container.active {
        left: 0 !important;
    }

    .nav-menu {
        flex-direction: column !important;
        padding: 2rem 1.5rem !important;
        gap: 0 !important;
        align-items: flex-start !important;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
    }

    .nav-right {
        display: none !important;
    }

    body {
        padding-top: 70px !important;
    }

    /* Empêcher le scroll quand le menu est ouvert */
    body.menu-open {
        overflow: hidden !important;
    }

    /* Overlay pour le fond quand le menu est ouvert */
    .nav-container.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.7);
        z-index: -1;
    }
}

/* ===== PORTFOLIO CARDS ===== */
.portfolio-category {
    background: #f5f5f5 !important;
    color: #B8962E !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* ===== TESTIMONIALS ===== */
.testimonial-rating i {
    color: #B8962E !important;
    font-size: 0.95rem !important;
}

/* ===== FAQ ===== */
/* Note: Ne s'applique PAS à .automatisation-metiers-page qui a ses propres styles */
body:not(.automatisation-metiers-page) .faq-question {
    font-weight: 600 !important;
    color: #0a0a0a !important;
    font-size: 1.1rem !important;
}

body:not(.automatisation-metiers-page) .faq-question:hover {
    color: #B8962E !important;
}

body:not(.automatisation-metiers-page) .faq-answer {
    color: #5a5a5a !important;
    font-size: 1.05rem !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), padding 0.5s ease;
    padding: 0 32px;
}

body:not(.automatisation-metiers-page) .faq-item.active .faq-answer {
    max-height: 600px;
    padding: 20px 32px 32px;
}

/* ===== REMOVE CHILDISH EFFECTS ===== */
/* Note: Ne s'applique PAS à .automatisation-metiers-page qui nécessite des animations pour la FAQ */
body:not(.automatisation-metiers-page) * {
    animation: none !important;
}

/* Remove excessive shadows and effects */
.spotlight-card::before,
.why-us-card-v2::before,
.testimonial-card::before {
    display: none !important;
}

/* ===== MICRO-INTERACTIONS & POLISSAGE FINAL ===== */

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Selection personnalisée */
::selection {
    background: rgba(184, 150, 46, 0.2);
    color: #0a0a0a;
}

::-moz-selection {
    background: rgba(184, 150, 46, 0.2);
    color: #0a0a0a;
}

/* Focus states accessibles et élégants */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #B8962E !important;
    outline-offset: 3px !important;
}

/* Scroll snap pour sections */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ===== SECTIONS CUSTOM AVEC INLINE STYLES ===== */

/* Section Services Noir & Or - version sobre */
.spotlight-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f0f0f 50%, #1a1a1a 100%) !important;
    position: relative;
}

.spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 150, 46, 0.2), transparent);
}

/* Titres avec gradient or sobre */
.spotlight-section h2 span,
.cta-title span,
.hero-title-highlight {
    background: linear-gradient(135deg, #B8962E 0%, #D4AF37 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Icônes couleur or sobre */
.spotlight-icon i,
.fas.fa-check-circle {
    color: #B8962E !important;
}

/* Badge et accents or sobre */
[style*="color: #D4AF37"],
[style*="color:#D4AF37"] {
    color: #B8962E !important;
}

[style*="background: #D4AF37"],
[style*="background:#D4AF37"] {
    background: #B8962E !important;
}

/* Bordures or sobre */
[style*="border: 2px solid rgba(212, 175, 55"],
[style*="border: 1px solid rgba(212, 175, 55"] {
    border-color: rgba(184, 150, 46, 0.25) !important;
}

/* CTA Section - fond noir sobre */
.cta-banner-refactored,
section[aria-label="Appel à l'action"] {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f0f0f 50%, #1a1a1a 100%) !important;
}

/* Network Section - garder blanc avec or sobre */
.network-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
}

/* Suppression des effets enfantins et excessifs */
.spotlight-card,
.why-us-card-v2,
.portfolio-card,
.testimonial-card {
    border-radius: 8px !important;
}

/* Ombres subtiles au lieu des glow excessifs */
.spotlight-icon,
.why-us-icon-v2 {
    box-shadow: none !important;
    filter: none !important;
}

/* Transitions uniformes et sobres */
* {
    transition-duration: 0.25s !important;
}

/* ===== RESPONSIVE REFINEMENTS ===== */
@media (max-width: 768px) {
    section {
        padding: 60px 0 !important;
    }
    
    .spotlight-card,
    .why-us-card-v2,
    .portfolio-card {
        padding: 2rem !important;
    }
    
        .spotlight-grid {
        grid-template-columns: 1fr !important;
    }

    h1, h2, .section-title {
        font-size: clamp(2rem, 5vw, 2.5rem) !important;
    }
}
