:root { 
    --blue: #0056b3; 
    --dark-blue: #003d80;
    --light-blue: #00d4ff;
    --dark: #1e293b; 
    --gray-bg: #f1f5f9; 
    --white: #ffffff; 
    --text: #334155;
    --green: #22c55e;
    --gold: #f1c40f;
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: sans-serif; background: var(--gray-bg); color: var(--text); line-height: 1.6; scroll-behavior: smooth; overflow-x: hidden; }

/* HEADER */
header { background: var(--white); border-bottom: 3px solid var(--blue); padding: 10px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.logo-box { display: flex; align-items: center; gap: 15px; }
.logo { font-size: 24px; font-weight: 900; color: var(--dark); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--blue); }

.typing-text { font-size: 13px; font-weight: 600; color: var(--blue); border-right: 2px solid var(--blue); white-space: nowrap; overflow: hidden; width: 0; animation: typing 3s steps(40, end) forwards, blink 0.75s step-end infinite; text-transform: uppercase; letter-spacing: 0.5px; }

.mob-msg { display: none; }
.pc-msg { display: inline; }

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink { from, to { border-color: transparent } 50% { border-color: var(--blue); } }
nav a { margin-left: 15px; text-decoration: none; color: var(--dark); font-weight: bold; font-size: 12px; text-transform: uppercase; }

/* HERO */
.hero { background: var(--white); background-image: radial-gradient(var(--blue) 0.5px, transparent 0.5px), linear-gradient(90deg, rgba(0, 86, 179, 0.03) 1px, transparent 1px), linear-gradient(rgba(0, 86, 179, 0.03) 1px, transparent 1px); background-size: 20px 20px, 40px 40px, 40px 40px; padding: 35px 5%; border-bottom: 1px solid #e2e8f0; position: relative; overflow: hidden; }
.hero-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; z-index: 1; }
.hero-text { flex: 1; }
.hero h1 { font-size: 30px; text-transform: uppercase; font-style: italic; color: var(--dark); margin-bottom: 10px; line-height: 1.1; }
.hero h1 span { color: var(--blue); }
.hero p { font-size: 15px; margin-bottom: 20px; color: #475569; max-width: 450px; }
.hero-image img { width: 100%; max-width: 260px; border-radius: 15px; box-shadow: 0 20px 50px rgba(0, 86, 179, 0.15); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.dynamic-msg-box { height: 35px; margin-bottom: 10px; display: flex; align-items: center; }
#dynamicMsg { font-size: 15px; font-weight: 700; color: var(--blue); opacity: 0; transition: opacity 0.5s ease-in-out; }

/* BADGES CLIQUABLES */
.target-badges { display: flex; gap: 15px; margin-top: 20px; }
.badge-link { text-decoration: none; }
.badge-item { background: rgba(0, 86, 179, 0.05); border: 1px solid rgba(0, 86, 179, 0.2); padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 800; color: var(--blue); display: flex; align-items: center; gap: 10px; text-transform: uppercase; box-shadow: 0 4px 15px rgba(0,0,0,0.02); opacity: 0; transform: translateY(10px); animation: fadeInBadge 0.8s ease-out forwards; transition: 0.3s; cursor: pointer; }
.badge-item:hover { background: var(--blue); color: white; transform: translateY(-3px); }
@keyframes fadeInBadge { to { opacity: 1; transform: translateY(0); } }

/* MOBILITY */
.mobility-block { background: var(--white); padding: 25px; border-radius: 20px; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px rgba(0,0,0,0.03); text-align: center; overflow: hidden; position: relative; text-decoration: none; display: block; color: inherit; }
.hero-mobility { flex: 0.8; }
.mobility-icon { width: 50px; height: 50px; background: rgba(0, 86, 179, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; color: var(--blue); font-size: 24px; animation: pulse-blue 2s infinite; }
@keyframes pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(0, 86, 179, 0); } 100% { box-shadow: 0 0 0 10px rgba(0, 86, 179, 0); } }
.mobility-block h3 { font-size: 14px; color: var(--blue); text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; }
.mobility-block p { font-size: 13px; color: #64748b; line-height: 1.4; font-weight: 500; }

.city-ticker-wrap { width: 100%; overflow: hidden; background: #f8fafc; padding: 5px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; margin-top: 15px; }
.city-ticker { display: flex; width: fit-content; animation: cityScroll 60s linear infinite; }
.city-item { white-space: nowrap; padding: 0 20px; font-size: 10px; font-weight: bold; color: #94a3b8; }
@keyframes cityScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.mobility-footer { margin-top: 15px; font-size: 11px; font-weight: bold; color: var(--dark); text-transform: uppercase; border-top: 1px solid #f1f5f9; padding-top: 10px; }

/* TICKER */
.ticker-wrap { width: 100%; overflow: hidden; background: #e2e8f0; padding: 12px 0; border-bottom: 1px solid #cbd5e1; cursor: pointer; text-decoration: none; display: block; }
.ticker { display: flex; width: fit-content; animation: tickerScroll 40s linear infinite; }
.ticker-item { white-space: nowrap; padding: 0 40px; font-size: 13px; font-weight: bold; color: var(--blue); text-transform: uppercase; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* DIAGNOSTIC SECTION */
.diagnostic-section { max-width: 1100px; margin: 30px auto; padding: 0 20px; text-align: center; }
.diag-card { background: var(--white); padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 2px solid var(--blue); position: relative; }
.diag-card h2 { font-size: 18px; color: var(--dark); text-transform: uppercase; margin-bottom: 15px; }

/* RECHERCHE */
.search-container { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.diag-search { width: 100%; padding: 15px; border-radius: 10px; border: 2px solid #cbd5e1; font-size: 16px; outline: none; transition: 0.3s; background: #f8fafc; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #cbd5e1; border-top: none; border-radius: 0 0 10px 10px; z-index: 2000; display: none; text-align: left; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.search-results div { padding: 12px; cursor: pointer; border-bottom: 1px solid #eee; }
.search-results div:hover { background: var(--blue); color: #fff; }
.diag-select { width: 100%; max-width: 600px; padding: 15px; border-radius: 10px; border: 1px solid #cbd5e1; font-size: 16px; color: var(--text); background: #f8fafc; cursor: pointer; }

/* GRID & CARDS */
.container { max-width: 1100px; margin: 0 auto; padding: 35px 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.card { background: var(--white); padding: 30px; border-radius: 15px; box-shadow: 0 8px 20px rgba(0,0,0,0.05); border-bottom: 5px solid #cbd5e1; transition: 0.8s ease-out; height: 100%; display: flex; flex-direction: column; cursor: pointer; position: relative; overflow: hidden; z-index: 1; opacity: 0; transform: translateY(50px); }
.card.reveal { opacity: 1; transform: translateY(0); }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0.22; z-index: -1; }
.c1::before { background-image: url("assets/fond-depannage.webp"); }
.c2::before { background-image: url("assets/fond-reseau.webp"); }
.c3::before { background-image: url("assets/fond-boost.webp"); }
.c4::before { background-image: url("assets/fond-data.webp"); }
.c5::before { background-image: url("assets/fond-virus.webp"); }
.c6::before { background-image: url("assets/fond-neuf.webp"); }
.c7::before { background-image: url("assets/fond-ecran.webp"); }
.c8::before { background-image: url("assets/fond-gaming.webp"); }
.c9::before { background-image: url("assets/fond-clean.webp"); }

/* BOUTON SHINE */
.btn-shine { background: var(--blue); color: var(--white); text-decoration: none; padding: 14px 30px; border-radius: 10px; display: inline-flex; align-items: center; gap: 10px; font-weight: bold; position: relative; overflow: hidden; border: none; cursor: pointer; text-transform: uppercase; font-size: 20px; width: 100%; justify-content: center; margin-top: auto; margin-bottom: 10px; transition: 0.3s; }
.btn-shine::after { content: ''; position: absolute; top: -50%; left: -60%; width: 20%; height: 200%; background: rgba(255,255,255,0.4); transform: rotate(30deg); animation: shineEffect 4s infinite; }
@keyframes shineEffect { 100% { left: 150%; } }
.btn-more { background: transparent; border: 2px solid var(--blue); color: var(--blue); text-align: center; padding: 10px; border-radius: 8px; font-weight: bold; font-size: 12px; text-transform: uppercase; width: 100%; }

/* DETAILS */
.details-wrapper { width: 100%; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.detail-item { display: none; max-width: 950px; width: 100%; padding: 45px; border-top: 10px solid var(--blue); background: var(--white); border-radius: 25px; box-shadow: 0 25px 60px rgba(0,0,0,0.1); margin-bottom: 40px; }
.detail-item.active { display: block; animation: fadeInUp 0.7s forwards; }
.detail-content { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.detail-text { flex: 1; min-width: 300px; }
.detail-text h2 { color: var(--blue); text-transform: uppercase; margin-bottom: 20px; font-size: 26px; }

.photo-column { flex: 0 0 350px; max-width: 350px; display: flex; flex-direction: column; gap: 20px; }
.detail-photo { border-radius: 15px; overflow: hidden; height: 350px; border: 1px solid #ddd; position: relative; background: #eee; }
.slider-img { display: flex; width: 300%; height: 100%; animation: slideImg 12s infinite ease-in-out; }
.slider-img img { width: 33.333%; height: 100%; object-fit: cover; }
@keyframes slideImg { 0%, 30% { transform: translateX(0); } 33%, 63% { transform: translateX(-33.333%); } 66%, 96% { transform: translateX(-66.666%); } 100% { transform: translateX(0); } }

.detail-item ul { list-style: none; margin: 25px 0; }
.detail-item ul li { margin-bottom: 15px; padding-left: 35px; position: relative; font-size: 15px; opacity: 0; transform: translateX(-15px); text-align: justify; font-weight: 500; }
.detail-item.active ul li { animation: fadeInLine 0.6s forwards; }
.detail-item ul li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: bold; font-size: 18px; }
@keyframes fadeInLine { to { opacity: 1; transform: translateX(0); } }

.badge-trust { background: #f8fafc; border: 2px dashed #cbd5e1; padding: 18px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 5px; }
.badge-logo { font-weight: 900; color: var(--dark); font-size: 18px; }
.badge-logo span { color: var(--blue); }
.badge-text { font-size: 12px; font-weight: bold; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }

/* AVIS */
.reviews { background: #0f172a !important; padding: 70px 5%; color: white; min-height: 550px; }
.review-group { display: none; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.review-group.active { display: grid; animation: fadeInUp 1s forwards; }
.review-card { background: #1e293b !important; padding: 30px; border-radius: 15px; border-top: 4px solid var(--blue) !important; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.stars { color: var(--gold); font-size: 18px; margin-bottom: 10px; }
.review-text { font-style: italic; font-size: 13px; margin-bottom: 12px; color: #e2e8f0 !important; line-height: 1.4; }
.review-author { font-weight: bold; color: var(--light-blue) !important; font-size: 11px; text-transform: uppercase; }

footer { background: #0f172a; color: #94a3b8; padding: 40px 5%; text-align: center; font-size: 13px; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* --- SECTION MOBILE (SMARTPHONE) --- */
@media (max-width: 768px) {
    .hero-container { flex-direction: column !important; gap: 30px !important; }
    .hero-mobility { width: 100% !important; flex: none !important; display: block !important; }
    .detail-item { padding: 20px !important; }
    .detail-content { flex-direction: column !important; gap: 20px !important; }
    .photo-column { flex: none !important; width: 100% !important; max-width: 100% !important; }
    .detail-text { min-width: 100% !important; }
    .detail-photo { height: 250px !important; }
    header { pointer-events: auto !important; }
    nav { z-index: 1001 !important; position: relative !important; }
    .grid { grid-template-columns: 1fr; }
    .phone-text { display: none !important; }
    .phone-icon { display: inline-block !important; }

    /* --- CORRECTIF TYPING MOBILE FINAL (ANTI-DESCENTE) --- */
    .pc-msg { display: none !important; }
    .mob-msg { 
        display: inline !important; 
        font-size: 9px !important; /* Taille réduite pour forcer l'alignement */
        letter-spacing: -0.2px;
        text-transform: uppercase;
    }

    .typing-text {
        display: inline-block !important;
        width: 0;
        max-width: 190px !important; /* Verrouillage strict de la largeur */
        overflow: hidden;
        white-space: nowrap !important; /* INTERDIT LE PASSAGE À LA LIGNE */
        border-right: 2px solid var(--blue);
        margin: 0 !important;
        animation: typing-mob 3s steps(32, end) forwards, blink 0.75s step-end infinite !important;
    }

    @keyframes typing-mob {
        from { width: 0; }
        to { width: 100%; }
    }
}

/* --- OPTIMISATION BOUTONS PANNE UNIQUEMENT --- */
@media (max-width: 768px) {
    .btn-panne-mobile .btn-text { display: none !important; }
    .btn-panne-mobile .btn-icon-mobile { display: inline-block !important; font-size: 28px; }
    .btn-panne-mobile {
        width: 100% !important; 
        max-width: 120px !important; 
        height: 60px !important;
        border-radius: 10px !important;
        padding: 0 !important;
        margin: 20px auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}