/* Importation d'une typographie premium (Inter) très prisée dans les SaaS/IA */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Palette Base : Ultra-minimaliste et propre */
    --bg-main: #f8fafc; /* Un blanc très légèrement teinté de bleu/gris */
    --bg-card: #ffffff;
    
    /* Typographie : Contraste hiérarchique fort */
    --text-primary: #0f172a;
    --text-muted: #64748b;
    
    /* Accents "Tech Luxe" : Indigo profond (très utilisé dans l'IA et le SaaS B2B) */
    --accent-primary: #4f46e5; 
    --accent-dark: #1e1b4b;
    --accent-subtle: #e0e7ff;
    
    /* Bordures et Badges */
    --border-color: rgba(15, 23, 42, 0.08); /* Plus élégant qu'une couleur solide */
    --badge-bg: #f1f5f9;
    --badge-text: #475569;
    
    /* Recommandations : Mise en valeur experte */
    --recommendation-bg: #f5f8ff;
    --recommendation-border: #4f46e5;
    
    /* Ombres multi-couches (Le secret des designs haut de gamme) */
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.02), 
                     0 4px 12px rgba(0, 0, 0, 0.03), 
                     0 12px 24px rgba(0, 0, 0, 0.03);
    --shadow-hover:  0 4px 6px rgba(0, 0, 0, 0.02), 
                     0 12px 24px rgba(0, 0, 0, 0.06), 
                     0 24px 32px rgba(0, 0, 0, 0.04);
                     
    /* Géométrie et Animation */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-spring: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    /* Fallback sécurisé, priorité à Inter */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    padding: 4rem 1.5rem;
    -webkit-font-smoothing: antialiased; /* Rend le texte plus net sur Mac/iOS */
    -moz-osx-font-smoothing: grayscale;
}

.report-wrapper {
    max-width: 1080px; /* Légèrement resserré pour un meilleur confort de lecture */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Respiration augmentée entre les sections */
}

/* --- En-tête --- */
.report-header {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

/* Subtil trait de lumière au-dessus du header pour un effet "carte physique" */
.report-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), #818cf8);
}

.header-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-subtle), #ffffff);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 4px 8px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.header-content h1 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em; /* Tracking resserré caractéristique du haut de gamme */
    line-height: 1.2;
}

.audit-objective {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.audit-objective strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Sections --- */
.report-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.report-section > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    letter-spacing: -0.02em;
}

.report-section > h2 i {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.weakness-category {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.weakness-category > h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* --- Grilles et Cartes --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 1.75rem;
}

@media (max-width: 768px) {
    .cards-grid { grid-template-columns: 1fr; }
    .report-header { flex-direction: column; padding: 2rem; }
    .header-icon { align-self: flex-start; }
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-spring);
    position: relative;
    z-index: 1;
}

/* Effet de lévitation au survol */
.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.2); /* La bordure prend une teinte indigo subtile */
    transform: translateY(-4px); /* Soulèvement doux */
    z-index: 2;
}

.executive-card {
    font-size: 1.15rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-primary);
    background: linear-gradient(to right, var(--accent-subtle), transparent 50px);
}

/* --- Intérieur des Cartes --- */
.weakness-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.card-icon {
    font-size: 1.15rem;
    color: var(--accent-primary);
    background: var(--bg-main);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

.card-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* --- Blocs de contenu (Problème / Solution) --- */
.block-problem {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.block-problem p, .block-problem li {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.block-problem ul {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Code in-line stylisé façon GitHub/Vercel */
.block-problem code {
    background-color: var(--badge-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    color: #db2777; /* Accentuation discrète pour le code (rose technique) */
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- Badges --- */
.badge {
    align-self: flex-start;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em; /* Plus large pour la lisibilité en majuscule */
    padding: 0.35rem 0.85rem;
    border-radius: 9999px; /* Forme de pilule parfaite */
    border: 1px solid rgba(0,0,0,0.04);
}

.recommendation-badge {
    background-color: var(--accent-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.25); /* Glow coloré */
}

/* --- Bloc Recommandation (L'expertise mise en avant) --- */
.block-recommendation {
    background-color: var(--recommendation-bg);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-left: 4px solid var(--recommendation-border);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
}

.block-recommendation p {
    font-size: 0.95rem;
    color: var(--accent-dark);
    font-weight: 500;
}

/* --- Cas limites (Edge Cases) --- */
.edge-cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.edge-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edge-card .card-body {
    gap: 0.75rem;
}

.edge-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}