@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/caveat-600.woff2") format("woff2");
}

:root {
    --color-brand: #d11815;
    --color-brand-dark: #8a0e0c;
    --color-brand-bright: #e01a1a;
    --color-brand-deep: #700c0a;
    --surface-ink: #8a0e0c;
    --surface-ink-soft: #b3120f;
    --surface-ink-deep: #700c0a;
    --surface-ink-darkest: #4f0806;
    --surface-ink-veil: rgba(138, 14, 12, 0.86);
    --surface-ink-veil-soft: rgba(112, 12, 10, 0.9);
    --gradient-brand: linear-gradient(90deg, #ba1614 0%, #e01a1a 100%);
    --gradient-surface: linear-gradient(160deg, #a4110e 0%, #8a0e0c 45%, #700c0a 100%);
    --color-asphalt: #252628;
    --color-asphalt-soft: #343536;
    --color-paper: #f7f5f3;
    --color-white: #ffffff;
    --color-blue: #205b80;
    --color-yellow: #f2c14e;
    --color-line: #e6e1dd;
    --color-muted: #59636a;
    --color-success: #17663a;
    --color-error: #a1261d;
    --font-display: "Montserrat", Arial, sans-serif;
    --font-body: "Montserrat", Arial, sans-serif;
    --font-data: "Montserrat", Arial, sans-serif;
    --font-script: "Caveat", "Segoe Print", cursive;
    --radius-card: 20px;
    --radius-small: 12px;
    --radius-pill: 999px;
    --header-height: 76px;
    --container: 1180px;
    --shadow-sm: 0 8px 24px rgba(36, 38, 41, 0.08);
    --shadow-lg: 0 24px 60px rgba(17, 20, 24, 0.16);
    --shadow-brand: 0 14px 34px rgba(209, 24, 21, 0.28);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-paper);
    color: var(--color-asphalt);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

a:hover {
    color: var(--color-brand-dark);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--color-asphalt);
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.3rem, 5.2vw, 4.2rem);
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.9rem);
}

h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 700;
}

p:last-child {
    margin-bottom: 0;
}

[id] {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    padding: 10px 14px;
    background: var(--color-white);
    color: var(--color-asphalt);
    font-weight: 700;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    border-bottom: 4px solid var(--color-brand);
    background: var(--surface-ink);
    box-shadow: 0 8px 24px rgba(17, 20, 24, 0.14);
}

.site-header__inner {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.brand img {
    width: 178px;
    height: auto;
}

.site-header .brand img {
    filter: brightness(0) invert(1);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
    color: var(--color-white);
    box-shadow: inset 0 -3px 0 var(--color-white);
}

.site-nav__cta {
    margin-left: 10px;
    white-space: nowrap;
}

.site-header .button--brand {
    border-color: var(--color-white);
    background: var(--color-white);
    box-shadow: none;
    color: var(--surface-ink);
}

.site-header .button--brand:hover {
    border-color: var(--color-white);
    background: var(--color-paper);
    color: var(--surface-ink-deep);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-small);
    background: var(--color-white);
    color: var(--color-asphalt);
    cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
    width: 22px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle__icon {
    position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
    position: absolute;
    left: 0;
}

.menu-toggle__icon::before {
    top: -7px;
}

.menu-toggle__icon::after {
    top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.button:hover {
    transform: translateY(-2px);
}

.button--brand {
    border-color: transparent;
    background: var(--gradient-brand);
    box-shadow: var(--shadow-brand);
    color: var(--color-white);
}

.button--brand:hover {
    background: var(--color-brand-dark);
    color: var(--color-white);
}

.button--light {
    border-color: var(--color-white);
    background: var(--color-white);
    color: var(--color-brand);
}

.button--light:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-brand-dark);
}

.button--outline-light {
    border-color: rgba(255, 255, 255, 0.85);
    background: transparent;
    color: var(--color-white);
}

.button--outline-light:hover {
    border-color: var(--color-white);
    background: var(--color-white);
    color: var(--color-brand);
}

.button--outline {
    border-color: var(--color-brand);
    background: transparent;
    color: var(--color-brand);
}

.button--outline:hover {
    background: var(--color-brand);
    color: var(--color-white);
}

.button--small {
    min-height: 44px;
    padding: 8px 18px;
    font-size: 0.9rem;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-brand);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    line-height: 1.4;
    text-transform: uppercase;
    text-wrap: balance;
}

.eyebrow::before {
    width: 28px;
    height: 2px;
    flex: none;
    border-radius: var(--radius-pill);
    background: currentColor;
    content: "";
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin: 0 0 24px;
    border: 1px solid rgba(240, 82, 69, 0.42);
    border-radius: var(--radius-small);
    background: linear-gradient(135deg, rgba(207, 63, 52, 0.28), rgba(255, 255, 255, 0.09));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
    color: var(--color-white);
    padding: 10px 15px 10px 10px;
    text-decoration: none;
    backdrop-filter: blur(14px);
}

.hero-rating:hover,
.hero-rating:focus-visible {
    border-color: rgba(242, 193, 78, 0.72);
    background: linear-gradient(135deg, rgba(207, 63, 52, 0.36), rgba(255, 255, 255, 0.12));
    color: var(--color-white);
}

.hero-rating__icon {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(140, 31, 32, 0.34);
    object-fit: contain;
}

.hero-rating__content {
    display: grid;
    gap: 2px;
}

.hero-rating__stars {
    color: var(--color-yellow);
    font-family: var(--font-data);
    font-size: 0.78rem;
    letter-spacing: 1px;
    line-height: 1;
}

.hero-rating__content > span:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.hero-rating strong {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1;
}

.hero-rating__content span span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

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

.section {
    padding-block: 96px;
}

.section--compact {
    padding-block: 72px;
}

.section--white {
    background: var(--color-white);
}

.section--muted {
    background: #f6f1ee;
}

/* Fond rouge seul, sans recolorer le texte : pour les cartes blanches d'appel a l'action de l'accueil
   (teaser agence, bande contact), que .section--ink rendrait illisibles (titres et surtitres blancs). */
.section--red-band {
    background: var(--gradient-surface);
}

.section--ink {
    border-top: 0;
    border-bottom: 0;
    background: var(--gradient-surface);
    color: rgba(255, 255, 255, 0.86);
}

.section--brand {
    background: var(--surface-ink-deep);
    color: rgba(255, 255, 255, 0.9);
}

.section--ink h2,
.section--ink h3,
.section--brand h2,
.section--brand h3 {
    color: var(--color-white);
}

.section--ink .eyebrow,
.section--brand .eyebrow {
    color: var(--color-white);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
    align-items: end;
    gap: 60px;
    margin-bottom: 50px;
}

.section-heading h2 {
    max-width: 780px;
    margin-bottom: 0;
    text-wrap: balance;
}

.section-heading__copy {
    color: var(--color-muted);
    font-size: 1.08rem;
}

.section--ink .section-heading__copy,
.section--brand .section-heading__copy {
    color: rgba(255, 255, 255, 0.75);
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.formation-card {
    position: relative;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-card);
    color: var(--color-asphalt);
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.formation-card:hover {
    border-color: var(--color-brand);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    color: var(--color-asphalt);
    transform: translateY(-4px);
}

.formation-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 8px;
    background: var(--color-brand);
    content: "";
}

.formation-card::after {
    position: absolute;
    top: 24px;
    right: 22px;
    color: rgba(37, 38, 40, 0.08);
    content: attr(data-route);
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    line-height: 0.8;
}

.formation-card__label {
    position: relative;
    z-index: 1;
    margin-bottom: auto;
    color: var(--color-brand);
    font-family: var(--font-data);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.formation-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}

.formation-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    color: var(--color-muted);
}

.formation-card__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-asphalt);
    font-weight: 800;
}

.formation-card__link::after {
    content: "→";
}

.roadmap {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 10px;
}

.roadmap::before {
    position: absolute;
    top: 29px;
    right: 10%;
    left: 10%;
    height: 4px;
    background: var(--color-brand);
    content: "";
}

.roadmap__step {
    position: relative;
    z-index: 1;
}

.roadmap__marker {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 26px;
    place-items: center;
    border: 3px solid var(--color-white);
    background: var(--color-brand);
    color: var(--color-white);
    font-family: var(--font-data);
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 50%;
}

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

.roadmap p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.96rem;
}

.pricing-status {
    min-height: 28px;
    margin-bottom: 20px;
    color: var(--color-muted);
    font-size: 0.93rem;
}

#services.section--muted {
    border-top: 8px solid var(--surface-ink-deep);
    border-bottom: 8px solid var(--surface-ink-deep);
    background: var(--surface-ink);
    color: rgba(255, 255, 255, 0.88);
}

#services h2,
#services .eyebrow {
    color: var(--color-white);
}

#services .section-heading__copy {
    color: var(--color-white);
}

#services .button--outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

#services .button--outline:hover {
    background: var(--color-white);
    color: var(--color-asphalt);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: 70px;
}

.split--reverse > :first-child {
    order: 2;
}

.split__content h2 {
    margin-bottom: 24px;
}

.split__content p:where(:not(.eyebrow)) {
    color: var(--color-muted);
}

.split__content .button {
    margin-top: 10px;
}

.media-frame {
    position: relative;
    overflow: hidden;
    border: 8px solid var(--surface-ink-deep);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-card);
}

.media-frame img {
    width: 100%;
    height: auto;
}

.media-frame__caption {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 22px;
    border-top: 0;
    background: var(--surface-ink);
    color: var(--color-white);
}

.media-frame__caption strong {
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.media-frame__caption span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.proof-list {
    display: grid;
    gap: 0;
    margin: 34px 0 0;
    padding: 0;
    border-top: 1px solid var(--color-line);
    list-style: none;
}

.proof-list li {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-line);
}

.proof-list strong {
    display: block;
    margin-bottom: 3px;
}

.proof-list span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    background: var(--color-brand);
    color: var(--color-white);
    font-family: var(--font-data);
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
}

.proof-list p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.94rem;
}

.app-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
    align-items: center;
    gap: 60px;
    overflow: hidden;
    border: 8px solid var(--surface-ink-deep);
    background: var(--surface-ink);
    color: var(--color-white);
    border-radius: var(--radius-card);
}

.app-panel__visual {
    position: relative;
    min-height: 510px;
    align-self: stretch;
    overflow: hidden;
    background: var(--color-paper);
}

.app-panel__visual::before {
    position: absolute;
    right: -8%;
    bottom: 64px;
    width: 72%;
    height: 8px;
    background: var(--color-brand);
    content: "";
    transform: rotate(-7deg);
}

.app-device {
    position: absolute;
    top: 28px;
    left: 50%;
    width: clamp(150px, 40%, 210px);
    aspect-ratio: 546 / 1184;
    overflow: hidden;
    border: 8px solid var(--surface-ink-deep);
    border-radius: 22px;
    background: var(--color-white);
    box-shadow: 0 24px 48px rgba(17, 20, 24, 0.2);
}

.app-device--booking {
    transform: translateX(-25%) rotate(3deg);
}

.app-device--home {
    top: 54px;
    z-index: 1;
    transform: translateX(-75%) rotate(-3deg);
}

.app-device img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-panel__content {
    padding: 48px 54px 48px 0;
}

.app-panel h2 {
    margin-bottom: 20px;
    color: var(--color-white);
}

.app-panel p {
    color: var(--color-white);
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.store-links a {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    transition: opacity 180ms ease, transform 180ms ease;
}

.store-links a:hover {
    opacity: 0.86;
    transform: translateY(-2px);
}

.store-links img {
    width: auto;
    max-width: 190px;
    height: 54px;
}

.reviews-showcase {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.reviews-photo {
    position: relative;
    min-height: 320px;
    margin: 0;
    overflow: hidden;
    border: 2px solid rgba(242, 193, 78, 0.45);
    background: var(--surface-ink-soft);
    border-radius: var(--radius-card);
}

.reviews-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 410px;
    object-fit: cover;
    object-position: 50% 58%;
}

.reviews-photo figcaption {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: fit-content;
    max-width: calc(100% - 28px);
    padding: 7px 10px;
    background: var(--surface-ink-veil-soft);
    color: var(--color-white);
    font-family: var(--font-data);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.reviews-carousel {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.reviews-carousel__summary {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(242, 193, 78, 0.44);
    border-radius: var(--radius-small);
    background: linear-gradient(135deg, rgba(207, 63, 52, 0.26), rgba(255, 255, 255, 0.08));
    color: var(--color-white);
    padding: 8px 13px 8px 8px;
}

.reviews-carousel__map-icon {
    display: block;
    width: 34px;
    height: 34px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    object-fit: contain;
}

.reviews-carousel__summary strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1;
}

.reviews-carousel__summary span:last-child {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.93rem;
    font-weight: 700;
}

.reviews-carousel__stars {
    color: var(--color-yellow);
    font-family: var(--font-data);
    font-size: 0.84rem;
    letter-spacing: 1px;
}

.reviews-carousel__viewport {
    overflow: hidden;
}

.reviews-carousel__track {
    display: flex;
    gap: 18px;
    transition: transform 280ms ease;
    will-change: transform;
}

.reviews-carousel__track .review-card {
    flex: 0 0 min(640px, 86%);
}

.review-card {
    display: flex;
    min-height: 276px;
    flex-direction: column;
    padding: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: var(--surface-ink-soft);
    border-radius: var(--radius-card);
}

.review-card__stars {
    margin-bottom: 22px;
    color: var(--color-yellow);
    font-family: var(--font-data);
    font-size: 0.9rem;
}

.review-card blockquote {
    margin-inline: 0;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.03rem;
}

.review-card footer {
    margin-top: auto;
    color: var(--color-white);
    font-weight: 800;
}

.review-card footer span {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    font-weight: 400;
}

.reviews-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-data);
    font-size: 0.84rem;
    font-weight: 700;
}

.reviews-carousel__button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
}

.reviews-carousel__button:hover,
.reviews-carousel__button:focus-visible {
    border-color: var(--color-yellow);
    background: rgba(242, 193, 78, 0.16);
}

.reviews-carousel__button:disabled {
    opacity: 0.36;
    cursor: not-allowed;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.resource-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: 34px 38px;
    border: 1px solid var(--color-line);
    border-left: 6px solid var(--color-brand);
    background: var(--color-white);
    border-radius: var(--radius-card);
}

.resource-callout h2 {
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.resource-callout p:where(:not(.eyebrow)) {
    margin-bottom: 0;
    color: var(--color-muted);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(330px, 0.75fr) minmax(0, 1.25fr);
    gap: 56px;
}

.contact-card {
    padding: 30px;
    background: var(--surface-ink);
    color: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-card);
}

.contact-card h3 {
    color: var(--color-white);
}

.contact-card address {
    margin-bottom: 28px;
    font-style: normal;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    list-style: none;
}

.contact-list a {
    color: var(--color-white);
    font-weight: 700;
}

.map-frame {
    min-height: 280px;
    margin-top: 30px;
    overflow: hidden;
    border-radius: var(--radius-small);
    background: #e3e5e2;
}

.map-frame iframe {
    display: block;
    width: 100%;
    min-height: 280px;
    border: 0;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    color: var(--color-asphalt);
    font-size: 0.92rem;
    font-weight: 800;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid #aeb6b0;
    border-radius: var(--radius-small);
    background: var(--color-white);
    color: var(--color-asphalt);
}

.form-field input {
    min-height: 50px;
    padding: 10px 13px;
}

.form-field textarea {
    min-height: 150px;
    padding: 12px 13px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-brand);
    outline: 3px solid rgba(181, 34, 40, 0.18);
}

.form-note {
    margin: -5px 0 0;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.form-status {
    min-height: 24px;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
}

.form-status[data-state="success"] {
    color: var(--color-success);
}

.form-status[data-state="error"] {
    color: var(--color-error);
}

.contact-form button[disabled] {
    cursor: wait;
    opacity: 0.6;
}

.site-footer {
    border-top: 8px solid var(--color-brand);
    background: var(--surface-ink-deep);
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__main {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr;
    gap: 44px;
    padding-block: 64px 48px;
}

.site-footer .brand img {
    width: 190px;
    padding: 0;
    background: transparent;
    filter: brightness(0) invert(1);
}

.site-footer h2 {
    margin: 0 0 18px;
    color: var(--color-white);
    font-size: 1.45rem;
}

.site-footer p {
    max-width: 320px;
    margin-top: 20px;
}

.footer-links {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-white);
}

.site-footer address {
    font-style: normal;
}

.site-footer address a {
    color: var(--color-white);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
}

.site-footer__bottom p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0;
    text-decoration: none;
}

.social-links a::before {
    width: 20px;
    height: 20px;
    background: currentColor;
    content: "";
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.social-links a[aria-label*="Facebook"]::before {
    mask-image: url("/assets/icons/facebook.svg");
}

.social-links a[aria-label*="Instagram"]::before {
    mask-image: url("/assets/icons/instagram.svg");
}

.social-links a[aria-label*="WhatsApp"]::before,
.whatsapp-fab::before {
    mask-image: url("/assets/icons/whatsapp.svg");
}

.social-links a:hover {
    border-color: var(--color-brand-bright);
    color: var(--color-brand-bright);
}

.whatsapp-fab {
    position: fixed;
    right: 18px;
    bottom: 76px;
    z-index: 901;
    /* Flex et non grid : site.js met le mot « WhatsApp » (taille 0) dans le lien. En grille, ce
       texte formait une 2e ligne et l'icone se centrait dans la moitie haute du bouton. */
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.86);
    background: #1f9d55;
    box-shadow: var(--shadow-sm);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}

.whatsapp-fab::before {
    width: 26px;
    height: 26px;
    background: currentColor;
    content: "";
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.whatsapp-fab:hover {
    background: #178347;
    color: var(--color-white);
    transform: translateY(-2px);
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--color-brand);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.page-hero {
    position: relative;
    overflow: hidden;
    overflow: clip;
    background: var(--gradient-surface);
    color: var(--color-white);
}

.page-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 55%, rgba(255, 255, 255, 0.06) 55% 70%, transparent 70%),
        linear-gradient(115deg, transparent 0 72%, rgba(255, 255, 255, 0.04) 72% 84%, transparent 84%);
    content: "";
    pointer-events: none;
}

.page-hero::after {
    position: absolute;
    right: -6%;
    bottom: -120px;
    width: min(62%, 760px);
    height: 240px;
    border-top: 16px solid var(--color-brand-bright);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.5;
    content: "";
    transform: rotate(-8deg);
    pointer-events: none;
}

.page-hero .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    padding-block: 86px 90px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.breadcrumbs a {
    color: var(--color-white);
}

.page-hero h1 {
    margin-bottom: 22px;
    color: var(--color-white);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.page-hero p:where(:not(.eyebrow)) {
    max-width: 720px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.22rem;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 70px;
}

.prose {
    max-width: 760px;
}

.prose h2 {
    margin-top: 64px;
    margin-bottom: 20px;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 38px;
    margin-bottom: 14px;
}

.prose p,
.prose li {
    color: #495158;
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 26px);
    padding: 24px;
    border-top: 5px solid var(--color-brand);
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.sidebar h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.sidebar .button {
    padding-inline: 18px;
}

.sidebar p:where(:not(.eyebrow)) {
    color: var(--color-muted);
    font-size: 0.94rem;
}

.sidebar .button {
    width: 100%;
}

.info-table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    background: var(--color-white);
}

.info-table th,
.info-table td {
    padding: 14px 16px;
    border: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    width: 36%;
    font-family: var(--font-data);
    font-size: 0.8rem;
    text-transform: uppercase;
}

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

.faq-list details {
    border: 1px solid var(--color-line);
    background: var(--color-white);
    border-radius: var(--radius-small);
}

.faq-list summary {
    position: relative;
    border-radius: var(--radius-small);
    padding: 20px 52px 20px 22px;
    color: var(--color-asphalt);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 20px;
    color: var(--color-brand);
    content: "+";
    font-family: var(--font-data);
    font-size: 1.4rem;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--color-muted);
}

.faq-list details ul {
    margin: 0;
    padding: 0 22px 22px 44px;
    color: var(--color-muted);
}

.faq-list details li + li {
    margin-top: 4px;
}

.faq-list details p:has(+ ul) {
    padding-bottom: 8px;
}

.faq-group + .faq-group {
    margin-top: 48px;
}

.faq-group h3 {
    margin: 0 0 18px;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.address-card {
    padding: 26px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-white);
}

.address-card h2,
.address-card h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.address-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--color-muted);
    list-style: none;
}

.address-card li {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-line);
}

.address-card li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.document-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-white);
}

.document-card__code {
    margin-bottom: 28px;
    color: var(--color-brand);
    font-family: var(--font-data);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.document-card h2,
.document-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.document-card .button {
    width: 100%;
    margin-top: auto;
}

.partner-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.partner-row img {
    width: auto;
    max-width: 180px;
    max-height: 76px;
    object-fit: contain;
}

.second-chance-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 24px 28px;
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.second-chance-offer__price {
    display: flex;
    align-items: center;
    gap: 22px;
}

.second-chance-offer__price strong {
    padding-right: 22px;
    border-right: 2px solid var(--color-brand);
    color: var(--color-brand);
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    line-height: 1;
}

.second-chance-offer__price span {
    color: var(--color-asphalt);
    font-size: 1.05rem;
}

.notice {
    padding: 18px 20px;
    border-left: 5px solid var(--color-brand);
    border-radius: var(--radius-small);
    background: #fdf1f0;
    color: var(--color-asphalt);
}

.not-found {
    min-height: calc(100svh - var(--header-height));
    display: grid;
    place-items: center;
    padding-block: 80px;
    text-align: center;
}

.auth-shell {
    min-height: calc(100svh - var(--header-height) - 72px);
    display: grid;
    align-items: center;
    padding-block: 72px;
    background: #eef1ee;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
    align-items: center;
    gap: 72px;
}

.auth-intro {
    max-width: 640px;
}

.auth-intro h1,
.auth-success h1 {
    margin-bottom: 20px;
}

.auth-intro > p:not(.eyebrow),
.auth-success > p:not(.eyebrow, .auth-success__mark) {
    color: var(--color-muted);
    font-size: 1.12rem;
}

.auth-help {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--color-line);
}

.auth-help a {
    color: var(--color-brand);
    font-weight: 800;
}

.auth-card {
    display: grid;
    gap: 20px;
    padding: 34px;
    border: 1px solid var(--color-line);
    border-top: 6px solid var(--color-brand);
    border-radius: 6px;
    background: var(--color-white);
    box-shadow: 0 18px 50px rgba(36, 38, 41, 0.1);
}

.auth-card h2 {
    margin-bottom: 0;
    font-size: 1.6rem;
}

.auth-card__lead {
    margin: -8px 0 2px;
    color: var(--color-muted);
}

.auth-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--color-asphalt);
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-brand);
}

.auth-submit {
    width: 100%;
}

.auth-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

.auth-card.is-loading .auth-spinner {
    display: inline-block;
}

.auth-shell--success {
    text-align: center;
}

.auth-success {
    max-width: 820px;
}

.auth-success__mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--color-success);
    color: var(--color-white);
    font-family: var(--font-data);
    font-weight: 800;
}

.auth-success .section-actions {
    justify-content: center;
}

.utility-footer {
    min-height: 72px;
    display: grid;
    align-items: center;
    background: var(--surface-ink-darkest);
    color: rgba(255, 255, 255, 0.72);
}

.utility-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
}

.utility-footer p {
    margin: 0;
}

.utility-footer a {
    color: var(--color-white);
    font-weight: 800;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Seuil mesure le 2026-09-26 avec neuf entrees de nav (dont « Auto ou manuelle ») : debordement de
   1205 a 1286px avec l’ancien seuil de 1200px. Le menu n’en compte plus que sept (Documents, Permis B
   et Boite auto retires, Accueil ajoute), le seuil garde donc de la marge. */
@media (max-width: 1290px) {
    .site-nav__cta {
        display: none;
    }
}

/* Composants partagés du design v2 */

/* Mot composé à ne pas couper à son trait d'union. */
.nowrap {
    white-space: nowrap;
}

/* Texte réservé aux lecteurs d'écran (titre de section que le visuel n'affiche pas). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.icon-badge {
    display: inline-grid;
    width: 56px;
    height: 56px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--color-white);
    box-shadow: var(--shadow-brand);
}

.icon-badge svg {
    width: 26px;
    height: 26px;
}

.icon-badge--small {
    width: 44px;
    height: 44px;
}

.icon-badge--small svg {
    width: 20px;
    height: 20px;
}

/* Illustrations en relief reprises des visuels (.design-v2-tools/illustrations.py). */
.hero-pillar__art,
.step__art {
    height: auto;
    filter: drop-shadow(0 14px 16px rgba(40, 0, 0, 0.4));
}

.hero-pillar__art {
    width: 190px;
}

.step__art {
    width: 110px;
}

.step__art--wide {
    width: 140px;
}

.step__art--tile {
    width: 130px;
}

.script-accent {
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-script);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 600;
    line-height: 1.1;
    transform: rotate(-5deg);
}

.script-accent::after {
    display: block;
    width: 70%;
    height: 4px;
    margin-top: 6px;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    content: "";
}

.phone-frame {
    width: 150px;
    height: auto;
    border: 6px solid #1c1c1e;
    border-radius: 26px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
    transform: rotate(-6deg);
}

.eyebrow--center {
    justify-content: center;
}

/* Section « Nos formules » (accueil et tarifs) */

.offers {
    background: var(--color-paper);
}

.offers__heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.offers__heading h2 {
    margin-bottom: 14px;
    text-wrap: balance;
}

.offers__heading p:last-child {
    color: var(--color-muted);
    font-size: 1.05rem;
}

.offers__promises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 40px;
    margin: 0 0 52px;
    padding: 0;
    list-style: none;
}

.offers__promises li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-asphalt);
    font-weight: 600;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 28px 28px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.offer-card--featured {
    border: 2px solid var(--color-brand);
    box-shadow: var(--shadow-brand);
    transform: translateY(-12px);
}

.offer-card__badge {
    position: absolute;
    top: -16px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: var(--color-brand);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.offer-card__badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.offer-card__icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-asphalt);
    color: var(--color-white);
}

.offer-card--featured .offer-card__icon {
    background: var(--gradient-brand);
}

.offer-card__icon svg {
    width: 26px;
    height: 26px;
}

.offer-card h3 {
    margin-bottom: 4px;
    font-size: 1.45rem;
}

.offer-card__tagline {
    margin-bottom: 14px;
    color: var(--color-muted);
}

.offer-card__price {
    margin-bottom: 2px;
}

.offer-card__price strong,
.offer-card__split strong {
    display: block;
    color: var(--color-brand);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.offer-card__gearbox {
    margin-bottom: 18px;
    color: var(--color-asphalt);
    font-weight: 500;
}

.offer-card__split {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.offer-card__split p {
    display: grid;
    margin: 0;
    padding: 12px 8px;
    border-radius: var(--radius-small);
    background: #fbeceb;
}

.offer-card__split strong {
    font-size: 1.55rem;
}

.offer-card__split span {
    color: var(--color-asphalt);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Heures de chaque version du forfait accelere (demande client) : 13 h en automatique, 20 h en
   manuelle, comme les offres 28 et 27 de l'appli (data-offer-hours). */
.offer-card__split small {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.offer-card__features {
    display: grid;
    width: 100%;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.offer-card__features li {
    position: relative;
    padding-left: 32px;
    color: var(--color-asphalt);
    font-size: 0.95rem;
}

.offer-card__features li::before {
    position: absolute;
    top: 0.1em;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-asphalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
    content: "";
}

.offer-card--featured .offer-card__features li::before {
    background-color: var(--color-brand);
}

.offer-card .button {
    width: 100%;
    margin-top: auto;
}

.offer-card__note.script-accent {
    display: flex;
    min-height: 2.4em;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: var(--color-brand);
    font-size: 1.5rem;
}

.offer-card__note.script-accent::after {
    display: none;
}

.offers__help {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    margin-top: 52px;
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.offers__help-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px;
}

.offers__help-item--question,
.offers__help-item--retry {
    border-left: 1px solid var(--color-line);
}

/* Un seul bloc (Seconde Chance, retour client du 16 octobre) : toute la largeur, texte a gauche,
   bouton a droite. */
.offers__help--single {
    grid-template-columns: 1fr;
}

.offers__help--single .offers__help-item--retry {
    align-items: center;
    border: 0;
}

.offers__help--single .offers__help-item > div {
    display: grid;
    flex: 1;
    /* Bureau : texte | prix | bouton. Le prix suit le « a » de la phrase dans le sens de lecture. */
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 32px;
}

.offers__help--single .offers__help-item h3,
.offers__help--single .offers__help-item > div > p:not(.offers__help-price) {
    grid-column: 1;
}

.offers__help--single .offers__help-item .button {
    grid-row: 1 / span 2;
    grid-column: 3;
    margin-top: 0;
}

.offers__help--single .offers__help-price {
    grid-row: 1 / span 2;
    grid-column: 2;
}

/* Prix de la Seconde Chance mis en avant, entoure de petits traits (retour client du 20 octobre).
   Le chiffre suit l'appli via data-offer-id="29", comme sur /tarifs/. */
.offers__help .offers__help-price {
    margin: 0;
}

.offers__help-price strong {
    position: relative;
    display: inline-block;
    padding: 0 46px;
    color: var(--color-brand);
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}

.offers__help-price strong::before,
.offers__help-price strong::after {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 40px;
    margin-top: -20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40' fill='none' stroke='%23f08a87' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M30 4 22 10'/%3E%3Cpath d='M30 20H19'/%3E%3Cpath d='M30 36 22 30'/%3E%3C/svg%3E") center / contain no-repeat;
    content: "";
}

.offers__help-price strong::before {
    left: 0;
}

.offers__help-price strong::after {
    right: 0;
    transform: scaleX(-1);
}

.offers__help h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.offers__help p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.offers__help .button {
    margin-top: 14px;
}

.offers__strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0 0;
    padding: 22px 28px;
    border-radius: var(--radius-card);
    background: var(--color-asphalt);
    color: var(--color-white);
    list-style: none;
}

.offers__strip li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.offers__strip svg {
    width: 26px;
    height: 26px;
    flex: none;
}

.other-offers {
    margin-top: 64px;
}

.other-offers__title {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.other-offers__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.other-offer {
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-white);
}

.other-offer h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.other-offer p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.other-offer__price strong {
    color: var(--color-brand);
    font-size: 1.5rem;
    font-weight: 800;
}

.other-offer .button {
    justify-self: start;
}

.other-offers__note {
    margin: 16px 0 0;
    color: var(--color-muted);
    font-size: 0.88rem;
}

/* Section « Comment ça marche ? » */

.how-it-works {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #7a0d0b 0%, #8a0e0c 30%, #700c0a 100%);
    color: rgba(255, 255, 255, 0.86);
}

.how-it-works h2,
.how-it-works h3 {
    color: var(--color-white);
}

.how-it-works .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.how-it-works__heading {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.how-it-works__heading h2 {
    margin-bottom: 14px;
}

.how-it-works__heading p:last-child {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
}

.steps-wrap {
    position: relative;
}

.steps__road {
    position: absolute;
    top: 0;
    left: 50%;
    width: 140px;
    height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    transform: translateX(-50%);
    pointer-events: none;
}

.steps__road path {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.steps__road .road-surface {
    stroke: var(--color-brand-bright);
    stroke-width: 30;
    stroke-linecap: round;
}

.steps__road .road-line {
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 3;
    stroke-dasharray: 14 12;
}

.steps {
    position: relative;
    display: grid;
    gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    position: relative;
    display: grid;
    width: calc(50% - 90px);
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 22px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.07);
}

.step:nth-child(even) {
    justify-self: end;
    grid-template-columns: 1fr auto;
}

.step:nth-child(even) .step__visual {
    order: 1;
}

.step__number {
    position: absolute;
    top: -18px;
    left: -18px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 3px solid var(--color-white);
    border-radius: 50%;
    background: var(--color-brand);
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: var(--shadow-brand);
}

.step h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.step p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.step .button {
    margin-top: 14px;
}

.step__visual .phone-frame {
    width: 96px;
    transform: rotate(-8deg);
}

/* Etape 3 : ecran « Reserver une lecon » recree en HTML (la capture datait d'octobre 2020 et
   laissait la moitie basse vide). Dessine a 240 x 560, reduit a 0,35 pour remplir les 84 px
   utiles du cadre. Semaine sans mois ni annee pour ne pas vieillir ; points de rendez-vous
   reels de l'appli (internship/findAddresses). */
.phone-frame--screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 546 / 1184;
    background: var(--color-white);
}

.app-screen {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 240px;
    height: 560px;
    flex-direction: column;
    color: #1c1c1e;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    transform: scale(0.35);
    transform-origin: 0 0;
}

.app-screen__status {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px 6px;
    font-size: 12px;
    font-weight: 600;
}

.app-screen__bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 16px 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    color: #8a0e0c;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.app-screen__bar span {
    font-size: 18px;
    line-height: 1;
}

.app-screen__week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 16px 10px 10px;
    text-align: center;
}

.app-screen__day {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.app-screen__day small {
    color: #8e8e93;
    font-size: 11px;
}

.app-screen__day b {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 400;
}

.app-screen__day.is-open b {
    background: #1f7a1f;
    color: var(--color-white);
}

.app-screen__day.is-selected b {
    background: #c9150f;
    color: var(--color-white);
    font-weight: 700;
}

.app-screen__label {
    margin: 10px 16px 8px;
    color: #8e8e93;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.app-screen__slots {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    list-style: none;
}

.app-screen__slots li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fafafa;
}

.app-screen__slots li:first-child {
    border-color: #c9150f;
    background: #fdf0ef;
}

.app-screen__slots strong {
    font-size: 14px;
}

.app-screen__slots span {
    grid-column: 1;
    color: #6b6b70;
    font-size: 11px;
}

.app-screen__slots em {
    grid-row: 1 / span 2;
    grid-column: 2;
    padding: 7px 12px;
    border-radius: 999px;
    background: #c9150f;
    color: var(--color-white);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.app-screen__filter {
    align-self: flex-start;
    margin: auto 0 22px 16px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #a41f10;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
}

.step__plans {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-small);
    background: var(--color-white);
}

.step__plans span {
    display: grid;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fbeceb;
    color: var(--color-asphalt);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.step__plans small {
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: none;
}

/* Mario (manuelle) et Toad (automatique), comme sur /boite-auto-ou-manuelle/ : le kart depasse
   un peu du haut de la carte. */
.step__plans .step__plan--kart {
    position: relative;
    padding-right: 58px;
}

.step__plan--kart img {
    position: absolute;
    right: 8px;
    bottom: 3px;
    width: auto;
    max-width: 48px;
    height: 50px;
    object-fit: contain;
    object-position: bottom;
}

.how-it-works__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 64px;
}

/* En-tête de l'accueil */

.hero {
    position: relative;
    overflow: hidden;
    overflow: clip;
    background: var(--gradient-surface);
    color: var(--color-white);
    text-align: center;
}

.hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 52%, rgba(255, 255, 255, 0.07) 52% 66%, transparent 66%),
        linear-gradient(115deg, transparent 0 70%, rgba(255, 255, 255, 0.04) 70% 82%, transparent 82%);
    content: "";
    pointer-events: none;
}

.hero::after {
    position: absolute;
    right: -10%;
    bottom: -140px;
    width: 70%;
    height: 280px;
    border-top: 18px solid var(--color-brand-bright);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.5;
    content: "";
    transform: rotate(-10deg);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 28px;
    padding-block: 72px 96px;
}

.hero__title {
    max-width: 900px;
    margin: 0;
    color: var(--color-white);
    font-size: clamp(2.6rem, 6.4vw, 5rem);
    font-weight: 800;
    line-height: 1.02;
    text-wrap: balance;
}

.hero__title-small {
    font-size: 0.82em;
}

.hero__title-mark {
    position: relative;
    white-space: nowrap;
}

.hero__title-mark::after {
    position: absolute;
    right: -2%;
    bottom: -0.14em;
    left: 6%;
    height: 0.1em;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
    content: "";
    transform: rotate(-2deg);
}

.hero__tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__tagline span + span::before {
    margin-right: 18px;
    content: "|";
    content: "|" / "";
    opacity: 0.6;
}

.hero-pillars {
    display: grid;
    width: 100%;
    max-width: 980px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 24px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.hero-pillar {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.hero-pillar p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.hero-pillar .hero-pillar__title {
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-pillar .phone-frame {
    margin-bottom: 8px;
    animation: phone-float 6s ease-in-out infinite;
}

/* Le téléphone flotte et se redresse un peu, comme posé sur le visuel. */
@keyframes phone-float {
    0%,
    100% {
        transform: translateY(0) rotate(-6deg);
    }

    50% {
        transform: translateY(-12px) rotate(-3deg);
    }
}

.hero-pillar--app {
    position: relative;
}

.hero-pillar--app::before {
    position: absolute;
    top: 0;
    left: calc(50% + 72px);
    width: 34px;
    height: 34px;
    background: url("/assets/img/illustrations/eclat.svg") center / contain no-repeat;
    content: "";
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--color-white);
    color: var(--color-asphalt);
    font-size: 0.85rem;
    text-align: left;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.google-badge:hover {
    color: var(--color-asphalt);
}

.google-badge img {
    width: 28px;
    height: 28px;
}

.google-badge strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.1;
}

.hero .hero__actions {
    justify-content: center;
    margin-top: 12px;
}

.hero__script {
    justify-self: start;
    margin-top: 8px;
}

@media (max-width: 1060px) {
    .site-nav__links a {
        padding-inline: 9px;
        font-size: 0.84rem;
    }

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

    .reviews-carousel__track .review-card {
        flex-basis: 82%;
    }

    .reviews-showcase {
        grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr);
    }

    .site-footer__main {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-layout {
        gap: 44px;
    }
}

/* Menu burger jusqu’a 1100px : sans le bouton telephone, neuf entrees debordaient encore de 1007
   a 1097px (mesure le 2026-09-26, avant le retrait de Documents). */
@media (max-width: 1100px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding: 18px 20px 36px;
        overflow-y: auto;
        background: var(--color-white);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        visibility: hidden;
        transition:
            opacity 180ms ease,
            transform 180ms ease,
            visibility 0s linear 180ms;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
        transition-delay: 0s;
    }

    .site-nav__links {
        display: grid;
    }

    .site-nav__links li {
        border-bottom: 1px solid var(--color-line);
    }

    .site-nav__links a {
        min-height: 58px;
        padding-inline: 4px;
        color: var(--color-asphalt);
        font-size: 1.06rem;
    }

    .site-nav__cta {
        display: inline-flex;
        width: 100%;
        margin: 24px 0 0;
    }

    /* Fond blanc dans le menu : le lien courant et le survol ne peuvent pas rester en blanc. */
    .site-nav__links a:hover,
    .site-nav__links a[aria-current="page"] {
        color: var(--color-brand);
        box-shadow: none;
    }

    .site-header .site-nav__cta.button--brand {
        border-color: transparent;
        background: var(--gradient-brand);
        color: var(--color-white);
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 68px;
    }

    body {
        font-size: 16px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand img {
        width: 156px;
    }

    .section {
        padding-block: 72px;
    }

    .section--compact {
        padding-block: 56px;
    }

    .section-heading {
        display: block;
        margin-bottom: 38px;
    }

    .section-heading h2 {
        margin-bottom: 20px;
    }

    .roadmap {
        grid-template-columns: 1fr 1fr;
        row-gap: 38px;
    }

    .roadmap::before {
        display: none;
    }

    .split,
    .app-panel,
    .contact-layout,
    .content-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .split--reverse > :first-child {
        order: 0;
    }

    .app-panel__content {
        padding: 0 30px 38px;
    }

    .app-panel__visual {
        min-height: 440px;
        max-height: none;
    }

    .sidebar {
        position: static;
    }

    .page-hero__inner {
        padding-block: 70px 74px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .reviews-showcase {
        grid-template-columns: 1fr;
    }

    .reviews-photo,
    .reviews-photo img {
        min-height: 240px;
        max-height: 260px;
    }

    .reviews-photo img {
        object-position: 50% 66%;
    }
}

@media (max-width: 580px) {
    /* Le bandeau adresse est une grille 2 colonnes : trop etroit sous 580px,
       la ville se coupait sur quatre lignes. */
    h1 {
        font-size: clamp(1.85rem, 8.4vw, 2.4rem);
    }

    h2 {
        font-size: clamp(1.6rem, 7.6vw, 2.2rem);
    }

    .hero-rating {
        width: 100%;
        margin-bottom: 18px;
        padding: 9px 12px 9px 9px;
    }

    .hero-rating__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        padding: 5px;
    }

    .hero-rating__stars {
        font-size: 0.72rem;
    }

    .hero-rating strong {
        font-size: 1rem;
    }

    .hero-rating__content span span {
        font-size: 0.82rem;
    }

    .hero__actions {
        display: grid;
        gap: 10px;
    }

    .hero__actions .button {
        width: 100%;
        min-height: 46px;
        padding-block: 10px;
    }

    .formation-grid,
    .document-grid,
    .address-grid,
    .roadmap,
    .site-footer__main,
    .form-row {
        grid-template-columns: 1fr;
    }

    .reviews-carousel__summary {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .reviews-carousel__map-icon {
        width: 30px;
        height: 30px;
        padding: 4px;
    }

    .reviews-carousel__track .review-card {
        flex-basis: 100%;
    }

    .reviews-photo,
    .reviews-photo img {
        min-height: 170px;
        max-height: 190px;
    }

    #testimonials {
        padding-block: 52px;
    }

    #testimonials .section-heading {
        margin-bottom: 26px;
    }

    #testimonials .section-heading h2 {
        font-size: clamp(1.55rem, 7.2vw, 2rem);
    }

    #testimonials .section-heading__copy {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    #testimonials .review-card {
        min-height: 292px;
        padding: 22px;
    }

    #testimonials .review-card blockquote {
        margin-bottom: 22px;
        font-size: 0.98rem;
    }

    #testimonials .section-actions {
        margin-top: 24px;
    }

    .reviews-carousel__controls {
        justify-content: space-between;
    }

    .formation-card {
        min-height: 270px;
    }

    .roadmap {
        gap: 0;
        padding-left: 20px;
        border-left: 4px solid rgba(255, 255, 255, 0.18);
    }

    .roadmap__step {
        padding: 0 0 38px 20px;
    }

    .roadmap__step:last-child {
        padding-bottom: 0;
    }

    .roadmap__marker {
        width: 52px;
        height: 52px;
        margin-bottom: 17px;
        margin-left: -48px;
    }

    .app-panel__content {
        padding-inline: 22px;
    }

    .app-panel__visual {
        min-height: 405px;
    }

    .store-links {
        display: grid;
    }

    .resource-callout {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }

    .resource-callout .button {
        width: 100%;
    }

    .contact-card {
        padding: 24px;
    }

    .auth-shell {
        padding-block: 52px;
    }

    .auth-card {
        padding: 26px 22px;
    }

    .utility-footer__inner {
        display: block;
    }

    .utility-footer__inner a {
        display: inline-block;
        margin-top: 8px;
    }

    .site-footer__main {
        gap: 34px;
    }

    .site-footer__bottom {
        display: block;
    }

    .site-footer__bottom p + p {
        margin-top: 8px;
    }

    .page-hero h1 {
        font-size: clamp(1.85rem, 8.4vw, 2.4rem);
        line-height: 1.08;
    }

    .page-hero p:where(:not(.eyebrow)) {
        margin-bottom: 20px;
        font-size: 1rem;
        line-height: 1.45;
    }

    .whatsapp-fab {
        right: 12px;
        bottom: 66px;
        width: 46px;
        height: 46px;
    }

    .whatsapp-fab::before {
        width: 23px;
        height: 23px;
    }

    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        border-bottom: 0;
        background: #eef1ee;
    }
}

@media (max-width: 580px) {
    .page-hero::after {
        display: none;
    }
}

@media (max-width: 1060px) {
    .offer-grid {
        max-width: 520px;
        grid-template-columns: 1fr;
        margin-inline: auto;
        gap: 36px;
    }

    .offer-card--featured {
        transform: none;
    }

    .offers__help {
        grid-template-columns: 1fr;
    }

    .offers__help-item--question,
    .offers__help-item--retry {
        border-top: 1px solid var(--color-line);
        border-left: 0;
    }

    .offers__help--single .offers__help-item--retry {
        align-items: flex-start;
        border-top: 0;
    }

    .offers__help--single .offers__help-item > div {
        display: block;
    }

    .offers__help--single .offers__help-item .button {
        margin-top: 14px;
    }

    .offers__help .offers__help-price {
        margin: 10px 0 2px;
    }

    .offers__strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .offers__promises {
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        margin-inline: auto;
    }

    .other-offers__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1060px) {
    .steps__road {
        display: none;
    }

    .steps {
        gap: 30px;
        padding-left: 44px;
    }

    .steps::before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 19px;
        width: 4px;
        border-radius: var(--radius-pill);
        background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0 12px, transparent 12px 22px);
        content: "";
    }

    .step,
    .step:nth-child(even) {
        width: 100%;
        justify-self: stretch;
    }

    .step__number {
        top: 22px;
        left: -44px;
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }
}

@media (max-width: 820px) {
    .step,
    .step:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .step:nth-child(even) .step__visual {
        order: 0;
    }
}

@media (max-width: 820px) {
    /* Les boutons remontent sous le titre et l'accroche, avant les trois piliers. L'ordre de
       tabulation reste celui du HTML, pensé pour le bureau. */
    .hero__title {
        order: 1;
    }

    .hero__tagline {
        order: 2;
        flex-direction: column;
        align-items: center;
        letter-spacing: 0.14em;
    }

    .hero__tagline span + span::before {
        display: none;
    }

    .hero .hero__actions {
        order: 3;
    }

    .hero-pillars {
        order: 4;
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero__script {
        order: 5;
        justify-self: center;
    }
}

@media (max-width: 580px) {
    .hero::after {
        display: none;
    }
}

/* Page « Notre agence » (/kremlin-bicetre/), d'après le visuel du client : fond sombre mesuré sur le
   visuel (#6b0a06 à #440403) avec sa lueur rouge derrière la photo. Le rouge de « et bien réelle » y
   garde 3,5:1 au moins. */
.agency-top {
    position: relative;
    overflow: hidden;
    overflow: clip;
    background:
        radial-gradient(ellipse 55% 60% at 88% 40%, rgba(196, 22, 18, 0.38), transparent 70%),
        linear-gradient(170deg, #6b0a06 0%, #520804 50%, #440403 100%);
    color: rgba(255, 255, 255, 0.86);
}

.agency-hero {
    padding-block: 40px 36px;
}

.agency-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 48px;
}

.agency-hero__script {
    width: fit-content;
    margin: 0 10% 18px auto;
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    line-height: 1.05;
    text-align: center;
}

.agency-hero__script::after {
    margin-inline: auto;
}

.agency-hero__title {
    margin: 0 0 24px;
    color: var(--color-white);
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    font-weight: 800;
    line-height: 1.04;
}

.agency-hero__accent {
    display: block;
    color: #ff3b3f;
}

.agency-hero__place {
    display: block;
    margin-top: 10px;
    font-size: 0.5em;
    line-height: 1.2;
}

.agency-hero__lead {
    max-width: 560px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
}

.agency-hero__lead strong {
    color: var(--color-white);
}

.agency-hero__photo {
    position: relative;
    margin: 0;
    margin-right: calc((100vw - min(100vw - 40px, var(--container))) / -2);
    padding-bottom: 46px;
}

.agency-hero__photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 96px 0 0 var(--radius-card);
    box-shadow: 0 30px 60px rgba(20, 0, 0, 0.5);
}

.agency-address {
    position: absolute;
    bottom: 0;
    left: -28px;
    width: min(440px, 88%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    color: var(--color-asphalt);
    font-size: 0.95rem;
    line-height: 1.4;
}

.agency-address strong {
    display: block;
    font-weight: 800;
}

.agency-address__pin svg {
    display: block;
    width: 46px;
    height: 46px;
    color: var(--color-brand);
}

.agency-address::after {
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 28px;
    height: 28px;
    background: url("/assets/img/illustrations/eclat.svg") center / contain no-repeat;
    content: "";
}

.agency-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}

.agency-features li,
.agency-visit__grid,
.agency-quote {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.agency-features li {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 8px;
    padding: 26px 20px;
    text-align: center;
}

.agency-features .icon-badge {
    width: 84px;
    height: 84px;
    margin-bottom: 8px;
    background: radial-gradient(circle at 35% 30%, #e3302b 0%, #b81316 58%, #970f11 100%);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.agency-features .icon-badge svg {
    width: 40px;
    height: 40px;
}

.agency-features p {
    margin: 0;
    font-size: 0.95rem;
}

.agency-features .agency-features__title {
    color: var(--color-white);
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.25;
}

.agency-visit {
    padding-block: 36px 72px;
}

.agency-visit__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    overflow: hidden;
}

/* La photo suit la hauteur du texte voisin au lieu de l'imposer (elle est en portrait). */
.agency-visit__photo {
    position: relative;
    min-height: 360px;
    margin: 0;
    overflow: hidden;
}

.agency-visit__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 72%;
    transform: scale(1.03);
}

.agency-visit__card {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 14px;
    padding: 36px 40px;
    background: linear-gradient(180deg, #700a05 0%, #660d09 60%, #670904 100%);
}

.agency-visit__art {
    justify-self: center;
    width: 190px;
    height: auto;
}

.agency-visit__card h2 {
    margin: 0;
    color: var(--color-white);
    font-size: clamp(1.6rem, 2.4vw, 1.95rem);
}

.agency-visit__card p {
    margin: 0 0 8px;
}

.agency-visit__button {
    justify-self: stretch;
    justify-content: space-between;
    min-height: 58px;
    padding-inline: 28px 22px;
    background: #da1d20;
    font-size: 1.08rem;
}

.agency-visit__label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.agency-visit__button svg {
    width: 22px;
    height: 22px;
}

.agency-quote {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin-top: 44px;
    padding: 18px 40px;
    background: linear-gradient(90deg, #870d05 0%, #6b0905 55%, #720b02 100%);
}

.agency-quote__heart svg {
    display: block;
    width: 78px;
    height: 78px;
    color: var(--color-white);
    stroke-width: 2.2;
}

.agency-quote__text {
    justify-self: center;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.1;
    text-align: center;
    transform: rotate(-3deg);
}

.agency-quote__text::after {
    margin-inline: auto;
}

.agency-quote__art {
    width: 230px;
    height: auto;
    margin-block: -58px -14px;
    filter: drop-shadow(0 14px 16px rgba(40, 0, 0, 0.4));
}

.agency-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.agency-strip li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 18px;
    color: var(--color-white);
    font-size: 1.02rem;
}

.agency-strip li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.agency-strip svg {
    width: 36px;
    height: 36px;
    flex: none;
    stroke-width: 1.6;
}

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

@media (max-width: 820px) {
    .agency-hero__grid,
    .agency-visit__grid {
        grid-template-columns: 1fr;
    }

    .agency-hero__script {
        margin-left: 0;
    }

    .agency-visit__photo {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .agency-hero__photo {
        margin-right: 0;
    }

    .agency-hero__photo img {
        border-radius: 72px var(--radius-card) var(--radius-card) var(--radius-card);
    }

    .agency-address {
        left: 24px;
        width: auto;
        right: 24px;
    }

    .agency-quote {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 28px 22px;
    }

    .agency-quote__art {
        width: 190px;
        margin-block: 0;
    }

    .agency-strip {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .agency-strip li {
        justify-content: flex-start;
    }

    .agency-strip li + li {
        border-left: 0;
    }
}

@media (max-width: 580px) {
    .agency-features {
        gap: 12px;
    }

    .agency-features li {
        padding: 20px 12px;
    }

    .agency-features .icon-badge {
        width: 56px;
        height: 56px;
    }

    .agency-features .icon-badge svg {
        width: 26px;
        height: 26px;
    }

    .agency-features .agency-features__title {
        font-size: 0.94rem;
    }

    .agency-features p {
        font-size: 0.88rem;
    }

    /* La carte d'adresse passe sous la photo, qu'elle couvrirait à moitié sur un écran étroit. */
    .agency-hero__photo {
        padding-bottom: 0;
    }

    .agency-address {
        position: relative;
        right: auto;
        left: auto;
        margin: -28px 12px 0;
    }

    .agency-hero__photo img {
        border-top-left-radius: 56px;
    }

    .agency-visit__card {
        padding: 28px 22px;
    }
}

/* Sous 400 px, « accompagnement » ne tient plus dans une demi-largeur. */
@media (max-width: 400px) {
    .agency-features {
        grid-template-columns: 1fr;
    }
}

/* /boite-auto-ou-manuelle/ : Team Mario (manuelle) contre Team Toad (automatique). */
.versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 28px;
}

.versus__badge {
    align-self: center;
    margin: 0;
    color: var(--color-brand);
    font-size: clamp(3.2rem, 6vw, 4.8rem);
    font-style: italic;
    font-weight: 800;
    line-height: 1;
    text-shadow: 3px 3px 0 var(--color-brand-deep);
}

.team-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.team-card__visual {
    display: flex;
    height: 230px;
    justify-content: center;
    margin-bottom: 22px;
}

.team-card__visual img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.team-card__label {
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.team-card h3 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.team-card__tagline.script-accent {
    margin-bottom: 26px;
    color: var(--color-brand);
    font-size: 1.7rem;
    transform: rotate(-3deg);
    transform-origin: left center;
}

.team-card__tagline.script-accent::after {
    width: 140px;
}

.team-card__hours {
    align-self: flex-start;
    margin: -12px 0 24px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: #fbeceb;
    color: var(--color-brand-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.team-card__subtitle {
    margin: 0 0 14px;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pros-list {
    display: grid;
    gap: 10px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.pros-list:last-child {
    margin-bottom: 0;
}

.pros-list li {
    position: relative;
    padding-left: 32px;
    font-size: 0.95rem;
}

.pros-list li::before {
    position: absolute;
    top: 0.1em;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
    content: "";
}

.pros-list--cons li::before {
    background: #fde4e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d11815' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.advice {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* En-tête : Mario et Toad en transparence, face à face, derrière le texte. */
.page-hero__versus {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 28px 3% 0;
    opacity: 0.22;
    pointer-events: none;
}

.page-hero__versus img {
    width: auto;
    max-width: 34%;
    height: 92%;
    object-fit: contain;
    object-position: bottom;
}

.page-hero__versus img:first-child {
    transform: scaleX(-1);
}

.page-hero--versus .page-hero__inner {
    margin-inline: auto;
    text-align: center;
}

.page-hero--versus .breadcrumbs,
.page-hero--versus .eyebrow,
.page-hero--versus .hero__actions {
    justify-content: center;
}

.page-hero--versus p:where(:not(.eyebrow)) {
    margin-inline: auto;
}

/* Accueil, teaser « Notre agence » (retour client du 20 octobre) : une carte basse et entierement
   cliquable vers /kremlin-bicetre/, photo a gauche, titre et bouton a droite. */
.agency-teaser {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.agency-teaser:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.agency-teaser__photo {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.agency-teaser__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 34px 40px;
}

.agency-teaser__body .eyebrow {
    margin-bottom: 0;
}

.agency-teaser__title {
    display: block;
    margin: 0;
    color: var(--color-asphalt);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
}

.agency-teaser__button {
    margin-top: 6px;
}

@media (max-width: 820px) {
    .agency-teaser {
        grid-template-columns: 1fr;
    }

    .agency-teaser__photo {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .agency-teaser__body {
        padding: 22px 20px 24px;
    }
}


/* /technologie/ : video de l'application et cartes des fonctions (demande client du 20 octobre). */
.tech-video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    background: #000;
    box-shadow: var(--shadow-lg);
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.tech-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-small);
    background: #fbf3f2;
    color: var(--color-asphalt);
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (max-width: 580px) {
    .tech-features {
        grid-template-columns: 1fr;
    }
}

/* Accueil : routes animees en fond de l'en-tete (demande client du 20 octobre). Uniquement ici,
   derriere le contenu ; lignes en pointilles qui avancent lentement, coupees si l'utilisateur
   demande moins d'animations. */
.hero__roads {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Les routes s'effacent au centre, la ou sont le titre et les textes : elles encadrent le contenu
       sans passer derriere. */
    -webkit-mask-image: linear-gradient(90deg, #000 0 16%, transparent 34% 66%, #000 84% 100%);
    mask-image: linear-gradient(90deg, #000 0 16%, transparent 34% 66%, #000 84% 100%);
}

.hero__roads svg {
    width: 100%;
    height: 100%;
}

.hero__road {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-linecap: round;
    stroke-width: 48;
}

.hero__road-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.34);
    stroke-dasharray: 22 26;
    stroke-linecap: round;
    stroke-width: 3;
    animation: hero-road-dash 3.4s linear infinite;
}

.hero__road-line--b {
    animation-duration: 4.6s;
    animation-direction: reverse;
}

.hero__road-line--c {
    stroke: rgba(255, 255, 255, 0.22);
    animation-duration: 5.8s;
}

@keyframes hero-road-dash {
    to {
        stroke-dashoffset: -48;
    }
}

@media (max-width: 820px) {
    .hero__roads {
        -webkit-mask-image: linear-gradient(90deg, #000 0 8%, transparent 26% 74%, #000 92% 100%);
        mask-image: linear-gradient(90deg, #000 0 8%, transparent 26% 74%, #000 92% 100%);
    }

    .hero__road-line {
        stroke: rgba(255, 255, 255, 0.22);
    }

    .hero__road-line--c {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__road-line {
        animation: none;
    }
}

.step__link {
    display: inline-block;
    margin-top: 12px;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 820px) {
    .versus {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .versus__badge {
        justify-self: center;
    }

    .team-card {
        padding: 24px;
    }

    .team-card__visual {
        height: 180px;
    }

    .advice {
        flex-direction: column;
        gap: 14px;
    }

    .page-hero__versus {
        padding-top: 0;
        opacity: 0.16;
    }

    .page-hero__versus img {
        max-width: 48%;
        height: 58%;
    }
}

/* Intro d'ouverture (~2,4 s) : zoom sur le logo, le texte s'efface, la silhouette de voiture du logo
   se complete (bas de caisse et roues), la voiture part vers l’avant, a droite,
   l'ecran passe au noir puis devoile le site. Le logo est coupe en deux calques alignes
   (intro-logo-voiture.webp, intro-logo-texte.webp, 640 x 242) ; le SVG partage leur repere.
   Tout est en CSS : sans JavaScript, l'intro se retire quand meme. Le script en tete de page
   ajoute .intro-vue a <html> des la 2e page de la visite (sessionStorage). */
.intro {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    overflow: hidden;
    place-items: center;
    background: var(--gradient-surface);
    pointer-events: none;
    animation: intro-exit 0.4s ease-out 2s forwards;
}

.intro::after {
    position: absolute;
    inset: 0;
    background: #000;
    content: "";
    opacity: 0;
    animation: intro-black 0.35s ease-in 1.6s forwards;
}

.intro-vue .intro {
    display: none;
}

.intro__stage {
    position: relative;
    width: min(760px, 88vw);
    aspect-ratio: 640 / 242;
    animation: intro-zoom 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.intro__stage img,
.intro__stage svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.intro__text {
    animation: intro-text-out 0.35s ease-in 0.45s forwards;
}

.intro__car {
    position: absolute;
    inset: 0;
    animation: intro-drive 0.6s cubic-bezier(0.55, 0, 0.9, 0.4) 1.1s forwards;
}

.intro__body path {
    fill: none;
    stroke: #fff;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    stroke-linecap: round;
    stroke-width: 8;
    animation: intro-draw 0.4s ease-out 0.6s forwards;
}

.intro__wheel {
    opacity: 0;
    transform: scale(0.4);
    transform-box: fill-box;
    transform-origin: center;
    animation:
        intro-wheel-in 0.25s ease-out 0.85s forwards,
        intro-wheel-spin 0.3s linear 1.1s infinite;
}

.intro__wheel circle,
.intro__wheel line {
    fill: none;
    stroke: #fff;
    stroke-width: 7;
}

.intro__wheel .intro__hub {
    fill: #fff;
    stroke: none;
}

@keyframes intro-zoom {
    from {
        opacity: 0;
        transform: scale(0.45);
    }
}

@keyframes intro-text-out {
    to {
        opacity: 0;
        transform: translateY(12px);
    }
}

@keyframes intro-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes intro-wheel-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes intro-wheel-spin {
    from {
        opacity: 1;
        transform: rotate(0deg);
    }

    to {
        opacity: 1;
        transform: rotate(360deg);
    }
}

@keyframes intro-drive {
    to {
        transform: translateX(130vw);
    }
}

@keyframes intro-black {
    to {
        opacity: 1;
    }
}

@keyframes intro-exit {
    to {
        visibility: hidden;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-pillar .phone-frame {
        animation: none;
    }

    .intro {
        display: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Page contact (maquette client du 25 septembre) */

.contact-page {
    background: var(--color-white);
}

.contact-page .eyebrow {
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
}

.contact-page .eyebrow::before {
    display: none;
}

.contact-hero {
    position: relative;
    overflow: hidden;
    overflow: clip;
    min-height: 330px;
    background: var(--gradient-surface);
    color: var(--color-white);
    /* Bas du bandeau legerement bombe, comme sur la maquette. */
    border-radius: 0 0 50% 50% / 0 0 36px 36px;
}

.contact-hero__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 66%;
    /* Bord gauche en arc qui se fond dans le rouge, comme sur la maquette. */
    -webkit-mask-image: radial-gradient(ellipse 118% 175% at 100% 100%, #000 58%, rgba(0, 0, 0, 0.6) 64%, transparent 71%);
    mask-image: radial-gradient(ellipse 118% 175% at 100% 100%, #000 58%, rgba(0, 0, 0, 0.6) 64%, transparent 71%);
}

.contact-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 50%;
}

.contact-hero__photo::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(112, 12, 10, 0.35), transparent 40%);
    content: "";
}

.contact-hero__inner {
    position: relative;
    z-index: 1;
    padding-block: 44px 64px;
}

.contact-page .contact-hero .eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.contact-hero h1 {
    position: relative;
    width: fit-content;
    margin-bottom: 26px;
    color: var(--color-white);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    line-height: 1.06;
}

/* Trait rouge sous le titre. */
.contact-hero h1::after {
    position: absolute;
    bottom: -14px;
    left: 4%;
    width: 72%;
    height: 4px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, rgba(224, 26, 26, 0) 0%, var(--color-brand-bright) 30%, var(--color-brand-bright) 70%, rgba(224, 26, 26, 0) 100%);
    content: "";
    transform: rotate(-1.2deg);
}

.contact-hero__lead {
    max-width: 340px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45;
}

.contact-hero .contact-hero__script {
    position: absolute;
    z-index: 1;
    right: max(24px, calc((100vw - var(--container)) / 2));
    bottom: 48px;
    font-size: clamp(1.5rem, 2.3vw, 1.9rem);
    text-align: center;
    transform: rotate(-12deg);
}

.contact-channels-section {
    padding-block: 22px 0;
    background: var(--color-white);
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    max-width: 780px;
}

.contact-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 20px 20px;
    border-radius: var(--radius-card);
    background: #fbf3f2;
    text-align: center;
}

.contact-channel__icon {
    display: inline-grid;
    width: 72px;
    height: 72px;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #f6e1df;
    color: var(--color-brand-dark);
}

.contact-channel__icon svg {
    width: 34px;
    height: 34px;
}

.contact-channel h2 {
    margin-bottom: 4px;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.contact-channel__value {
    margin-bottom: 6px;
    color: var(--color-asphalt);
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.contact-channel__value:hover {
    color: var(--color-brand);
}

.contact-channel p {
    margin: 0;
    color: var(--color-asphalt-soft);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Formulaire de /contact/ (demande client du 18 octobre) : meme envoi que celui de l'accueil
   (.js-contact-form, user/messageToAdmin), dans une carte de la largeur des deux canaux. */
.contact-form-section {
    padding-block: 26px 0;
    background: var(--color-white);
}

.contact-form-card {
    width: min(780px, calc(100% - 32px));
    max-width: none;
    padding: 28px;
    border-radius: var(--radius-card);
    background: #fbf3f2;
}

@media (max-width: 580px) {
    .contact-form-card {
        padding: 22px 18px;
    }
}

/* Version compacte (retour client du 20 octobre) : une bande et un bouton qui ouvre le formulaire
   dans une fenetre <dialog>. Sans JavaScript, le lien #formulaire affiche la fenetre dans la page. */
.contact-form-card--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
}

.contact-form-card--compact > div > p {
    margin: 0;
    color: var(--color-asphalt-soft);
}

.contact-form-card--compact .button {
    flex: none;
    white-space: nowrap;
}

.modal {
    width: min(640px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-card);
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    color: var(--color-asphalt);
}

.modal::backdrop {
    background: rgba(30, 12, 12, 0.55);
}

.modal__panel {
    position: relative;
    padding: 30px;
}

.modal__panel h2 {
    margin-bottom: 4px;
    padding-right: 44px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.modal__panel > p {
    margin-bottom: 20px;
    color: var(--color-asphalt-soft);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fbf3f2;
    color: var(--color-asphalt);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

.modal__close:hover {
    background: #f6e1df;
}

.modal:target:not([open]) {
    position: static;
    display: block;
    margin: 24px auto 0;
}

@media (max-width: 580px) {
    .contact-form-card--compact {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
    }

    .modal__panel {
        padding: 24px 18px;
    }
}

.contact-form-card h2 {
    margin-bottom: 4px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.contact-form-card > p {
    margin-bottom: 20px;
    color: var(--color-asphalt-soft);
}

.contact-split-section {
    padding-block: 34px 16px;
    background: var(--color-white);
}

.contact-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
}

.contact-split__column + .contact-split__column {
    position: relative;
}

.contact-split__column + .contact-split__column::before {
    position: absolute;
    top: 0;
    bottom: 60px;
    left: -32px;
    width: 1px;
    background: #efd3d1;
    content: "";
}

.contact-split h2 {
    margin-bottom: 14px;
    color: #15181c;
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.contact-faq {
    display: grid;
    gap: 8px;
}

.contact-faq details {
    border-radius: var(--radius-small);
    background: #fbf3f2;
}

.contact-faq summary {
    position: relative;
    padding: 11px 44px 11px 18px;
    color: var(--color-asphalt);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.contact-faq summary::-webkit-details-marker {
    display: none;
}

/* Chevron qui pivote a l'ouverture. */
.contact-faq summary::after {
    position: absolute;
    top: 50%;
    right: 24px;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--color-brand);
    border-right: 2px solid var(--color-brand);
    content: "";
    transform: translateY(-50%) rotate(45deg);
    transition: transform 180ms ease;
}

.contact-faq details[open] summary::after {
    transform: translateY(-70%) rotate(135deg);
}

.contact-faq details p {
    margin: 0;
    padding: 0 18px 12px;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: var(--color-brand);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link--end {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-card);
    background: #fbf3f2;
}

.rating-summary__logo {
    width: 40px;
    height: 40px;
    flex: none;
}

.rating-summary__score {
    display: grid;
    padding-right: 26px;
    border-right: 1px solid #efd3d1;
}

.rating-summary__score strong {
    font-size: 1.2rem;
    line-height: 1.15;
}

.rating-summary__stars,
.review-item__stars {
    color: #f5a623;
    letter-spacing: 2px;
}

.rating-summary__stars {
    font-size: 1.05rem;
    line-height: 1.1;
}

.rating-summary p {
    margin: 0 auto;
    color: var(--color-asphalt);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.review-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 16px;
    border-radius: var(--radius-card);
    background: #fbf3f2;
}

.review-item__avatar {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: none;
    margin-top: 12px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-brand-deep);
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 700;
}

.review-item__stars {
    font-size: 0.8rem;
    line-height: 1.2;
}

.review-item blockquote {
    margin: 2px 0 3px;
    color: var(--color-asphalt);
    font-size: 0.8rem;
    line-height: 1.4;
}

.review-item__author {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.7rem;
}

.contact-cta-section {
    padding-block: 10px 30px;
    background: var(--color-white);
}

.cta-band {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    min-height: 130px;
    padding: 20px 80px 20px 90px;
    border-radius: var(--radius-card);
    background:
        radial-gradient(120% 140% at 85% 120%, rgba(224, 26, 26, 0.35), transparent 55%),
        var(--gradient-surface);
    color: var(--color-white);
}

.cta-band::after {
    position: absolute;
    left: 30%;
    bottom: -130px;
    width: 80%;
    height: 200px;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.cta-band > * {
    position: relative;
    z-index: 1;
}

.cta-band .script-accent {
    margin-bottom: 6px;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem);
}

.cta-band h2 {
    margin: 0 0 0 28px;
    color: var(--color-white);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.25;
}

.cta-band__button.button {
    min-width: 230px;
    min-height: 52px;
    flex: none;
    gap: 12px;
    font-size: 1.05rem;
}

.cta-band__button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1000px) {
    .contact-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }

    .contact-split__column + .contact-split__column::before {
        top: -28px;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 1px;
    }

    .cta-band {
        padding-inline: 48px;
    }
}

@media (max-width: 820px) {
    .contact-hero {
        min-height: 0;
        border-radius: 0 0 50% 50% / 0 0 24px 24px;
    }

    .contact-hero__photo {
        width: 100%;
        opacity: 0.45;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
    }

    .contact-hero__inner {
        padding-block: 48px 150px;
    }

    .contact-hero .contact-hero__script {
        right: 24px;
        bottom: 42px;
    }

    .contact-channels {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 26px;
    }

    .cta-band h2 {
        margin-left: 0;
    }

    .cta-band__button.button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 580px) {
    .rating-summary {
        gap: 14px;
        padding-inline: 18px;
    }

    .rating-summary__logo {
        width: 40px;
        height: 40px;
    }

    .rating-summary__score {
        padding-right: 14px;
    }
}
