/* ============================================
   Audit & Diagnostics IDF — Feuille de style
   Palette : bleu marine + orange (logo Audit & Diag)
   ============================================ */

:root {
    /* Couleurs de marque */
    --color-primary: #1e3a5f;
    --color-primary-dark: #142a47;
    --color-primary-light: #2d5384;
    --color-accent: #f57c2e;
    --color-accent-dark: #d9651a;
    --color-success: #22c55e;

    /* Couleurs DPE (étiquette énergétique) */
    --dpe-a: #00a651;
    --dpe-b: #4cb050;
    --dpe-c: #c9d200;
    --dpe-d: #ffec00;
    --dpe-e: #fdb913;
    --dpe-f: #ee7d11;
    --dpe-g: #e30613;

    /* Thème clair */
    --bg-base: #ffffff;
    --bg-elevated: #ffffff;
    --bg-subtle: #f3f6fb;
    --bg-card: #ffffff;
    --bg-input: #f9fafb;
    --text-primary: #0f1e30;
    --text-secondary: #1f2937;
    --text-muted: #6b7280;
    --border-subtle: #e5e7eb;
    --header-bg: rgba(255, 255, 255, 0.96);
    --footer-bg: #0f1e30;
    --footer-text: #cbd5e1;

    --shadow-sm: 0 2px 8px rgba(15, 30, 48, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 30, 48, 0.10);
    --shadow-lg: 0 20px 60px rgba(15, 30, 48, 0.18);
    --shadow-primary: 0 8px 20px rgba(30, 58, 95, 0.25);
    --shadow-accent: 0 8px 20px rgba(245, 124, 46, 0.3);

    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 80px;
    --topbar-h: 40px;
}

/* Thème sombre */
[data-theme="dark"] {
    --bg-base: #0a1320;
    --bg-elevated: #111c2d;
    --bg-subtle: #15243a;
    --bg-card: #142035;
    --bg-input: #0f1a2b;
    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-subtle: #1e2e47;
    --header-bg: rgba(10, 19, 32, 0.92);
    --footer-bg: #050a13;
    --footer-text: #94a3b8;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);

    --color-primary: #4a82c4;
    --color-primary-dark: #3a6ba3;
    --color-primary-light: #6b9dd6;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--topbar-h));
}

body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    background: var(--bg-base);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--color-accent); }

.hidden-field { position: absolute; left: -10000px; }

/* ============== Topbar ============== */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    z-index: 101;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}
.topbar-contacts {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.92);
    transition: color var(--transition);
    font-weight: 500;
}
.topbar-link:hover { color: var(--color-accent); }
.topbar-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-sep { color: rgba(255, 255, 255, 0.3); }
.topbar-tagline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.82rem;
}
.topbar-tagline svg { width: 14px; height: 14px; }

/* ============== Boutons ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    font-family: var(--font-display);
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 124, 46, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}
.btn-full { width: 100%; }

/* ============== Header ============== */
.header {
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    transition: all var(--transition);
}
.header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    transition: color var(--transition);
}
.logo-icon { width: 38px; height: 30px; flex-shrink: 0; }
.logo-icon path { transition: stroke var(--transition); }

.logo-text { display: flex; align-items: center; line-height: 1; }
.logo-audit { color: var(--color-primary); }
.logo-diag { color: var(--color-accent); }

.header:not(.scrolled) .logo-audit { color: #fff; }
.header:not(.scrolled) .logo-icon path:first-child { stroke: #fff; }
[data-theme="dark"] .header.scrolled .logo-icon path:first-child { stroke: var(--color-primary-light); }

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav a {
    font-size: 0.93rem;
    font-weight: 500;
    color: #fff;
    position: relative;
    transition: color var(--transition);
}
.header.scrolled .nav a { color: var(--text-secondary); }

.nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    background: var(--color-accent);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 10px;
    transition: all var(--transition);
    font-weight: 600;
}
.nav-cta:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

/* ============== Theme toggle ============== */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}
.header.scrolled .theme-toggle {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.burger {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: space-around;
}
.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all var(--transition);
}
.header.scrolled .burger span { background: var(--text-primary); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============== Hero ============== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding-top: calc(var(--header-h) + var(--topbar-h));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 30, 48, 0.85), rgba(30, 58, 95, 0.75)),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(245, 124, 46, 0.18) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(10, 19, 32, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(245, 124, 46, 0.15);
    border: 1px solid rgba(245, 124, 46, 0.4);
    color: #fdba74;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.7s 0.2s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    max-width: 600px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    opacity: 0;
    animation: fadeUp 0.7s 0.65s forwards;
}

.hero-meta {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s 0.8s forwards;
}
.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 16px;
    border-left: 3px solid var(--color-accent);
}
.hero-meta-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}
.hero-meta-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* DPE card dans le hero */
.hero-visual {
    opacity: 0;
    animation: fadeUp 0.8s 0.7s forwards;
}
.dpe-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    transform: rotate(-1deg);
    transition: transform var(--transition);
}
.dpe-card:hover { transform: rotate(0deg) translateY(-4px); }
.dpe-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}
.dpe-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dpe-bar {
    padding: 12px 16px;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-display);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition);
}
.dpe-bar span { font-size: 0.75rem; font-weight: 500; opacity: 0.95; }
.dpe-bar:nth-child(1) { width: 50%; }
.dpe-bar:nth-child(2) { width: 58%; }
.dpe-bar:nth-child(3) { width: 66%; }
.dpe-bar:nth-child(4) { width: 76%; color: #1e3a5f; }
.dpe-bar:nth-child(5) { width: 84%; }
.dpe-bar:nth-child(6) { width: 92%; }
.dpe-bar:nth-child(7) { width: 100%; }
.dpe-a { background: var(--dpe-a); }
.dpe-b { background: var(--dpe-b); }
.dpe-c { background: var(--dpe-c); color: #1e3a5f !important; }
.dpe-d { background: var(--dpe-d); color: #1e3a5f !important; }
.dpe-e { background: var(--dpe-e); }
.dpe-f { background: var(--dpe-f); }
.dpe-g { background: var(--dpe-g); }
.dpe-active {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}
.dpe-arrow { position: absolute; right: -22px; color: #1e3a5f; font-size: 1.2rem; }

/* ============== Trust band ============== */
.trust {
    background: var(--bg-elevated);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.trust-item {
    display: flex;
    gap: 16px;
    align-items: center;
}
.trust-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--bg-subtle);
    color: var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}
.trust-item strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 2px;
}
.trust-item span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ============== Section commune ============== */
section { padding: 100px 0; }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.85rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============== Reveal ============== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============== About ============== */
.about { background: var(--bg-subtle); }

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-text .section-tag { margin-bottom: 12px; }
.about-text .section-title { text-align: left; margin-bottom: 24px; }
.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
    font-size: 1.02rem;
}
.about-text p strong { color: var(--text-primary); }

.about-list {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 12px;
}
.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}
.check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--color-success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Certification card */
.cert-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}
.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.cert-badge {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-primary);
}
.cert-badge svg { width: 36px; height: 36px; }
.cert-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}
.cert-card > p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}
.cert-details {
    display: grid;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}
.cert-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
}
.cert-detail span { color: var(--text-muted); }
.cert-detail strong { color: var(--text-primary); font-weight: 600; }

/* ============== Diagnostics ============== */
.diagnostics { background: var(--bg-base); }

.diag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.diag-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
}
.diag-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}
.diag-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: all var(--transition);
}
.diag-card:hover .diag-icon {
    background: var(--color-accent);
    transform: scale(1.05);
}
.diag-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 700;
}
.diag-subtitle {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 12px;
}
.diag-card > p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.diag-tag {
    display: inline-block;
    background: var(--bg-subtle);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}
[data-theme="dark"] .diag-tag {
    background: rgba(74, 130, 196, 0.15);
    color: var(--color-primary-light);
}

.diag-cta {
    text-align: center;
    margin-top: 64px;
    padding: 40px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
}
.diag-cta p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

/* ============== Processus ============== */
.process { background: var(--bg-subtle); }

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-accent) 0, var(--color-accent) 6px, transparent 6px, transparent 14px);
    z-index: 0;
}
.step {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}
.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.step-num {
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-primary);
}
.step:nth-child(2) .step-num,
.step:nth-child(4) .step-num { background: var(--color-accent); box-shadow: var(--shadow-accent); }
.step h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}
.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============== Zone d'intervention ============== */
.zone { background: var(--bg-base); }

.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.dept {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all var(--transition);
    cursor: default;
}
.dept:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.dept-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}
.dept-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.zone-note {
    margin-top: 48px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-subtle);
    border-left: 4px solid var(--color-accent);
    padding: 24px 28px;
    border-radius: var(--radius-sm);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.zone-note-icon {
    flex-shrink: 0;
    font-size: 1.6rem;
    line-height: 1;
}
.zone-note-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 700;
}
.zone-note-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}
.zone-note-text a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.zone-note-text a:hover { color: var(--color-accent-dark); }

/* ============== FAQ ============== */
.faq { background: var(--bg-subtle); }

.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}
.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all var(--transition);
}
.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}
.faq-item summary {
    padding: 22px 28px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--bg-subtle);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    transition: all var(--transition);
}
.faq-item[open] summary::after {
    content: '−';
    background: var(--color-accent);
    color: #fff;
    transform: rotate(180deg);
}
.faq-item summary:hover { background: var(--bg-subtle); }
.faq-item p {
    padding: 0 28px 24px;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-item p strong { color: var(--text-primary); }

.faq-list-inline {
    list-style: none;
    padding: 0 28px 24px;
    margin: 0;
    display: grid;
    gap: 10px;
}
.faq-list-inline li {
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
    font-size: 0.95rem;
}
.faq-list-inline li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}
.faq-list-inline li strong { color: var(--text-primary); font-weight: 700; }

/* ============== Devis ============== */
.devis { background: var(--bg-base); }

.devis-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.devis-form {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(245, 124, 46, 0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
    margin-top: 6px;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.checkbox-item span {
    padding-left: 2px;
}
.checkbox-item:hover {
    border-color: var(--color-accent);
    color: var(--text-primary);
}
.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
    cursor: pointer;
}
.checkbox-item:has(input:checked) {
    background: rgba(245, 124, 46, 0.08);
    border-color: var(--color-accent);
    color: var(--text-primary);
}
.checkbox-pack {
    grid-column: 1 / -1;
    background: rgba(30, 58, 95, 0.04);
    font-weight: 600;
}
[data-theme="dark"] .checkbox-pack { background: rgba(74, 130, 196, 0.1); }

.form-actions { margin-top: 28px; }
.form-note {
    text-align: center;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Devis aside */
.devis-aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.devis-info {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 36px;
    flex: 1;
}
.devis-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}
.devis-info > p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 28px;
    font-size: 0.95rem;
}
.contact-block { display: grid; gap: 18px; }
.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.contact-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-weight: 600;
}
.contact-item a, .contact-item span {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    transition: color var(--transition);
}
.contact-item a:hover { color: #fdba74; }

.devis-badge {
    background: var(--color-accent);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-accent);
}
.devis-badge strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 4px;
}
.devis-badge span {
    font-size: 0.88rem;
    opacity: 0.95;
}

/* ============== Footer ============== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 72px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand .logo {
    color: #fff;
    margin-bottom: 18px;
}
.footer-brand .logo-audit { color: #fff; }
.footer-brand .logo-diag { color: var(--color-accent); }
.footer-brand p {
    color: rgba(203, 213, 225, 0.7);
    line-height: 1.7;
    font-size: 0.93rem;
    max-width: 320px;
}
.footer-col h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 18px;
    color: #fff;
    font-weight: 700;
}
.footer-col a, .footer-col span {
    display: block;
    color: rgba(203, 213, 225, 0.7);
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
    border-top: 1px solid rgba(203, 213, 225, 0.1);
    padding: 22px 0;
}
.footer-bottom p {
    text-align: center;
    color: rgba(203, 213, 225, 0.5);
    font-size: 0.83rem;
}

/* ============== Page Merci ============== */
.thanks-page {
    min-height: calc(100vh - var(--topbar-h) - var(--header-h) - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + var(--topbar-h) + 40px) 0 60px;
    background: var(--bg-subtle);
}

.thanks-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    box-shadow: var(--shadow-lg);
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    animation: thanksFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.thanks-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-success), var(--color-accent));
}

@keyframes thanksFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.thanks-check {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    animation: thanksCheckBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
.thanks-check svg { width: 100%; height: 100%; }
.check-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.6s ease-out 0.6s forwards;
}
@keyframes thanksCheckBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.thanks-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.thanks-subtitle {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.7;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.thanks-subtitle strong { color: var(--color-primary); font-weight: 700; }

.thanks-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.thanks-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-subtle);
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}
.thanks-step-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.thanks-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    line-height: 1.3;
}
.thanks-step-text strong {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 0.95rem;
}
.thanks-step-text span {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.thanks-step-arrow {
    color: var(--color-accent);
    font-size: 1.4rem;
    font-weight: 700;
}

.thanks-urgency {
    background: linear-gradient(135deg, rgba(245, 124, 46, 0.08), rgba(30, 58, 95, 0.08));
    border-left: 4px solid var(--color-accent);
    padding: 28px 32px;
    border-radius: var(--radius-md);
    margin-bottom: 36px;
    text-align: left;
}
.thanks-urgency p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}
.thanks-urgency strong { color: var(--text-primary); font-weight: 700; }

.thanks-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.thanks-cta .btn,
.thanks-cta .btn-outline {
    flex: 1;
    min-width: 200px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-family: var(--font-display);
    transition: all var(--transition);
    text-decoration: none;
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.thanks-home-link {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
}
.thanks-home-link:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

@media (max-width: 720px) {
    .thanks-card { padding: 40px 24px; }
    .thanks-check { width: 80px; height: 80px; }
    .thanks-steps { flex-direction: column; gap: 8px; }
    .thanks-step-arrow { transform: rotate(90deg); }
    .thanks-step { width: 100%; }
    .thanks-urgency { padding: 20px; }
    .thanks-cta { flex-direction: column; }
    .thanks-cta .btn,
    .thanks-cta .btn-outline { width: 100%; }
}

/* ============== Bouton flottant Appeler ============== */
.call-float {
    position: fixed;
    bottom: 32px;
    left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px 14px 16px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-accent);
    z-index: 50;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font-display);
}
.call-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    border: 2px solid var(--color-accent);
    opacity: 0.5;
    animation: callPulse 2.4s ease-out infinite;
    pointer-events: none;
}
.call-float:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(245, 124, 46, 0.5);
}
.call-float svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.call-float-label { white-space: nowrap; }

@keyframes callPulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    70% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* ============== Back to top ============== */
.back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 50;
}
.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-top:hover {
    background: var(--color-accent-dark);
    transform: translateY(-4px);
}

/* ============== Responsive ============== */
@media (max-width: 1100px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual { max-width: 420px; }
}

@media (max-width: 960px) {
    .trust-items { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .diag-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .devis-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
    .topbar { display: none; }
    :root { --topbar-h: 0px; }
    .header { top: 0; }
}

@media (max-width: 720px) {
    section { padding: 70px 0; }

    .call-float {
        padding: 12px 18px 12px 14px;
        bottom: 20px;
        left: 20px;
        font-size: 0.9rem;
    }
    .call-float svg { width: 20px; height: 20px; }

    .header-inner .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        flex-direction: column;
        align-items: stretch;
        padding: 28px 24px;
        gap: 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform var(--transition);
    }
    .header-inner .nav.open { transform: translateY(0); }
    .nav a {
        color: var(--text-secondary) !important;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-subtle);
        font-size: 1rem;
    }
    .nav-cta {
        background: var(--color-accent) !important;
        color: #fff !important;
        margin-top: 12px;
        text-align: center;
    }
    .burger { display: flex; }

    .logo { font-size: 1.25rem; }
    .logo-icon { width: 32px; height: 26px; }

    .hero-meta { gap: 20px; }
    .hero-meta-value { font-size: 1.4rem; }

    .diag-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .devis-form { padding: 28px; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; }
    .trust-items { grid-template-columns: 1fr; gap: 20px; }
}
