/* ═══════════════════════════════════════════════════════════════
   PÉPITE — Design System Global
   Fichier partagé par toutes les pages (inscription, home, etc.)
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    --cream: #F5F0E8;
    --warm-white: #FDFAF5;
    --ink: #1A1612;
    --ink-soft: #3D3530;
    --ink-muted: #7A6E65;
    --gold: #B8924A;
    --gold-2: #D4B07A;
    --gold-pale: #F0E4CC;
    --border: rgba(26, 22, 18, 0.11);
    --border-strong: rgba(26, 22, 18, 0.22);
    --success: #5A7F4C;
    --error: #B85A4A;

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 2px rgba(26, 22, 18, 0.04);
    --shadow-md: 0 2px 8px rgba(26, 22, 18, 0.06);
    --shadow-lg: 0 8px 24px rgba(26, 22, 18, 0.10);

    --t-fast: 150ms ease-out;
    --t-base: 250ms ease-out;
    --t-slow: 400ms ease-out;
}

html, body { height: 100%; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--warm-white);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grain texture (subtil, ne perturbe pas le contenu) */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 1000; opacity: .4;
}

/* ── Typographie ────────────────────────────────────────────── */
h1, h2, h3, h4, .serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
}
h1 { font-size: clamp(40px, 5.5vw, 68px); letter-spacing: -0.015em; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.01em; }
h3 { font-size: clamp(22px, 2.6vw, 28px); }
h4 { font-size: 20px; }
p { font-size: 16px; color: var(--ink-soft); line-height: 1.65; }
a { color: var(--ink); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold); }

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.text-gold { color: var(--gold); }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--gold-pale); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--warm-white);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-base), backdrop-filter var(--t-base);
}
.site-header.scrolled {
    background: rgba(253, 250, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}
.site-header__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px; font-weight: 600;
    color: var(--ink); text-decoration: none;
    display: flex; align-items: center; gap: 8px;
    letter-spacing: 0.01em;
}
.logo:hover { color: var(--ink); }
.logo-gem {
    width: 16px; height: 16px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: gemPulse 3.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes gemPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.88); }
}
.beta-tag {
    font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
    font-weight: 500;
    background: var(--gold); color: var(--ink);
    padding: 3px 8px; border-radius: 3px;
    margin-left: 4px;
}

.nav-links {
    display: flex; align-items: center; gap: 32px;
}
.nav-link {
    font-size: 14px; color: var(--ink-soft);
    letter-spacing: 0.02em; font-weight: 400;
    transition: color var(--t-fast);
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 500; }

.burger {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--ink);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--warm-white);
        border-top: 1px solid var(--border);
        flex-direction: column; padding: 20px; gap: 16px;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .burger { display: block; }
}

/* ═══════════════════════════════════════════════════════════════
   BOUTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; font-weight: 500;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t-base);
    text-decoration: none; white-space: nowrap;
    line-height: 1;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.btn-primary {
    background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--cream);
}

.btn-gold {
    background: var(--gold); color: var(--ink); border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--ink);
}

.btn-ghost {
    background: transparent; color: var(--ink-soft);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    background: var(--cream); color: var(--ink); border-color: var(--ink);
}

.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   INPUTS & FORMULAIRES
   ═══════════════════════════════════════════════════════════════ */
.field {
    display: flex; flex-direction: column; gap: 6px;
}
.field-label {
    font-size: 13px; color: var(--ink-soft); font-weight: 500;
    display: flex; align-items: center; gap: 6px;
}
.field-input, .field-select, .field-textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; padding: 12px 14px;
    background: var(--warm-white);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--ink); width: 100%;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.12);
}
.field-input::placeholder { color: rgba(26, 22, 18, 0.3); }
.field-textarea { min-height: 100px; resize: vertical; font-family: inherit; }

/* Input area "chat" (le textarea + bouton submit utilise sur inscription) */
.input-area {
    background: var(--warm-white);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 8px;
    display: flex; align-items: flex-end; gap: 8px;
    transition: border-color var(--t-base);
}
.input-area:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.12);
}
.input-area textarea, .input-area input {
    flex: 1;
    background: transparent; border: none; outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; color: var(--ink);
    padding: 10px 12px; line-height: 1.5;
    resize: none;
}
.input-area textarea::placeholder, .input-area input::placeholder {
    color: rgba(26, 22, 18, 0.3);
}
.input-area textarea { min-height: 60px; font-family: inherit; }

.input-submit {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: var(--ink); color: var(--cream);
    border: none; border-radius: 8px;
    cursor: pointer; font-size: 18px;
    transition: all var(--t-base);
    flex-shrink: 0;
}
.input-submit:hover:not(:disabled) {
    background: var(--gold); color: var(--ink);
}
.input-submit:disabled { opacity: 0.3; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding: 64px 0 24px;
    margin-top: 80px;
}
.site-footer a {
    color: var(--cream);
    opacity: 0.7;
    transition: opacity var(--t-fast);
    font-size: 14px;
}
.site-footer a:hover { opacity: 1; color: var(--gold-2); }
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}
.site-footer__brand .logo {
    color: var(--cream); font-size: 22px; margin-bottom: 12px;
}
.site-footer__tagline {
    font-size: 14px; color: var(--cream); opacity: 0.6;
    max-width: 260px; line-height: 1.5;
}
.footer-col h5 {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold-2); margin-bottom: 16px; font-weight: 500;
}
.footer-col ul {
    list-style: none;
    display: flex; flex-direction: column; gap: 10px;
}
.site-footer__bottom {
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--cream); opacity: 0.5;
}

@media (max-width: 768px) {
    .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }

.section__header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 720px;
    margin-left: auto; margin-right: auto;
    padding: 0 24px;
}
.section__eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px; font-weight: 500;
}
.section__title { margin-bottom: 16px; }
.section__lead {
    font-size: 18px; color: var(--ink-muted); line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .section__header { margin-bottom: 40px; }
}
