/* ══════════════════════════════════════════════════════════════
   RADAR - styles propres aux fiches de veille.
   Complete site.css, ne le remplace pas. Charge uniquement sur
   les pages /radar/, pour ne pas alourdir le reste du site.
   ══════════════════════════════════════════════════════════════ */

/* ── Bandeau d'identite du texte ──────────────────────────────── */
.fiche-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 2rem 0 2.5rem;
    overflow: hidden;
}
.fiche-meta > div {
    background: var(--surface);
    padding: 0.85rem 1rem;
}
.fiche-meta dt {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.fiche-meta dd {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ── Perimetre : lignes de puces ──────────────────────────────── */
.puces-bloc {
    margin: 1.5rem 0 2rem;
}
.puces-ligne {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}
.puces-ligne:last-child { border-bottom: 0; }

.puces-titre {
    flex: 0 0 150px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.puce {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    border-radius: 2px;
    font-size: 0.82rem;
    color: #8a5e07;
    white-space: nowrap;
}

/* ── Lien vers la source officielle ───────────────────────────── */
.lien-officiel {
    margin: 2.5rem 0 1.5rem;
    padding: 1.1rem 1.3rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
}
.lien-officiel a {
    font-weight: 600;
    font-size: 1.02rem;
}
.lien-officiel .meta {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ── Fil des textes ───────────────────────────────────────────── */
.fiches-list { list-style: none; padding: 0; margin: 2rem 0; }
.fiches-list li { margin: 0; border-bottom: 1px solid var(--border); }
.fiches-list li:first-child { border-top: 1px solid var(--border); }

.fiches-list a {
    display: grid;
    grid-template-columns: 145px 1fr auto;
    gap: 1rem;
    align-items: baseline;
    padding: 0.95rem 0.4rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.fiches-list a:hover { background: var(--surface); }

.post-ref {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--gold);
    white-space: nowrap;
}
.post-titre { color: var(--text-primary); line-height: 1.45; }
.fiches-list a:hover .post-titre { color: var(--gold); }
.post-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .fiches-list a { grid-template-columns: 1fr; gap: 0.25rem; padding: 1rem 0.3rem; }
    .puces-titre { flex: 0 0 100%; }
}

/* ══════════════════════════════════════════════════════════════
   PAGE OFFRE (/radar/)
   ══════════════════════════════════════════════════════════════ */

.head-actions { margin-top: 34px; }
.head-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 30px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.head-proof span::before { content: '— '; color: var(--gold); }

/* ── Grille tarifaire ─────────────────────────────────────────── */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 30px 0 22px;
    align-items: stretch;
}
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 30px 30px;
}
.plan.featured {
    background: var(--dark);
    border-color: var(--dark);
}
.plan .badge {
    position: absolute;
    top: -11px;
    left: 30px;
    background: var(--gold);
    color: var(--dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 2px;
}
.plan .tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.plan h3 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.plan .pour { font-size: 14px; margin-bottom: 22px; min-height: 3.2em; }
.plan .prix {
    font-family: var(--serif);
    font-size: 50px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.plan .prix small {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0;
    color: var(--text-muted);
    margin-left: 4px;
}
.plan .setup {
    font-size: 13px;
    color: var(--text-muted);
    margin: 10px 0 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.plan ul { list-style: none; margin: 0 0 28px; font-size: 14px; flex: 1; }
.plan li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.plan li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 9px;
    height: 5px;
    border-left: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(-45deg);
}
.plan .btn { text-align: center; }
.plan.featured h3,
.plan.featured .prix { color: #fff; }
.plan.featured .pour,
.plan.featured li { color: rgba(255,255,255,0.68); }
.plan.featured li strong { color: #fff; }
.plan.featured .setup { color: rgba(255,255,255,0.45); border-bottom-color: rgba(255,255,255,0.1); }
.plan.featured .prix small { color: rgba(255,255,255,0.45); }

.conditions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 38px;
}
.conditions span::before { content: '·'; color: var(--gold); margin-right: 8px; font-weight: 700; }

/* ── Options et prestations a l'unite ─────────────────────────── */
.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 22px 0 10px;
}
.options > div { background: var(--surface); padding: 22px 24px; }
.options .libelle { font-weight: 600; color: var(--text-primary); font-size: 15px; margin-bottom: 4px; }
.options .montant {
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: -0.02em;
    color: var(--gold);
    margin-bottom: 6px;
}
.options p { font-size: 13.5px; margin: 0; }

/* ── Comparatif ───────────────────────────────────────────────── */
.compare thead th:nth-child(3) { background: var(--dark); color: var(--gold-light); }
.compare td:nth-child(3) { color: var(--text-primary); font-weight: 500; }
.compare tbody th { width: 30%; }

/* ── Fiche exemple : ligne mise en avant ──────────────────────── */
.fiche-exemple tr.focus th,
.fiche-exemple tr.focus td { background: var(--gold-bg); }
.fiche-exemple .redac {
    display: block;
    margin-top: 8px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px dashed var(--gold-border);
    border-radius: 2px;
    font-size: 13.5px;
    color: var(--text-primary);
}
.fiche-exemple .redac del { color: var(--text-muted); }
.fiche-exemple .redac ins { text-decoration: none; background: rgba(201,137,10,0.16); padding: 0 2px; }

/* ── Formulaire lettre (sur fond sombre) ──────────────────────── */
.lettre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    text-align: left;
}
.lettre-grid h2 { margin: 0 0 14px; }
.lettre-grid p { margin: 0 0 16px; }
.champ { margin-bottom: 14px; }
.champ label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}
.champ input,
.champ select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}
.champ select option { color: var(--dark); }

@media (max-width: 900px) {
    .lettre-grid { grid-template-columns: 1fr; gap: 28px; }
    .plan .pour { min-height: 0; }
    .head-actions .btn { display: block; text-align: center; }
}
