/* ==================== POLICE ==================== */
@font-face {
    font-family: 'Archivo';
    src: url('fonts/archivo.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

/* ==================== TOKENS ==================== */
:root {
    --primary: #00a88f;
    --primary-hover: #008f7a;
    --accent: #34d399;
    --ink-on-accent: #04231d;
    --bg: #111827;
    --bg-2: #1f2937;
    --chassis: #0b1018;
    --text: #f3f4f6;
    --text-muted: #a7b0bd;
    --text-faint: #7d8696;
    --danger: #f87171;
    --star: #f5b43c;

    /* Verre : teinte anthracite lisse, reflet en haut */
    --glass-fill: rgba(17, 24, 39, 0.5);
    --glass-sheen: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.012) 55%);
    --glass-edge: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px) saturate(170%);
    --specular: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    --depth: 0 30px 60px -28px rgba(0, 0, 0, 0.85), 0 8px 18px -10px rgba(0, 0, 0, 0.5);

    /* Émeraude = dalle allumée */
    --lit: linear-gradient(180deg, #2fd6b6 0%, #00b89c 45%, #00a88f 100%);
    --lit-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 6px rgba(0, 80, 68, 0.35), 0 14px 30px -14px rgba(0, 0, 0, 0.8);

    --radius-lg: 28px;
    --radius: 22px;
    --radius-sm: 14px;
    --header-h: 88px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ==================== BASE ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background:
        radial-gradient(1100px 760px at 88% -8%, rgba(0, 168, 143, 0.22), transparent 62%),
        radial-gradient(900px 700px at -12% 38%, rgba(52, 211, 153, 0.1), transparent 60%),
        radial-gradient(900px 700px at 110% 92%, rgba(0, 168, 143, 0.12), transparent 60%),
        linear-gradient(180deg, var(--chassis), var(--bg) 45%, #0d131d);
    background-color: var(--chassis);
    background-attachment: fixed;
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    scrollbar-color: rgba(52, 211, 153, 0.35) var(--chassis);
}

body {
    font-family: var(--font);
    font-stretch: 100%;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Châssis : circuit imprimé animé (signaux qui parcourent les pistes) sous le verre */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('images/board.svg?v=3') 0 0 / 480px 480px repeat;
    -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 40%, #000 30%, transparent 92%);
    mask-image: radial-gradient(ellipse 95% 85% at 50% 40%, #000 30%, transparent 92%);
    pointer-events: none;
}

body.nav-open {
    overflow: hidden;
}

::selection {
    background: rgba(52, 211, 153, 0.35);
    color: #fff;
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

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

ul {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

h1, h2, h3, h4 {
    color: #fff;
    line-height: 1.15;
    font-stretch: 112%;
    font-weight: 750;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

strong {
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

/* ==================== MATIÈRE VERRE ==================== */
/* Le verre vit sur ::before : le blur ne crée pas de bloc conteneur pour les éléments fixes. */
:is(.header__inner, .reassurance__panel, .service-card, .step, .location .info-list, .map-frame,
    .rating, .review, .footer, .card, .feature-grid, .cta, .notice, .qualirepar, .gamme, .model,
    .service-item, .services-empty, .legal-card, .error-card) {
    position: relative;
    isolation: isolate;
}

:is(.header__inner, .reassurance__panel, .service-card, .step, .location .info-list, .map-frame,
    .rating, .review, .footer, .card, .feature-grid, .cta, .notice, .qualirepar, .gamme, .model,
    .service-item, .services-empty, .legal-card, .error-card)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid transparent;
    border-radius: inherit;
    background:
        radial-gradient(380px circle at 50% -45%, rgba(255, 255, 255, 0.09), transparent 60%) padding-box,
        var(--glass-sheen) padding-box,
        linear-gradient(var(--glass-fill), var(--glass-fill)) padding-box,
        radial-gradient(260px circle at 50% -45%, rgba(52, 211, 153, 0.55), var(--glass-edge) 72%) border-box;
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--specular), var(--depth);
    pointer-events: none;
}

/* Couche inférieure (dalle tactile) qui dépasse du verre et s'en décolle au survol */
:is(.service-card, .step, .gamme, .model, .service-item, .review)::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    border: 1px solid rgba(52, 211, 153, 0.24);
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.12), rgba(52, 211, 153, 0.02));
    transform: translate3d(0, 9px, 0) scale(0.955);
    transition: transform 0.7s var(--ease-out), border-color 0.4s;
    pointer-events: none;
}

:is(.step, .gamme, .model, .service-item, .review) {
    transition: transform 0.7s var(--ease-out);
}

:is(.step, .gamme, .model, .service-item, .review):hover {
    transform: translateY(-6px);
}

:is(.step, .gamme, .model, .service-item, .review):hover::after {
    transform: translate3d(0, 24px, 0) scale(0.9);
    border-color: rgba(52, 211, 153, 0.45);
}

/* Entrée au défilement : la plaque se pose sur le châssis */
.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(8px);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s var(--ease-out);
    transition-delay: var(--d, 0s);
}

/* ==================== LAYOUT ==================== */
.container {
    width: min(1200px, 100% - 32px);
    margin-inline: auto;
}

.section {
    padding: 104px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 52px;
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-stretch: 118%;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.section-lead {
    color: var(--text-muted);
    margin-top: 10px;
}

.page-head {
    position: relative;
    padding: 72px 0 12px;
    text-align: center;
}

/* Deux plaques de verre éclatées derrière le titre */
.page-head::before,
.page-head::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 58%;
    z-index: -1;
    width: min(760px, 88vw);
    height: 150px;
    border: 1px solid rgba(52, 211, 153, 0.18);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.06), transparent);
    transform: translate(-50%, -50%) perspective(900px) rotateX(58deg) translateZ(-40px);
    animation: plate-open 1.4s var(--ease-out) both;
    pointer-events: none;
}

.page-head::after {
    width: min(620px, 76vw);
    transform: translate(-50%, -50%) perspective(900px) rotateX(58deg) translateZ(30px);
    animation-delay: 0.12s;
}

@keyframes plate-open {
    from { opacity: 0; transform: translate(-50%, -50%) perspective(900px) rotateX(58deg) translateZ(0); }
}

.page-head__title {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-stretch: 120%;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-head__title span {
    color: var(--accent);
}

.page-head__lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 660px;
    margin: 16px auto 0;
}

.page-head .btn {
    margin-top: 32px;
}

.page {
    padding: 56px 0 104px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--specular);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}

.back-link:hover {
    border-color: rgba(52, 211, 153, 0.5);
    color: #fff;
    transform: translateX(-3px);
}

.block-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    margin-bottom: 32px;
}

.block-title--center {
    justify-content: center;
    text-align: center;
}

/* ==================== PRIMITIVES ==================== */
.card {
    border-radius: var(--radius-lg);
    padding: 38px;
}

.card__title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.3rem;
    margin-bottom: 28px;
}

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Touche de verre teintée qui porte une icône */
.well {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(52, 211, 153, 0.2), rgba(0, 168, 143, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 20px -12px rgba(0, 0, 0, 0.7);
    color: var(--accent);
    transition: background 0.4s var(--ease-out), color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.4s;
}

.well svg {
    width: 24px;
    height: 24px;
}

.well--sm {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.well--sm svg {
    width: 20px;
    height: 20px;
}

/* Allumée : la touche devient dalle émeraude */
:is(.reassurance__item, .service-card.is-active, .feature, .service-item, .adv, .info-item):hover .well,
.service-card.is-active .well {
    border-color: rgba(255, 255, 255, 0.35);
    background: var(--lit);
    box-shadow: var(--lit-shadow);
    color: var(--ink-on-accent);
}

.checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
}

.checklist .icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    stroke-width: 3;
}

.groove {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

/* ==================== BOUTONS ==================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 26px -16px rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-stretch: 108%;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out), background 0.3s;
}

.btn:hover {
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(52, 211, 153, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 34px -16px rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn--primary {
    border-color: rgba(255, 255, 255, 0.35);
    background: var(--lit);
    box-shadow: var(--lit-shadow);
    color: var(--ink-on-accent);
}

.btn--primary:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: var(--lit);
    box-shadow: var(--lit-shadow), 0 22px 40px -16px rgba(0, 0, 0, 0.9);
}

/* Reflet qui balaie la dalle au survol */
.btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.9s var(--ease-out);
    pointer-events: none;
}

.btn--primary:hover::after {
    transform: translateX(120%);
}

.btn--block {
    width: 100%;
}

.btn .icon {
    width: 20px;
    height: 20px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==================== HEADER ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 12px;
}

.header__inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 10px 0 22px;
    border-radius: 22px;
    --glass-fill: rgba(11, 16, 24, 0.45);
    transition: --glass-fill 0.4s;
}

.header.is-scrolled .header__inner {
    --glass-fill: rgba(11, 16, 24, 0.72);
}

.header__logo-link,
.burger {
    position: relative;
    z-index: 2;
}

.header__logo {
    max-height: 40px;
    width: auto;
}

.nav__list {
    display: flex;
    gap: 4px;
}

.nav__link {
    display: block;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.93rem;
    font-weight: 600;
    font-stretch: 106%;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.nav__link:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.07);
}

.nav__link[aria-current="page"] {
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent);
}

.header__cta {
    padding: 11px 20px;
    border-radius: 14px;
}

.header__call {
    position: relative;
    z-index: 2;
    display: none;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    background: var(--lit);
    box-shadow: var(--lit-shadow);
    color: var(--ink-on-accent);
}

.header__call .icon {
    width: 20px;
    height: 20px;
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--specular);
}

.burger span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.burger.active {
    border-color: rgba(52, 211, 153, 0.5);
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== FOOTER ==================== */
.footer {
    margin-top: 40px;
    padding-top: 72px;
    border-radius: 40px 40px 0 0;
    --glass-fill: rgba(11, 16, 24, 0.55);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
}

.footer__logo {
    max-height: 44px;
    width: auto;
    margin-bottom: 18px;
}

.footer__title {
    margin-bottom: 18px;
    font-size: 0.8rem;
    font-stretch: 125%;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer__links li + li,
.footer__contact li + li {
    margin-top: 10px;
}

.footer__links a {
    display: inline-block;
    transition: color 0.3s, transform 0.3s var(--ease-out);
}

.footer__links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__contact .icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.footer__contact a:hover {
    color: #fff;
}

.footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-btn {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--specular);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.social-btn:hover {
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(52, 211, 153, 0.12);
    color: #fff;
}

.footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 24px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.footer__legal {
    display: flex;
    gap: 20px;
}

.footer__legal a:hover,
.footer__legal a[aria-current="page"] {
    color: #fff;
}

.footer__credit {
    justify-self: end;
}

.footer__credit a {
    color: var(--accent);
    font-weight: 600;
}

.footer__credit a:hover {
    color: #fff;
}

/* ==================== ACCUEIL : HÉROS ==================== */
.hero {
    padding: 56px 0 48px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
}

.hero__title {
    font-size: clamp(2.1rem, 3.3vw, 3.1rem);
    font-stretch: 110%;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 24px;
}

.hero__title span {
    color: var(--accent);
}

.hero .btn-row {
    align-items: center;
}

.hero__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(52, 211, 153, 0.35);
    text-underline-offset: 5px;
    transition: gap 0.3s var(--ease-out), color 0.3s;
}

.hero__link:hover {
    gap: 10px;
    color: #fff;
}

.hero__link .icon {
    width: 18px;
    height: 18px;
}

.hero__text {
    max-width: 480px;
    margin-bottom: 36px;
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* ==================== ACCUEIL : TÉLÉPHONE EN VUE ÉCLATÉE ==================== */
.teardown {
    --pw: clamp(130px, 12vw, 180px);
    --gap: calc(var(--pw) * 0.32);
    --rx: 56deg;
    --rz: -38deg;
    position: relative;
    height: calc(var(--pw) * 3.4);
    perspective: 1600px;
}

.teardown:hover,
.teardown.is-exploded {
    --gap: calc(var(--pw) * 0.44);
}

/* Halo émeraude sous le téléphone */
.teardown::before {
    content: '';
    position: absolute;
    inset: 18% 8% 6%;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 60%, rgba(0, 168, 143, 0.4), rgba(0, 168, 143, 0.08) 45%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.teardown__float {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
    animation: float 7s ease-in-out infinite alternate;
}

@keyframes float {
    from { transform: translateY(-8px); }
    to { transform: translateY(8px); }
}

.teardown__stage {
    position: relative;
    width: var(--pw);
    height: calc(var(--pw) * 2.05);
    transform-style: preserve-3d;
    translate: 0 calc(var(--gap) * 1.66 + var(--pw) * 0.13);
    transform: rotateX(var(--rx)) rotateZ(calc(var(--rz) + var(--tilt-z, 0deg)));
    transition: translate 0.9s var(--ease-out);
}

.layer {
    position: absolute;
    inset: 0;
    border-radius: calc(var(--pw) * 0.17);
    transform: translate3d(calc(var(--i) * var(--pw) * 0.06), calc(var(--i) * var(--pw) * -0.1), calc(var(--i) * var(--gap)));
    transition: transform 0.9s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
    animation: assemble 1.6s var(--ease-out) backwards;
    animation-delay: calc(0.2s + var(--i) * 0.09s);
}

.layer:nth-child(1) { --i: 0; }
.layer:nth-child(2) { --i: 1; }
.layer:nth-child(3) { --i: 2; }
.layer:nth-child(4) { --i: 3; }
.layer:nth-child(5) { --i: 4; }

@keyframes assemble {
    from { transform: translate3d(0, 0, 0); }
}

.layer--back {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #1c2636, #0d131c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Bloc photo du dos */
.layer--back::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 8%;
    width: 38%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24%;
    background:
        radial-gradient(circle at 30% 30%, #05080d 0 16%, #2a3748 17% 22%, transparent 23%),
        radial-gradient(circle at 30% 72%, #05080d 0 16%, #2a3748 17% 22%, transparent 23%),
        radial-gradient(circle at 72% 50%, #05080d 0 12%, #2a3748 13% 17%, transparent 18%),
        linear-gradient(145deg, #243042, #151d29);
}

.layer--board {
    background: transparent;
}

.layer__art {
    width: 100%;
    height: 100%;
}

.layer--screen {
    padding: 4%;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: #05080d;
}

.layer--screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--pw) * 0.13);
}

.layer--screen::after {
    content: '';
    position: absolute;
    inset: 4%;
    border-radius: calc(var(--pw) * 0.13);
    background: linear-gradient(200deg, rgba(52, 211, 153, 0.28), transparent 45%, rgba(0, 168, 143, 0.22));
    mix-blend-mode: screen;
}

.layer--touch {
    border: 1px solid rgba(52, 211, 153, 0.4);
    background:
        repeating-linear-gradient(0deg, rgba(52, 211, 153, 0.14) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(90deg, rgba(52, 211, 153, 0.14) 0 1px, transparent 1px 12px);
}

.layer--glass {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Découpe caméra */
.layer--glass::before {
    content: '';
    position: absolute;
    top: 3.5%;
    left: 34%;
    width: 32%;
    height: 3.4%;
    border-radius: 999px;
    background: rgba(5, 8, 13, 0.85);
}

/* Reflet spéculaire */
.layer--glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 38%, transparent 46%);
}

/* Survol d'une légende : sa couche se soulève et s'allume */
.teardown:has([data-target="glass"]:hover) :is(.layer--glass, .layer--touch),
.teardown:has([data-target="back"]:hover) .layer--back,
.teardown:has(:is([data-target="board"], [data-target="battery"]):hover) .layer--board {
    transform: translate3d(calc(var(--i) * var(--pw) * 0.06), calc(var(--i) * var(--pw) * -0.1), calc(var(--i) * var(--gap) + var(--pw) * 0.14));
}

.teardown:has(:is([data-target="board"], [data-target="battery"]):hover) .layer--board {
    filter: drop-shadow(0 0 14px rgba(52, 211, 153, 0.65));
}

.teardown:has([data-target="glass"]:hover) .layer--glass,
.teardown:has([data-target="back"]:hover) .layer--back {
    border-color: rgba(52, 211, 153, 0.85);
}

.pin {
    position: absolute;
    width: 2px;
    height: 2px;
}

.pin--glass { top: 22%; left: 86%; }
.pin--board { top: 21%; left: 22%; }
.pin--battery { top: 64%; left: 24%; }
.pin--back { top: 90%; left: 30%; }

.teardown__tethers {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.tether path {
    fill: none;
    stroke: rgba(52, 211, 153, 0.55);
    stroke-width: 1.2;
    transition: stroke 0.3s;
}

.tether circle {
    fill: var(--chassis);
    stroke: var(--accent);
    stroke-width: 1.5;
}

.teardown:has(.callout:hover) .tether path {
    stroke: rgba(52, 211, 153, 0.2);
}

.teardown:has([data-target="glass"]:hover) .tether--glass path,
.teardown:has([data-target="board"]:hover) .tether--board path,
.teardown:has([data-target="battery"]:hover) .tether--battery path,
.teardown:has([data-target="back"]:hover) .tether--back path {
    stroke: var(--accent);
    stroke-width: 1.8;
}

.teardown__labels li {
    position: absolute;
}

.teardown__labels li:nth-child(1) { top: 8%; right: 0; }
.teardown__labels li:nth-child(2) { top: 30%; left: 0; }
.teardown__labels li:nth-child(3) { top: 56%; left: 0; }
.teardown__labels li:nth-child(4) { top: 82%; left: 0; }

.callout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 999px;
    background: rgba(11, 16, 24, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--specular);
    color: #fff;
    font-size: 0.72rem;
    font-stretch: 122%;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.callout::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.callout:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: var(--lit);
    color: var(--ink-on-accent);
}

.callout:hover::before {
    background: var(--ink-on-accent);
}

/* ==================== ACCUEIL : BANDE D'INFOS ==================== */
.reassurance__panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px;
    border-radius: var(--radius-lg);
}

.reassurance__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.reassurance__item + .reassurance__item {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.reassurance__item:hover .well {
    transform: rotate(-6deg) scale(1.06);
}

a.reassurance__item {
    border-radius: 18px;
    transition: background 0.3s;
}

a.reassurance__item:hover {
    background: rgba(52, 211, 153, 0.06);
}

.reassurance__title {
    font-size: 1.05rem;
    line-height: 1.3;
}

.reassurance__text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==================== ACCUEIL : CARROUSEL ==================== */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel__track {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 56px calc(50% - 160px);
}

.carousel__track::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    padding: 34px;
    border-radius: var(--radius-lg);
    opacity: 0.4;
    transform: scale(0.86);
    filter: blur(2px);
    transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), filter 0.5s;
}

.service-card.is-active {
    opacity: 1;
    transform: scale(1.06);
    filter: none;
    --glass-fill: rgba(17, 24, 39, 0.4);
}

/* Carte active : la couche inférieure est éclatée */
.service-card.is-active::after {
    transform: translate3d(0, 26px, 0) scale(0.9);
    border-color: rgba(52, 211, 153, 0.5);
}

.service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 16px;
}

.service-card__title {
    font-size: 1.3rem;
}

.service-card__text,
.service-card__link {
    grid-column: 1 / -1;
}

.service-card__text {
    margin-top: 18px;
}

.service-card__link {
    justify-self: start;
}

.service-card__text {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
    transition: gap 0.3s var(--ease-out), color 0.3s;
}

.service-card__link:hover {
    gap: 12px;
    color: #fff;
}

.service-card__link .icon,
.gamme__cta .icon,
.back-link .icon,
.notice .btn .icon {
    width: 16px;
    height: 16px;
}

.gamme__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.carousel__btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(11, 16, 24, 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: var(--specular), 0 12px 24px -12px rgba(0, 0, 0, 0.9);
    transform: translateY(-50%);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.carousel__btn:hover {
    border-color: rgba(52, 211, 153, 0.6);
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent);
}

.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }

.services__action {
    margin-top: 8px;
    text-align: center;
}

/* ==================== ACCUEIL : ÉTAPES ==================== */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Nappe flex qui relie les étapes, parcourue par un courant */
.steps::before {
    content: '';
    position: absolute;
    top: 72px;
    left: 12%;
    right: 12%;
    height: 2px;
    border-radius: 2px;
    background: repeating-linear-gradient(90deg, rgba(52, 211, 153, 0.75) 0 14px, transparent 14px 30px);
    opacity: 0.7;
    animation: current 1.6s linear infinite;
}

@keyframes current {
    to { background-position: 30px 0; }
}

.step {
    padding: 40px 28px 36px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.step__num {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 50%;
    background: rgba(11, 16, 24, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: var(--accent);
    font-size: 1.2rem;
    font-stretch: 125%;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}

.step:hover .step__num {
    background: var(--lit);
    box-shadow: var(--lit-shadow);
    color: var(--ink-on-accent);
}

.step__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step__text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================== ACCUEIL : LOCALISATION ==================== */
.location__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.location__text {
    color: var(--text-muted);
    margin-top: 12px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.location .info-list {
    margin: 30px 0 32px;
    padding: 30px;
    border-radius: var(--radius-lg);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-item__label {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.info-item a {
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--accent);
}

.map-frame {
    padding: 12px;
    border-radius: 32px;
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 440px;
    border: 0;
    border-radius: 22px;
}

/* ==================== ACCUEIL : AVIS ==================== */
.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    max-width: 460px;
    margin: 0 auto 48px;
    padding: 22px 30px;
    border-radius: 999px;
}

.rating__score {
    color: var(--accent);
    font-size: 3rem;
    font-stretch: 118%;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--star);
    stroke-width: 1.6;
    stroke-linejoin: round;
}

.star.is-on {
    fill: var(--star);
}

.rating__count a {
    color: var(--accent);
    font-weight: 600;
    text-underline-offset: 3px;
}

.rating__count {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.review {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border-radius: var(--radius);
}

.review__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review__avatar {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(52, 211, 153, 0.45);
    border-radius: 50%;
    object-fit: cover;
}

.review__name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.review__date {
    color: var(--text-faint);
    font-size: 0.8rem;
}

.review .star {
    width: 15px;
    height: 15px;
}

.review__text {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ==================== FORMULAIRES ==================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.field label {
    padding-left: 4px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Champ = verre creusé */
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    background: rgba(5, 8, 13, 0.5);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #fff;
    caret-color: var(--accent);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-control::placeholder {
    color: var(--text-faint);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.form-control:focus {
    outline: none;
    border-color: rgba(52, 211, 153, 0.7);
    background: rgba(5, 8, 13, 0.62);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(52, 211, 153, 0.16);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    padding-right: 46px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

select.form-control option {
    background: var(--bg);
}

.check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
}

.check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.check__box {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(5, 8, 13, 0.5);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.check__box::after {
    content: '';
    width: 6px;
    height: 11px;
    border: solid var(--ink-on-accent);
    border-width: 0 2px 2px 0;
    transform: translateY(-1px) rotate(45deg) scale(0.4);
    opacity: 0;
    transition: opacity 0.2s, transform 0.3s var(--ease-out);
}

.check:hover .check__box {
    border-color: rgba(52, 211, 153, 0.6);
}

.check input:checked + .check__box {
    border-color: rgba(255, 255, 255, 0.4);
    background: var(--lit);
    box-shadow: var(--lit-shadow);
}

.check input:checked + .check__box::after {
    opacity: 1;
    transform: translateY(-1px) rotate(45deg) scale(1);
}

.check input:focus-visible + .check__box {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.alert {
    margin-bottom: 24px;
    padding: 16px 20px;
    border: 1px solid;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
}

.alert--success {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent);
}

.alert--error {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}

.qualirepar-logo {
    width: 120px;
    margin: 8px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
}

.contact-form .check {
    margin-bottom: 26px;
}

.contact-map .map-frame {
    padding: 0;
}

.contact-map .map-frame::before {
    display: none;
}

.contact-map .map-frame iframe {
    height: 380px;
    border-radius: 20px;
}

/* ==================== À PROPOS ==================== */
.about {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 44px;
    align-items: center;
    margin-bottom: 80px;
}

.about__title {
    font-size: 1.75rem;
    margin-bottom: 6px;
}

.about p {
    margin-top: 14px;
    color: var(--text-muted);
}

.media-frame {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--specular), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.media-frame img,
.media-frame video {
    width: 100%;
    border-radius: 19px;
}

.media-frame video {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--chassis);
}

/* Fiche technique : une seule plaque de verre, lignes séparées par des filets */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.feature {
    padding: 34px 32px;
    transition: background 0.4s;
}

.feature:hover {
    background: rgba(52, 211, 153, 0.05);
}

.feature-grid:not(.feature-grid--3) .feature:nth-child(2n),
.feature-grid--3 .feature:not(:nth-child(3n + 1)) {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-grid:not(.feature-grid--3) .feature:nth-child(n + 3),
.feature-grid--3 .feature:nth-child(n + 4) {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    align-content: start;
}

.feature .well {
    grid-row: span 2;
}

.feature h3 {
    font-size: 1.2rem;
    margin: 4px 0 8px;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

.cta {
    margin-top: 80px;
    padding: 56px 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
}

/* La dalle s'allume sous l'appel à l'action */
.cta::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -60%;
    z-index: -1;
    width: 80%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 168, 143, 0.45), transparent);
    transform: translateX(-50%);
    pointer-events: none;
}

.cta h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin-bottom: 10px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-muted);
}

/* ==================== TARIFS ==================== */
.notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    padding: 18px 18px 18px 28px;
    border-radius: var(--radius);
    color: var(--text-muted);
}

.notice strong {
    color: var(--accent);
}

.notice .btn {
    flex-shrink: 0;
    padding: 11px 20px;
    font-size: 0.88rem;
}

.qualirepar {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 64px;
    padding: 36px;
    border-radius: var(--radius-lg);
}

.qualirepar__body {
    flex: 1;
}

.qualirepar__title {
    margin-bottom: 12px;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.qualirepar__title span {
    color: var(--accent);
}

.qualirepar__text {
    margin-bottom: 22px;
    color: var(--text-muted);
}

.qualirepar .media-frame {
    flex: 0 0 320px;
    transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.8s var(--ease-out);
}

.qualirepar:hover .media-frame {
    transform: perspective(900px) rotateY(0) rotateX(0) translateZ(24px);
}

.price-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 40px;
    padding: 12px 22px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.08);
    color: var(--text-muted);
    font-size: 0.92rem;
    text-align: center;
}

.price-note strong {
    color: var(--accent);
}

.price-note .icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.gammes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 40px 28px;
    margin-bottom: 64px;
}

.gamme {
    padding: 30px 22px;
    border-radius: var(--radius);
    text-align: center;
}

/* Gamme choisie : verre émeraude plein, couche inférieure éclatée */
.gamme.is-active::before {
    background: var(--lit);
    box-shadow: var(--lit-shadow);
}

.gamme.is-active::after {
    transform: translate3d(0, 24px, 0) scale(0.9);
    border-color: rgba(52, 211, 153, 0.6);
}

.gamme__title {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1.25rem;
    font-stretch: 115%;
    font-weight: 800;
}

.gamme__models {
    display: block;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.gamme__cta {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
}

.gamme.is-active :is(.gamme__title, .gamme__models, .gamme__cta) {
    color: var(--ink-on-accent);
}

.gamme-panel {
    scroll-margin-top: calc(var(--header-h) + 24px);
    animation: panel-in 0.7s var(--ease-out);
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
}

.gamme-panel__title {
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 1.35rem;
}

.models {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px 28px;
}

.model {
    padding: 24px;
    border-radius: var(--radius);
}

.model__name {
    margin-bottom: 8px;
    padding-bottom: 12px;
    font-size: 1.2rem;
}

.tarif-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.tarif-table td {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
    color: var(--text-muted);
}

.tarif-table tr:last-child td {
    border-bottom: none;
}

.tarif-table td:last-child {
    padding-left: 12px;
    text-align: right;
    white-space: nowrap;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
}

.price-from,
.price-shop {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.price-from {
    margin-right: 4px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 40px 28px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 26px;
    border-radius: var(--radius);
}

.service-item__body {
    flex: 1;
    min-width: 0;
}

.service-item__name {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-item__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.service-item__desc {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Le prix est la donnée clé : pastille allumée */
.price-chip {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: var(--lit);
    box-shadow: var(--lit-shadow);
    color: var(--ink-on-accent);
    font-size: 0.92rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.qr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.08);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
}

.qr-chip .icon {
    width: 13px;
    height: 13px;
    stroke-width: 3;
}

.services-empty {
    padding: 32px;
    border-radius: var(--radius);
    color: var(--text-muted);
    text-align: center;
}

/* ==================== MICROSOUDURE ==================== */
.split {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 44px;
    align-items: center;
    margin-bottom: 80px;
}

.split h2 {
    margin-bottom: 14px;
    font-size: 1.7rem;
}

.split p {
    color: var(--text-muted);
}

.split p + p {
    margin-top: 14px;
}

.advantages {
    margin-top: 80px;
}

.advantages .block-title {
    margin-bottom: 0;
}

.advantages .section-lead {
    margin-bottom: 36px;
    text-align: center;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
}

.adv {
    display: flex;
    gap: 16px;
}

.adv h3 {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.adv p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== PAGES LÉGALES ==================== */
.legal {
    max-width: 900px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.legal-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 0.96rem;
}

.legal-card h2 {
    margin-bottom: 16px;
    padding-bottom: 12px;
    color: var(--accent);
    font-size: 1.2rem;
}

.legal-card p + p,
.legal-card p + ul {
    margin-top: 10px;
}

.legal-card ul {
    padding-left: 20px;
    list-style: disc;
}

.legal-card li::marker {
    color: var(--accent);
}

.legal-card li + li {
    margin-top: 6px;
}

.legal-card a {
    color: var(--accent);
    font-weight: 600;
    text-underline-offset: 3px;
}

.legal-card a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==================== 404 ==================== */
.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    text-align: center;
}

.error-card {
    width: 100%;
    max-width: 600px;
    padding: 60px 40px;
    border-radius: 36px;
    overflow: hidden;
}

/* Vitre fissurée */
.error-card__crack {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.error-card__crack path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 1;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: crack 1.2s var(--ease-out) 0.3s forwards;
}

@keyframes crack {
    to { stroke-dashoffset: 0; }
}

.error-card > :not(.error-card__crack) {
    position: relative;
    z-index: 1;
}

.error-code {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: clamp(4.5rem, 14vw, 6rem);
    font-stretch: 125%;
    font-weight: 900;
    line-height: 1;
}

.error-code span {
    display: inline-block;
    animation: wave 1.8s ease-in-out infinite;
}

.error-code span:nth-child(2) { animation-delay: 0.2s; }
.error-code span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
    50% { transform: translateY(-16px); }
}

.error-title {
    margin-bottom: 14px;
    font-size: 1.5rem;
}

.error-text {
    margin-bottom: 32px;
    color: var(--text-muted);
}

.error-card .btn-row {
    justify-content: center;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 993px) {
    .service-card {
        opacity: 0.86;
        transform: scale(0.92);
        filter: none;
    }
}

@media (max-width: 1080px) {
    .nav__link {
        padding: 9px 11px;
    }
}

@media (max-width: 992px) {
    .hero__inner,
    .location__inner,
    .about,
    .contact-grid,
    .split {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 40px;
    }

    .teardown {
        --pw: clamp(112px, 25vw, 170px);
        height: calc(var(--pw) * 3.3 + 96px);
    }

    .teardown__float {
        inset: 48px 0;
    }

    .teardown__labels li:nth-child(1) { top: 0; right: 0; left: auto; }
    .teardown__labels li:nth-child(2) { top: 0; left: 0; }
    .teardown__labels li:nth-child(3) { top: auto; bottom: 0; left: 0; }
    .teardown__labels li:nth-child(4) { top: auto; bottom: 0; right: 0; left: auto; }

    .reassurance__panel,
    .feature-grid--3,
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reassurance__item:nth-child(3) {
        border-left: 0;
    }

    .reassurance__item:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .feature-grid--3 .feature:not(:nth-child(3n + 1)) {
        border-left: 0;
    }

    .feature-grid--3 .feature:nth-child(2n) {
        border-left: 1px solid rgba(255, 255, 255, 0.07);
    }

    .feature-grid--3 .feature:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .qualirepar {
        flex-direction: column-reverse;
        text-align: center;
    }

    .qualirepar .media-frame {
        flex: none;
        width: 100%;
        max-width: 340px;
        transform: none;
    }

    .qualirepar .checklist {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 80px;
    }

    .section {
        padding: 72px 0;
    }

    .header__inner {
        height: 60px;
        padding: 0 8px 0 16px;
    }

    .burger {
        display: flex;
    }

    .header__cta {
        display: none;
    }

    .header__call {
        display: grid;
    }

    /* Menu : plein écran en verre dépoli */
    .nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 96px 16px 32px;
        background: rgba(8, 12, 20, 0.6);
        -webkit-backdrop-filter: blur(26px) saturate(150%);
        backdrop-filter: blur(26px) saturate(150%);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s var(--ease-out), visibility 0.4s;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        gap: 14px;
        width: min(340px, 100%);
        text-align: center;
    }

    .nav__list li {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
        transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
    }

    .nav.active .nav__list li {
        opacity: 1;
        transform: none;
    }

    .nav.active .nav__list li:nth-child(2) { transition-delay: 0.05s; }
    .nav.active .nav__list li:nth-child(3) { transition-delay: 0.1s; }
    .nav.active .nav__list li:nth-child(4) { transition-delay: 0.15s; }

    .nav__link {
        padding: 18px;
        border-color: rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.06);
        box-shadow: var(--specular);
        font-size: 1.15rem;
    }

    .steps,
    .form-grid,
    .adv-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .steps::before {
        top: 8%;
        bottom: 8%;
        left: 50%;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, rgba(52, 211, 153, 0.75) 0 14px, transparent 14px 30px);
        animation-name: current-v;
    }

    .feature-grid .feature:nth-child(n) {
        border-left: 0;
    }

    .feature-grid .feature:nth-child(n + 2) {
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .card,
    .qualirepar,
    .legal-card {
        padding: 26px;
    }

    .notice {
        flex-direction: column;
        padding: 22px;
        text-align: center;
    }

    .rating {
        border-radius: var(--radius-lg);
    }

    .footer__bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        text-align: center;
    }

    .footer__credit {
        justify-self: center;
    }
}

@keyframes current-v {
    to { background-position: 0 30px; }
}

@media (max-width: 600px) {
    .reassurance__panel,
    .feature-grid--3,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .reassurance__item:nth-child(n) {
        border-left: 0;
    }

    .reassurance__item:nth-child(n + 2) {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .service-card {
        flex-basis: 280px;
        padding: 28px;
    }

    .service-card.is-active {
        transform: none;
    }

    .carousel__track {
        padding-inline: calc(50% - 140px);
    }

    .carousel__btn {
        width: 44px;
        height: 44px;
    }

    .carousel__btn--prev { left: 4px; }
    .carousel__btn--next { right: 4px; }

    .hero .btn-row .btn {
        flex: 1 1 100%;
    }

    .map-frame iframe {
        height: 320px;
    }

    .error-card {
        padding: 48px 24px;
    }
}

/* Écrans tactiles : le téléphone se balance seul */
@media (hover: none) {
    .teardown__stage {
        animation: sway 9s ease-in-out infinite alternate;
    }
}

@keyframes sway {
    from { --tilt-z: -6deg; }
    to { --tilt-z: 6deg; }
}

@property --tilt-z {
    syntax: '<angle>';
    inherits: true;
    initial-value: 0deg;
}

@property --glass-fill {
    syntax: '<color>';
    inherits: true;
    initial-value: rgba(17, 24, 39, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* ==================== DÉMO ==================== */
.demo-bar {
    padding-top: 12px;
}

.demo-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin-inline: auto;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-sm);
    background: rgba(11, 16, 24, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.demo-bar__tag {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--lit);
    color: var(--ink-on-accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.demo-bar a {
    color: var(--accent);
    font-weight: 700;
}

.alert--info {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(11, 16, 24, 0.6);
    color: var(--text);
}
