/* ============================================
   Auto-École de Mougins - ATELIER FRANÇAIS (V5)
   Concept: Editorial / Handcrafted / Anti-AI Slop
   Typography: Instrument Serif + Manrope
   ============================================ */

:root {
    /* Palette - Authentic French Atelier */
    --ink: #1A1A1A;
    --charcoal: #2C2C2C;
    --warm-gray: #6B6B6B;
    --muted: #9A9A9A;
    --off-white: #FAFAF8;
    --paper: #F5F4F0;
    --cream: #EDEAE3;
    --brick-red: #B44D3A;
    --brick-dark: #8A3A2C;

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    /* Spacing */
    --gutter: clamp(20px, 5vw, 80px);
    --section-gap: clamp(80px, 12vh, 160px);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--off-white);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px var(--gutter);
    mix-blend-mode: difference;
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.2;
    color: var(--off-white);
    letter-spacing: 0.02em;
}

.logo-text span {
    font-style: italic;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-right a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--off-white);
    letter-spacing: 0.03em;
}

.nav-cta {
    padding: 10px 20px;
    border: 1px solid var(--off-white);
}

/* ============================================
   Hero Section - Asymmetric Editorial
   ============================================ */
.hero-editorial {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--ink);
    color: var(--off-white);
}

.hero-left {
    padding: calc(120px + 48px) var(--gutter) var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 32px;
}

.hero-title em {
    font-style: italic;
    color: var(--brick-red);
}

.hero-body {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 400px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
}

.stat-number small {
    font-size: 1.5rem;
    opacity: 0.7;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-top: 8px;
}

.btn-editorial {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 16px 32px;
    background: var(--off-white);
    color: var(--ink);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-editorial:hover {
    background: var(--brick-red);
    color: var(--off-white);
}

/* Hero Right - Image */
.hero-right {
    position: relative;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    inset: 48px;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* ============================================
   Marquee Strip
   ============================================ */
.marquee-strip {
    background: var(--brick-red);
    color: var(--off-white);
    padding: 16px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    letter-spacing: 0.02em;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Section Styles
   ============================================ */
.section-formations,
.section-methode,
.section-contact {
    padding: var(--section-gap) var(--gutter);
}

.section-header-editorial {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 64px;
}

.section-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--muted);
}

.section-title-editorial {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

/* ============================================
   Formations Grid
   ============================================ */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.formation-card {
    position: relative;
    padding: 40px;
    background: var(--paper);
    border: 1px solid var(--cream);
    transition: all 0.4s ease;
}

.formation-card:hover {
    background: var(--off-white);
    border-color: var(--ink);
}

.formation-card.featured {
    background: var(--ink);
    color: var(--off-white);
    border-color: var(--ink);
}

.formation-card.featured .card-price {
    color: var(--muted);
}

.formation-card.featured .card-link {
    color: var(--brick-red);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 40px;
    background: var(--brick-red);
    color: var(--off-white);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
}

.card-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--warm-gray);
    margin-bottom: 24px;
    line-height: 1.6;
}

.formation-card.featured .card-desc {
    color: var(--muted);
}

.card-price {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.card-price strong {
    font-size: 1.5rem;
    color: var(--ink);
    font-weight: 600;
}

.formation-card.featured .card-price strong {
    color: var(--off-white);
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brick-red);
    transition: letter-spacing 0.3s ease;
}

.card-link:hover {
    letter-spacing: 0.05em;
}

/* ============================================
   Méthode Section
   ============================================ */
.section-methode {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    background: var(--paper);
}

.methode-grid {
    display: grid;
    gap: 40px;
}

.methode-item {
    padding-left: 48px;
    position: relative;
}

.methode-icon {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--brick-red);
}

.methode-item h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.methode-item p {
    font-size: 0.95rem;
    color: var(--warm-gray);
}

.methode-visual {
    display: flex;
    align-items: center;
}

.testimonial-featured {
    padding: 40px;
    border-left: 3px solid var(--brick-red);
    background: var(--off-white);
}

.testimonial-featured p {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 24px;
}

.testimonial-featured cite {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: normal;
    color: var(--muted);
}

/* ============================================
   Contact Section
   ============================================ */
.section-contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-address {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-address a {
    color: var(--brick-red);
}

.contact-hours {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warm-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--cream);
    background: var(--paper);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ink);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--ink);
    color: var(--off-white);
    padding: 64px var(--gutter);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    display: block;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--muted);
}

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

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

.footer-nav a:hover {
    color: var(--off-white);
}

.footer-legal {
    width: 100%;
    font-size: 0.75rem;
    color: var(--muted);
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Version Switcher
   ============================================ */
.version-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--off-white);
    padding: 12px 16px;
    border: 1px solid var(--cream);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sw-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.sw-buttons {
    display: flex;
    gap: 4px;
}

.sw-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid transparent;
}

.sw-btn:hover {
    border-color: var(--ink);
}

.sw-btn.active {
    background: var(--ink);
    color: var(--off-white);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .hero-editorial {
        grid-template-columns: 1fr;
    }

    .hero-right {
        display: none;
    }

    .formations-grid {
        grid-template-columns: 1fr;
    }

    .section-methode {
        grid-template-columns: 1fr;
    }

    .section-contact {
        grid-template-columns: 1fr;
    }

    .nav-right {
        display: none;
    }
}