/* ===================================================================
   Recruter.io — Design system
   =================================================================== */
:root {
    /* Charte : blanc + bleu en priorité */
    --indigo:      #2563eb;  /* bleu principal */
    --indigo-dark: #1d4ed8;  /* bleu foncé (survol) */
    --cyan:        #3b82f6;  /* bleu clair (accent / dégradés) */
    --ink:         #0f213f;  /* bleu nuit (header sombre, footer) */
    --ink-2:       #1e3a5f;
    --slate:       #475569;
    --slate-2:     #64748b;
    --line:        #e2e8f0;
    --bg:          #f7faff;  /* fond très légèrement bleuté */
    --bg-2:        #eff6ff;  /* bleu très clair (tuiles, badges) */
    --white:       #ffffff;
    --amber:       #f59e0b;
    --gold:        #d97706;
    --green:       #16a34a;
    --red:         #dc2626;
    --radius:      14px;
    --radius-sm:   9px;
    --shadow:      0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
    --shadow-lg:   0 20px 50px rgba(15,23,42,.14);
    --maxw:        1180px;
    --font:        'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --display:     'Sora', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink-2);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .72em 1.3em; border-radius: 10px; font-weight: 600; font-size: .96rem;
    border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--indigo-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-light { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.25); }
.btn-sm { padding: .5em .9em; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--indigo), var(--cyan)); color: #fff; font-size: 1.1rem;
}
.brand-dot { color: var(--indigo); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--slate); font-weight: 500; padding: 8px 12px; border-radius: 8px; font-size: .94rem; }
.main-nav a:hover { background: var(--bg-2); color: var(--indigo); text-decoration: none; }
.main-nav a.is-active { color: var(--indigo); background: var(--bg-2); }
.header-cta { }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(1100px 500px at 80% -10%, #dbeafe 0%, transparent 60%),
                radial-gradient(900px 500px at 0% 0%, #e0f2fe 0%, transparent 55%),
                var(--white);
    border-bottom: 1px solid var(--line);
    padding: 76px 0 64px;
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); letter-spacing: -.02em; max-width: 16ch; }
.hero .lead { font-size: 1.18rem; color: var(--slate); max-width: 56ch; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-search { margin-top: 30px; max-width: 620px; display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--shadow); }
.hero-search input { flex: 1; border: 0; padding: 12px 14px; font-size: 1rem; outline: none; background: transparent; }
.hero-stats { display: flex; gap: 34px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: var(--indigo); }
.hero-stats .lbl { color: var(--slate-2); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.9rem; margin: 0; }
.section-head p { color: var(--slate); margin: 6px 0 0; }
.eyebrow { color: var(--indigo); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; transition: .18s; position: relative; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #cdd5e3; }
.card-logo {
    width: 52px; height: 52px; border-radius: 12px; background: var(--bg-2); color: var(--indigo);
    display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; font-family: var(--display);
    overflow: hidden; margin-bottom: 14px;
}
.card-logo img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { font-size: 1.15rem; margin: 0 0 6px; }
.card .muted { color: var(--slate-2); font-size: .9rem; }
.card .card-desc { color: var(--slate); font-size: .94rem; margin: 8px 0 14px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.card-tag { font-size: .8rem; color: var(--slate-2); background: var(--bg); border: 1px solid var(--line); padding: 3px 9px; border-radius: 20px; }

/* Catégorie tuiles */
.cat-tile {
    display: flex; gap: 14px; align-items: center; padding: 18px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); transition: .18s;
}
.cat-tile:hover { border-color: var(--indigo); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.cat-tile .ico { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--bg-2); border-radius: 12px; }
.cat-tile h3 { font-size: 1.02rem; margin: 0; color: var(--ink); }
.cat-tile p { margin: 2px 0 0; font-size: .85rem; color: var(--slate-2); }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .03em; }
.badge-grey { background: #f1f5f9; color: var(--slate); }
.badge-blue { background: #dbeafe; color: var(--indigo-dark); }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-gold { background: linear-gradient(135deg,#fde68a,#fbbf24); color: #7c2d12; }
.badge-featured { position: absolute; top: 14px; right: 14px; }

/* ---------- Étoiles ---------- */
.stars { color: var(--amber); letter-spacing: 1px; font-size: .95rem; }
.stars .star-empty { color: #cbd5e1; }

/* ---------- Filtres ---------- */
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 86px; }
.filters h3 { font-size: 1rem; }
.filters .filter-group { margin-bottom: 18px; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--slate); padding: 4px 0; cursor: pointer; }
.filters select, .filters input[type=text] { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.toolbar .count { color: var(--slate-2); font-size: .92rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--slate); background: #fff; }
.pagination a:hover { border-color: var(--indigo); text-decoration: none; }
.pagination a.is-active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ---------- Fiche détail ---------- */
.detail-head { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.detail-head .card-logo { width: 76px; height: 76px; font-size: 2rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 34px; margin-top: 36px; align-items: start; }
.detail-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 86px; }
.detail-aside .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.detail-aside .row:last-child { border-bottom: 0; }
.detail-aside .row span:first-child { color: var(--slate-2); }
.prose h2 { font-size: 1.4rem; margin-top: 32px; }
.prose h3 { font-size: 1.15rem; margin-top: 24px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.pro-con { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.pro-con .box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pro-con .box.pros { background: #f0fdf4; border-color: #bbf7d0; }
.pro-con .box.cons { background: #fef2f2; border-color: #fecaca; }
.pro-con h4 { margin-top: 0; }

/* ---------- Bandeau newsletter ---------- */
.newsletter-band { background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; padding: 50px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.newsletter-band h2 { color: #fff; font-size: 1.6rem; margin: 0; }
.newsletter-band p { color: #cbd5e1; margin: 6px 0 0; }
.newsletter-form { display: flex; gap: 8px; background: #fff; padding: 7px; border-radius: 12px; min-width: 340px; }
.newsletter-form input { flex: 1; border: 0; padding: 11px 13px; font: inherit; outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid .brand { color: #fff; }
.footer-grid p { font-size: .9rem; max-width: 40ch; }
.footer-grid h4 { color: #fff; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 7px 0; }
.footer-grid a { color: #cbd5e1; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.visitor-count { color: #94a3b8 !important; font-size: .82rem !important; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid #1e293b; font-size: .85rem; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: #94a3b8; }

/* ---------- Flash ---------- */
.flash { padding: 13px 18px; border-radius: 10px; margin: 20px 0; font-weight: 500; }
.flash-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ---------- Bloc CTA / valeurs ---------- */
.feature { text-align: left; }
.feature .ico { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--bg-2); border-radius: 14px; margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--slate); font-size: .94rem; }

.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 48px 0; }
.page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-head p { color: var(--slate); font-size: 1.08rem; max-width: 62ch; margin: 8px 0 0; }
.breadcrumb { font-size: .85rem; color: var(--slate-2); margin-bottom: 14px; }
.breadcrumb a { color: var(--slate-2); }

/* ---------- Tools (calculateurs) ---------- */
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font: inherit; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.result-box { background: var(--bg-2); border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.result-box .big { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--indigo); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .layout { grid-template-columns: 1fr; }
    .filters { position: static; }
}
/* ===================================================================
   Espace admin
   =================================================================== */
.admin-body { background: #f1f5f9; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--ink); color: #cbd5e1; padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { color: #cbd5e1; padding: 10px 12px; border-radius: 9px; font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.admin-nav a:hover { background: #1e293b; color: #fff; text-decoration: none; }
.admin-nav a.is-active { background: var(--indigo); color: #fff; }
.admin-nav .pill { margin-left: auto; background: var(--red); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 10px; }
.admin-sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid #1e293b; display: flex; flex-direction: column; gap: 8px; }
.admin-sidebar-foot a { color: #94a3b8; font-size: .88rem; }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 30px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 1.3rem; margin: 0; }
.admin-content { padding: 30px; max-width: 1100px; width: 100%; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .v { font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.stat .l { color: var(--slate-2); font-size: .85rem; }
.stat .v.accent { color: var(--indigo); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.panel h2 { font-size: 1.1rem; margin-top: 0; }

table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { color: var(--slate-2); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
table.data tr:hover td { background: #f8fafc; }
table.data .actions { display: flex; gap: 6px; justify-content: flex-end; }
.chip { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.chip.on { background: #dcfce7; color: #166534; }
.chip.off { background: #fee2e2; color: #991b1b; }
.chip.actif { background: #dcfce7; color: #166534; }
.chip.prospect { background: #e0e7ff; color: #3730a3; }
.chip.impaye { background: #fee2e2; color: #991b1b; }
.chip.expire { background: #fef3c7; color: #92400e; }
.chip.gratuit { background: #f1f5f9; color: #475569; }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.fieldset-title { font-family: var(--display); font-weight: 700; color: var(--ink); margin: 26px 0 6px; padding-top: 18px; border-top: 1px dashed var(--line); }
.toolbar-admin { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; flex-direction: column; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff;
        flex-direction: column; padding: 14px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .header-cta { display: none; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .newsletter-form { min-width: 0; width: 100%; }
    .pro-con { grid-template-columns: 1fr; }
}
