/* Feuille de style unique, sans étape de build. Mobile d'abord. */

:root {
    --ink: #14202e;
    --muted: #586476;
    --line: #e1e6ec;
    --bg: #f5f7fa;
    --card: #ffffff;
    --accent: #0b5cad;
    --accent-dark: #084a8c;
    --accent-soft: #e6f0fa;
    --ok: #1e7a45;
    --warn: #a15c00;
    --danger: #b3261e;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(20, 32, 46, .06), 0 4px 16px rgba(20, 32, 46, .05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 580px; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* En-tête */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 800; font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; margin: 0; }
.logo span { color: var(--accent); }

.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button { display: inline-flex; flex-direction: column; gap: 4px; padding: 10px 6px; cursor: pointer; }
.menu-button span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 4px; }
.menu-toggle:checked ~ .nav { display: flex; }
.nav > a, .nav > form, .nav > details > summary { padding: 8px 4px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--accent); }
.nav form { margin: 0; }
.nav .btn { color: #fff; text-align: center; }

.dropdown > summary { cursor: pointer; list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary::after { content: " ▾"; font-size: .8em; color: var(--muted); }
.dropdown-panel { display: grid; gap: 12px; padding: 8px 4px 12px; }
.dropdown-panel a { display: block; padding: 3px 0; font-size: .95rem; }
.dropdown-title { margin: 0 0 2px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Pied de page */
.site-footer { margin-top: 56px; padding: 32px 0 40px; border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; gap: 20px; margin-bottom: 16px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 4px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-title { margin: 0 0 4px; font-weight: 700; color: var(--ink); }

main { padding: 24px 0; }

h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: 32px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }

.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

/* Boutons et formulaires */
.btn, button.btn {
    display: inline-block; padding: 12px 20px; border-radius: 10px; border: 0;
    background: var(--accent); color: #fff; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-small { padding: 8px 14px; font-size: .95rem; }
.btn-large { padding: 15px 26px; font-size: 1.08rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-light { background: var(--card); color: var(--accent); border: 1px solid var(--line); }
.btn-light:hover { background: var(--bg); color: var(--accent-dark); }
.btn-danger { background: var(--danger); }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
.nav .link-button { color: var(--ink); text-decoration: none; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 4px; }
.field input[type=email], .field input[type=password], .field input[type=text], .field input[type=number], .field select, .field textarea {
    width: 100%; padding: 10px 12px; font-size: 1rem; font-family: inherit; border: 1px solid #c7ced6; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 160px; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field label.inline, .checks label, .radios label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.radios { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.hint { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.error { color: var(--danger); font-size: .9rem; margin-top: 4px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.hp { position: absolute; left: -10000px; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; background: #e8f1fb; border: 1px solid #c4dbf3; }
.alert-ok { background: #e7f5ec; border-color: #bfe3cc; }
.alert-warn { background: #fff4e0; border-color: #f2d6a3; }

/* Fenêtre de connexion */
.dialog { border: 0; border-radius: 16px; padding: 24px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dialog::backdrop { background: rgba(20, 32, 46, .45); }
.dialog h2 { margin-top: 0; }
.dialog-close { position: absolute; top: 8px; right: 10px; margin: 0; }
.dialog-close button { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }

/* Connexion OAuth */
.social { display: grid; gap: 8px; margin-bottom: 8px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); font-weight: 500; }
.btn-social:hover { color: var(--ink); }
.provider-logo { width: 20px; height: 20px; flex: none; }
.separator { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; margin: 14px 0; }
.separator::before, .separator::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Cartes d'avis */
.cards { display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; color: var(--muted); margin: 4px 0 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef2f6; color: var(--muted); }
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge-ok { background: #e3f3e9; color: var(--ok); }
.badge-warn { background: #fff0d9; color: var(--warn); }
.badge-danger { background: #fde8e7; color: var(--danger); }

/* Fiche d'avis */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0; }
.facts div { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; box-shadow: var(--shadow); }
.box h2 { margin-top: 0; }
.checklist { padding-left: 1.2em; margin: 8px 0; }
.lots { list-style: none; padding: 0; margin: 0; }
.lots li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.lots li:last-child { border-bottom: 0; }
.lots .mine { font-weight: 600; }
.disclaimer { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

/* Accueil */
.hero { padding: 28px 0 12px; }
.hero h1 { font-size: 2rem; max-width: 18em; }
.hero .lead { max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0 8px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.pulse { display: grid; gap: 12px; margin: 24px 0; }
.pulse-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.pulse-item strong { display: block; font-size: 2rem; line-height: 1.1; color: var(--accent-dark); }
.section { padding: 8px 0; }
.section-intro { max-width: 40em; }
.features { display: grid; gap: 14px; margin: 16px 0; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.feature .icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; margin-bottom: 8px; }
.steps { display: grid; gap: 14px; counter-reset: step; margin: 16px 0; padding: 0; list-style: none; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 60px; position: relative; box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.trade-tile { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.trade-tile:hover { border-color: var(--accent); color: var(--accent-dark); }
.trade-tile .count { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
.cta-band { background: var(--ink); color: #fff; border-radius: 16px; padding: 28px 22px; margin: 36px 0 8px; }
.cta-band h2 { margin-top: 0; color: #fff; }
.cta-band p { color: #c9d3de; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.links { columns: 2; padding-left: 1.2em; }

/* Espace client */
.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.criteria-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 8px; }
.criteria-summary > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.criteria-summary > summary::-webkit-details-marker { display: none; }
.criteria-summary[open] > summary { margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 20px 0 16px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a.active, .tabs a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }
.digest-list { display: grid; gap: 8px; }
.digest-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.digest-row:hover { border-color: var(--accent); }

/* Administration */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat strong { display: block; font-size: 1.6rem; }
table.table { width: 100%; border-collapse: collapse; background: var(--card); }
table.table th, table.table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: top; }
.table-wrap { overflow-x: auto; }
.bar { height: 8px; background: var(--accent); border-radius: 4px; min-width: 2px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.pagination { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; }

@media (min-width: 860px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.7rem; }
    .menu-button { display: none; }
    .nav { display: flex; width: auto; flex-direction: row; align-items: center; gap: 18px; padding: 0; }
    .nav > a, .nav > form, .nav > details > summary { padding: 0; }
    .nav > a.btn { padding: 8px 14px; }
    .dropdown { position: relative; }
    .dropdown-panel { position: absolute; top: calc(100% + 12px); left: -20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(20, 32, 46, .12); padding: 18px 22px; grid-template-columns: repeat(3, minmax(190px, 1fr)); width: max-content; }
    .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
    .facts { grid-template-columns: 1fr 1fr; }
    .facts div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
    .facts div:nth-child(odd) { border-right: 1px solid var(--line); }
    .pulse { grid-template-columns: repeat(3, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .links { columns: 3; }
    .cta-band { padding: 36px 40px; }
}
