/* ==========================================
   MCREAHUB DESIGN SYSTEM (Apple Style)
   ========================================== */

:root {
    /* Palette Monochrome */
    --bg-body: #ffffff;
    --bg-alt: #f5f5f7; /* Gris clair Apple classique */
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    /* Typographie */
    --text-primary: #1d1d1f; /* Presque noir */
    --text-secondary: #86868b; /* Gris moyen */
    --text-tertiary: #a1a1a6;
    
    /* Accents */
    --accent: #0071e3; /* Bleu Apple */
    --accent-hover: #0077ed;
    --accent-dark: #005bb5;
    
    /* Semantic Colors */
    --success: #34c759;
    --warning: #ff9f0a;
    --danger: #ff3b30;
    
    /* Editions */
    --color-pro: #f56300;
    --color-extras: #af52de;

    /* Spacing & Layout */
    --container-width: 1024px; /* Plus étroit pour la lecture */
    --header-height: 56px;
    
    /* Shapes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    /* Shadows (Soft & Diffused) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-floating: 0 30px 60px rgba(0,0,0,0.12);
    
    /* Transitions */
    --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s var(--ease-apple);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em; /* Tight tracking like SF Pro Display */
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

/* ==========================================
   COMPONENTS: BUTTONS
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease-apple);
    cursor: pointer;
    gap: 8px;
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--text-primary); /* Noir Apple */
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: var(--accent);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-text {
    color: var(--accent);
    background: transparent;
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}

/* ==========================================
   COMPONENTS: NAVBAR
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 64px;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-menu, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
}

/* ==========================================
   COMPONENTS: FOOTER
   ========================================== */

footer {
    padding: 60px 0;
    background-color: var(--bg-alt);
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.footer-brand p {
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-nav a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}