/* ============================================================
   INFO-DEVIS.FR — Design System
   Variables, Reset, Base
   ============================================================ */

:root {
    /* Palette principale */
    --navy:        #0f1e35;
    --navy-mid:    #1a3a5c;
    --blue:        #2563a8;
    --blue-light:  #3b82c4;
    --teal:        #0d9488;
    --teal-light:  #14b8a6;
    --amber:       #b45309;
    --amber-light: #d97706;
    --amber-pale:  #fef3c7;

    /* Neutres */
    --white:       #ffffff;
    --gray-50:     #f8fafc;
    --gray-100:    #f1f5f9;
    --gray-200:    #e2e8f0;
    --gray-300:    #cbd5e1;
    --gray-400:    #94a3b8;
    --gray-500:    #64748b;
    --gray-600:    #475569;
    --gray-700:    #334155;
    --gray-800:    #1e293b;
    --gray-900:    #0f172a;

    /* Sémantique */
    --success:     #059669;
    --error:       #dc2626;
    --warning:     #d97706;

    /* Typographie */
    --font:        'Inter', system-ui, -apple-system, sans-serif;
    --fs-xs:       0.75rem;
    --fs-sm:       0.875rem;
    --fs-base:     1rem;
    --fs-lg:       1.125rem;
    --fs-xl:       1.25rem;
    --fs-2xl:      1.5rem;
    --fs-3xl:      1.875rem;
    --fs-4xl:      2.25rem;
    --fs-5xl:      3rem;
    --fs-6xl:      3.75rem;

    /* Rayons */
    --r-sm:  6px;
    --r-md:  12px;
    --r-lg:  18px;
    --r-xl:  24px;
    --r-2xl: 32px;
    --r-full: 9999px;

    /* Ombres */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 150ms;
    --t-mid:  250ms;
    --t-slow: 400ms;

    /* Layout */
    --max-w: 1240px;
    --header-h: 72px;
    --pad: 24px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---- Utilitaires ---- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.section {
    padding: 96px 0;
}

.section-sm {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 168, 0.08);
    color: var(--blue);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--r-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---- Boutons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: all var(--t-mid) var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber) 0%, var(--amber-light) 100%);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(180, 83, 9, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 83, 9, 0.4);
    color: var(--white);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(37, 99, 168, 0.3);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 168, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}
.btn-ghost:hover { color: var(--blue); background: var(--gray-100); }

.btn-lg { padding: 15px 30px; font-size: var(--fs-base); border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: var(--fs-xs); }

/* ---- Formulaires ---- */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 7px;
    font-size: var(--fs-sm);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--r-md);
    font-size: var(--fs-base);
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.12);
}
.form-input::placeholder { color: var(--gray-400); }
textarea.form-input { resize: vertical; min-height: 120px; }

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-500);
    font-size: var(--fs-sm);
}
.form-footer a { color: var(--blue); font-weight: 600; cursor: pointer; }
.form-footer a:hover { text-decoration: underline; }
