:root {
    --bg-main: #0b0f19;
    --bg-card: #161e2e;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #374151;
}


/* Conteneur principal flexible */
.container-flexible {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

/* Éléments à l'intérieur qui s'adaptent seuls */
.element-boite {
    flex: 1 1 300px; /* Prend toute la place dispo, mais bascule à la ligne si l'écran fait moins de 300px */
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* Navigation : Logo (Image + Titre) à gauche, Menu au centre, Boutons d'action à droite */
nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(11, 15, 25, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
    text-decoration: none;
}

.logo-img {
    height: 35px !important;
    max-height: 35px !important;
    width: auto !important;
    object-fit: contain !important;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-self: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-action {
    justify-self: end;
    display: flex;
    align-items: center;
}

.btn-track-nav {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-track-nav:hover {
    background-color: var(--accent);
}

/* Hero Section avec support du diaporama de fond */
header.hero {
    position: relative;
    background-color: var(--bg-main);
    padding: 10rem 5% 6rem;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

header.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 15, 25, 0.8), rgba(11, 15, 25, 0.9));
    z-index: -1;
}

header.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

header.hero h1 span {
    color: var(--accent);
}

header.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Sections Globales */
section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h2.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

/* Grille Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 1rem;
}

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

/* Section Suivi de Réparation interactif */
.tracking-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.tracking-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tracking-form input {
    flex: 1;
    padding: 0.9rem 1rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.tracking-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-track {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-track:hover {
    background-color: var(--accent-hover);
}

#tracking-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    display: none;
}

/* ========================================== */
/* STYLING EXCLUSIF : SECTION " À PROPOS DE NOUS " */
/* ========================================== */

#apropos {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-card) 100%);
    padding: 6rem 5%;
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.about-header .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.about-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.about-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.about-block:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.2);
}

.about-block h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-block p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.about-column-highlight {
    display: flex;
}

.about-highlight-box {
    background: linear-gradient(145deg, #161e2e, #0f172a);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.25);
    position: relative;
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    background: rgba(37, 99, 235, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.about-highlight-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.about-highlight-box p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.highlight-sub {
    font-size: 0.95rem !important;
    color: var(--text-main) !important;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid var(--success);
    padding: 1rem 1.2rem;
    border-radius: 0 8px 8px 0;
    margin-top: 0.5rem;
    margin-bottom: 0 !important;
}

/* Footer */
footer {
    background-color: #06080e;
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 3rem 5%;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================== */
/* RESPONSIVE DESIGN (Tablettes & Mobiles)     */
/* ========================================== */

@media(max-width: 992px) {
    nav {
        padding: 1rem 3%;
    }
    header.hero h1 {
        font-size: 2.5rem;
    }
    .about-content-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    nav {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
        position: relative;
    }

    .logo-container {
        justify-self: center;
        justify-content: center;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .nav-action {
        display: none;
    }

    header.hero {
        padding: 6rem 5% 4rem;
    }

    header.hero h1 {
        font-size: 2rem;
    }

    header.hero p {
        font-size: 1rem;
    }

    .trust-badges {
        gap: 1rem;
    }

    .badge {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    section {
        padding: 3rem 5%;
    }

    h2.section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    #apropos {
        padding: 4rem 1.5rem;
    }

    .about-header .section-title {
        font-size: 2rem;
    }

    .about-block, .about-highlight-box {
        padding: 2rem 1.5rem;
    }

    .tracking-wrapper {
        padding: 1.5rem;
    }

    .tracking-form {
        flex-direction: column;
    }
}

@media(max-width: 480px) {
    header.hero h1 {
        font-size: 1.7rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }


    /* Styles du Footer Légal & Modulaire */
.legal-footer {
    background-color: #050505;
    color: #999;
    font-family: 'Lato', sans-serif;
    border-top: 1px solid #222;
    margin-top: 4rem;
    padding-top: 3rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 2.5rem;
}

.footer-box h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.footer-box h3 span {
    color: var(--accent, #007bff);
}

.footer-box h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background: var(--accent, #007bff);
}

.company-legal-info, .footer-contact-list, .footer-links-list {
    font-size: 0.85rem;
    line-height: 1.6;
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-legal-info em {
    color: #bbb;
    font-style: normal;
}

.secure-notice {
    display: inline-block;
    margin-top: 8px;
    color: #10b981;
    font-weight: 600;
    font-size: 0.8rem;
}

.footer-contact-list li, .footer-links-list li {
    margin-bottom: 0.6rem;
}

.footer-contact-list a, .footer-links-list a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover, .footer-links-list a:hover {
    color: var(--accent, #007bff);
}

.footer-bottom-bar {
    background-color: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}
}