.hero { 
    text-align: center; 
    margin: 0 auto 4rem; 
    padding-top: 4rem; 
    max-width: 800px; 
    width: 100%; 
}

.hero h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
}

#homeDropZone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card); 
    border: 2px dashed var(--border-color); 
    border-radius: 2rem; 
    padding: 4rem 2rem; /* Padding augmenté pour matcher converter */
    text-align: center; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    position: relative;
    color: var(--text-main);
    min-height: 350px; /* Hauteur unifiée */
    overflow: hidden;
}
#homeFileInput {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
#homeDropZone:hover {
    border-color: var(--violet);
    background-color: var(--violet-soft);
    box-shadow: 0 10px 25px rgba(99, 68, 231, 0.1);
}

/* --- ÉTATS INTERNES (Centrage) --- */
#homePrompt, #homeStatusArea, #homeDownloadArea {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ICÔNES CERCLES (Identique à Converter) */
.icon-circle-home {
    width: 5rem; 
    height: 5rem;
    background: var(--violet-soft);
    color: var(--violet);
    border-radius: 1.25rem;
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Couleur spécifique pour le succès (Identique à Converter) */
.success-circle {
    background: #f0fdf4 !important;
    color: #16a34a !important;
}
body.dark-mode .success-circle {
    background: #064e3b33 !important;
    color: #4ade80 !important;
}

/* Bouton Téléchargement Home */
#homeDownloadBtn {
    display: inline-block; 
    color: white; 
    padding: 0.8rem 2.5rem; 
    border-radius: 99px; 
    font-weight: bold; 
    text-decoration: none;
    background-color: var(--violet);
    box-shadow: 0 10px 15px rgba(99, 68, 231, 0.2);
}

/* --- SYSTÈME DE FILTRES --- */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover:not(.active) {
    background: var(--violet-light);
    border-color: var(--violet);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--violet) !important;
    color: white !important;
    border-color: var(--violet);
    box-shadow: 0 10px 20px rgba(99, 68, 231, 0.2);
}

/* --- SECTIONS & GRILLES --- */
.category-section { 
    max-width: 1100px;
    margin: 0 auto 6rem; 
    padding: 0 1.5rem;
    width: 100%; 
}

.category-title { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--text-main); 
    margin-bottom: 0.75rem; 
}

.category-divider { 
    height: 2px; 
    background: var(--violet-soft); 
    width: 100%; 
    margin-bottom: 2.5rem; 
    border-radius: 2px;
}

.grid-tools { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem;
}

/* --- RÉASSURANCE (Features) & FAQ --- */
.section-title { 
    font-size: 2.5rem; 
    text-align: center; 
    margin: 8rem auto 4rem; 
}

.steps-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 3rem; 
    max-width: 1100px;
    margin: 0 auto;
}

/* --- CORRECTIF SECTION POURQUOI CHOISIR --- */
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
    max-width: 900px; /* Réduit la largeur pour un aspect plus centré et fin */
    margin: 0 auto;
}

.features-grid .card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;             /* Active le flex sur la carte */
    flex-direction: column;    /* Aligne les éléments verticalement */
    align-items: center;
    text-align: center;
}

.features-grid .card svg {
    width: 3rem !important; /* Réduit la taille des icônes */
    height: 3rem !important;
    margin-bottom: 1.25rem;    /* Espace sous l'icône */
    stroke-width: 1.5;
    color: var(--violet);
    stroke-width: 1.5; /* Trait plus fin pour plus d'élégance */
}

.features-grid .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-number { 
    width: 3rem; 
    height: 3rem; 
    background: var(--violet); 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 1.5rem; 
    font-weight: 900; 
    box-shadow: 0 8px 15px rgba(99, 68, 231, 0.2); 
}

/* FAQ */
details { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 1.25rem; 
    margin-bottom: 1rem; 
}

summary { 
    padding: 1.5rem; 
    font-weight: 700; 
    color: var(--text-main);
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
}

.faq-content { 
    padding: 0 1.5rem 1.5rem; 
    color: var(--text-muted); 
    line-height: 1.6;
}

/* BANNIÈRE CTA */
.cta-banner {
    background: var(--violet-soft) !important;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    border-radius: 2.5rem;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 6rem;
}