/* ============================================
   YDF — main.css
   Design system, reset, typographie (mobile-first)
   ============================================ */


/* --------------------------------------------
   1. VARIABLES (Design Tokens)
   -------------------------------------------- */
:root {
    /* === Backgrounds === */
    --bg-canvas:        #FAFAF7;
    --bg-base:          #FFFFFF;
    --bg-warm-orange:   #FFF7ED;
    --bg-warm-sky:      #F0F9FF;
    --bg-warm-purple:   #FAF5FF;
    --bg-night:         #0F0F0E;

    /* === Texte === */
    --text-primary:    #0A0A0A;
    --text-secondary:  #525252;
    --text-tertiary:   #8A8A8A;
    --text-on-dark:    #FAFAF7;
    --text-on-dark-2:  #A3A3A3;

    /* === Accent par défaut (Home = orange) === */
    --accent:          #F97316;
    --accent-strong:   #C2410C;
    --accent-soft:     #FFF7ED;

    /* === Couleurs services (réutilisables) === */
    --orange-500: #F97316;
    --orange-700: #C2410C;
    --orange-50:  #FFF7ED;
    --sky-500:    #0EA5E9;
    --sky-700:    #0369A1;
    --sky-50:     #F0F9FF;
    --purple-500: #A855F7;
    --purple-700: #7E22CE;
    --purple-50:  #FAF5FF;

    /* === Bordures === */
    --border-subtle:  #EAEAEA;
    --border-default: #D4D4D4;
    --border-dark:    #262626;

    /* === Couleurs sectorielles (Packs por sector) === */
    --color-restaurador-500: #F97316;
    --color-restaurador-700: #C2410C;
    --color-restaurador-100: #FFEDD5;
    --color-belleza-500:     #A855F7;
    --color-belleza-700:     #7E22CE;
    --color-belleza-100:     #F3E8FF;
    --color-salud-500:       #0D9488;
    --color-salud-700:       #115E59;
    --color-salud-100:       #CCFBF1;
    --color-inmo-500:        #D97706;
    --color-inmo-700:        #92400E;
    --color-inmo-100:        #FEF3C7;

    /* === Polices === */
    --font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-serif:   'Instrument Serif', 'Times New Roman', serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;

    /* === Tailles texte === */
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;
    --text-6xl:  3.75rem;
    --text-7xl:  4.5rem;

    /* === Espacements === */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* === Conteneur === */
    --container-max:     1200px;
    --container-padding: 1.25rem;

    /* === Rayons === */
    --radius-sm:   0.375rem;
    --radius-md:   0.5rem;
    --radius-lg:   0.75rem;
    --radius-xl:   1rem;
    --radius-2xl:  1.5rem;
    --radius-full: 9999px;

    /* === Ombres === */
    --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md:   0 4px 8px rgba(15, 23, 42, 0.06);
    --shadow-lg:   0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-xl:   0 20px 40px rgba(15, 23, 42, 0.10);
    --shadow-glow: 0 10px 40px rgba(249, 115, 22, 0.18);

    /* === Transitions === */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* === Z-index === */
    --z-nav:   50;
    --z-float: 60;
    --z-modal: 100;
}

/* === Thèmes par page (override de --accent) === */
.theme-orange {
    --accent:        #F97316;
    --accent-strong: #C2410C;
    --accent-soft:   #FFF7ED;
}

.theme-sky {
    --accent:        #0EA5E9;
    --accent-strong: #0369A1;
    --accent-soft:   #F0F9FF;
}

.theme-purple {
    --accent:        #A855F7;
    --accent-strong: #7E22CE;
    --accent-soft:   #FAF5FF;
}

.theme-emerald {
    --accent:        #10B981;
    --accent-strong: #047857;
    --accent-soft:   #ECFDF5;
}

.theme-indigo {
    --accent:        #4F46E5;
    --accent-strong: #3730A3;
    --accent-soft:   #EEF2FF;
}


/* --------------------------------------------
   2. RESET MODERNE
   -------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

input, select, textarea {
    font: inherit;
    color: inherit;
}

ul, ol {
    list-style: none;
}

::selection {
    background: var(--accent);
    color: white;
}

/* Focus rings — accessibilité (visible mais discret) */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Touch target minimum 44px — appliqué aux boutons et liens nav */
.btn,
.nav-menu a,
.nav-burger,
.whatsapp-float,
.showcase-3d {
    min-height: 44px;
}

/* Numéros tabulaires (prix, stats — pas de saut de chiffres) */
.price,
.stat-value,
.showcase-price {
    font-variant-numeric: tabular-nums;
}


/* --------------------------------------------
   3. TYPOGRAPHIE
   -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  }
h5 { font-size: var(--text-lg);  }
h6 { font-size: var(--text-base); }

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

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Italique éditorial — Instrument Serif */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Eyebrow mono — "01 / SERVICIO" */
.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.eyebrow-accent {
    color: var(--accent-strong);
}


/* --------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.section    { padding-block: var(--space-16); }
.section-lg { padding-block: var(--space-20); }
.section-bg-canvas { background: var(--bg-canvas); }
.section-bg-base   { background: var(--bg-base); }
.section-bg-night  { background: var(--bg-night); color: var(--text-on-dark); }

.text-center  { text-align: center; }
.text-balance { text-wrap: balance; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* --------------------------------------------
   5. BREAKPOINTS (mobile-first)
   -------------------------------------------- */
@media (min-width: 768px) {
    :root { --container-padding: 2rem; }

    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }
    h3 { font-size: var(--text-3xl); }

    .section    { padding-block: var(--space-20); }
    .section-lg { padding-block: var(--space-24); }
}

@media (min-width: 1024px) {
    h1 { font-size: var(--text-6xl); }
    h2 { font-size: var(--text-5xl); }

    .section-lg { padding-block: var(--space-32); }
}

@media (min-width: 1280px) {
    h1 { font-size: var(--text-7xl); }
}
