/* ==========================================
   CONFIGURATIONS GÉNÉRALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2d3748;
    background-color: #fafbfc;
    line-height: 1.6;
}

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

/* ==========================================
   BARRE DE NAVIGATION (STYLE O2)
   ========================================== */
header {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 180px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(20, 74, 144, 0.08));
}

@media (max-width: 768px) {
    .logo-mark {
        width: 140px;
    }
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
}

nav ul li { 
    margin-left: 30px; 
}

nav ul li a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

nav ul li a:hover { 
    color: #0056b3; 
}

.btn-devis-nav {
    background: #0056b3;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700 !important;
}

/* ==========================================
   BANNIÈRE D'ACCUEIL (HERO)
   ========================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #f3f8fc 0%, #eaf3f7 58%, #e7f3eb 100%);
    padding: 120px 0;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-container {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-text { 
    position: relative;
    z-index: 1;
    max-width: 52%;
}

.hero-slideshow {
    position: absolute;
    top: 50%;
    right: 0;
    width: 43%;
    height: 360px;
    transform: translateY(-50%);
    overflow: hidden;
    border-radius: 20px;
    background: #dce6ed;
    box-shadow: 0 16px 40px rgba(15, 41, 66, 0.18);
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 700ms ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slideshow-controls {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-slideshow-controls button {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: 20px;
    background: rgba(15, 41, 66, 0.88);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.hero-slideshow-controls button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.badge-satisfaction {
    display: inline-block;
    background: #e3fafc;
    color: #0b7285;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 25px;
}

.hero-text h2 {
    font-size: 44px;
    color: #0f2942;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text p {
    font-size: 18px;
    color: #616e7c;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-main-orange {
    display: inline-block;
    background: #28a745; /* Vert incitatif pour le bouton principal */
    color: #fff;
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.4);
    transition: transform 0.2s;
}

.btn-main-orange:hover { 
    transform: translateY(-2px); 
}

.phone-hero { 
    color: #486581; 
    font-size: 15px; 
}

/* ==========================================
   BANDEAU DE RÉASSURANCE
   ========================================== */
.reassurance-bar {
    background: #0056b3;
    color: #fff;
    padding: 30px 0;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.reassurance-item { 
    display: flex; 
    align-items: center; 
}

.reassurance-logo-link {
    display: block;
    flex: 0 0 auto;
    margin-right: 20px;
}

.reassurance-logo {
    width: 120px;
    height: auto;
    margin-right: 0;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.reassurance-logo-certibiocide {
    width: 180px;
}

.reassurance-icon { 
    font-size: 36px; 
    margin-right: 20px; 
}

.reassurance-item h4 { 
    font-size: 17px; 
    font-weight: 700; 
    margin-bottom: 2px;
}

.reassurance-item p { 
    font-size: 14px; 
    color: #d9e2ec; 
}

/* ==========================================
   SECTION ET GRILLE DES SERVICES
   ========================================== */
.services-section { 
    padding: 90px 0; 
    background: #fff; 
}

.section-subtitle {
    text-align: center;
    color: #28a745;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-title {
    text-align: center;
    font-size: 34px;
    color: #0f2942;
    margin-bottom: 60px;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.06);
    border-color: #0056b3;
}

.service-icon { 
    font-size: 48px; 
    margin-bottom: 20px; 
}

.service-icon-image {
    display: block;
    width: 56px;
    height: 77px;
    object-fit: contain;
}

.service-card h3 { 
    font-size: 20px; 
    color: #0f2942; 
    margin-bottom: 15px; 
    font-weight: 700;
}

.service-card p { 
    font-size: 14.5px; 
    color: #486581; 
    margin-bottom: 25px; 
    min-height: 80px;
}

.service-read-more {
    margin-top: -15px;
    margin-bottom: 25px;
}

.service-read-more summary {
    width: fit-content;
    color: #0056b3;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.service-read-more summary::-webkit-details-marker {
    display: none;
}

.service-read-more summary::after {
    content: " +";
}

.service-read-more[open] summary::after {
    content: " −";
}

.service-card .service-read-more p {
    min-height: 0;
    margin: 10px 0 0;
}

.service-link { 
    margin-top: auto;
    text-decoration: none; 
    color: #0056b3; 
    font-weight: 700; 
    font-size: 15px; 
}

/* ==========================================
   SECTION AVIS GOOGLE
   ========================================== */
.reviews-section {
    padding: 90px 0;
    background: #f8fafc;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.g-logo {
    background: #ea4335; /* Rouge Google */
    color: #fff;
    font-weight: bold;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.stars {
    color: #ffc107; /* Étoiles jaunes */
    font-size: 16px;
}

.review-text {
    font-size: 14.5px;
    color: #4a5568;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.review-author {
    font-size: 14px;
    color: #0f2942;
    font-weight: 700;
}

.google-source {
    text-align: center;
    font-size: 13px;
    color: #a0aec0;
    margin-top: 20px;
}

/* ==========================================
   SECTION PHILOSOPHIE / À PROPOS
   ========================================== */
.about-section { 
    padding: 90px 0; 
    background: #f0f4f8; 
}

.about-content { 
    max-width: 960px; 
    margin: 0 auto; 
    padding: 48px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 41, 66, 0.06);
    text-align: left;
}

.about-content .philosophy-label { 
    color: #0056b3; 
    font-size: 13px; 
    letter-spacing: 1.5px; 
    font-weight: 800; 
    margin-bottom: 10px; 
}

.about-content h2 { 
    font-size: 32px; 
    color: #0f2942; 
    margin-bottom: 28px; 
    font-weight: 800; 
    line-height: 1.25;
    text-align: center;
}

.about-content p { 
    font-size: 16px; 
    color: #486581; 
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-content .philosophy-intro {
    font-size: 17px;
    color: #334e68;
    margin-bottom: 30px;
}

.about-content .philosophy-heading {
    margin: 30px 0 10px;
    color: #0f2942;
    font-size: 19px;
    font-weight: 700;
}

.signatures { 
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 16px; 
    color: #0f2942;
}

.signatures p {
    margin: 0;
}

.signatures a {
    color: inherit;
    text-decoration: none;
}

.signatures a:hover {
    color: #0056b3;
}

/* ==========================================
   TUNNEL DE DEVIS / FORMULAIRE
   ========================================== */
.contact-section { 
    padding: 80px 0; 
    background: #fff; 
}

.contact-details-section {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.contact-detail-card {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.contact-detail-card h3 {
    margin-bottom: 12px;
    color: #0f2942;
    font-size: 18px;
}

.contact-detail-card address,
.contact-detail-card a {
    color: #486581;
    font-size: 15px;
    font-style: normal;
    overflow-wrap: anywhere;
}

.contact-detail-card a:hover {
    color: #0056b3;
}

.contact-box {
    background: #f8fafc;
    max-width: 750px;
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    margin: 0 auto;
}

.contact-box h2 { 
    color: #0f2942; 
    font-size: 28px; 
    margin-bottom: 8px; 
    text-align: center; 
    font-weight: 800;
}

.contact-box p { 
    color: #627d98; 
    margin-bottom: 35px; 
    font-size: 15px; 
    text-align: center;
}

.contact-box .form-note {
    margin: 14px 0 0;
    font-size: 13px;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-bottom: 20px; 
}

.contact-box input, .contact-box select, .contact-box textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 10px;
    font-size: 15px;
    color: #334155;
    outline: none;
}

.contact-box input:focus, .contact-box select:focus, .contact-box textarea:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group { 
    margin-bottom: 20px; 
}

.btn-submit {
    width: 100%;
    background: #28a745;
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

/* ==========================================
   PIED DE PAGE (FOOTER)
   ========================================== */
footer { 
    background: #0f2942; 
    color: #fff; 
    padding: 60px 0 30px 0; 
}

.footer-grid { 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 0;
    text-align: center;
}

.footer-info {
    width: 100%;
}

footer h3 {
    font-size: 16px; 
    color: #9fb3c8; 
    letter-spacing: 0.5px; 
    margin-bottom: 20px; 
    font-weight: 700;
}

.footer-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 8px;
}

footer p { 
    color: #cbd5e1; 
    font-size: 14.5px; 
    margin-bottom: 10px; 
}

.footer-bottom { 
    width: 100%;
    text-align: center; 
    padding-top: 20px; 
    border-top: 1px solid #233e5b; 
    color: #627d98; 
    font-size: 13px; 
}

/* ==========================================
   ADAPTATION SMARTPHONES (RESPONSIVE)
   ========================================== */
@media(max-width: 768px) {
    .header-flex { 
        flex-direction: column; 
        gap: 15px; 
    }
    nav ul li { 
        margin: 0 10px; 
    }
    .hero { 
        text-align: center; 
        padding: 60px 0; 
    }
    .hero-container {
        flex-direction: column;
        gap: 32px;
    }
    .hero-text {
        max-width: 600px;
    }
    .hero-slideshow {
        position: relative;
        top: auto;
        right: auto;
        width: min(100%, 520px);
        height: 280px;
        transform: none;
    }
    .hero-text h2 { 
        font-size: 32px; 
    }

    .hero-actions { 
        justify-content: center; 
        gap: 15px; 
    }
    .form-row { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .about-section {
        padding: 60px 0;
    }
    .about-content {
        padding: 30px 24px;
    }
    .about-content h2 {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(120deg, #f3f8fc 0%, #eaf3f7 58%, #e7f3eb 100%);
}

.error-card {
    width: min(100%, 620px);
    padding: 48px 32px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 41, 66, 0.1);
}

.error-code {
    color: #0056b3;
    font-size: clamp(64px, 16vw, 112px);
    font-weight: 800;
    line-height: 1;
}

.error-card h1 {
    margin: 16px 0 12px;
    color: #0f2942;
    font-size: clamp(24px, 6vw, 36px);
}

.error-card p {
    margin-bottom: 28px;
    color: #4a5568;
}

.error-home-link {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    background: #0056b3;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.error-home-link:hover,
.error-home-link:focus-visible {
    background: #003f85;
}
