/* MyIT by LuxOps — socle. Zéro requête sortante : pas de police externe,
   la pile système suffit au socle (héritage de la contrainte reine LuxOps). */

:root {
    --navy: #0b1e33;
    --navy-2: #12293f;
    --cyan: #35c3e0;
    --ink: #1a2532;
    --muted: #5c6b7c;
    --paper: #f6f8fa;
    --line: #dde4ea;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

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

/* ─── Châssis ─────────────────────────────────────────────── */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--navy);
    color: #fff;
}

.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }

.brand__by {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--cyan);
    margin-left: 0.35rem;
}

.site-header nav a { margin-left: 1.25rem; font-size: 0.9rem; color: #cfdae5; }
.site-header nav a:hover { color: #fff; }

main { flex: 1; width: min(64rem, 100% - 3rem); margin: 0 auto; padding: 2rem 0; }

.site-footer {
    padding: 1.25rem 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    text-align: center;
}

.site-footer a { color: var(--navy-2); font-weight: 600; }

/* ─── Landing ─────────────────────────────────────────────── */

.hero { max-width: 40rem; margin: 3rem auto; text-align: center; }

.hero__kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--cyan);
    font-weight: 700;
}

.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.2; color: var(--navy); margin: 0.5rem 0 1rem; }

.hero__lead { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.hero__status {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.4rem 1rem;
    border: 1px solid var(--cyan);
    border-radius: 999px;
    color: var(--navy-2);
    font-size: 0.9rem;
    background: #fff;
}

.hero__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.button {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.button:hover { background: var(--navy-2); }

.button--ghost { background: transparent; border: 1px solid var(--navy); color: var(--navy); }
.button--ghost:hover { background: #fff; }

/* ─── Formulaires (login, feedback) ───────────────────────── */

.login, .cost { max-width: 26rem; margin: 2rem auto; }
.cost { max-width: 34rem; }

.login__form label, .feedback__form label { display: block; margin: 0.75rem 0 0.25rem; font-size: 0.9rem; font-weight: 600; }

.login__form input,
.feedback__form input,
.feedback__form select,
.feedback__form textarea {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    background: #fff;
}

.login__form button, .feedback__form button {
    margin-top: 1rem;
    padding: 0.55rem 1.3rem;
    border: 0;
    border-radius: 6px;
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.login__form button:hover, .feedback__form button:hover { background: var(--navy-2); }

/* ─── Flashes ─────────────────────────────────────────────── */

.flash { padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.92rem; }
.flash--success { background: #e5f6ec; color: #14522d; border: 1px solid #bfe6cd; }
.flash--error { background: #fdeaea; color: #7c1d1d; border: 1px solid #f2c4c4; }

/* ─── Coût ────────────────────────────────────────────────── */

.cost__table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.cost__table th, .cost__table td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
.cost__table td { text-align: right; font-variant-numeric: tabular-nums; }
.cost__total th, .cost__total td { font-weight: 700; border-bottom: 0; }
.cost__note { color: var(--muted); font-size: 0.85rem; }

/* ─── Feedback (bouton standard LuxGap) ───────────────────── */

.feedback { width: min(64rem, 100% - 3rem); margin: 0 auto 1.5rem; }
.feedback summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.feedback__form { max-width: 26rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-top: 0.75rem; }
