/* SELF DRIVE — Socle commun : couleurs, typographie, accessibilité et animations partagées. */

:root {
    --font-main: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
    --font-size-caption: 0.75rem;
    --font-size-small: 0.875rem;
    --font-size-copy: 0.9375rem;
    --font-size-body: 1rem;
    --font-size-section-title: clamp(1.875rem, 3.2vw, 2.625rem);
    --font-weight-section-title: 600;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #243247;
    font-family: var(--font-main);
    font-size: var(--font-size-body);
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
}

input {
    font-family: inherit;
}

select {
    font-family: inherit;
}

textarea {
    font-family: inherit;
}

.back-to-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 940;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(13, 147, 180, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #0d93b4;
    box-shadow: 0 16px 32px rgba(7, 39, 51, 0.14);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.28s ease,
        transform 0.28s ease,
        color 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease;
}

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

.back-to-top-button:hover {
    border-color: rgba(13, 147, 180, 0.34);
    background: #0d93b4;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(13, 147, 180, 0.22);
    outline: none;
}

.back-to-top-button:focus-visible {
    border-color: rgba(13, 147, 180, 0.34);
    background: #0d93b4;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(13, 147, 180, 0.22);
    outline: none;
}

.back-to-top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-icon svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 650px) {
    .back-to-top-button {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top-button {
        transition: none;
    }
}

:root {
    --cars-primary: #0d93b4;
    --cars-primary-dark: #087892;
    --cars-accent: #cffafe;
    --cars-dark: #103845;
    --cars-text: #14313b;
    --cars-muted: #5f7680;
    --cars-background: #f7fcfd;
    --cars-white: #ffffff;
    --cars-border: rgba(13, 147, 180, 0.12);
    --cars-radius: 18px;
    --cars-shadow: 0 18px 42px rgba(7, 39, 51, 0.08);
}

@keyframes cars-title-rise {
from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cars-title-sheen {
from {
        background-position: 180% 50%;
    }

    to {
        background-position: -80% 50%;
    }
}

@keyframes cars-title-glow {
0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(207, 250, 254, 0));
    }

    50% {
        filter: drop-shadow(0 0 22px rgba(207, 250, 254, 0.45));
    }
}

.price-label {
    display: block;
    margin-bottom: 5px;
    color: var(--cars-muted);
    font-size: var(--font-size-caption);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

:root {
    --sd-primary: #0d93b4;
    --sd-action: #087892;
    --sd-ink: #103845;
    --sd-muted: #5b737d;
    --sd-soft: #eef7f9;
    --sd-line: #dce8eb;
    --sd-shadow: 0 12px 36px rgb(16 56 69 / 6%);
    --sd-ease: cubic-bezier(.22, 1, .36, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--navbar-height, 88px) + 24px);
}

body {
    color: var(--sd-ink);
    line-height: 1.6;
}

::selection {
    background: #cffafe;
    color: #103845;
}

img {
    max-width: 100%;
}

button {
    font: inherit;
}

input {
    font: inherit;
}

select {
    font: inherit;
}

textarea {
    font: inherit;
}

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

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

input {
    -webkit-tap-highlight-color: transparent;
}

select {
    -webkit-tap-highlight-color: transparent;
}

textarea {
    -webkit-tap-highlight-color: transparent;
}

a {
    touch-action: manipulation;
}

button {
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid var(--sd-primary);
    outline-offset: 5px;
}

main:focus {
    outline: none;
}

button:disabled {
    cursor: wait;
    opacity: .65;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    left: 20px;
    top: -100px;
    z-index: 10000;
    padding: 12px 20px;
    background: #fff;
    color: var(--sd-ink);
    border-radius: 8px;
}

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

h1 {
    font-family: var(--font-main);
    text-wrap: balance;
}

h2 {
    font-family: var(--font-main);
    text-wrap: balance;
}

h3 {
    font-family: var(--font-main);
    text-wrap: balance;
}

.price-block {
    width: 100%;
}

.price-label {
    font-size: var(--font-size-caption);
    color: var(--sd-muted);
}

.back-to-top-button {
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid #5ca2b4;
    border-radius: 10px;
    background: var(--sd-action);
    box-shadow: 0 4px 16px rgb(16 56 69 / 12%);
}

.sd-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .sd-reveal.is-pending {
        opacity: 0;
        transform: translateY(18px);
    }

    .sd-reveal {
        transition: opacity .6s var(--sd-ease), transform .6s var(--sd-ease);
    }
}

@media (max-width: 650px) {
    html {
        scroll-padding-top: calc(var(--navbar-height, 70px) + 24px);
    }

    .back-to-top-button {
        right: 14px;
        bottom: 16px;
    }
}

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

    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    *::before {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .sd-reveal.is-pending {
        opacity: 1;
        transform: none;
    }
}
