/* ===== Base dark theme (from style.css) ===== */
:root {
    --bg: #05060a;
    --bg-alt: #090b11;
    --bg-soft: #10131f;
    --bg-soft-alt: #131726;
    --accent: #f6c945;
    --accent-soft: rgba(246, 201, 69, 0.18);
    --accent-strong: #ffdd65;
    --danger: #ff4d6a;
    --text-main: #f5f5f7;
    --text-soft: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.25);
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
    --radius-lg: 22px;
    --radius-xl: 30px;
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.28s ease-out;
}

/* RESET / BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    /* Prevent accidental horizontal scroll (100vw, negative offsets, etc.) */
    overflow-x: hidden;
}

/* Prefer clip when supported (prevents horizontal scrollbars without creating a scrolling box) */
@supports (overflow: clip) {
    html {
        overflow-x: clip;
    }
}

body {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 0 0, #1f2937 0, transparent 48%),
        radial-gradient(circle at 100% 0, #111827 0, transparent 55%),
        var(--bg);
    color: var(--text-main);
    min-height: 100vh;
}

/* Google Reviews (base) */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.review-card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    background: var(--bg-alt);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.25rem;
}

.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.review-user {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
    background: var(--bg-soft);
    flex: 0 0 auto;
}

.review-author {
    font-weight: 800;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-stars {
    display: inline-flex;
    gap: 0.18rem;
    align-items: center;
    white-space: nowrap;
}

.review-star {
    font-size: 0.95rem;
    line-height: 1;
    color: var(--accent);
    text-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.review-star.is-off {
    color: rgba(148, 163, 184, 0.55);
    text-shadow: none;
}

.review-comment {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.review-meta {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-soft);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reviews-empty {
    color: var(--text-soft);
    margin: 0;
}

.reviews-message {
    margin: 0.9rem auto 0;
    max-width: 1200px;
    color: var(--text-soft);
    line-height: 1.6;
}

.trustindex-embed {
    max-width: 1200px;
    margin: 1rem auto 0;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 10%, #111827, transparent 60%),
        radial-gradient(circle at 85% 90%, #020617, transparent 55%),
        #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 9999;
}

.loader-circle {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.3);
    border-top-color: var(--accent);
    border-right-color: var(--accent-strong);
    animation: spin 0.7s linear infinite;
}

.loader-text {
    font-size: 0.95rem;
    color: var(--text-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* HEADER */
.header {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem min(7vw, 5rem);
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

/* Header becomes fixed only after scroll */
body.has-fixed-header {
    padding-top: var(--header-offset, 0px);
}

.header.header--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 60;
}

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

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, var(--accent-strong), transparent 55%),
        radial-gradient(circle at 80% 100%, #0ea5e9, transparent 55%),
        #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.9);
    position: relative;
    overflow: hidden;
}

.logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--bg);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-main {
    font-weight: 700;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

/* NAV */
.nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-size: 0.9rem;
}

.nav a {
    color: var(--text-soft);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.1rem;
    transition: color var(--transition-fast);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width var(--transition-med);
    border-radius: 999px;
}

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

.nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111827 !important;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(250, 204, 21, 0.6);
}

.nav-cta::after {
    display: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 999px;
}

/* HERO */
.hero {
    position: relative;
    padding: 4.2rem min(7vw, 5rem) 3.6rem;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.2), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.36), transparent 55%),
        radial-gradient(circle at 50% 90%, rgba(15, 23, 42, 0.88), var(--bg));
    mix-blend-mode: screen;
    opacity: 0.9;
    pointer-events: none;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
    z-index: 1;
}

.hero-left h1 {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2.5rem, 3.3vw, 3.6rem);
    line-height: 1.05;
    margin: 0.3rem 0 1rem;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--accent-strong);
    font-weight: 600;
}

.accent {
    background: linear-gradient(90deg, var(--accent-strong), #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 33rem;
    color: var(--text-soft);
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.8rem 0 1.5rem;
}

.btn {
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111827;
    box-shadow: 0 14px 30px rgba(250, 204, 21, 0.45);
}

.btn.ghost {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.5);
}

.btn.full {
    width: 100%;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-top: 1.2rem;
}

.hero-meta>div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.meta-number {
    font-weight: 700;
    font-size: 1.1rem;
}

.meta-label {
    font-size: 0.78rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* HERO RIGHT */
.card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.25), transparent 55%),
        rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem 1.4rem;
    backdrop-filter: blur(16px);
}

.scanner {
    margin-bottom: 1rem;
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: 0.7rem;
}

.status-pill {
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.16), rgba(21, 128, 61, 0.08));
    color: #bbf7d0;
}

.scanner-grid {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background:
        radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.4), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(250, 204, 21, 0.4), transparent 45%),
        #020617;
    overflow: hidden;
    height: 180px;
    margin-bottom: 0.9rem;
}

.scanner-line {
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.scanner-line:nth-child(1) {
    top: 25%;
}

.scanner-line:nth-child(2) {
    top: 50%;
}

.scanner-line:nth-child(3) {
    top: 75%;
}

.scanner-line:nth-child(4) {
    left: 50%;
    border-top: none;
    border-left: 1px solid rgba(148, 163, 184, 0.3);
}

.scanner-target {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--danger);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.9);
    animation: pulse 1.4s infinite ease-out;
}

.scanner-target::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    border: 1px solid rgba(248, 113, 113, 0.8);
    opacity: 0.5;
}

.scanner-target.t1 {
    top: 18%;
    left: 60%;
}

.scanner-target.t2 {
    top: 58%;
    left: 24%;
    animation-delay: 0.25s;
}

.scanner-target.t3 {
    top: 70%;
    left: 70%;
    animation-delay: 0.5s;
}

.scanner-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
}

.scanner-footer .label {
    display: block;
    color: var(--text-soft);
    margin-bottom: 0.1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.scanner-footer .value {
    font-weight: 600;
}

.stats {
    padding-top: 1rem;
}

.stats-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.2fr) auto;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.stat-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.65);
    overflow: hidden;
    position: relative;
}

.stat-fill {
    --fill: 70%;
    width: var(--fill);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.7);
}

.stat-value {
    font-weight: 600;
    font-size: 0.8rem;
}

/* SECTIONS */
.section {
    padding: 3.2rem min(7vw, 5rem);
}

.section-dark {
    background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.25), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(17, 24, 39, 0.7), transparent 50%),
        #020617;
}

.section-header {
    max-width: 40rem;
    margin-bottom: 2.4rem;
}

.eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-strong);
    margin-bottom: 0.5rem;
}

.section h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
    margin: 0 0 0.5rem;
}

.section-subtitle {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* SERVICES */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.service-card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.3rem 1.2rem 1.4rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.65);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform var(--transition-med),
        box-shadow var(--transition-med),
        border-color var(--transition-med),
        background var(--transition-med);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-med);
}

.service-card:hover {
    transform: translateY(-6px) translateZ(0);
    border-color: rgba(250, 204, 21, 0.65);
    background: radial-gradient(circle at 10% 0, rgba(250, 204, 21, 0.1), transparent 60%),
        rgba(15, 23, 42, 0.97);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.9);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 0, #facc15, transparent 60%),
        radial-gradient(circle at 100% 100%, #0ea5e9, transparent 60%),
        #020617;
    border: 1px solid rgba(248, 250, 252, 0.3);
    position: relative;
    margin-bottom: 0.3rem;
}

.service-icon::before,
.service-icon::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    border: 1px solid rgba(248, 250, 252, 0.5);
    inset: 6px;
    opacity: 0.5;
}

.service-icon::after {
    inset: 10px;
    opacity: 0.35;
}

.service-card h3 {
    font-size: 1.02rem;
    margin: 0;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-soft);
    margin: 0;
}

.service-card ul {
    padding-left: 1rem;
    margin: 0.4rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.service-card li {
    font-size: 0.8rem;
    color: rgba(209, 213, 219, 0.9);
}

/* PROCESS TIMELINE */
.timeline {
    display: grid;
    gap: 1.3rem;
    max-width: 40rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: flex-start;
}

.timeline-badge {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: radial-gradient(circle at 30% 0, var(--accent-strong), transparent 60%),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(250, 204, 21, 0.5);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.95);
}

.timeline-content h3 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.testimonial-card {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.25rem 1.3rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.75);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.quote {
    font-size: 0.9rem;
    color: rgba(229, 231, 235, 0.96);
    margin: 0;
}

.author {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.name {
    font-weight: 600;
    font-size: 0.88rem;
}

.role {
    font-size: 0.78rem;
    color: var(--text-soft);
}

/* CONTACT */
.section-contact {
    background: radial-gradient(circle at 20% 0, rgba(79, 70, 229, 0.4), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.2), transparent 55%),
        #020617;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: flex-start;
}

.contact-form {
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.25), transparent 60%),
        rgba(15, 23, 42, 0.96);
    padding: 1.4rem 1.5rem 1.6rem;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.9);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.form-group label {
    font-size: 0.8rem;
    color: rgba(229, 231, 235, 0.9);
}

input,
select,
textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    padding: 0.65rem 0.75rem;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.4);
    background: rgba(15, 23, 42, 0.96);
}

.form-footer {
    margin-top: 0.4rem;
}

.form-note {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contact-info-block {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.97);
    padding: 1rem 1.1rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
}

.contact-info-block.subtle {
    background: rgba(15, 23, 42, 0.9);
}

.contact-info-block h3 {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
}

.contact-info-block p {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(209, 213, 219, 0.9);
}

.phone-highlight {
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
}

/* FOOTER */
.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1rem min(7vw, 5rem);
    font-size: 0.78rem;
    color: var(--text-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    background: radial-gradient(circle at 100% 0, rgba(30, 64, 175, 0.3), transparent 55%),
        #020617;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 1.4rem;
    right: 1.4rem;
    background: rgba(15, 23, 42, 0.97);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    max-width: 260px;
    z-index: 40;
}

.toast.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    70% {
        transform: scale(1.05);
        opacity: 0.25;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Google Reviews */
    .reviews-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.2rem;
    }

    .review-card {
        border-radius: var(--radius-xl);
        border: 1px solid var(--border-subtle);
        background: var(--bg-alt);
        box-shadow: var(--shadow-soft);
        padding: 1.2rem 1.25rem;
    }

    .review-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .review-author {
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .review-stars {
        display: inline-flex;
        gap: 0.18rem;
        align-items: center;
        white-space: nowrap;
    }

    .review-star {
        font-size: 0.95rem;
        line-height: 1;
        color: var(--accent);
        text-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
    }

    .review-star.is-off {
        color: rgba(148, 163, 184, 0.55);
        text-shadow: none;
    }

    .review-comment {
        margin: 0;
        color: var(--text-soft);
        line-height: 1.55;
    }

    .review-meta {
        margin-top: 0.85rem;
        font-size: 0.8rem;
        color: var(--text-soft);
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .reviews-empty {
        color: var(--text-soft);
        margin: 0;
    }

    @media (max-width: 1024px) {
        .reviews-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 768px) {
        .reviews-grid {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding-inline: 1.1rem;
    }

    .nav {
        position: fixed;
        inset: 56px 0 auto 0;
        background: rgba(15, 23, 42, 0.98);
        padding: 0.7rem 1.1rem 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
        transform: translateY(-120%);
        transition: transform 0.25s ease-out;
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav-cta {
        align-self: stretch;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-inline: 1.1rem;
        padding-top: 3.2rem;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-right {
        order: -1;
    }

    .hero-meta {
        gap: 1rem;
    }

    .section {
        padding-inline: 1.1rem;
    }

    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-aside {
        order: -1;
    }

    .footer {
        padding-inline: 1.1rem;
    }
}

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

    .hero-actions {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .toast {
        left: 1.1rem;
        right: 1.1rem;
        max-width: none;
    }
}

/* ===== Navigation centering on desktop ===== */
@media (min-width: 769px) {
    .header {
        justify-content: center;
        /* center the middle nav block */
    }

    .logo,
    .header-right {
        flex: 1 1 0;
        /* balance left and right so nav stays centered */
    }

    .nav {
        justify-content: center;
        /* center nav items in the middle block */
    }
}

/* ===== Larger logo on desktop without changing header height ===== */
@media (min-width: 769px) {

    /* Keep header height fixed via token and re-balance vertical padding */
    .header {
        height: var(--headerH);
        min-height: var(--headerH);
        padding-block: calc((var(--headerH) - 42px) / 2);
        align-items: center;
    }

    /* Increase visual size of the logo image on desktop */
    .header .logo-image {
        height: 42px;
        max-height: 42px;
        width: auto;
    }
}

/* ===== Fix nav hidden on desktop by mobile transform ===== */
@media (min-width: 769px) {
    .nav {
        position: static !important;
        transform: none !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
    }

    body {
        overflow: auto !important;
        /* ensure no lock when nav is open on desktop */
    }
}

/* ===== Light theme overrides (from style-light.css) ===== */
/* Light theme overrides for index2.html */
:root {
    --bg: #f9fafb;
    --bg-alt: #ffffff;
    --bg-soft: #f3f4f6;
    --bg-soft-alt: #eef2ff;
    --text-main: #111827;
    --text-soft: #4b5563;
    --border-subtle: rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 12px 24px rgba(17, 24, 39, 0.12);
    /* Base tokens expected by overrides */
    --accent: #facc15;
    --accent-strong: #fdba74;
    --transition-fast: 180ms ease;
    --radius-xl: 16px;
    /* Consistent header height token for mobile */
    --headerH: 56px;
}

.nav {
    transform: translateY(-120%);
    transition: transform 0.5s ease;
}

.nav.open {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: #000 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        transform: translateY(-120%) !important;
        transition: transform 0.5s ease !important;
        z-index: 9999 !important;
        padding: 20px !important;
        gap: 26px !important;
    }

    .nav.open {
        transform: translateY(0) !important;
    }

    .nav a {
        font-size: 24px !important;
        color: #fff !important;
        text-decoration: none !important;
    }

    /* Empêcher le scroll derrière le menu */
    body:has(.nav.open) {
        overflow: hidden !important;
    }
}

/* ===== Header always above hero (fix stacking) ===== */
/* Light-theme overrides set the header to position: relative; restore sticky so it stays on top. */
.header {
    position: sticky;
    top: 0;
    z-index: 9000;
}


/* Base */
body {
    background:
        radial-gradient(circle at 0 0, #ffffff 0, transparent 48%),
        radial-gradient(circle at 100% 0, #f3f4f6 0, transparent 55%),
        var(--bg);
    color: var(--text-main);
}

/* Loader */
#loader {
    background:
        radial-gradient(circle at 15% 10%, #ffffff, transparent 60%),
        radial-gradient(circle at 85% 90%, #f9fafb, transparent 55%),
        #ffffff;
}

.loader-circle {
    border-color: rgba(17, 24, 39, 0.12);
    border-top-color: var(--accent);
    border-right-color: var(--accent-strong);
}

.loader-text {
    color: var(--text-soft);
}

/* Header & Nav */
.header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    /* Stabilize header height on mobile */
    min-height: var(--headerH);
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header .logo-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* remove extra padding to keep header height unchanged */
    background: transparent;
    /* no background capsule */
    border-radius: 0;
    box-shadow: none;
}

.header .logo-image {
    height: 34px;
    max-height: 34px;
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
}

.header .logo-icon,
.header .logo-text {
    display: none;
}

.nav a {
    color: #0f172a;
}

.nav a:hover {
    color: #1f2937;
    background: #f8fafc;
}

.nav-cta {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 22px rgba(250, 204, 21, 0.3);
}

/* Hamburger icon bars visible on light header */
.nav-toggle span {
    background: #0f172a;
}

/* Polygon background behind header logo for visibility */
.header::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 0;
    height: 100%;
    width: clamp(220px, 28vw, 420px);
    background:
        radial-gradient(480px 280px at 30% 25%, rgba(2, 6, 23, 0.15), transparent 60%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.06));
    clip-path: polygon(0 0, 100% 0, 72% 100%, 0% 100%);
    z-index: 0;
}

.header .logo,
.header .nav,
.header .header-right {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .header::before {
        width: clamp(200px, 46vw, 360px);
        left: -18px;
        clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
    }
}

/* Mobile tweaks for contact parallax */
@media (max-width: 768px) {
    #contact.section-contact::before {
        background-attachment: scroll;
        /* better performance & support on mobile */
        background-position: center top;
    }

    #contact.section-contact::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
    }
}

@media (max-width: 480px) {
    #contact.section-contact .section-header h2 {
        font-size: 1.15rem;
    }

    #contact.section-contact .section-subtitle {
        font-size: 0.9rem;
    }
}

/* Mobile header CTA (Urgence 24/7) */
.mobile-cta {
    display: none;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(250, 204, 21, 0.35);
}

/* Footer logo image without background capsule */
.footer-logo-image-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.footer-logo-image {
    height: 32px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.14));
}

/* Footer bottom bar — light palette */
.footer.footer-extended .footer-bottom {
    background: #ffffff !important;
    color: #374151 !important;
    border-top: 1px solid rgba(17, 24, 39, 0.08) !important;
    padding: 0.9rem 0;
    /* full width bar */
    /* Use dvw when available to avoid scrollbar-width overflow */
    width: 100vw !important;
    width: 100dvw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50dvw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50dvw) !important;
    display: flex;
    flex-direction: column;
    /* stack lines */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    box-sizing: border-box;
}

.footer.footer-extended .footer-bottom a {
    color: #1f2937 !important;
}

.footer.footer-extended .footer-bottom a:hover {
    color: #111827 !important;
}

.footer.footer-extended .footer-sep {
    color: #9ca3af !important;
    opacity: 0.6;
}

/* Full-width footer bottom on mobile (matches footer padding) */
@media (max-width: 768px) {
    .footer.footer-extended .footer-bottom {
        padding-inline: 0 !important;
        /* edge-to-edge on mobile too */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.35rem;
    }
}

/* Hide old decorative icon if present */
.footer-logo-icon {
    display: none !important;
}

/* Header phone button */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: 1px solid rgba(250, 204, 21, 0.4);
    box-shadow: 0 12px 26px rgba(250, 204, 21, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.header-phone:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(250, 204, 21, 0.45);
    filter: saturate(1.02);
}

.header-phone:active {
    transform: translateY(0);
}

.header-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-phone-label {
    text-transform: uppercase;
    font-size: 0.78rem;
}

.header-phone-number {
    font-weight: 800;
    font-size: 0.78rem;
}

/* Responsive header phone CTA */
@media (max-width: 768px) {
    .header-right {
        gap: 0.3rem;
    }

    .header-phone {
        display: none;
    }

    .header-phone-icon {
        width: 20px;
        height: 20px;
    }

    .header-phone-label {
        display: none;
    }

    .header-phone-number {
        font-size: 0.76rem;
    }

    .mobile-cta {
        display: none;
    }

    /* Mobile drawer: white background with dark links */
    .nav {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav a {
        color: #111827;
    }

    .nav a:hover {
        color: #111827;
    }

    .nav-toggle span {
        background: #ffffff;
    }

    /* keep bars white for header visibility */
    .footer-logo-image {
        height: 30px;
    }
}

@media (max-width: 768px) {
    .header .logo-image {
        height: 22px;
        max-height: 22px;
    }

    .header-phone-number {
        display: none;
    }

    .header-phone {
        padding: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --headerH: 30px;
    }

    .header {
        padding-block: 0;
    }

    .header .logo-image {
        height: 20px;
        max-height: 20px;
    }

    .header-phone {
        display: none;
    }

    .header-phone-number {
        display: none;
    }

    .header-phone-icon {
        width: 18px;
        height: 18px;
    }

    .mobile-cta {
        display: none;
    }

    .footer-logo-image {
        height: 26px;
    }
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* PATCH NAV MOBILE + ICONS SOPHISTIQUÉES */
/* Icônes dans le menu (desktop + mobile) */
.nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 0.1rem;
}

.nav-label {
    font-size: 0.88rem;
}

/* Base icône */
.nav-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.nav-icon::before,
.nav-icon::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: #0f172a;
}

/* Accueil */
.nav-icon-home::before {
    width: 6px;
    height: 6px;
}

.nav-icon-home::after {
    width: 11px;
    height: 1px;
    bottom: 3px;
    opacity: 0.7;
}

/* Services */
.nav-icon-services::before {
    width: 2px;
    height: 9px;
    left: 5px;
}

.nav-icon-services::after {
    width: 2px;
    height: 7px;
    right: 5px;
    opacity: 0.8;
}

/* Nuisibles */
.nav-icon-pests::before {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.8);
    background: transparent;
}

.nav-icon-pests::after {
    width: 3px;
    height: 3px;
}

/* Méthode */
.nav-icon-process::before {
    width: 8px;
    height: 2px;
    transform: rotate(35deg);
    left: 5px;
}

.nav-icon-process::after {
    width: 8px;
    height: 2px;
    transform: rotate(-35deg);
    right: 5px;
}

/* Avis */
.nav-icon-testimonials::before {
    width: 9px;
    height: 7px;
    border-radius: 5px;
    background: transparent;
    border: 1px solid rgba(248, 250, 252, 0.8);
}

.nav-icon-testimonials::after {
    width: 5px;
    height: 2px;
    bottom: 3px;
    left: 6px;
}

/* Contact */
.nav-icon-contact::before {
    width: 2px;
    height: 8px;
}

.nav-icon-contact::after {
    width: 4px;
    height: 4px;
    bottom: 3px;
}

.nav a:hover .nav-icon {
    border-color: rgba(250, 204, 21, 0.9);
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.4);
}

/* NAV MOBILE AVANCÉE */
.nav-toggle-advanced {
    position: relative;
    display: none;
    /* visible via media query */
    width: 34px;
    height: 28px;
    border-radius: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    margin-left: 0.6rem;
    box-shadow: none;
    transition: transform 0.2s ease-out;
    isolation: isolate;
}

.nav-toggle-orbit {
    display: none;
}

.nav-toggle-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: #000 !important;
    z-index: 2;
    transition: transform 0.25s ease-out, top 0.25s ease-out, opacity 0.2s ease-out;
}

.nav-toggle-advanced:not(.is-open) .nav-toggle-line {
    opacity: 1 !important;
}

.nav-toggle-line.line-1 {
    top: 4px;
}

.nav-toggle-line.line-2 {
    top: 13px;
}

.nav-toggle-line.line-3 {
    top: 22px;
}

.nav-toggle-advanced.is-open {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: translateY(1px);
}

.nav-toggle-advanced.is-open .line-1 {
    top: 13px;
    transform: rotate(45deg);
}

.nav-toggle-advanced.is-open .line-2 {
    opacity: 0;
    transform: translateX(-6px);
}

.nav-toggle-advanced.is-open .line-3 {
    top: 13px;
    transform: rotate(-45deg);
}

@keyframes nav-orbit {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-6px, 4px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive: mobile panel */
@media (max-width: 768px) {
    :root {
        --headerH: 30px;
    }

    .header {
        padding-inline: 1.1rem;
        height: var(--headerH);
        padding-block: 0;
    }

    .nav-toggle-advanced {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 24px;
        border: none;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    /* 3-line hamburger sizing for the smaller button */
    .nav-toggle-line {
        left: 0;
        right: 0;
        height: 2px;
    }

    .nav-toggle-line.line-1 {
        top: 7px;
    }

    .nav-toggle-line.line-2 {
        top: 11px;
    }

    .nav-toggle-line.line-3 {
        top: 15px;
    }

    .nav-toggle-advanced.is-open .line-1,
    .nav-toggle-advanced.is-open .line-3 {
        top: 11px;
    }

    /* switch to full-width panel; keep light theme if desired */
    .nav {
        position: fixed;
        inset: var(--headerH) 0 auto 0;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        padding: 0.9rem 1.1rem 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        transform: translateY(-120%);
        transition: transform 0.25s ease-out;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav a {
        width: 100%;
        padding: 0.4rem 0;
        border-radius: 999px;
        color: #0f172a;
    }

    .nav a .nav-icon {
        flex-shrink: 0;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-top: 0.4rem;
    }
}

/* Hero */
.hero-gradient {
    background:
        radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.12), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.2), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.22), var(--bg));
}

.hero-subtitle {
    color: var(--text-soft);
}

/* Hero background image layer */
.hero {
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/pexels-michelangelo-buonarroti-4176541.jpg") center / cover no-repeat;
    filter: saturate(1.06) contrast(1.05) brightness(0.96);
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Sophisticated hero photo overlay */
.hero-photo {
    position: relative;
    margin: 0 0 1.2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    isolation: isolate;
    /* allow blend layers without affecting outside */
    aspect-ratio: 16 / 9;
    background: #0b1222;
}

.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.06) brightness(0.96);
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(2, 6, 23, 0.0), rgba(2, 6, 23, 0.15) 35%, rgba(2, 6, 23, 0.35)),
        radial-gradient(1200px 520px at 0% 100%, rgba(245, 158, 11, 0.20), transparent 60%),
        radial-gradient(900px 380px at 100% 0%, rgba(56, 189, 248, 0.18), transparent 55%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    mask-image: radial-gradient(140% 90% at 50% 100%, black 40%, transparent 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.0), rgba(2, 6, 23, 0.75) 85%);
    pointer-events: none;
}

.hero-photo-overlay {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    display: grid;
    gap: 0.25rem;
    color: #f8fafc;
    padding: 0.6rem 0.8rem;
    backdrop-filter: blur(8px);
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.35);
}

.hero-photo-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-photo-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-photo-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.hero-photo-sub {
    font-size: 0.8rem;
    opacity: 0.92;
}

@media (max-width: 768px) {
    .hero-photo {
        aspect-ratio: 4 / 3;
        margin-bottom: 1rem;
    }

    .hero-photo-overlay {
        left: 0.7rem;
        right: 0.7rem;
        bottom: 0.7rem;
        padding: 0.5rem 0.7rem;
    }

    .hero-photo-title {
        font-size: 0.98rem;
    }

    .hero-photo-sub {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .hero-photo {
        aspect-ratio: 1 / 1;
    }

    .hero-photo-title {
        font-size: 0.92rem;
    }

    .hero-photo-sub {
        display: none;
    }
}

/* Buttons */
.btn.ghost {
    background: #ffffff;
    color: #111827;
    border-color: rgba(17, 24, 39, 0.12);
}

.btn:hover {
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.12);
}

.scanner-header {
    color: var(--text-soft);
}

.scanner-grid {
    background:
        radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.12), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(250, 204, 21, 0.12), transparent 45%),
        #f9fafb;
    border-color: rgba(17, 24, 39, 0.12);
}

.status-pill {
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(21, 128, 61, 0.06));
    color: #065f46;
}

.stat-bar {
    background: rgba(30, 64, 175, 0.15);
}

.stat-fill {
    box-shadow: none;
}

/* Sections */
.section-dark,
.section-contact {
    background:
        radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.12), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.12), transparent 50%),
        #ffffff;
}

.section-subtitle {
    color: var(--text-soft);
}

/* Services section — much lighter */
#services.section {
    background: #ffffff;
}

#services .section-header .eyebrow {
    color: #b45309;
}

#services .section-header h2 {
    color: #111827;
}

#services .section-subtitle {
    color: #4b5563;
}

#services .cards-grid {
    gap: 1.8rem;
}

#services .service-card {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.10);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.10);
}

#services .service-card::before {
    display: none;
}

#services .service-card:hover {
    border-color: rgba(250, 204, 21, 0.35);
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(17, 24, 39, 0.12);
}

#services .service-card h3 {
    color: #111827;
}

#services .service-card p {
    color: #4b5563;
}

#services .service-card li {
    color: #374151;
}

#services .service-icon {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.10);
}

/* Service icons — insect glyphs per type (light theme) */
/* Hide decorative ring from base theme to keep icons clean */
.service-icon::before {
    display: none !important;
}

/* Base glyph layer */
.service-icon {
    position: relative;
}

.service-icon::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    /* red gradient */
    -webkit-mask-image: var(--icon);
    mask-image: var(--icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Larger red icons in services */
#services .service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

/* Wasp icon — stronger red emphasis */
#services .service-icon.bug-wasp {
    background: radial-gradient(circle at 30% 0, #fecaca, transparent 60%),
        radial-gradient(circle at 100% 100%, #fca5a5, transparent 60%),
        #ffffff;
    border: 1px solid rgba(244, 63, 94, 0.30);
}

#services .service-icon.bug-wasp::after {
    background: linear-gradient(135deg, #ff2d2d, #b91c1c) !important;
}

/* Punaises de lit (bed bugs) */
.service-icon.bug-bed {
    --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='black'><ellipse cx='32' cy='36' rx='16' ry='14'/><ellipse cx='32' cy='22' rx='10' ry='8'/><circle cx='32' cy='14' r='6'/><rect x='14' y='32' width='8' height='4' rx='2'/><rect x='42' y='32' width='8' height='4' rx='2'/><rect x='20' y='44' width='8' height='4' rx='2' transform='rotate(25 24 46)'/><rect x='36' y='44' width='8' height='4' rx='2' transform='rotate(-25 40 46)'/></g></svg>");
}

/* Fourmis (ants) */
.service-icon.bug-ant {
    --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='black'><circle cx='18' cy='32' r='8'/><circle cx='32' cy='32' r='10'/><circle cx='46' cy='32' r='8'/><rect x='12' y='22' width='6' height='3' transform='rotate(-30 15 23.5)'/><rect x='12' y='39' width='6' height='3' transform='rotate(30 15 40.5)'/><rect x='46' y='22' width='6' height='3' transform='rotate(30 49 23.5)'/><rect x='46' y='39' width='6' height='3' transform='rotate(-30 49 40.5)'/><rect x='28' y='20' width='4' height='8'/><rect x='32' y='20' width='4' height='8'/></g></svg>");
}

/* Guêpes / frelons (wasps) */
.service-icon.bug-wasp {
    --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='black'><ellipse cx='32' cy='40' rx='14' ry='10'/><ellipse cx='32' cy='26' rx='10' ry='8'/><rect x='30' y='12' width='4' height='8'/><ellipse cx='18' cy='24' rx='10' ry='6' transform='rotate(-25 18 24)'/><ellipse cx='46' cy='24' rx='10' ry='6' transform='rotate(25 46 24)'/></g></svg>");
}

/* Blattes / cafards (cockroaches) */
.service-icon.bug-cockroach {
    --icon: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='black'><ellipse cx='32' cy='34' rx='16' ry='12'/><rect x='30' y='18' width='4' height='10'/><rect x='12' y='34' width='8' height='3' transform='rotate(20 16 35.5)'/><rect x='44' y='34' width='8' height='3' transform='rotate(-20 48 35.5)'/><rect x='22' y='44' width='8' height='3' transform='rotate(35 26 45.5)'/><rect x='34' y='44' width='8' height='3' transform='rotate(-35 38 45.5)'/><rect x='20' y='22' width='10' height='2' transform='rotate(-20 25 23)'/><rect x='34' y='22' width='10' height='2' transform='rotate(20 39 23)'/></g></svg>");
}

/* Services */
.service-card {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.12);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.service-card:hover {
    border-color: rgba(250, 204, 21, 0.45);
    background: radial-gradient(circle at 10% 0, rgba(250, 204, 21, 0.08), transparent 60%), #ffffff;
    box-shadow: 0 20px 36px rgba(17, 24, 39, 0.12);
}

.service-card p {
    color: var(--text-soft);
}

.service-card li {
    color: #334155;
}

.service-icon {
    background: radial-gradient(circle at 30% 0, #facc15, transparent 60%),
        radial-gradient(circle at 100% 100%, #0ea5e9, transparent 60%),
        #ffffff;
    border: 1px solid rgba(2, 6, 23, 0.1);
}

/* Process */
.timeline-badge {
    background: radial-gradient(circle at 30% 0, var(--accent-strong), transparent 60%), #ffffff;
    border: 1px solid rgba(250, 204, 21, 0.35);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.timeline-content p {
    color: var(--text-soft);
}

/* Testimonials */
.testimonial-card {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.12);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.quote {
    color: #1f2937;
}

.role {
    color: var(--text-soft);
}

/* Testimonials carousel */
.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin-inline: auto;
}

.testimonials-track {
    position: relative;
    min-height: 260px;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 320ms ease, transform 320ms ease;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.testimonial-slide.active {
    opacity: 1;
    transform: none;
}

.testimonial-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.9rem;
}

@media (max-width: 1024px) {
    .testimonial-slide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    /* On mobile: 1 card per slide, avoid clipping by letting height be natural */
    .testimonials-track {
        min-height: 0;
    }

    .testimonial-slide {
        position: static;
        inset: auto;
        transform: none;
        transition: none;
        opacity: 1;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
        display: none;
    }

    .testimonial-slide.active {
        display: grid;
    }

    .testimonial-dots {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .dot-btn {
        width: 12px;
        height: 12px;
    }

    .testimonial-card {
        padding: 1.35rem 1.25rem;
        border-radius: 22px;
    }

    .quote {
        font-size: 0.98rem;
        line-height: 1.55;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.2rem 1.05rem;
    }
}

.dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.2);
    background: #f3f4f6;
    cursor: pointer;
    padding: 0;
    display: inline-block;
}

.dot-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: rgba(250, 204, 21, 0.6);
}

/* Star rating system */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    margin-bottom: 0.5rem;
}

.rating .star {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: linear-gradient(135deg, #facc15, #fdba74);
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/></svg>");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Empty stars by rating (0–4) */
.rating[data-rating="4"] .star:nth-child(5) {
    background: #e5e7eb;
}

.rating[data-rating="3"] .star:nth-child(n+4) {
    background: #e5e7eb;
}

.rating[data-rating="2"] .star:nth-child(n+3) {
    background: #e5e7eb;
}

.rating[data-rating="1"] .star:nth-child(n+2) {
    background: #e5e7eb;
}

.rating[data-rating="0"] .star {
    background: #e5e7eb;
}

/* Contact */
.contact-form {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.12);
}

input,
select,
textarea {
    background: #ffffff;
    color: var(--text-main);
    border-color: rgba(17, 24, 39, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* Keep contact fields white when focused (click/tap) */
#contact.section-contact .contact-form input:focus,
#contact.section-contact .contact-form select:focus,
#contact.section-contact .contact-form textarea:focus,
#contact.section-contact .contact-form input:focus-visible,
#contact.section-contact .contact-form select:focus-visible,
#contact.section-contact .contact-form textarea:focus-visible {
    background: #ffffff;
    color: #111827;
}

#contact.section-contact .contact-form input:focus::placeholder,
#contact.section-contact .contact-form textarea:focus::placeholder {
    color: #6b7280;
}

.contact-info-block {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.12);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.1);
}

.contact-info-block.subtle {
    background: #f9fafb;
}

.phone-highlight {
    color: #111827;
    font-weight: 800;
    font-size: 1.05rem;
}

.contact-info-block h3 {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #111827;
}

.contact-info-block p {
    font-weight: 600;
    color: #374151;
}

.contact-info-block.subtle p {
    font-weight: 500;
    color: #4b5563;
}

/* Contact section background with light parallax */
#contact.section-contact {
    position: relative;
    overflow: hidden;
}

#contact.section-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/2954453.jpg") center / cover no-repeat fixed;
    filter: saturate(1.06) contrast(1.05) brightness(0.94);
    z-index: 0;
}

#contact.section-contact::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78));
    z-index: 1;
}

#contact.section-contact .section-header,
#contact.section-contact .contact-layout {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: #ffffff !important;
    /* ensure no dark gradient leaks */
    color: #374151;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: none;
}

.footer span {
    color: #4b5563;
}

.footer a {
    color: #1f2937;
    text-decoration: underline;
}

.footer a:hover {
    color: #111827;
}

/* Footer Extended — light, readable */
.footer.footer-extended {
    background: #ffffff !important;
    color: #374151 !important;
    border-top: 1px solid rgba(17, 24, 39, 0.06) !important;
    background-image: none !important;
}

.footer-extended .footer-main {
    color: #374151 !important;
}

.footer-extended h4 {
    color: #111827 !important;
}

.footer-extended .footer-logo-text .footer-brand-main {
    color: #111827 !important;
}

.footer-extended .footer-brand-sub {
    color: #6b7280 !important;
}

.footer-extended .footer-intro,
.footer-extended .footer-cert,
.footer-extended .footer-areas-text {
    color: #4b5563 !important;
}

.footer-extended .footer-areas-label {
    color: #374151 !important;
    font-weight: 600 !important;
}

.footer-extended .footer-contact-block .footer-phone-label {
    color: #b45309 !important;
    font-weight: 700;
}

.footer-extended .footer-contact-block .footer-phone {
    color: #0f172a !important;
    font-weight: 700;
}

.footer-extended .footer-contact-block .footer-mail {
    color: #1f2937 !important;
}

.footer-extended .footer-links li {
    color: #374151 !important;
}

.footer-extended .footer-links a {
    color: #1f2937 !important;
    text-decoration: none;
}

.footer-extended .footer-links a:hover {
    color: #111827 !important;
    text-decoration: underline;
}

.footer-extended .footer-badges .footer-badge {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    box-shadow: none !important;
}

.footer-extended .footer-bottom {
    border-top: 1px solid rgba(17, 24, 39, 0.08) !important;
    color: #4b5563 !important;
}

.footer-extended .footer-bottom a {
    color: #1f2937 !important;
}

.footer-extended .footer-bottom .footer-sep {
    color: #9ca3af !important;
}

/* Toast */
.toast {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.12);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

/* Scroll-to-top button */
.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111827;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
}

.scroll-top:active {
    transform: translateY(1px);
}

/* Pests section — lighter palette overrides */
#pests.section-dark {
    background:
        radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.10), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.10), transparent 50%),
        #ffffff !important;
}

/* Alien trigger (top-right) */
#pests {
    position: relative;
}

.pests-alien-trigger {
    --alien-size: 156px;
    position: absolute;
    top: 18px;
    right: 18px;
    width: var(--alien-size);
    height: var(--alien-size);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3;
    filter: drop-shadow(0 0 10px var(--danger));
}

.pests-alien-trigger::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: conic-gradient(
        from 0deg,
        transparent 0 40deg,
        var(--danger) 40deg 60deg,
        transparent 60deg 180deg,
        var(--danger) 180deg 205deg,
        transparent 205deg 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
    animation: pests-alien-rotate 1.4s linear infinite;
    opacity: 0.95;
}


/* 3-triangle reticle (rotating) */
.pests-alien-rotor {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    animation: pests-alien-rotate 1.25s linear infinite;
    opacity: 0.95;
    pointer-events: none;
}

.pests-alien-tri {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 12px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(180deg, var(--danger), rgba(255, 255, 255, 0));
    filter: drop-shadow(0 0 10px var(--danger));
    transform-origin: center;
}

.pests-alien-tri.t1 {
    transform: translate(-50%, -50%) rotate(0deg)
        translateY(calc((var(--alien-size) / -2) + 9px));
}

.pests-alien-tri.t2 {
    transform: translate(-50%, -50%) rotate(120deg)
        translateY(calc((var(--alien-size) / -2) + 9px));
}

.pests-alien-tri.t3 {
    transform: translate(-50%, -50%) rotate(240deg)
        translateY(calc((var(--alien-size) / -2) + 9px));
}

.pests-alien-image {
    width: calc(var(--alien-size) - 26px);
    height: calc(var(--alien-size) - 26px);
    border-radius: 999px;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.03);
}

.pests-alien-trigger:hover {
    transform: translateY(-1px);
}

.pests-alien-trigger:active {
    transform: translateY(0px);
}

@keyframes pests-alien-rotate {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .pests-alien-trigger {
        --alien-size: 132px;
        top: 12px;
        right: 12px;
    }
}

#pests .pest-selector {
    gap: 0.6rem !important;
}

#pests .pest-pill {
    background: #f9fafb !important;
    color: #111827 !important;
    border-color: rgba(17, 24, 39, 0.12) !important;
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.08) !important;
}

#pests .pest-pill::before {
    background: #9ca3af !important;
}

#pests .pest-pill:hover {
    border-color: rgba(250, 204, 21, 0.35) !important;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.10) !important;
}

#pests .pest-pill.active {
    background: linear-gradient(135deg, #fde68a, #fdba74) !important;
    /* warm, light */
    border-color: rgba(250, 204, 21, 0.60) !important;
    color: #111827 !important;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12) !important;
}

#pests .pest-pill.active::before {
    background: #111827 !important;
}

#pests .pest-card {
    background: #ffffff !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.10) !important;
}

#pests .pest-card-header h3 {
    color: #111827 !important;
}

#pests .pest-scientific {
    color: #6b7280 !important;
}

#pests .pest-badge-wrapper .pest-category-pill {
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(30, 64, 175, 0.08)) !important;
    color: #1f2937 !important;
}

#pests .pest-badge-wrapper .pest-risk-chip {
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
}

#pests .pest-section h4 {
    color: #111827 !important;
}

#pests .pest-section p {
    color: #4b5563 !important;
}

#pests .pest-prevention-card {
    background: #ffffff !important;
    border: 1px solid rgba(250, 204, 21, 0.25) !important;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.10) !important;
}

#pests .pest-prevention-list li {
    color: #374151 !important;
}

#pests .pest-prevention-note {
    color: #6b7280 !important;
}

/* === PATCH HEADER : TÉLÉPHONE TOUJOURS VISIBLE, MOBILE INCLUS === */

/* Ajuste la zone droite du header */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Téléphone : style commun desktop + mobile */
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: 1px solid rgba(250, 204, 21, 0.5);
    box-shadow: 0 10px 22px rgba(250, 204, 21, 0.35);
    white-space: nowrap;
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast);
}

.header-phone:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(250, 204, 21, 0.45);
    filter: saturate(1.03);
}

.header-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-size: 0.85rem;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-phone-label {
    text-transform: uppercase;
    font-size: 0.72rem;
}

.header-phone-number {
    font-weight: 800;
    font-size: 0.82rem;
}

/* CTA mobile (tu peux choisir de l'afficher ou pas) */
.mobile-cta {
    display: none;
    /* on garde uniquement le bouton téléphone pour plus de clarté */
}

/* Bouton menu avancé déjà stylé dans ton CSS, on s'assure juste qu'il apparaît en mobile */
@media (max-width: 768px) {
    :root {
        --headerH: 56px;
    }

    .header {
        padding-inline: 1.1rem;
        height: var(--headerH);
        min-height: var(--headerH);
    }

    .header-right {
        gap: 0.3rem;
    }

    /* TELEPHONE EN MOBILE : plus compact, mais numéro visible */
    .header-phone {
        display: inline-flex;
        padding: 0.28rem 0.6rem;
        box-shadow: 0 6px 16px rgba(250, 204, 21, 0.35);
    }

    .header-phone-icon {
        width: 18px;
        height: 18px;
        font-size: 0.78rem;
    }

    .header-phone-label {
        display: none;
        /* garde seulement ✆ + numéro pour gagner de la place */
    }

    .header-phone-number {
        display: inline;
        font-size: 0.78rem;
    }

    .nav-toggle-advanced {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        margin-left: 0.25rem;
    }

    /* Position du panneau mobile déjà géré par ton CSS (inset: var(--headerH) ...) */
    .nav {
        inset: var(--headerH) 0 auto 0;
    }
}

/* Très petits écrans : encore plus serré, mais numéro toujours présent */
@media (max-width: 480px) {
    :root {
        --headerH: 52px;
    }

    .header {
        height: var(--headerH);
        min-height: var(--headerH);
    }

    .header-phone {
        display: inline-flex;
        padding: 0.24rem 0.55rem;
    }

    .header-phone-number {
        display: inline;
        font-size: 0.76rem;
    }

    .logo-image-wrap .logo-image {
        height: 20px;
        max-height: 20px;
    }
}

/* ===== Mobile full-screen nav overlay (final override) ===== */
@media (max-width: 768px) {
    .nav {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 26px !important;
        padding: 28px !important;
        transform: translateY(-120%) !important;
        transition: transform 0.35s ease !important;
        z-index: 9999 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .nav.open {
        transform: translateY(0) !important;
    }

    .nav a {
        font-size: 22px !important;
        color: #111827 !important;
        text-decoration: none !important;
    }

    /* Dedicated close (X) button inside the overlay */
    .nav-close {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        border-radius: 999px;
        border: 1px solid rgba(203, 213, 225, 0.95);
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 10002;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: scale(0.92);
        transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s ease-out;
    }

    body.nav-open .nav-close {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: scale(1);
    }

    .nav-close-icon {
        position: relative;
        width: 18px;
        height: 18px;
        display: block;
    }

    .nav-close-icon::before,
    .nav-close-icon::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 2px;
        background: #0f172a;
        border-radius: 999px;
        transform-origin: center;
        transition: transform 0.25s ease-out;
    }

    .nav-close-icon::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .nav-close-icon::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /* Keep the header toggle above overlay to allow closing */
    .nav-toggle-advanced {
        position: relative;
        z-index: 10001;
    }

    /* While open: show the toggle as a top-right close control */
    body.nav-open .nav-toggle-advanced {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 10001;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Prevent page scroll when menu is open */
    body.nav-open {
        overflow: hidden !important;
    }

    /* IMPORTANT: header uses backdrop-filter/overflow which can "contain" fixed children.
       When the menu is open, disable clipping so the nav can cover the viewport. */
    .header {
        overflow: visible !important;
    }
    body.nav-open .header {
        backdrop-filter: none !important;
    }
}