:root {
    --primary: #4AB6C8;
    --secondary: #5D5FBC;
    --accent: #E74C3C;
    --bg-dark: #0B1623;
    --bg-darker: #050b12;
    --bg-light: #F4F7F6;
    --bg-white: #FFFFFF;
    --text-main: #1A1A1A;
    --text-light: #E0E0E0;
    --text-muted: #A0A0A0;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --font-main: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; color: var(--bg-dark); margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: #555; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.section-padding { padding: 5rem 0; }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }
.bg-dark h2, .bg-dark p { color: var(--text-light); }
.bg-light { background-color: var(--bg-light); }

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(93, 95, 188, 0.3);
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(93, 95, 188, 0.4); 
    opacity: 0.95;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    background: transparent;
}
.btn-outline-light:hover { border-color: white; background: white; color: var(--bg-dark); }

.btn-urgent { background-color: var(--accent); color: white; }

header {
    background-color: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 140px;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 140px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img { 
    height: 110px;
    width: auto; 
    transition: 0.3s;
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links .btn-primary { color: white !important; opacity: 1; } 

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: white; margin: 5px; transition: 0.3s; }
.burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.burger.toggle .line2 { opacity: 0; }
.burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

.hero {
    min-height: 92.5vh;
    background-color: #0B1623; 
    background-image: linear-gradient(rgba(11, 22, 35, 0.85), rgba(11, 22, 35, 0.7)), url('../images/bg.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    margin-top: -140px;
    padding-top: 140px;
    display: flex;
    align-items: center;
    color: white;
}
.hero h1 { font-size: 3.5rem; line-height: 1.2; color: white; margin-bottom: 1.5rem; }
.hero p { color: var(--text-light); font-size: 1.08rem; max-width: 780px; margin-bottom: 1rem; }
.hero p:last-of-type { margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; }

.page-header {
    background-color: #0B1623;
    background-image: linear-gradient(rgba(11, 22, 35, 0.9), rgba(11, 22, 35, 0.8)), url('../images/bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: -140px;
    padding: calc(8rem + 140px) 0 5rem;
    text-align: center;
    color: white;
}
.page-header h1 { color: white; margin-bottom: 0.5rem; font-size: 2.5rem; }
.page-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.grid-3-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.grid-3-centered .prod-item {
    flex: 0 1 calc(33.333% - 1.34rem);
    min-width: 350px;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border-bottom: 5px solid transparent;
}
.card:hover { transform: translateY(-5px); border-bottom-color: var(--primary); }
.card-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1.5rem; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: -3rem;
}
.contact-info {
    border-right: 1px solid #e0e0e0;
    padding-right: 3rem;
}
.contact-info p, .contact-info div { color: #444; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--bg-dark); }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
}
.form-control:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(74, 182, 200, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; max-height: 500px; }

/* Champs obligatoires */
.required-star {
    color: var(--accent);
    font-weight: 700;
}
.required-notice {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Spinner bouton */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.map-container {
    margin-top: 2rem;
    height: 300px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #eee;
}
.map-container iframe { width: 100%; height: 100%; display: block; }

.prod-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.prod-item:hover { transform: translateY(-5px); }
.prod-img { height: 250px; background-color: #eee; position: relative; flex-shrink: 0; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-content { 
    padding: 2rem; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.prod-content p {
    flex-grow: 1;
}
.prod-content .btn {
    align-self: center;
    margin-top: auto;
}
.prod-specs { list-style: none; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eee; }
.prod-specs li { font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }

.partners-section {
    position: relative;
    overflow: hidden;
}

.partners-section .text-center h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.partners-section .text-center h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.partners-carousel {
    position: relative;
    border-radius: 16px;
    background: transparent;
}

.partners-track {
    overflow: hidden;
    padding: 1.5rem 0 2.5rem;
}

.partners-carousel::before,
.partners-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.partners-carousel::before {
    left: 0;
    background: linear-gradient(to right, #F4F7F6 0%, rgba(244,247,246,0) 100%);
}

.partners-carousel::after {
    right: 0;
    background: linear-gradient(to left, #F4F7F6 0%, rgba(244,247,246,0) 100%);
}

.partners-slider {
    display: flex;
    width: max-content;
    animation: partners-scroll 36s linear infinite;
    gap: 1rem;
}

.partner-logo {
    height: 100px;
    min-width: 200px;
    padding: 1.25rem 1.75rem;
    border: 1.5px solid #e8edf3;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.partner-logo:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 35px rgba(74, 182, 200, 0.22);
    border-color: rgba(74, 182, 200, 0.5);
}

.partner-logo img {
    max-height: 54px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

@keyframes partners-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.emergency-banner {
    background: var(--bg-dark);
    color: white;
    border-left: 10px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 2rem;
    margin: 6rem auto; 
    border-radius: 8px;
    gap: 2rem;
}
.emergency-text h3 { color: white; margin: 0; }

.depannage-hotline-wrap {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.depannage-hotline-card {
    position: relative;
    margin-top: 1rem;
    padding: 2.2rem;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(155deg, #ffffff 0%, #f9fbff 62%, #eef5ff 100%);
    border: 1px solid #d9e6f3;
    box-shadow: 0 16px 45px rgba(11, 22, 35, 0.16);
}

.depannage-hotline-card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 182, 200, 0.28) 0%, rgba(74, 182, 200, 0) 70%);
}

.depannage-phone-list {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.depannage-phone-separator {
    color: #97a3b1;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: lowercase;
}

.depannage-phone-link {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #e74c3c 0%, #d93d2d 100%);
    box-shadow: 0 10px 24px rgba(231, 76, 60, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.depannage-phone-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(231, 76, 60, 0.4);
    filter: brightness(1.03);
}

section[id] { scroll-margin-top: 130px; }

footer {
    background-color: var(--bg-darker);
    color: var(--text-muted);
    padding-top: 4rem;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo { 
    height: 110px; 
    width: auto; 
    margin-bottom: 1rem; 
}

.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }

.footer-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.footer-col ul li.address-item { align-items: center; }

.footer-col ul li i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 4px;
}

.footer-col ul li.address-item i { margin-top: 0; }

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}
.footer-address-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    line-height: 1.4;
}

.footer-bottom {
    background-color: #020406;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links a { color: #555; margin: 0 10px; font-size: 0.8rem; }
.footer-links a:hover { color: var(--primary); }

.creator-signature {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.creator-signature a {
    display: inline-block;
    opacity: 0.8;
}

.creator-signature a:hover { opacity: 1; }
.creator-signature img { max-width: 200px; height: auto; display: block; }

/* Section deux colonnes */
.two-col-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.two-col-section .col-image {
    min-height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.two-col-section .col-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 968px) {
    .hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .two-col-section {
        grid-template-columns: 1fr;
    }
    
    .two-col-section .col-image {
        order: 2;
        min-height: 250px;
        margin-top: 2rem;
    }
    
    .two-col-section .col-text {
        order: 1;
    }
}

@media (max-width: 768px) {
    header { height: 90px; }
    .logo img { height: 60px; }
    .hero {
        margin-top: -90px;
        padding-top: 90px;
    }
    .page-header {
        margin-top: -90px;
        padding-top: calc(8rem + 90px);
    }
    
    /* Menu burger - caché par défaut, visible quand ouvert */
    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        height: calc(100vh - 90px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        gap: 0;
        z-index: 999;
        /* Caché par défaut avec visibility et opacity */
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-links.active {
        visibility: visible;
        opacity: 1;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links li:last-child a {
        margin-top: 1rem;
        border-bottom: none;
    }
    
    .burger { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.95rem; }
    .hero-btns { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .emergency-banner { flex-direction: column; text-align: center; gap: 1.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; padding: 1.5rem; gap: 2rem; }
    .contact-info {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 3rem;
        margin-bottom: 2rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-3-centered .prod-item {
        flex: 0 1 100%;
        min-width: 0;
    }

    .depannage-hotline-card {
        padding: 1.25rem;
    }

    .depannage-phone-list {
        flex-direction: column;
        gap: 0.75rem;
    }

    .depannage-phone-separator {
        font-size: 0.9rem;
    }

    .depannage-phone-link {
        font-size: 1.25rem;
    }

    .partners-carousel::before,
    .partners-carousel::after {
        width: 50px;
    }

    .partner-logo {
        min-width: 150px;
        height: 80px;
        padding: 0.875rem 1.25rem;
        border-radius: 12px;
    }

    .partner-logo img {
        max-height: 44px;
        max-width: 115px;
    }
}
