/* ===========================================
   Chris Conseil - CSS commun (thème principal)
   Partagé par toutes les pages sauf Lucette
   =========================================== */

/* CSS Variables - PALETTE MODERNE & DYNAMIQUE */
:root {
    --color-primary: #0ea5e9;
    --color-primary-dark: #0284c7;
    --color-primary-light: #e0f2fe;
    --color-secondary: #0f172a;
    --color-accent: #f97316;
    --color-success: #22c55e;
    --color-text: #0f172a;
    --color-text-light: #475569;
    --color-bg: #ffffff;
    --color-bg-blue: #f0f9ff;
    --color-bg-dark: #1e293b;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --font-display: 'Manrope', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(14, 165, 233, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 16px rgba(14, 165, 233, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px rgba(14, 165, 233, 0.2), 0 4px 8px rgba(0, 0, 0, 0.12);
    --radius: 14px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Typographie de base */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
}

h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
    letter-spacing: -1px;
}

h3 {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
    font-weight: 700;
}

/* Header */
.header {
    background: var(--color-secondary);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo span {
    color: var(--color-primary);
}

.logo-main {
    font-size: 1.625rem;
}

.logo-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-email {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-email:hover {
    color: white;
}

/* Menu mobile avec checkbox */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin-left: var(--spacing-md);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--color-primary);
}

/* Menu mobile */
@media (max-width: 767px) {
    .menu-icon {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-secondary);
        padding: var(--spacing-xl) var(--spacing-md);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav a {
        margin-left: 0;
        padding: var(--spacing-sm);
        border-radius: var(--radius);
        border-left: 3px solid transparent;
        font-size: 1.0625rem;
    }

    .nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-left-color: var(--color-primary);
    }

    /* Menu ouvert avec :has() */
    .header:has(.menu-toggle:checked) .nav {
        right: 0;
    }

    .header:has(.menu-toggle:checked) .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .header:has(.menu-toggle:checked) .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .header:has(.menu-toggle:checked) .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Hero Section - base */
.hero {
    background: var(--color-secondary);
    color: white;
    padding: var(--spacing-xl) var(--spacing-sm);
}

.hero-content {
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* Composants réutilisables */
.cta-button {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.0625rem;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
    font-family: var(--font-display);
}

.cta-button-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.cta-button-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.5);
}

.cta-button-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--color-bg-dark);
    color: white;
    padding: var(--spacing-lg) var(--spacing-sm);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.footer-contact a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: white;
}

.footer-links {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 var(--spacing-sm);
    opacity: 0.85;
    transition: var(--transition);
    font-weight: 600;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer-copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive commun - Desktop */
@media (min-width: 768px) {
    .logo-tagline {
        font-size: 0.8125rem;
    }

    .menu-icon {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        display: flex;
        flex-direction: row;
        gap: 0;
    }
}

/* Responsive commun - Mobile */
@media (max-width: 768px) {
    .header-email {
        font-size: 0.8rem;
    }
}
