/* ==========================================================================
   DOCILIS — Design System
   Direction : éditorial sophistiqué, indigo profond + or chaud
   Typo : Fraunces (display) + Manrope (texte) via Bunny Fonts (RGPD)
   ========================================================================== */

/* --- Reset moderne -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; line-height: 1.15; }

/* --- Variables ------------------------------------------------------------ */
:root {
    /* Palette — Indigo profond */
    --ink-deep:    #0E0B2A;
    --ink-900:     #1A1438;
    --ink-800:     #241C4A;
    --ink-700:     #2D2456;
    --ink-500:     #4A3D8C;
    --ink-300:     #8B7FD6;
    --ink-100:     #E8E4FB;
    --ink-50:      #F4F2FE;

    /* Palette — Or chaud */
    --gold-600:    #A8893E;
    --gold-500:    #C9A961;
    --gold-400:    #D9BE7D;
    --gold-300:    #E8D4A4;
    --gold-100:    #F5EAD0;

    /* Neutres chaleureux */
    --cream:       #F8F4EC;
    --cream-dark:  #EFEADC;
    --paper:       #FCFAF5;
    --white:       #FFFFFF;

    /* Texte */
    --text:        #1A1438;
    --text-muted:  #5C5478;
    --text-soft:   #8A82A6;
    --text-light:  #F8F4EC;

    /* Système */
    --border:      rgba(26, 20, 56, 0.08);
    --border-strong: rgba(26, 20, 56, 0.16);
    --shadow-sm:   0 1px 2px rgba(14, 11, 42, 0.04), 0 1px 3px rgba(14, 11, 42, 0.06);
    --shadow-md:   0 4px 6px -1px rgba(14, 11, 42, 0.08), 0 2px 4px -2px rgba(14, 11, 42, 0.06);
    --shadow-lg:   0 20px 25px -5px rgba(14, 11, 42, 0.10), 0 8px 10px -6px rgba(14, 11, 42, 0.06);
    --shadow-gold: 0 12px 32px -8px rgba(168, 137, 62, 0.35);

    /* Typo */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Espacements (échelle modulaire) */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.5rem;
    --space-6:  2rem;
    --space-7:  3rem;
    --space-8:  4rem;
    --space-9:  6rem;
    --space-10: 8rem;

    /* Rayons */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 999px;

    /* Transitions */
    --t-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow:   500ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Container */
    --container-max: 1240px;
    --container-narrow: 880px;
}

/* --- Base ----------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    color: var(--text);
    background-color: var(--paper);
    overflow-x: hidden;
}

::selection {
    background-color: var(--gold-300);
    color: var(--ink-900);
}

/* --- Typographie ---------------------------------------------------------- */
.display {
    font-family: var(--font-display);
    font-weight: 400;
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

h1, .h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

h2, .h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variation-settings: 'opsz' 96, 'SOFT' 50;
}

h3, .h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.005em;
}

p { color: inherit; }

.lead {
    font-size: clamp(1.125rem, 1.4vw, 1.35rem);
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 400;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-600);
    font-family: var(--font-body);
}

.eyebrow--light {
    color: var(--gold-400);
}

em.serif-italic, .italic-display {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--gold-600);
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

/* --- Container ----------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.container--narrow {
    max-width: var(--container-narrow);
}

@media (min-width: 768px) {
    .container { padding: 0 var(--space-6); }
}

/* --- Utilitaires ---------------------------------------------------------- */
.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;
}

.text-muted { color: var(--text-muted); }
.text-gold  { color: var(--gold-600); }
.text-ink   { color: var(--ink-900); }

.bg-cream   { background-color: var(--cream); }
.bg-paper   { background-color: var(--paper); }
.bg-ink     { background-color: var(--ink-900); color: var(--text-light); }
.bg-ink-deep { background-color: var(--ink-deep); color: var(--text-light); }

.section {
    padding: var(--space-9) 0;
    position: relative;
}

@media (min-width: 768px) {
    .section { padding: var(--space-10) 0; }
}

.section--tight { padding: var(--space-7) 0; }
