/* ============================================================
   Pneus Martin — feuille de styles principale
   Palette et tokens repris du design system Claude Design.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
    --font-sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    --brand-400: #ffd21f;
    --brand-500: #ffc700;
    --brand-600: #e6b300;
    --brand-700: #b38a00;
    --brand-900: #4d3b00;

    --ink-50:  #f7f7f8;
    --ink-100: #eeeef0;
    --ink-200: #d9dade;
    --ink-300: #b7b9c0;
    --ink-400: #8f929c;
    --ink-500: #6b6e79;
    --ink-700: #3f414a;
    --ink-800: #26272d;
    --ink-900: #17181c;

    --accent-600: #8f2a2a;
    --accent-700: #6b1f1f;

    --success-600: #15803d;
    --danger-500: #dc2626;

    --surface:       #fff;
    --surface-muted: #f7f7f8;

    --radius-md:      .375rem;
    --radius-control: .5rem;
    --radius-card:    .75rem;
    --radius-pill:    999px;

    --shadow-card: 0 1px 2px 0 rgba(23,24,28,.06), 0 1px 3px 0 rgba(23,24,28,.08);
    --shadow-lift: 0 6px 18px rgba(0,0,0,.08);
    --shadow-hero: 0 18px 40px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Offset des ancres pour ne pas passer sous le sticky header. */
:target,
section[id],
#services, #camion-lourd, #histoire, #succursales { scroll-margin-top: 130px; }

html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    color: var(--ink-900);
    background: var(--surface);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--accent-700); text-decoration: none; }
a:hover { color: var(--accent-600); }
button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 40px; }
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-muted { background: var(--surface-muted); }
.section-dark { background: var(--ink-900); color: #fff; }

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--accent-600);
    text-transform: uppercase;
}
.eyebrow-sm { font-size: 11px; letter-spacing: .1em; }

h1, h2, h3 { margin: 0; font-weight: 800; color: var(--ink-900); }
.h1 { font-size: 56px; line-height: 1.02; letter-spacing: -.025em; }
.h2 { font-size: 30px; line-height: 1.15; }
.h3 { font-size: 20px; line-height: 1.25; }

/* ---------- Header ---------- */

.site-header {
    background: #fff;
    color: var(--ink-900);
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 0 var(--ink-100);
}
.header-top { border-bottom: 1px solid var(--ink-100); background: var(--ink-50); }
.header-top .container,
.header-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 40px;
}
.header-top { font-size: 12.5px; color: var(--ink-500); }
.header-top a { color: var(--accent-700); font-weight: 700; }
.header-top a:hover { color: var(--accent-600); }
.header-contact { display: inline-flex; gap: 18px; flex-wrap: wrap; align-items: center; }

.header-bottom .container { min-height: 76px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-lockup img { height: 54px; width: auto; max-width: none; flex: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
    color: var(--ink-700);
    font-size: 14px;
    font-weight: 600;
}
.site-nav a:hover { color: var(--accent-700); }

.lang-switch {
    display: inline-flex;
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1px solid var(--ink-200);
    flex: none;
}
.lang-switch button {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 0 9px;
    height: 24px;
    font: 700 11px/24px var(--font-sans);
    letter-spacing: .06em;
    background: transparent;
    color: var(--ink-500);
}
.lang-switch button[aria-pressed="true"] { background: var(--ink-900); color: #fff; }

.menu-toggle {
    display: none;
    appearance: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink-900);
    transition: transform .2s, opacity .2s;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-control);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
    white-space: nowrap;
}
.btn-primary   { background: var(--ink-900); color: #fff; }
.btn-primary:hover { background: var(--ink-800); color: #fff; }
.btn-brand     { background: var(--brand-500); color: var(--ink-900); }
.btn-brand:hover { background: var(--brand-400); }
.btn-outline   { background: transparent; color: var(--ink-900); border-color: var(--ink-200); }
.btn-outline:hover { border-color: var(--ink-900); }
.btn-ghost     { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-full      { width: 100%; }
.btn-sm        { height: 40px; padding: 0 16px; font-size: 13px; }

/* ---------- Hero ---------- */

.hero { background: var(--ink-900); position: relative; overflow: hidden; }
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}
.hero::before {
    top: -120px; left: 45%;
    width: 560px; height: 560px;
    background: var(--brand-500);
    opacity: .12;
}
.hero::after {
    bottom: -220px; left: 30%;
    width: 360px; height: 360px;
    border: 40px solid var(--ink-800);
    background: transparent;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 40px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; position: relative; z-index: 2; }
.booking-card { position: relative; z-index: 2; }
.pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: var(--brand-500);
    color: var(--ink-900);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.pill-outline {
    background: transparent;
    color: var(--brand-400);
    border: 1px solid var(--brand-700);
    height: 24px;
    padding: 0 10px;
}
.hero-copy h1 { color: #fff; }
.hero-copy h1 .accent { color: var(--brand-500); display: block; }
.hero-copy p { margin: 0; color: var(--ink-300); font-size: 17px; line-height: 1.6; max-width: 440px; }
.hero-stats { display: flex; gap: 28px; padding-top: 8px; }
.hero-stat-num { color: var(--brand-500); font-size: 26px; font-weight: 800; }
.hero-stat-lbl { color: var(--ink-400); font-size: 13px; }

/* Booking card in hero */
.booking-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 28px;
    box-shadow: var(--shadow-hero);
    color: var(--ink-900);
}
.booking-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 12px;
}
.booking-head .title { font-size: 20px; font-weight: 800; }
.booking-head .status { font-size: 12px; font-weight: 700; color: var(--success-600); }
.booking-intro { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--ink-500); }
.booking-list { display: grid; gap: 12px; }
.branch-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-control);
    text-decoration: none;
    background: #fff;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.branch-card:hover { border-color: var(--ink-900); box-shadow: var(--shadow-lift); }
.branch-card .name { font-size: 17px; font-weight: 800; color: var(--ink-900); }
.branch-card .addr { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.branch-card .hours { font-size: 13px; color: var(--ink-400); margin-top: 6px; }
.branch-card .cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-control);
    background: var(--ink-900);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease;
    font-size: 14px;
}
.branch-card .cta:hover { background: var(--ink-800); color: #fff; }
.branch-card .cta-phone {
    background: var(--brand-500);
    color: var(--ink-900);
}
.branch-card .cta-phone:hover { background: var(--brand-400); color: var(--ink-900); }
.booking-foot {
    margin-top: 16px;
    font-size: 12px;
    color: var(--ink-400);
    text-align: center;
}

/* ---------- Season strip ---------- */

.season-strip { background: var(--brand-500); }
.season-strip .container {
    padding-block: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.season-strip .primary { font-size: 16px; font-weight: 800; color: var(--ink-900); }
.season-strip .secondary { font-size: 14px; color: var(--brand-900); font-weight: 600; }

/* ---------- Brand carousel ---------- */

@keyframes brandSlide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.brand-strip { border-bottom: 1px solid var(--ink-100); }
.brand-strip .marquee {
    overflow: hidden;
    padding: 28px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-track {
    display: flex;
    width: max-content;
    animation: brandSlide 26s linear infinite;
}
.brand-group {
    display: flex;
    align-items: center;
    gap: 64px;
    padding-right: 64px;
    flex: none;
}
.brand-group img {
    height: 34px;
    width: auto;
    max-width: none;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    flex: none;
    transition: opacity .2s, filter .2s;
}
.brand-group img:hover { filter: none; opacity: 1; }
.brand-group img.tall { height: 42px; }
.brand-group img.short { height: 26px; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.step { border-top: 3px solid var(--brand-500); padding-top: 20px; }
.step .num { font-size: 13px; font-weight: 800; color: var(--accent-600); letter-spacing: .1em; }
.step .head { font-size: 20px; font-weight: 800; margin: 8px 0; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-500); }

/* ---------- Services grid + tire finder ---------- */

.services-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 72px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 20px; }
.service-list .item {
    padding: 11px 0;
    border-bottom: 1px solid var(--ink-200);
    font-size: 15px;
    font-weight: 600;
}
.tire-finder {
    background: #fff;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-card);
    padding: 28px;
}
.tire-finder .title { font-size: 20px; font-weight: 800; margin: 8px 0 6px; }
.tire-finder p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--ink-500); }
.tire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-700); }
.field select {
    appearance: none;
    -webkit-appearance: none;
    height: 44px;
    padding: 0 36px 0 12px;
    border-radius: var(--radius-control);
    border: 1px solid var(--ink-200);
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236b6e79' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.field select:focus { outline: 0; border-color: var(--ink-900); box-shadow: 0 0 0 3px rgba(23,24,28,.08); }
.field select:disabled { background-color: var(--ink-50); color: var(--ink-400); cursor: not-allowed; }

.tire-hint {
    min-height: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--ink-500);
}
.tire-hint.error { color: var(--danger-500); }
.tire-finder .tire-older-note {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: var(--surface-muted);
    border-left: 3px solid var(--brand-500);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-700);
}
.tire-finder .tire-older-note a {
    color: var(--ink-900);
    font-weight: 700;
    text-decoration: underline;
}
.tire-finder .tire-older-note a:hover { color: var(--brand-700); }
.tire-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.tire-sizes[hidden] { display: none; }
.tire-sizes li { display: contents; }
.tire-size-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink-900);
    border: 2px solid var(--ink-200);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.tire-size-btn:hover { border-color: var(--ink-900); }
.tire-size-btn[aria-pressed="true"] {
    background: var(--brand-500);
    border-color: var(--brand-500);
    box-shadow: 0 2px 6px rgba(255,199,0,.35);
}
.tire-size-btn:focus-visible {
    outline: 2px solid var(--ink-900);
    outline-offset: 2px;
}

/* ---------- Commercial section ---------- */

.commercial {
    background: var(--ink-900);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: stretch;
}
.commercial > img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}
.commercial-copy { padding: 64px 40px 64px 56px; max-width: 660px; }
.commercial-copy h2 { color: #fff; margin: 14px 0 10px; }
.commercial-copy p { margin: 0 0 22px; color: var(--ink-300); font-size: 15px; line-height: 1.6; max-width: 460px; }
.commercial-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    margin-bottom: 26px;
}
.commercial-list .item {
    padding: 10px 0;
    border-bottom: 1px solid var(--ink-800);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

/* ---------- History ---------- */

.history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 64px 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.history p { font-size: 15px; line-height: 1.7; color: var(--ink-700); margin: 0 0 12px; }
.history-title { margin: 8px 0 14px; }
.history-visuals { display: grid; gap: 16px; }
.history-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius-card);
}
.history blockquote {
    margin: 0 0 12px;
    padding-left: 16px;
    border-left: 3px solid var(--brand-500);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-900);
    font-style: italic;
}
.history blockquote cite {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    color: var(--ink-500);
}
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--ink-100);
}
.timeline .row { position: relative; padding: 0 0 22px; }
.timeline .row:last-child { padding-bottom: 0; }
.timeline .row::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--brand-500);
    box-shadow: 0 0 0 3px #fff;
}
.timeline .row.today::before { background: var(--accent-600); }
.timeline .year { font-size: 15px; font-weight: 800; color: var(--accent-600); }
.timeline .desc { margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--ink-700); }

/* ---------- Reviews ---------- */

.reviews-header {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 40px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}
.reviews-summary { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.reviews-summary .score { font-size: 26px; font-weight: 800; color: var(--ink-900); }
.reviews-summary .count { font-size: 13px; color: var(--ink-500); }
.reviews-summary a { font-size: 13px; font-weight: 700; }
.reviews-summary .note { font-size: 12px; color: var(--ink-400); }

.reviews-marquee {
    overflow: hidden;
    padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reviews-track {
    display: flex;
    width: max-content;
    animation: brandSlide 90s linear infinite;
}
.reviews-track:hover { animation-play-state: paused; }
.reviews-group {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-right: 20px;
    flex: none;
}
.review-card {
    flex: none;
    width: 340px;
    background: #fff;
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
}
.review-card .stars { color: var(--brand-500); letter-spacing: 2px; }
.review-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-800); text-wrap: pretty; }
.review-card .author { font-size: 13px; font-weight: 700; color: var(--ink-900); }
.review-card details summary {
    cursor: pointer;
    list-style: none;
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-600);
}
.review-card details summary::-webkit-details-marker { display: none; }
.review-card details[open] summary { color: var(--accent-700); }

/* ---------- Locations ---------- */

.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.locations-heading {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.locations-subtitle { font-size: 14px; color: var(--ink-500); }
.location {
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #fff;
}
.location > img { width: 100%; height: 190px; object-fit: cover; }
.location .body { display: grid; grid-template-columns: 160px 1fr; }
.location iframe { width: 160px; height: 100%; min-height: 170px; border: 0; border-right: 1px solid var(--ink-100); }
.location .info { padding: 18px; }
.location .name { font-size: 17px; font-weight: 800; color: var(--ink-900); }
.location .addr { font-size: 14px; color: var(--ink-500); margin: 2px 0 10px; }
.location .hours-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    font-size: 13px;
    color: var(--ink-700);
}
.location .hours-grid .day { font-weight: 700; }
.location .phone {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-600);
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-900); color: var(--ink-300); }
.site-footer .container { padding-block: 56px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.footer-brand img {
    background: #fff;
    border-radius: var(--radius-control);
    padding: 8px 12px;
    height: 52px;
    width: auto;
}
.footer-brand p { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-300); }
.footer-brand .locs { display: grid; gap: 12px; margin-top: 16px; font-size: 14px; line-height: 1.6; }
.footer-brand .locs strong { color: #fff; font-weight: 700; }
.footer-brand .locs a { color: #fff; font-weight: 600; }
.footer-col h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--ink-300); font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bar {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--ink-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--ink-500);
    font-size: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
    .container { padding-inline: 24px; }
    .hero-inner { padding: 48px 24px; grid-template-columns: 1fr; gap: 40px; }
    .hero-copy h1 { font-size: 44px; }
    .commercial { grid-template-columns: 1fr; }
    .commercial > img { min-height: 220px; }
    .commercial-copy { padding: 40px 24px; }
    .services-block { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px; }
    .history { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .locations { grid-template-columns: 1fr; }

    .header-top { display: none; }
    .site-nav { display: none; }
    .site-nav.is-open {
        display: flex;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 20px;
        border-top: 1px solid var(--ink-100);
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
        z-index: 40;
    }
    .site-nav.is-open a {
        padding: 12px 0;
        border-bottom: 1px solid var(--ink-100);
    }
    .menu-toggle { display: block; }
    .header-bottom { position: relative; }
}

@media (max-width: 768px) {
    .h1 { font-size: 34px; }
    .h2 { font-size: 22px; }
    .section { padding: 48px 0; }
    .header-bottom .container { min-height: 64px; }
    .brand-lockup img { height: 40px; }

    .hero-inner { padding: 32px 20px; gap: 24px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .booking-card { padding: 20px; }

    .season-strip .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-block: 16px;
    }

    .steps { grid-template-columns: 1fr; gap: 16px; }
    .service-list { grid-template-columns: 1fr; }
    .services-block { padding: 40px 20px; }
    .tire-finder { padding: 20px; }
    .tire-grid { grid-template-columns: 1fr; }
    .commercial-list { grid-template-columns: 1fr; }
    .commercial-copy { padding: 32px 20px; }

    .history { padding: 40px 20px; }
    .history .h2 { font-size: 22px; }

    .reviews-header { flex-direction: column; gap: 8px; padding: 0 20px; }
    .review-card { width: 270px; padding: 16px; }
    .reviews-group { gap: 14px; padding-right: 14px; }

    .location .body { grid-template-columns: 1fr; }
    .location iframe { width: 100%; height: 140px; border-right: 0; border-bottom: 1px solid var(--ink-100); }
    .location .map-placeholder { width: 100%; min-height: 140px; border-right: 0; border-bottom: 1px solid var(--ink-100); }

    .cookie-inner { flex-direction: column; align-items: stretch; padding: 16px; }
    .cookie-actions { justify-content: stretch; }
    .cookie-actions .btn { flex: 1; }

    .site-footer .container { padding-block: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bar { flex-direction: column; align-items: flex-start; }
}

/* Focus rings for accessibility */
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   Modal — formulaire de contact
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 24, 28, .55);
    backdrop-filter: blur(2px);
    cursor: pointer;
}
.modal-panel {
    position: relative;
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    padding: 32px;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    border-radius: var(--radius-control);
    color: var(--ink-500);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--ink-100); color: var(--ink-900); }
.modal-title { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.modal-intro { margin: 0 0 20px; color: var(--ink-500); font-size: 14px; line-height: 1.55; }

/* Contact form */
.contact-form { display: grid; gap: 14px; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 12px; font-weight: 700; color: var(--ink-700); }
.contact-form label span { color: var(--danger-500); font-weight: 800; margin-left: 2px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 12px;
    border-radius: var(--radius-control);
    border: 1px solid var(--ink-200);
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink-900);
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--ink-900);
    box-shadow: 0 0 0 3px rgba(23, 24, 28, .08);
}
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-form select[aria-invalid="true"] {
    border-color: var(--danger-500);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236b6e79' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
.contact-form .char-count {
    font-size: 11px;
    color: var(--ink-400);
    text-align: right;
    margin-top: 2px;
}
.contact-form .char-count.warn { color: var(--danger-500); }
.contact-form .field-error {
    color: var(--danger-500);
    font-size: 12px;
    margin-top: 2px;
}

/* Honeypot — must NOT be display:none (some bots skip those). Hide via
   absolute + offscreen to keep it in the accessibility tree unreachable. */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.cf-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.cf-status { min-height: 20px; font-size: 13px; }
.cf-status.success { color: var(--success-600); font-weight: 700; }
.cf-status.error { color: var(--danger-500); font-weight: 700; }
.cf-status.loading { color: var(--ink-500); }

body.modal-open { overflow: hidden; }

/* ---------- Bandeau de consentement (cookies) ---------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    background: #fff;
    color: var(--ink-800);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.cookie-copy { flex: 1 1 320px; min-width: 260px; }
.cookie-title { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--ink-900); }
.cookie-desc { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-500); }
.cookie-details {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--ink-900);
    font-weight: 700;
    text-decoration: underline;
}
.cookie-details:hover { color: var(--brand-700); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Placeholder Google Maps (avant consentement) ---------- */
.location .map-placeholder {
    width: 160px;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--surface-muted);
    border-right: 1px solid var(--ink-100);
    text-align: center;
}
.location .map-placeholder > div { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.location .map-placeholder strong { font-size: 12px; color: var(--ink-800); }
.location .map-placeholder p { font-size: 11px; line-height: 1.4; color: var(--ink-500); margin: 0; }
.location .map-placeholder .btn { padding: 0 10px; height: 34px; font-size: 12px; }

/* ---------- Politique de confidentialité (contenu du modal) ---------- */
.privacy-body { font-size: 14px; line-height: 1.6; color: var(--ink-700); }
.privacy-body h3 { font-size: 15px; font-weight: 800; color: var(--ink-900); margin: 18px 0 6px; }
.privacy-body h3:first-child { margin-top: 4px; }
.privacy-body ul { margin: 0 0 10px; padding-left: 20px; }
.privacy-body li { margin: 4px 0; }
.privacy-body p { margin: 0 0 10px; }
.privacy-body code {
    background: var(--surface-muted);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--ink-800);
}
#privacy-modal .modal-panel { max-width: 640px; }

/* ---------- Lien pied de page (confidentialité) ---------- */
.footer-link { color: inherit; text-decoration: underline; }
.footer-link:hover { color: var(--brand-500); }

@media (max-width: 600px) {
    .modal-panel { padding: 24px 20px; }
    .modal-title { font-size: 20px; }
    .cf-actions { flex-direction: column-reverse; }
    .cf-actions .btn { width: 100%; }
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink-900);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }
