/* ==========================================================================
   GLOBAL.CSS - Design System, Variables & Core Utilities
   Collectif Bouaye Pro
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Charte Graphique Officielle Collectif Bouaye Pro */
    --color-navy-dark: #0C1E34;
    --color-navy-card: #132A47;
    --color-teal-brand: #00808A;
    --color-teal-light: #E0F2F1;
    --color-teal-glow: rgba(0, 128, 138, 0.25);
    
    --color-sage-brand: #5E7E73;
    --color-sage-light: #E8F0EC;
    
    --color-orange-brand: #D97029;
    --color-orange-hover: #C45F1B;
    --color-orange-light: #FDF3EC;
    --color-orange-glow: rgba(217, 112, 41, 0.25);
    
    /* Backgrounds neutres */
    --bg-body: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #F1F5F9;
    
    /* Typographie */
    --color-text-main: #0F172A;
    --color-text-muted: #475569;
    --color-text-light: #64748B;
    --color-text-white: #FFFFFF;
    
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* System Geometry */
    --container-max-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Shadows & Glass */
    --shadow-sm: 0 2px 8px rgba(12, 30, 52, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(12, 30, 52, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(12, 30, 52, 0.14);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset CSS moderne */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: var(--color-sage-brand);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal-brand);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy-dark);
    line-height: 1.25;
    font-weight: 700;
}

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

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* Badges & Section Header System */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: var(--color-teal-light);
    color: var(--color-teal-brand);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

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

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange-brand), var(--color-orange-hover));
    color: var(--color-text-white);
    box-shadow: 0 8px 20px var(--color-orange-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px var(--color-orange-glow);
    background: linear-gradient(135deg, #E87A32, var(--color-orange-brand));
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--color-navy-dark);
    border: 2px solid #E2E8F0;
}

.btn-secondary:hover {
    border-color: var(--color-teal-brand);
    color: var(--color-teal-brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-teal {
    background: linear-gradient(135deg, var(--color-teal-brand), #006067);
    color: var(--color-text-white);
    box-shadow: 0 8px 20px var(--color-teal-glow);
}

.btn-teal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px var(--color-teal-glow);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}
