/*
 * Feuille de style du site : design neutre, pensée pour le mobile d'abord.
 * Les couleurs de la charte (--brand et ses nuances, --accent, --ink, --dark), la police et les arrondis
 * viennent du bloc « theme » de app/site.php, via le bloc <style> de chaque page (App\View\Theme) ;
 * les valeurs ci-dessous ne sont qu'un repli, identique à la charte par défaut.
 */

/* ---------- Jetons : couleurs, rayons, ombres, police ---------- */
:root {
    --brand: #b4532a;
    --brand-ink: #fff;
    --brand-dark: #8c4121;
    --brand-soft: #f9f1ee;
    --brand-line: #e1baaa;
    --accent: #e3a21a;
    --accent-ink: #1b2124;
    --tint: #f0ebe9;
    --ink: #1b2124;
    --ink-2: #3d474d;
    --muted: #616c73;
    --line: #e4e1dc;
    --field: #cdd2d5;
    --surface: #fff;
    --bg: #fff;
    --bg-alt: #f7f5f2;
    --dark: #1b2124;
    --ok: #1d7a4c;
    --ok-soft: #e5f4ec;
    --warn-bg: #fff6e0;
    --warn-line: #efc66f;
    --warn-ink: #5f4300;
    --err-bg: #fdeeee;
    --err-line: #eaa7a7;
    --err-ink: #8f1f1f;
    --info-bg: #edf4fa;
    --info-line: #b8d2e8;
    --info-ink: #1c4366;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgb(16 24 32 / 6%);
    --shadow: 0 1px 2px rgb(16 24 32 / 5%), 0 10px 28px rgb(16 24 32 / 8%);
    --shadow-lg: 0 2px 6px rgb(16 24 32 / 5%), 0 28px 56px rgb(16 24 32 / 14%);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --header-h: 68px;
    color-scheme: light;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

a {
    color: var(--brand-dark);
    text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
    margin: 0 0 0.5em;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.05rem, 1.35rem + 3vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    font-weight: 800;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1rem;
}

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

main:focus {
    outline: none;
}

/* Lien d'évitement : visible au clavier seulement. */
.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

/* Marqueur « à compléter » : surligné tant que l'information manque. */
mark.todo {
    padding: 0.05em 0.35em;
    border: 1px dashed #c99700;
    border-radius: 5px;
    background: #fff3c4;
    color: #574000;
    font-size: 0.88em;
    font-weight: 600;
    letter-spacing: 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 16px;
}

.container--narrow {
    max-width: 760px;
}

@media (min-width: 640px) {
    .container {
        padding-inline: 24px;
    }
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1.2rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--brand);
    color: var(--brand-ink);
    box-shadow: 0 1px 0 rgb(0 0 0 / 8%), 0 6px 16px rgb(16 24 32 / 12%);
}

.btn--primary:hover {
    background: var(--brand-dark);
}

.btn--ghost {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--ink-2);
}

.btn--lg {
    min-height: 56px;
    padding: 0.9rem 1.5rem;
    font-size: 1.0625rem;
}

.btn--sm {
    min-height: 42px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.btn[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.only-narrow {
    display: inline;
}

.only-wide {
    display: none;
}

@media (min-width: 520px) {
    .only-narrow {
        display: none;
    }

    .only-wide {
        display: inline;
    }
}

/* ---------- En-tête ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 94%);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand__mark {
    width: 38px;
    height: 38px;
    flex: none;
}

/* Logo de la charte (fichier de public/assets/) : même hauteur que le pictogramme, largeur libre et bornée. */
.brand__logo {
    display: block;
    width: auto;
    max-width: 160px;
    height: 38px;
    flex: none;
    object-fit: contain;
}

.logo__tile {
    fill: var(--brand);
}

.logo__bricks {
    fill: var(--brand-ink);
}

.brand__name {
    font-size: 1.05rem;
    line-height: 1.2;
}

.site-nav {
    display: none;
    gap: 1.75rem;
    margin-left: auto;
}

.site-nav a {
    color: var(--ink-2);
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
}

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

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.site-nav + .site-header__actions {
    margin-left: 0;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 42px;
    min-height: 42px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.header-phone span {
    display: none;
}

@media (min-width: 960px) {
    .site-nav {
        display: flex;
    }

    .site-header__actions {
        gap: 1.25rem;
    }

    .header-phone span {
        display: inline;
    }
}

/* ---------- Accroche ---------- */
.hero {
    padding: 2.5rem 0 3.5rem;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.eyebrow,
.kicker {
    margin-bottom: 0.85rem;
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.lead {
    max-width: 40rem;
    color: var(--ink-2);
    font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 1.5rem;
}

.hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-2);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero__points li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero__points .icon {
    color: var(--ok);
}

/* Panneau en appareil de briques derrière la carte du premier choix. */
.hero__visual {
    padding: 1rem;
    border-radius: calc(var(--radius) * 1.5);
    background-color: var(--tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='48'%3E%3Cpath d='M0 1h64M0 25h64M1 1v24M33 25v24' fill='none' stroke='%23000' stroke-opacity='0.06' stroke-width='2'/%3E%3C/svg%3E");
}

.hero__card {
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.hero__card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.quick-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.quick-choices a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    height: 100%;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0.75rem 0.8rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s;
}

.quick-choices a:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.quick-choices .icon {
    width: 26px;
    height: 26px;
    color: var(--brand);
}

/* Téléphones : premier choix sur une colonne, carte plus compacte. */
@media (max-width: 479px) {
    .hero__visual {
        padding: 0.6rem;
    }

    .hero__card {
        padding: 1.1rem;
    }

    .quick-choices {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
    }

    .quick-choices a {
        padding: 0.65rem 0.8rem;
    }
}

.hero__card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    text-decoration: none;
}

@media (min-width: 960px) {
    .hero {
        padding: 4.5rem 0 5.5rem;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 4rem;
    }

    .hero__visual {
        padding: 2rem;
    }

    .hero__card {
        padding: 1.75rem;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 4rem 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section--tight {
    padding-top: 0;
}

.section__head {
    max-width: 44rem;
    margin-bottom: 2.25rem;
}

.section__head p:last-child {
    color: var(--ink-2);
    font-size: 1.1rem;
}

@media (min-width: 960px) {
    .section {
        padding: 5.5rem 0;
    }

    .section--tight {
        padding-top: 0;
    }
}

/* Services : une carte par type de projet. */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.service:hover {
    border-color: var(--brand-line);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.service__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
}

.service__icon .icon {
    width: 28px;
    height: 28px;
}

.service h3 {
    margin: 0;
}

.service p {
    flex: 1;
    margin: 0;
    color: var(--ink-2);
    font-size: 0.98rem;
}

.service__more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    color: var(--brand-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

/* Déroulé numéroté. */
.method {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: method;
}

.method li {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    counter-increment: method;
}

.method li::before {
    content: counter(method);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.method p {
    margin: 0;
    color: var(--ink-2);
}

/* Zone et contact. */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

@media (min-width: 900px) {
    .contact {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: start;
        gap: 4rem;
    }
}

.card {
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.info-list {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.info-list .icon {
    margin-top: 0.15rem;
    color: var(--brand);
}

.info-list strong {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* Bandeau final. */
.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding: 2.25rem 1.5rem;
    border-radius: calc(var(--radius) * 1.5);
    background: var(--dark);
    color: #fff;
}

.cta-band h2 {
    margin-bottom: 0.35rem;
    color: #fff;
}

.cta-band p {
    margin: 0;
    color: rgb(255 255 255 / 80%);
}

@media (min-width: 900px) {
    .cta-band {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 3rem;
    }
}

/* ---------- Pied de page ---------- */
.site-footer {
    padding: 3rem 0 1.5rem;
    background: var(--dark);
    color: rgb(255 255 255 / 78%);
    font-size: 0.95rem;
}

.site-footer a {
    color: #fff;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

@media (min-width: 900px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    }
}

.site-footer__name {
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}

.site-footer__list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 12%);
    font-size: 0.875rem;
}

.site-footer__bottom p {
    margin: 0;
}

.is-minimal .site-footer {
    padding-top: 0.25rem;
}

.is-minimal .site-footer__bottom {
    margin-top: 0;
    border-top: 0;
}

/* ---------- Tunnel ---------- */
.tunnel {
    min-height: calc(100vh - var(--header-h));
    padding: 2rem 0 3.5rem;
    background: var(--bg-alt);
}

.tunnel__head {
    margin-bottom: 1.5rem;
    text-align: center;
}

.tunnel__head h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.65rem, 1.3rem + 1.5vw, 2.25rem);
}

.tunnel__head p {
    margin: 0;
    color: var(--ink-2);
}

.tunnel__card {
    padding: 1.25rem;
    border-radius: calc(var(--radius) * 1.25);
    background: var(--surface);
    box-shadow: var(--shadow);
}

@media (min-width: 640px) {
    .tunnel__card {
        padding: 2rem 2.25rem 2.25rem;
    }
}

.tunnel__progress {
    margin-bottom: 1.5rem;
}

.tunnel__progress-label {
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 700;
}

.tunnel__bar {
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--line);
}

.tunnel__bar span {
    display: block;
    width: 12.5%;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
    transition: width 0.35s ease;
}

/* Étapes : empilées sans script, une à la fois avec (classe is-stepped). */
.step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.step + .step {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.is-stepped .step + .step {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.is-animated .step.is-current {
    animation: step-in 0.25s ease both;
}

.is-switching .step {
    pointer-events: none;
}

@keyframes step-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.step__title {
    float: left;
    width: 100%;
    margin-bottom: 0.4rem;
    padding: 0;
    color: var(--ink);
    font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.step__title + * {
    clear: both;
}

.step__title:focus {
    outline: none;
}

.step__help {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

/* Réponses à choix unique : cartes cliquables. */
.choices {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.choices--grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
}

.choice {
    position: relative;
    display: block;
    cursor: pointer;
}

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

.choice__body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    min-height: 60px;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 650;
    line-height: 1.3;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.choice:hover .choice__body {
    border-color: var(--brand-line);
}

.choice__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: calc(var(--radius-sm) * 0.84);
    background: var(--bg-alt);
    color: var(--brand);
}

.choice__icon .icon {
    width: 26px;
    height: 26px;
}

.choice__radio {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: none;
    margin-left: auto;
    border: 2px solid #b8bec2;
    border-radius: 50%;
    transition: border-color 0.15s, background-color 0.15s;
}

.choice__radio::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-ink);
    transform: scale(0);
    transition: transform 0.15s;
}

.choice input:checked + .choice__body {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.choice input:checked + .choice__body .choice__radio {
    border-color: var(--brand);
    background: var(--brand);
}

.choice input:checked + .choice__body .choice__radio::after {
    transform: scale(1);
}

.choice input:focus-visible + .choice__body {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* Champs de saisie. */
.fields {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (min-width: 560px) {
    .fields--2 {
        grid-template-columns: 1fr 1fr;
    }

    .fields--place {
        grid-template-columns: 11rem 1fr;
    }
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.975rem;
    font-weight: 700;
}

.field__optional {
    color: var(--muted);
    font-weight: 500;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--field);
    border-radius: calc(var(--radius-sm) * 0.84);
    background: #fff;
    color: var(--ink);
    font: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
    min-height: 140px;
    line-height: 1.5;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-line);
}

.field [aria-invalid="true"] {
    border-color: #c0392b;
}

.field__error {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    color: var(--err-ink);
    font-size: 0.93rem;
    font-weight: 600;
}

.field__error .icon {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.15em;
}

.field__notice {
    margin: 1rem 0 0;
}

/* Accord pour être recontacté. */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    font-size: 0.95rem;
    cursor: pointer;
}

.consent input {
    width: 22px;
    height: 22px;
    flex: none;
    margin: 0.1rem 0 0;
    accent-color: var(--brand);
}

/* Champ piège : hors de l'écran, jamais vu des visiteurs. */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Navigation entre étapes et envoi. */
.step__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.step__nav [data-next],
.step__nav [data-submit] {
    min-width: 10rem;
    margin-left: auto;
}

.step__nav--submit [data-submit] {
    flex: 1 1 14rem;
}

.tunnel__reassure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.9rem;
}

.tunnel__reassure li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ---------- Messages ---------- */
.alert {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid;
    border-radius: var(--radius-sm);
    font-size: 0.975rem;
}

.alert p {
    margin: 0;
}

.alert ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.alert a {
    color: inherit;
    font-weight: 700;
}

.alert--warning {
    border-color: var(--warn-line);
    background: var(--warn-bg);
    color: var(--warn-ink);
}

.alert--error {
    border-color: var(--err-line);
    background: var(--err-bg);
    color: var(--err-ink);
}

.alert--info {
    border-color: var(--info-line);
    background: var(--info-bg);
    color: var(--info-ink);
}

/* ---------- Remerciement ---------- */
.thanks {
    padding: 3rem 0 4.5rem;
    background: var(--bg-alt);
}

.thanks__card {
    padding: 2.25rem 1.5rem;
    border-radius: calc(var(--radius) * 1.25);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.thanks__card .lead {
    margin-inline: auto;
}

.thanks__card .alert {
    text-align: left;
}

.thanks__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--ok-soft);
    color: var(--ok);
}

.thanks__icon .icon {
    width: 36px;
    height: 36px;
}

.reference {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 8px;
    background: var(--bg-alt);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ---------- Pages de texte, erreurs ---------- */
.page {
    padding: 3rem 0 4.5rem;
}

.page--center {
    padding: 5rem 0 6rem;
    text-align: center;
}

.page--center .lead {
    margin-inline: auto;
}

.page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.prose {
    max-width: 50rem;
}

.prose h2 {
    margin-top: 2.25rem;
    font-size: 1.35rem;
}

.prose dl {
    display: grid;
    gap: 0.25rem 1.5rem;
    margin: 0;
}

.prose dt {
    color: var(--ink-2);
    font-weight: 700;
}

.prose dd {
    margin: 0 0 0.75rem;
}

@media (min-width: 640px) {
    .prose dl {
        grid-template-columns: 15rem 1fr;
    }

    .prose dd {
        margin: 0;
    }

    .prose dt,
    .prose dd {
        padding: 0.4rem 0;
        border-bottom: 1px solid var(--line);
    }
}

.debug {
    overflow: auto;
    padding: 1rem;
    border-radius: calc(var(--radius-sm) * 0.84);
    background: var(--bg-alt);
    font-size: 0.8rem;
    text-align: left;
    white-space: pre-wrap;
}

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
