/**
 * DRIVETRUST — seo-head.css
 * Styles personnalisés partagés — remplace les blocs <style> inline
 * https://drivetrust.fr
 */

/* ===== GOOGLE FONTS — déjà chargées via <link> dans le <head> ===== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7fa;
    scroll-behavior: smooth;
}

/* ===== TRANSITIONS CIBLÉES ===== */
a, button, input, select, textarea,
.nav-link, .step-card, .faq-question, .model-card,
.brand-logo, .whatsapp-float {
    transition: all 0.3s ease-out;
}

/* ===== NAVBAR ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #4f46e5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#main-header.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
}

#main-header.scrolled > div {
    border-radius: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom-width: 1px;
}

/* ===== SKIP TO CONTENT (Accessibilité) ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-weight: 700;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ===== HERO IMAGES ===== */
.hero-img {
    filter: brightness(0.7);
}

/* ===== CARDS HOVER ===== */
.step-card,
.faq-question,
.model-card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out;
}

.step-card:hover,
.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== PAGE CONTAINER ===== */
.page-container {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.page-container.active {
    display: block;
    opacity: 1;
}

/* ===== ANIMATION SPIN ===== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ===== FAQ ACCORDION ===== */
.faq-question {
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding-top 0.4s ease-in-out, padding-bottom 0.4s ease-in-out;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-answer.open {
    max-height: 800px;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

/* ===== FORMULAIRES — FOCUS ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ===== BANDEAU MARQUES DÉFILANT ===== */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
    width: max-content;
}

.brand-logo {
    height: 2.5rem;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(60%);
    margin: 0 auto;
    transition: filter 0.4s ease;
}

.brand-logo:hover {
    filter: grayscale(0%) opacity(100%);
}

/* ===== BOUTON WHATSAPP FLOTTANT ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20b858;
    box-shadow: 0 15px 20px -3px rgba(0, 0, 0, 0.4);
}

/* ===== ANIMATION VOIR PLUS VOITURES ===== */
@keyframes fadeInCar {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-car {
    animation: fadeInCar 0.6s ease-out forwards;
}

/* ===== ANIMATE ON SCROLL ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GLASSMORPHISM (utilisé sur carte-grise et autres) ===== */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.shadow-premium {
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05), 0 0 50px 0 rgba(79, 70, 229, 0.03);
}

/* ===== TABS (carte-grise) ===== */
.tab-btn.active {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 10px 20px -3px rgba(79, 70, 229, 0.3) !important;
}

.step-pill.active {
    background-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* ===== SCROLLED HEADER (carte-grise variante) ===== */
#main-header.scrolled > div.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
    border-bottom-width: 1px;
}

/* ===== RESPONSIVE UTILITAIRES ===== */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    .animate-scroll { animation: none; }
}
