:root {
    color-scheme: dark;
    --bg: #07100d;
    --ink: #f5fbf8;
    --muted: #a9bab4;
    --line: rgba(255, 255, 255, .14);
    --panel: rgba(10, 24, 20, .82);
    --green: #40f0a0;
    --cyan: #55d8ff;
    --amber: #ffcc66;
    --red: #ff6b7a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

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

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}

.site-header {
    align-items: center;
    background: rgba(7, 16, 13, .84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr auto auto auto;
    left: 0;
    padding: 10px clamp(18px, 4vw, 56px);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 20;
}

.brand,
nav,
.hero-actions,
.form-row {
    align-items: center;
    display: flex;
    gap: 14px;
}

.brand {
    font-weight: 800;
}

.brand-logo {
    display: block;
    height: auto;
    max-height: 96px;
    object-fit: contain;
    width: auto;
    max-width: 520px;
}

.brand-mark {
    background: linear-gradient(135deg, var(--green), var(--cyan));
    border-radius: 8px;
    color: #07100d;
    display: grid;
    height: 34px;
    place-items: center;
    width: 34px;
}

.lang-switch {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    overflow: hidden;
}

.lang-switch a {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .07em;
    padding: 7px 11px;
    transition: background .15s ease, color .15s ease;
}

.lang-switch a[aria-current="true"] {
    background: var(--green);
    color: #07100d;
}

.lang-switch a:hover:not([aria-current="true"]) {
    background: rgba(255, 255, 255, .07);
    color: var(--ink);
}

nav a,
.header-action {
    color: var(--muted);
    font-size: .94rem;
    transition: color .18s ease;
}

nav a:hover {
    color: var(--ink);
}

.header-action:hover {
    color: var(--ink);
    border-color: rgba(255, 255, 255, .3);
}

.header-action {
    background: var(--green);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #07100d;
    font-weight: 800;
    padding: 9px 16px;
    transition: background .18s ease;
}

.header-action:hover {
    background: #5af5b5;
    color: #07100d;
    border-color: transparent;
}

.hero {
    align-items: end;
    display: grid;
    min-height: 92vh;
    overflow: hidden;
    padding: 130px clamp(18px, 5vw, 72px) 44px;
    position: relative;
}

#threat-canvas {
    inset: 0;
    opacity: .78;
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero::after {
    background: linear-gradient(90deg, rgba(7, 16, 13, .96), rgba(7, 16, 13, .54), rgba(7, 16, 13, .86));
    content: "";
    inset: 0;
    position: absolute;
}

.hero-content,
.signal-panel,
.attack-gauge {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 780px;
}

.eyebrow {
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.8rem);
    line-height: .95;
    margin-bottom: 22px;
    max-width: 980px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    margin-bottom: 18px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.hero-copy {
    color: #d8e8e2;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    max-width: 690px;
}

.button {
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    transition: opacity .18s ease, background .18s ease;
}

.button:hover {
    opacity: .88;
}

.primary:hover {
    opacity: 1;
    background: #5af5b5;
}

.primary {
    background: var(--green);
    border-color: transparent;
    color: #07100d;
}

.ghost {
    background: rgba(255, 255, 255, .06);
}

.signal-panel {
    align-self: end;
    border: 1px solid var(--line);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: auto;
    max-width: 650px;
    width: 100%;
}

.signal-panel div {
    background: rgba(7, 16, 13, .76);
    padding: 18px;
}

.signal-panel span,
.plan-tag,
footer,
.request-card small {
    color: var(--muted);
}

.signal-panel strong {
    display: block;
    font-size: 1.25rem;
}

.attack-gauge {
    align-self: end;
    background: rgba(7, 16, 13, .82);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 220px;
    margin-top: 22px;
    max-width: 650px;
    padding: 18px;
    width: 100%;
}

.attack-gauge h2 {
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.attack-gauge p {
    color: var(--muted);
    margin-bottom: 0;
}

.gauge-meter {
    align-items: center;
    display: grid;
    justify-items: center;
    min-width: 0;
}

.gauge-meter svg {
    height: auto;
    max-width: 220px;
    overflow: visible;
    width: 100%;
}

.gauge-track,
.gauge-fill {
    fill: none;
    stroke-linecap: round;
    stroke-width: 14;
}

.gauge-track {
    stroke: rgba(255, 255, 255, .12);
}

.gauge-fill {
    stroke: var(--green);
    stroke-dasharray: 252;
    stroke-dashoffset: 146;
    transition: stroke .35s ease, stroke-dashoffset .55s ease;
}

.gauge-needle {
    stroke: var(--ink);
    stroke-linecap: round;
    stroke-width: 4;
    transform: rotate(-28deg);
    transform-box: fill-box;
    transform-origin: 110px 110px;
    transition: transform .55s ease;
}

.gauge-hub {
    fill: var(--cyan);
}

.gauge-meter strong {
    color: var(--ink);
    font-size: 2.15rem;
    line-height: 1;
    margin-top: -20px;
}

.gauge-meter span {
    color: var(--muted);
    font-size: .88rem;
}

.gauge-stats {
    border-top: 1px solid var(--line);
    display: flex;
    gap: 14px;
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 14px;
}

.gauge-stats span {
    color: var(--muted);
    font-size: .9rem;
}

.gauge-stats b {
    color: var(--cyan);
}

.section {
    padding: 88px clamp(18px, 5vw, 72px);
}

.band {
    background: #0b1814;
}

#audit {
    background:
        linear-gradient(135deg, rgba(7,16,13,.72) 30%, rgba(7,16,13,.42) 100%),
        url('images/audit.png') center / cover no-repeat;
    position: relative;
    min-height: 340px;
    overflow: visible;
}

#audit .timeline {
    cursor: grab;
    user-select: none;
    width: fit-content;
    min-width: 260px;
    z-index: 3;
    transition: box-shadow .2s ease, opacity .2s ease;
}

#audit .timeline.is-dragging {
    cursor: grabbing;
    box-shadow: 0 20px 56px rgba(0, 0, 0, .65);
    opacity: .96;
    transition: none;
}

#audit .timeline div {
    padding: 16px 22px;
}

/* ── Page Audit dédiée ──────────────────────────────────── */

.audit-page-main {
    min-height: 100vh;
}

#audit.audit-full {
    align-items: center;
    background:
        linear-gradient(to bottom, rgba(7,16,13,.82) 0%, rgba(7,16,13,.52) 50%, rgba(7,16,13,.18) 100%),
        url('images/audit.png') center bottom / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 76px);
    padding: clamp(60px, 8vw, 100px) clamp(18px, 6vw, 80px) clamp(40px, 5vw, 64px);
}

.audit-inner {
    align-items: center;
    display: grid;
    gap: clamp(32px, 5vw, 80px);
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 auto;
    max-width: 1100px;
    width: 100%;
}

.audit-text h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
    line-height: .95;
    margin-bottom: 20px;
}

.audit-sim-trigger {
    background: rgba(64, 240, 160, .08);
    border: none;
    border-top: 1px solid var(--line);
    color: var(--green);
    cursor: pointer;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 14px 22px;
    text-align: center;
    transition: background .18s ease, color .18s ease;
    width: 100%;
}

.audit-sim-trigger:hover {
    background: rgba(64, 240, 160, .18);
    color: #fff;
}

/* ── Lightbox ────────────────────────────────────────────── */

.audit-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, .96);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    animation: lbFadeIn .22s ease;
}

.audit-lightbox[hidden] {
    display: none;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.audit-lightbox img {
    border-radius: 6px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .8);
    max-height: 92vh;
    max-width: 96vw;
    object-fit: contain;
    animation: lbZoomIn .26s cubic-bezier(.22,.68,0,1.2);
    user-select: none;
}

@keyframes lbZoomIn {
    from { transform: scale(.88); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.audit-lightbox-close {
    align-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 1.1rem;
    height: 46px;
    justify-content: center;
    line-height: 1;
    position: fixed;
    right: 22px;
    top: 22px;
    transition: background .15s ease, transform .15s ease;
    width: 46px;
    z-index: 10000;
}

.audit-lightbox-close:hover {
    background: rgba(255, 255, 255, .22);
    transform: scale(1.1);
}

.audit-drag-hint {
    color: rgba(255, 255, 255, .28);
    font-size: .82rem;
    letter-spacing: .06em;
    margin-top: auto;
    padding-top: 28px;
    text-align: center;
    user-select: none;
}

@media (max-width: 860px) {
    .audit-inner {
        grid-template-columns: 1fr;
    }

    #audit .timeline {
        justify-self: start;
    }
}

.section-heading {
    max-width: 800px;
}

.service-grid,
.plan-grid,
.admin-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid article,
.plan,
.request-form,
.timeline,
.admin-panel,
.login-box,
.request-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.plan,
.request-form,
.admin-panel,
.login-box,
.request-card {
    padding: 22px;
}

.service-grid article {
    overflow: hidden;
    padding: 0 22px 22px;
}

.service-grid img {
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid var(--line);
    display: block;
    height: auto;
    margin: 0 -22px 20px;
    object-fit: cover;
    width: calc(100% + 44px);
}

.icon {
    color: var(--cyan);
    display: inline-block;
    font-weight: 900;
    margin-bottom: 18px;
}

.split,
.contact-section {
    display: grid;
    gap: clamp(24px, 5vw, 64px);
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.timeline {
    display: grid;
    gap: 1px;
    overflow: hidden;
    padding: 0;
}

.timeline div {
    background: rgba(255, 255, 255, .04);
    display: grid;
    gap: 8px;
    padding: 22px;
}

.timeline span,
.plan p,
.service-grid p {
    color: var(--muted);
}

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

.plan strong {
    color: var(--amber);
    display: block;
    font-size: 1.45rem;
    margin: 20px 0;
}

.plan .button {
    margin-top: 12px;
    width: 100%;
}

ul {
    margin: 0;
    padding-left: 20px;
}

li + li {
    margin-top: 8px;
}

.request-form {
    display: grid;
    gap: 16px;
}

label {
    color: #d8e8e2;
    display: grid;
    gap: 7px;
    width: 100%;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    resize: vertical;
}

.notice {
    border-radius: 8px;
    padding: 12px;
}

.success {
    background: rgba(64, 240, 160, .14);
    border: 1px solid rgba(64, 240, 160, .45);
}

.error {
    background: rgba(255, 107, 122, .13);
    border: 1px solid rgba(255, 107, 122, .48);
}

.site-footer {
    background: rgba(4, 10, 8, .97);
    border-top: 1px solid var(--line);
    padding: 0 clamp(18px, 5vw, 72px);
}

.footer-inner {
    display: grid;
    gap: 44px;
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 56px 0 44px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-style: normal;
}

.footer-logo {
    display: block;
    height: 38px;
    margin-bottom: 6px;
    object-fit: contain;
    width: auto;
}

.footer-about p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    max-width: 300px;
}

.footer-nav strong,
.footer-contact-info strong {
    color: var(--ink);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.footer-nav a,
.footer-contact-info a,
.footer-contact-info span {
    color: var(--muted);
    font-size: .9rem;
    transition: color .18s ease;
}

.footer-nav a:hover,
.footer-contact-info a:hover {
    color: var(--green);
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    font-size: .82rem;
    justify-content: space-between;
    padding: 18px 0;
}

.footer-bottom a {
    color: var(--muted);
    transition: color .18s ease;
}

.footer-bottom a:hover {
    color: var(--green);
}

.admin-body {
    padding-top: 86px;
}

.page-main {
    padding-top: 70px;
}

.blog-hero {
    background:
        linear-gradient(120deg, rgba(7, 16, 13, .92), rgba(7, 16, 13, .7)),
        radial-gradient(circle at 72% 30%, rgba(85, 216, 255, .22), transparent 34%),
        radial-gradient(circle at 20% 70%, rgba(64, 240, 160, .18), transparent 30%);
    min-height: 48vh;
}

.faq-hero {
    background:
        linear-gradient(120deg, rgba(7, 16, 13, .94), rgba(7, 16, 13, .72)),
        radial-gradient(circle at 78% 34%, rgba(64, 240, 160, .18), transparent 30%),
        radial-gradient(circle at 20% 75%, rgba(85, 216, 255, .2), transparent 34%);
    align-items: center;
    display: grid;
    gap: clamp(24px, 5vw, 64px);
    grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
    min-height: 48vh;
}

.faq-hero-image,
.section-image {
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.section-image {
    margin-top: 24px;
}

.faq-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
    padding-top: 28px;
}

.faq-form,
.faq-answer,
.recommended-plan {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.faq-answer,
.recommended-plan {
    padding: 22px;
}

.faq-answer {
    display: grid;
    gap: 16px;
}

.severity {
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    justify-self: start;
    padding: 6px 10px;
    text-transform: uppercase;
}

.severity.light {
    color: var(--green);
}

.severity.moderate {
    color: var(--amber);
}

.severity.urgent {
    color: var(--red);
}

.agent-steps {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 18px 18px 38px;
}

.recommended-plan {
    display: grid;
    gap: 8px;
}

.recommended-plan strong {
    color: var(--amber);
    font-size: 1.35rem;
}

.faq-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-examples span {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 7px 11px;
}

.blog-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
    padding-top: 28px;
}

.blog-list,
.blog-article,
.blog-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.blog-list,
.blog-article,
.blog-card {
    padding: 22px;
}

.blog-list {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 92px;
}

.blog-list-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 5px;
    padding: 14px;
}

.blog-list-item.active {
    border-color: rgba(64, 240, 160, .58);
    background: rgba(64, 240, 160, .09);
}

.blog-list-item span,
.blog-list-item small {
    color: var(--muted);
    font-size: .86rem;
}

.article-content {
    color: #d8e8e2;
    font-size: 1.04rem;
    margin: 28px 0;
    max-width: 880px;
}

.blog-preview-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
}

.blog-card {
    display: grid;
    gap: 12px;
}

.blog-card .button {
    justify-self: start;
}

.section-action {
    margin-top: 22px;
}

details {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

summary {
    color: var(--cyan);
    cursor: pointer;
    font-weight: 800;
}

.blog-editor {
    margin-top: 16px;
}

.admin-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 26px clamp(18px, 5vw, 72px);
}

.admin-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.request-list {
    display: grid;
    gap: 12px;
}

.request-card {
    display: grid;
    gap: 12px;
}

.request-card header {
    align-items: start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.status {
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--green);
    font-size: .8rem;
    padding: 5px 10px;
}

.service-editor {
    display: grid;
    gap: 14px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 5px 14px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--ink);
}

.filter-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #07100d;
}

.delete-btn {
    background: transparent;
    border: 1px solid #ff4d4d;
    border-radius: 8px;
    color: #ff6b6b;
    font-size: .88rem;
    font-weight: 600;
    padding: 7px 14px;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}

.delete-btn:hover {
    background: #ff4d4d;
    color: #fff;
}

.delete-modal {
    align-items: center;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
}

.delete-modal[hidden] {
    display: none;
}

.delete-modal-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    max-width: 480px;
    padding: 32px;
    width: 100%;
}

.delete-modal-box h3 {
    color: #ff6b6b;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.login-screen {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-box {
    max-width: 420px;
    width: 100%;
}

.login-logo {
    display: block;
    height: auto;
    margin-bottom: 24px;
    max-width: 240px;
    width: 100%;
}

nav a[aria-current] {
    color: var(--green);
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--green);
    outline-offset: 0;
    border-color: transparent;
}

.privacy-section {
    max-width: 860px;
    margin: 0 auto;
}

.privacy-content h1 {
    max-width: 680px;
}

.privacy-body {
    margin: 44px 0;
    display: grid;
    gap: 6px;
}

.privacy-body h2 {
    font-size: 1.35rem;
    margin-top: 28px;
    margin-bottom: 8px;
    color: var(--cyan);
}

.privacy-body a {
    color: var(--green);
    text-decoration: underline;
}

.privacy-updated {
    margin-top: 32px;
    color: var(--muted);
    font-size: .9rem;
}

.error-section {
    align-items: center;
    display: flex;
    min-height: 70vh;
}

/* ── Contact page ──────────────────────────────────────── */

.contact-hero {
    align-items: center;
    display: grid;
    gap: clamp(24px, 5vw, 64px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
    min-height: 48vh;
    background:
        linear-gradient(120deg, rgba(7,16,13,.96), rgba(7,16,13,.72)),
        radial-gradient(circle at 76% 30%, rgba(64,240,160,.16), transparent 32%),
        radial-gradient(circle at 18% 72%, rgba(85,216,255,.14), transparent 30%);
}

.contact-hero-image {
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.contact-cards-section {
    padding-bottom: 32px;
}

.contact-cards-full {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
    align-items: flex-start;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 14px;
    padding: 20px;
}

.contact-card-icon {
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1;
    margin-top: 2px;
}

.contact-card strong {
    color: var(--ink);
    display: block;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .05em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.contact-card address,
.contact-card a,
.contact-card span {
    color: var(--muted);
    font-size: .92rem;
    font-style: normal;
    line-height: 1.6;
    transition: color .18s ease;
}

.contact-card a:hover {
    color: var(--green);
}

/* Pleine largeur : carte + formulaire */

.contact-bottom {
    border-top: 1px solid var(--line);
}

.contact-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
}

.contact-map-col {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    position: relative;
}

.contact-map-col iframe {
    border: none;
    display: block;
    flex: 1;
    min-height: 480px;
    width: 100%;
}

.map-link-bar {
    background: rgba(7, 16, 13, .88);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: block;
    font-size: .82rem;
    padding: 11px 20px;
    transition: color .18s ease;
}

.map-link-bar:hover {
    color: var(--green);
}

.contact-form-col {
    align-content: start;
    background: var(--panel);
    display: grid;
    gap: 16px;
    padding: 48px clamp(24px, 5vw, 64px);
}

.contact-form-note {
    color: var(--muted);
    margin-bottom: 4px;
}

.contact-inner-form {
    display: grid;
    gap: 14px;
}

/* ── Hamburger button (masqué sur desktop) ── */
.nav-toggle {
    display: none;
}

@media (max-width: 960px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
    }

    nav {
        grid-column: 1 / -1;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
        white-space: nowrap;
    }

    .service-grid,
    .plan-grid,
    .split,
    .contact-section,
    .contact-bottom-grid,
    .contact-cards-full,
    .contact-hero,
    .admin-grid,
    .blog-layout,
    .blog-preview-grid,
    .faq-layout,
    .faq-hero {
        grid-template-columns: 1fr;
    }

    .contact-map-col {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .blog-list {
        position: static;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
        padding: 10px 16px;
    }

    /* Hamburger visible uniquement sur téléphone */
    .nav-toggle {
        align-items: center;
        background: none;
        border: 1px solid var(--line);
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        justify-content: center;
        padding: 8px 10px;
    }

    .nav-toggle span {
        background: var(--ink);
        border-radius: 2px;
        display: block;
        height: 2px;
        transition: transform .22s ease, opacity .18s ease, width .18s ease;
        width: 18px;
    }

    .nav-toggle span:nth-child(2) {
        width: 12px;
        align-self: flex-end;
    }

    .site-header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .site-header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* CTA masqué sur téléphone — accessible via le menu */
    .header-action {
        display: none;
    }

    /* Nav cachée par défaut, déroulante au tap */
    nav {
        background: rgba(7, 16, 13, .97);
        border-bottom: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        gap: 0;
        grid-column: unset;
        left: 0;
        opacity: 0;
        overflow-x: visible;
        padding: 4px 0 8px;
        pointer-events: none;
        position: fixed;
        right: 0;
        top: 100px;
        transform: translateY(-8px);
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
        visibility: hidden;
        white-space: normal;
        z-index: 21;
    }

    .site-header.nav-open nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
        visibility: visible;
    }

    nav a {
        border-bottom: 1px solid var(--line);
        font-size: .94rem;
        padding: 10px 18px;
        white-space: normal;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .brand-logo {
        max-height: 80px;
        max-width: 360px;
    }

    .hero {
        min-height: 88vh;
        padding-top: 130px;
    }

    .hero-actions,
    .form-row,
    .footer-bottom,
    .admin-top {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .signal-panel {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }

    .attack-gauge {
        grid-template-columns: 1fr;
    }

    .gauge-stats {
        flex-direction: column;
    }

    .section {
        padding-block: 62px;
    }
}
