/* ============================================================
   index.css — Styles spécifiques à la page d'accueil
   ============================================================ */

/* ---------- Section Héro ---------- */
#hero {
    background: linear-gradient(135deg, #111111 0%, #2a1000 55%, #ff6b00 100%);
    color: #fff;
    padding: var(--esp-xl) var(--esp-md);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Motif décoratif en arrière-plan */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-contenu {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-surtitre {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--couleur-accent);
    margin-bottom: var(--esp-sm);
}

#hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--esp-md);
    line-height: 1.15;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    margin: 0 auto var(--esp-lg);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--esp-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--esp-xl);
}

/* Bande de statistiques */
.hero-stats {
    display: flex;
    gap: var(--esp-xl);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    padding-top: var(--esp-lg);
    border-top: 1px solid rgba(255,255,255,0.15);
    width: min(100%, 700px);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.stat-nombre {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--police-titre);
    color: #fff;
}
.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- Section Recherche rapide ---------- */
#recherche-rapide {
    background: #fff;
    box-shadow: var(--ombre-md);
    padding: var(--esp-lg) 0;
}

#recherche-rapide h2 {
    font-size: 1.4rem;
    color: var(--couleur-primaire);
    margin-bottom: var(--esp-md);
    text-align: center;
}

#form-recherche {
    display: flex;
    gap: var(--esp-sm);
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.champ-recherche {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 160px;
    max-width: 220px;
}
.champ-recherche label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--couleur-texte-clair);
}
.champ-recherche select {
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--couleur-bordure);
    border-radius: var(--rayon-sm);
    font-size: 0.95rem;
    font-family: var(--police-corps);
    color: var(--couleur-texte);
    background: #fff;
    cursor: pointer;
    transition: border-color var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2rem;
}
.champ-recherche select:focus {
    outline: none;
    border-color: var(--couleur-accent);
}

#form-recherche .btn-principal {
    padding: 0.68rem 2rem;
}

/* ---------- Section Véhicules en vedette ---------- */
#vedette {
    padding: var(--esp-xl) 0;
    background: linear-gradient(160deg, #ff6b00 0%, #ff9a45 20%, #ffcfa0 50%, #fff5ee 75%, #ffffff 100%);
}

/* ---------- Section Avantages ---------- */
#avantages {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1000 100%);
    color: #fff;
    padding: var(--esp-xl) 0;
    text-align: center;
}

#avantages h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: var(--esp-lg);
}

.grille-avantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--esp-md);
}

.avantage {
    padding: var(--esp-lg) var(--esp-md);
    background: rgba(255,255,255,0.05);
    border-radius: var(--rayon-md);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background var(--transition), transform var(--transition);
}
.avantage:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}
.avantage-icone {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--couleur-accent);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--esp-sm);
}
.avantage h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.avantage p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

/* ---------- Section Témoignages ---------- */
#temoignages {
    padding: var(--esp-xl) 0;
    background: var(--couleur-fond);
}

#temoignages h2 {
    font-size: 1.8rem;
    text-align: center;
    color: var(--couleur-primaire);
    margin-bottom: var(--esp-lg);
}

.grille-temoignages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--esp-md);
}

.temoignage {
    background: #fff;
    border-radius: var(--rayon-md);
    padding: var(--esp-lg) var(--esp-md);
    box-shadow: var(--ombre-sm);
    border-left: 4px solid var(--couleur-accent);
    border-top: 1px solid rgba(255,107,0,0.12);
}
.etoiles {
    color: #f5a623;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: var(--esp-sm);
}
.temoignage > p {
    font-size: 0.92rem;
    color: var(--couleur-texte-clair);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--esp-md);
}
.client {
    display: flex;
    align-items: center;
    gap: var(--esp-sm);
}
.client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--couleur-accent-2);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.client strong { display: block; font-size: 0.9rem; }
.client span   { font-size: 0.78rem; color: var(--couleur-texte-clair); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    /* Hero */
    .hero-stats   { gap: var(--esp-lg); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-principal,
    .hero-actions .btn-secondaire { width: 100%; }

    /* Recherche rapide */
    #form-recherche { flex-direction: column; align-items: stretch; }
    .champ-recherche { max-width: 100%; }
    #form-recherche .btn-principal { width: 100%; }

    /* Avantages 2 colonnes */
    .grille-avantages { grid-template-columns: 1fr 1fr; gap: var(--esp-sm); }

    /* Témoignages 1 colonne */
    .grille-temoignages { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    /* Hero : textes plus petits */
    #hero { padding: var(--esp-lg) var(--esp-sm); min-height: auto; }
    #hero h1 { font-size: clamp(1.5rem, 8vw, 2rem); line-height: 1.2; }
    .hero-description { font-size: 0.9rem; }
    .hero-surtitre    { font-size: 0.75rem; }

    /* Stats du héro : empiler verticalement */
    .hero-stats {
        flex-direction: column;
        gap: var(--esp-sm);
        align-items: center;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: var(--esp-md);
    }
    .stat-nombre { font-size: 1.8rem; }
    .stat-separateur { display: none; }

    /* Recherche rapide */
    #recherche-rapide { padding: var(--esp-md) var(--esp-sm); }
    #recherche-rapide h2 { font-size: 1.1rem; }

    /* Avantages : 1 colonne */
    .grille-avantages { grid-template-columns: 1fr; }
    #avantages        { padding: var(--esp-lg) var(--esp-sm); }
    .avantage         { padding: var(--esp-md); }

    /* Témoignages */
    #temoignages { padding: var(--esp-lg) var(--esp-sm); }
    .temoignage  { padding: var(--esp-md); font-size: 0.88rem; }
    .temoignage > p { font-size: 0.88rem; }
}

/* ============================================================
   THÈME SOMBRE — index.css
   ============================================================ */

/* Héro : garder le sombre mais atténuer l'orange */
[data-theme="dark"] #hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0800 55%, #2d1200 100%);
}

/* Recherche rapide */
[data-theme="dark"] #recherche-rapide {
    background: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
[data-theme="dark"] #recherche-rapide h2 { color: #e0e0e0; }
[data-theme="dark"] .champ-recherche label { color: #a0a0a0; }
[data-theme="dark"] .champ-recherche select {
    background-color: #2a2a2a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    color: #e0e0e0;
    border-color: #3a3a3a;
}

/* Véhicules en vedette */
[data-theme="dark"] #vedette {
    background: linear-gradient(160deg, #1a0800 0%, #0f0f0f 30%, #121212 100%);
}
[data-theme="dark"] #vedette h2,
[data-theme="dark"] .section-entete h2 { color: #f0f0f0; }
[data-theme="dark"] .lien-voir-plus { color: var(--couleur-accent); }

/* Avantages : déjà sombre, juste ajuster */
[data-theme="dark"] #avantages {
    background: linear-gradient(135deg, #050505 0%, #120800 100%);
}

/* Témoignages */
[data-theme="dark"] #temoignages { background: #121212; }
[data-theme="dark"] #temoignages h2 { color: #f0f0f0; }
[data-theme="dark"] .temoignage {
    background: #1e1e1e;
    border-top-color: rgba(255,107,0,0.2);
}
[data-theme="dark"] .temoignage > p { color: #c0c0c0; }
[data-theme="dark"] .client strong { color: #f0f0f0; }
[data-theme="dark"] .client span { color: #a0a0a0; }
