/* assets/style.css - V2.1 */
:root {
    --bg-body: #09090b;       /* Noir profond */
    --bg-card: #18181b;       /* Gris Zinc */
    --text-main: #e4e4e7;
    --text-muted: #a1a1aa;
    --roast-red: #ef4444;     /* Rouge vif */
    --neon-green: #22c55e;
    --neon-orange: #f97316;
    --border: #27272a;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 0;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER / NAV --- */
nav {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    padding: 15px 0;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }

.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-text { font-weight: 900; font-size: 1.2rem; letter-spacing: -0.5px; }
.brand-text .highlight { color: var(--roast-red); }

.nav-links { display: flex; gap: 20px; align-items: center; font-size: 0.9rem; font-weight: 600; }
.btn-nav {
    background: var(--text-main); color: var(--bg-body);
    padding: 6px 12px; border-radius: 4px; font-weight: 800;
}

/* --- HERO SECTION --- */
.tf-header { text-align: center; padding: 60px 0 40px; }
.header-badge {
    display: inline-block; background: #27272a; color: var(--neon-green);
    font-family: var(--font-mono); font-size: 0.75rem; padding: 4px 8px;
    border-radius: 4px; margin-bottom: 15px; border: 1px solid rgba(34, 197, 94, 0.2);
}
h1 { font-size: 3.5rem; line-height: 1.1; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.text-gradient {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.tf-subtitle { color: var(--text-muted); font-size: 1.2rem; }

/* --- NOUVEAU STYLE FORMULAIRE (BOX) --- */
.scan-hero-box {
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.8) 0%, rgba(24, 24, 27, 0.95) 100%);
    border: 1px solid var(--border);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    max-width: 650px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column; gap: 15px;
}

.scan-hero-box::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--roast-red), transparent);
    box-shadow: 0 0 15px var(--roast-red);
}

.input-wrapper { position: relative; }
.input-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 1.2rem;
}

input[type="text"] {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: white;
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.2s;
}
input[type="text"]:focus {
    border-color: var(--roast-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.btn-main {
    background: var(--roast-red); color: white; border: none; padding: 15px;
    border-radius: 8px; font-weight: 800; font-size: 1rem; cursor: pointer;
    font-family: var(--font-mono); letter-spacing: 1px;
    transition: transform 0.1s, box-shadow 0.2s;
}
.btn-main:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4); }
.checkbox-group { text-align: center; font-size: 0.8rem; color: var(--text-muted); }

/* --- GRID RESULTATS --- */
.tf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; }
@media (max-width: 768px) { 
    .tf-grid { grid-template-columns: 1fr; } 
    h1 { font-size: 2.5rem; }
}

.column-title {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-bottom: 10px;
}
.col-top .column-title { border-color: var(--neon-green); }
.col-flop .column-title { border-color: var(--roast-red); border-bottom-style: dashed; }

.count-badge { 
    background: var(--border); padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; font-family: var(--font-mono); 
}
.col-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }

/* CARTES */
.site-card {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 12px 15px; margin-bottom: 10px; border-radius: 6px;
    display: flex; justify-content: space-between; align-items: center;
    position: relative; overflow: hidden;
}
.site-card:hover { border-color: var(--text-muted); }
.site-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}
.site-card.is-top::before { background: var(--neon-green); }
.site-card.is-flop::before { background: var(--roast-red); }

.site-info h3 { font-size: 1rem; margin: 0; font-weight: 600; }
.site-date { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.score-pill { font-family: var(--font-mono); font-weight: bold; font-size: 1rem; }
.is-top .score-pill { color: var(--neon-green); }
.is-flop .score-pill { color: var(--roast-red); }

/* --- PAGE RAPPORT (Header & Score) --- */
.report-header {
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
    margin-bottom: 40px;
}

.score-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; margin-top: 30px;
}

.big-score {
    width: 140px; height: 140px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; font-weight: 800; font-family: var(--font-mono);
    border: 8px solid currentColor;
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 30px currentColor;
    position: relative;
}

.verdict-box {
    text-align: center; max-width: 700px; margin: 0 auto; padding: 20px;
    background: rgba(255,255,255,0.02); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
}

/* --- MEGA FOOTER --- */
.mega-footer {
    border-top: 1px solid var(--border); margin-top: 80px; padding-top: 60px; padding-bottom: 40px;
    background: #050505;
}
.eco-intro { margin-bottom: 40px; max-width: 600px; }
.eco-intro h4 { font-size: 1.2rem; color: white; margin-bottom: 10px; }
.eco-intro p { color: var(--text-muted); font-size: 0.95rem; }

.eco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.eco-col h5 {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 20px; border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.eco-col ul li { margin-bottom: 12px; }
.eco-col a { display: block; line-height: 1.3; }
.eco-col a strong { color: var(--text-main); font-size: 0.95rem; display: block; }
.eco-col a span { color: #666; font-size: 0.8rem; transition: color 0.2s; }
.eco-col a:hover span { color: var(--roast-red); }

.footer-bottom {
    margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; color: #555; font-size: 0.85rem;
}
.legal-links a:hover { color: white; }

/* KPI Grid & Cards Report */
.kpi-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px;
}
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); padding: 20px; border-radius: 8px; text-align: center; }
.kpi-card .label { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 5px; text-transform: uppercase; }
.kpi-card .value { font-size: 1.5rem; font-weight: bold; color: var(--text-main); }

.report-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
@media (max-width: 900px) { .report-grid { grid-template-columns: 1fr; } }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 25px; margin-bottom: 30px; }
.card h2 { margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; font-size: 1.3rem; }

/* UTILS */
.btn-outline {
    background: transparent; border: 1px solid var(--border); color: var(--text-main);
    padding: 8px 16px; border-radius: 6px; cursor: pointer; margin: 0 5px; transition: 0.2s;
}
.btn-outline:hover { border-color: var(--roast-red); color: var(--roast-red); }
.audit-row { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }
.badge.critical { background: rgba(248,81,73,0.2); color: #ff7b72; }
.badge.high { background: rgba(210,153,34,0.2); color: #d29922; }
.badge.warning { background: rgba(219,171,9,0.2); color: #eac54f; }

/* AJOUTS POUR LISTE IMPACT PROPRE */
.impact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.impact-list li {
    display: flex;
    align-items: flex-start; /* Important: aligne en haut si 2 lignes */
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    line-height: 1.4;
}

.impact-list li span:last-child {
    margin-top: 3px; /* Petit ajustement pour centrer avec le badge visuellement */
    font-size: 0.95rem;
    color: #e4e4e7;
}

/* Badge plus compact */
.badge { 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 0.7rem; 
    font-weight: 800; 
    text-transform: uppercase;
    white-space: nowrap; /* Empêche le badge de se casser */
    flex-shrink: 0; /* Empêche le badge de rétrécir */
}