/* Micro-Clean specific styles - Home page */
.hero {
    background: var(--hero-gradient);
    color: white;
    padding: 6rem clamp(1.25rem, 5vw, 4rem);
    text-align: center;
    margin: 0 calc(50% - 50vw);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    position: relative;
    z-index: 2;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* Hero avec image de fond personnalisée (modifiable dans le Customizer) */
.hero.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero.has-bg-image::before {
    background: rgba(13, 27, 42, 0.55);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    max-width: 820px;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    opacity: 0.95;
    color: white;
}

.hero .btn {
    background-color: white;
    color: var(--cta-bg);
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.hero .btn:hover {
    background-color: #FFFFFF;
    color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.services {
    padding: 2rem 0;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-family: var(--font-primary);
}

.feature p {
    color: var(--text-secondary);
}

.service-types {
    margin: 2rem 0;
}

.service {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.service:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.service p {
    color: var(--text-secondary);
}

.cta {
    background-color: var(--primary-light);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 3rem 0;
    border: 1px solid rgba(123, 170, 216, 0.2);
    box-shadow: var(--shadow-sm);
}

.cta h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.cta p {
    color: var(--text-secondary);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .service {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
}

/* ============================================================================
   Page d'accueil — mises en page des sections
   ============================================================================ */

section {
    padding: 120px 0;
}

/* Titre de section centré + soulignement dégradé */
.section-title {
    text-align: center;
    color: var(--blue-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    margin: 1rem auto 0;
    background: var(--hero-gradient);
    border-radius: 2px;
}

/* ----- Layout texte / image ----- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split--reverse .split-text { order: 2; }
.split--reverse .split-media { order: 1; }

.split-text h2 {
    color: var(--blue-dark);
    padding-bottom: 1rem;
    position: relative;
    margin-bottom: 1.25rem;
}

.split-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--hero-gradient);
    border-radius: 2px;
}

/* Emplacement réservé à l'image (voile sombre à 30 %) */
.split-media,
.media-standalone {
    position: relative;
    min-height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-media .placeholder-label,
.media-standalone .placeholder-label {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1.3rem;
    border: 1px dashed rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.18);
}

.split-media--map { min-height: 420px; }

.media-standalone {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    min-height: 260px;
}

/* Images éditables dans les emplacements réservés */
.split-media img,
.media-standalone img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ----- Section centrée ----- */
.centered {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* ----- Cartes "Pourquoi choisir" & services ----- */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-list--stack { grid-template-columns: 1fr; }

.feature-item {
    background: #FFFFFF;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    opacity: 1;
    transition: opacity 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 1.1s ease;
    pointer-events: none;
}

.feature-item:hover::after {
    left: 140%;
}

/* ---- Statistiques ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stats--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--blue-dark), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.stats--single {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.stats--single .stat {
    max-width: 340px;
    width: 100%;
    background: #FFFFFF;
    padding: 1.75rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.stats--single .stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

/* ---- Marqueurs de carte (survol) ---- */
.map-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.25s ease;
    z-index: 3;
}

.map-marker::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid var(--green);
    opacity: 0.6;
    animation: markerPulse 2.4s ease-out infinite;
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.6);
}

@keyframes markerPulse {
    0% { transform: scale(0.6); opacity: 0.7; }
    100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 560px) {
    .stats {
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1.45rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-light), #F0FDF4);
    color: var(--blue-dark);
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-item h4 { margin-bottom: 0.4rem; color: var(--blue-dark); font-size: 1.05rem; font-weight: 600; }
.feature-item p { margin-bottom: 0; font-size: 0.95rem; }

/* ----- Listes à puces cochées ----- */
.check-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 800;
}

.check-list li strong { color: var(--text-primary); }

.check-list--arrow li::before {
    content: '→';
    color: var(--blue-dark);
    font-weight: 600;
}

.check-list--dot li::before {
    content: '';
    width: 8px;
    height: 8px;
    top: 0.6em;
    border-radius: 50%;
    background: var(--green);
}

.check-list--centered {
    text-align: center;
}

.check-list--centered li {
    position: static;
    padding-left: 0;
}

.check-list--centered li::before {
    position: static;
    display: inline;
    content: '→';
    margin-right: 0.5rem;
    color: var(--blue-dark);
    font-weight: 600;
}

.city-list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.5rem;
    text-align: left;
}

.city-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
}

.city-list svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--blue-dark);
}

/* ----- Liste simple centrée (sans puce) ----- */
.plain-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.plain-list li { color: var(--text-secondary); }

/* ----- Étapes numérotées ----- */
.steps {
    list-style: none;
    counter-reset: step;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.steps li {
    counter-increment: step;
    position: relative;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 1.5rem 1.5rem 4.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.1rem;
    top: 1.2rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--hero-gradient);
    color: #fff;
    font-weight: 700;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps li h4 { margin-bottom: 0.3rem; color: var(--text-primary); font-size: 1.05rem; font-weight: 600; }
.steps li p { margin-bottom: 0; font-size: 0.95rem; }

/* ----- CTA gradient ----- */
.cta-gradient {
    background: var(--hero-gradient);
    color: #fff;
    padding: 5rem clamp(1.25rem, 5vw, 4rem);
    text-align: center;
    margin: 0 calc(50% - 50vw);
}

.cta-gradient h2 { color: #fff; }
.cta-gradient p { color: rgba(255, 255, 255, 0.92); max-width: 640px; margin-left: auto; margin-right: auto; }

.cta-gradient .btn {
    background: #fff;
    color: var(--cta-bg);
}

.cta-gradient .btn:hover {
    color: var(--cta-hover);
}

/* ----- FAQ ----- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.faq-item {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.faq-item h3 { margin-bottom: 0.5rem; color: var(--blue-dark); font-size: 1.25rem; font-weight: 600; }
.faq-item p { margin-bottom: 0; }

/* ----- Témoignages ----- */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.testimonial {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.75rem 1.75rem 2.25rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--blue), var(--green));
}

.testimonial::after {
    content: '\201C';
    position: absolute;
    top: 0.25rem;
    right: 1.1rem;
    font-size: 4rem;
    line-height: 1;
    font-weight: 700;
    color: var(--blue-light);
    pointer-events: none;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: var(--green);
    letter-spacing: 2px;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.testimonial blockquote {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.testimonial .author {
    font-weight: 600;
    color: var(--blue-dark);
    font-size: 0.9rem;
    margin: 0;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    section { padding: 72px 0; }

    .split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .split--reverse .split-text { order: 1; }
    .split--reverse .split-media { order: 2; }

    .faq-grid { grid-template-columns: 1fr; }

    .split-media { min-height: 260px; }
    .split-media--map { min-height: 300px; }
}

/* Révélation au défilement (activée via JS) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}