/* Terrenas Taxi — feuille de style unique, mobile d'abord, sans framework.
   Même charte que les sites du réseau ; couleur principale : jaune taxi + anthracite.
   Règle de contraste (WCAG AA) : texte foncé sur jaune, jamais de texte jaune sur fond clair. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-600-normal.778dd8bec372.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext-600-normal.d4d74d39456b.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-700-normal.6a0674c3b77b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1d1d1f;          /* anthracite : texte, fonds sombres */
  --ink-2: #2c2c30;
  --muted: #55555c;        /* 7,1:1 sur blanc */
  --line: #e4e0d6;
  --line-2: #d3cec2;
  --paper: #faf8f3;
  --card: #ffffff;
  --yellow: #ffc107;       /* jaune taxi : fonds uniquement (texte anthracite dessus : 10,6:1) */
  --yellow-600: #f5b400;
  --yellow-100: #fff3c4;
  --yellow-050: #fffaeb;
  --check-dark: #1d1d1f;
  --warn-fg: #7a4100;
  --warn-bg: #fff1d6;
  --sponsor-fg: #4c2f9e;
  --sponsor-bg: #efe9fc;
  --danger: #a5160f;
  --danger-bg: #fdecea;
  --ok: #17603a;
  --ok-bg: #e6f4ea;
  --info-fg: #0f4c5c;
  --info-bg: #e5f3f5;
  --wa: #15803d;
  --wa-700: #166534;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 29, 31, .06), 0 8px 24px rgba(29, 29, 31, .08);
  --font-heading: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --maxw: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--yellow-100); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; }
h3, .h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 5px var(--yellow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.icon { display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.nowrap { white-space: nowrap; }
.m0 { margin: 0; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 28px; }
.mb-1 { margin-bottom: 16px; }
.checker { height: 8px; background: repeating-conic-gradient(var(--check-dark) 0 25%, #fff 0 50%) 0 0 / 8px 8px; }

/* En-tête */
.site-header { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 40; }
.site-header .checker { height: 6px; background-size: 6px 6px; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { background: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand .brand-taxi { background: var(--yellow); color: var(--ink); border-radius: 6px; padding: 0 6px; margin-left: 3px; }
.header-spacer { flex: 1; }
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--yellow-100); }
.lang-switch { display: flex; gap: 2px; font-size: .85rem; }
.lang-switch a, .lang-switch span { padding: 6px 7px; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 600; }
.lang-switch a:hover { background: var(--yellow-100); color: var(--ink); }
.lang-switch span[aria-current] { color: var(--ink); background: var(--yellow); }
.btn.header-cta { display: none; }
.mobile-menu { position: relative; display: inline-flex; }
.mobile-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 600; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu[open] > summary { background: var(--yellow-100); }
.mobile-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(88vw, 340px); max-height: 80vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; z-index: 50; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.mobile-panel a:hover { background: var(--yellow-100); }
.mobile-panel .btn { margin-top: 8px; width: 100%; }
.mobile-panel .nav-sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px 4px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 2px solid transparent; font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; text-align: center; color: var(--ink); background: #fff; }
.btn:hover { background: var(--yellow-100); }
.btn-cta { background: var(--yellow); color: var(--ink); border-color: var(--yellow-600); box-shadow: 0 4px 0 var(--ink); }
.btn-cta:hover { background: var(--yellow-600); color: var(--ink); }
.btn-cta:active { box-shadow: 0 2px 0 var(--ink); transform: translateY(2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-small { min-height: 42px; padding: 8px 14px; font-size: .94rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; }
.text-link { font-weight: 600; }

/* Héros d'accueil (fond anthracite, texte clair) */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero a { color: #fff; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: bottom center; display: block; }
.hero-inner { position: relative; display: grid; gap: 22px; padding-top: 28px; padding-bottom: 150px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 7vw, 3.3rem); margin-bottom: .2em; }
.hero .subtitle { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.15rem, 3.4vw, 1.5rem); color: var(--yellow); margin: 0 0 12px; }
.hero .lead { color: rgba(255, 255, 255, .9); font-size: 1.04rem; max-width: 56ch; }
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.hero .kicker { color: var(--yellow); }
.hero-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pills li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); color: #fff; border-radius: 999px; padding: 6px 11px; font-size: .84rem; font-weight: 600; }
.hero-pills .icon { color: var(--yellow); }
.facts-line { margin: 14px 0 0; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.hero a.hero-link { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration-color: var(--yellow); }
.hero a.hero-link:hover { background: rgba(255, 255, 255, .12); }
.hero a.hero-link .icon { color: var(--yellow); }
.page-hero { background: var(--ink); color: #fff; padding: 22px 0 26px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, .88); max-width: 70ch; }
.page-hero .kicker { color: var(--yellow); }
.page-hero a { color: #fff; }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: rgba(255, 255, 255, .8); }

/* Formulaire rapide */
.quick-card { background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); padding: 18px 16px; border-top: 6px solid var(--yellow); }
.quick-card a { color: var(--ink); }
.quick-lead { display: grid; gap: 12px; }
.quick-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; line-height: 1.2; margin: 0; }
.quick-sub { color: var(--muted); font-size: .93rem; margin: -6px 0 0; }
.quick-label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.quick-context { display: flex; align-items: center; gap: 6px; background: var(--yellow-100); color: var(--ink); border-radius: 12px; padding: 9px 12px; font-weight: 600; font-size: .92rem; margin: 0; }
.quick-places { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.quick-phone-row { display: grid; grid-template-columns: minmax(0, 7.6rem) minmax(0, 1fr); gap: 8px; }
.quick-phone-row select { min-height: 54px; font-size: .92rem; padding: 8px 6px; }
.quick-phone-row input { min-height: 54px; font-size: 1.15rem; letter-spacing: .02em; }
.quick-consents { display: grid; gap: 8px; }
.quick-consent { font-size: .82rem; color: var(--muted); }
.quick-consent input { width: 20px; height: 20px; }
.quick-lead .btn-cta { min-height: 56px; font-size: 1.08rem; border-radius: 16px; }
.quick-legal { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.45; }
.quick-more { font-size: .9rem; font-weight: 600; text-align: center; }

/* Formulaires */
label, .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.req { color: var(--danger); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="time"], input[type="number"], input[type="search"], input[type="url"], input[type="file"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #c9c4b8; border-radius: 10px; background: #fff; color: var(--ink); font: 1rem/1.3 var(--font-body); min-width: 0;
}
input[type="file"] { padding: 8px; }
/* Safari iOS : les champs date et heure gardent une largeur et une hauteur propres sinon (débordement à droite) */
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; height: 46px; text-align: left; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid var(--yellow); outline-offset: 0; }
.field { margin-bottom: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { padding: 0; }
.field-row { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.field-row > * { min-width: 0; }
.field-row-3 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.field-error { color: var(--danger); font-size: .9rem; font-weight: 600; margin-top: 6px; display: flex; gap: 6px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--ink); }
.check-grid { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { position: relative; margin: 0; }
.radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-pill span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px; border: 1.5px solid #c9c4b8; border-radius: 999px; background: #fff; font-weight: 600; font-size: .93rem; cursor: pointer; }
.radio-pill input:checked + span { background: var(--yellow); border-color: var(--ink); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.phone-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 16px; border: 1px solid; }
.alert-error { background: var(--danger-bg); border-color: #f2bdb7; color: #6f120c; }
.alert-info { background: var(--info-bg); border-color: #b9dde3; color: var(--info-fg); }
.alert-warn { background: var(--warn-bg); border-color: #f0d29b; color: var(--warn-fg); }
.alert-ok { background: var(--ok-bg); border-color: #bfe2cb; color: var(--ok); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert a { color: inherit; }
.notice { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: var(--radius-sm); padding: 12px 14px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.form-section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.form-section > h2 { font-size: 1.1rem; }
.form-mention { border-left: 5px solid var(--yellow); background: var(--yellow-050); }
.consent-box { background: var(--paper); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 14px; display: grid; gap: 12px; }
.consent-item .help { margin: 4px 0 0 32px; }
.selected-context { display: grid; gap: 4px; background: var(--yellow-100); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 16px; font-size: .95rem; }
.more-details { border: 1.5px dashed #c9c4b8; border-radius: 14px; margin: 4px 0 16px; }
.more-details > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.more-details > summary::-webkit-details-marker { display: none; }
.more-details > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.more-details[open] > summary::after { content: "–"; }
.more-details-body { padding: 0 14px 4px; }

/* Sections */
.section { padding: 34px 0; }
.section-tight { padding: 20px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.breadcrumbs { font-size: .88rem; color: var(--muted); padding-top: 12px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #a09b90; }
.breadcrumbs a { color: var(--muted); text-decoration-color: var(--line-2); }
.page-head { padding-top: 16px; padding-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 72ch; }

/* Grilles et cartes */
.type-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.type-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: #fff; }
.type-card img { display: block; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--yellow-100); }
.type-card .type-body { padding: 10px 12px 14px; }
.type-card h3 { margin: 0 0 4px; font-size: 1.02rem; }
.type-card p { margin: 0; font-size: .85rem; color: var(--muted); }
.type-card--unknown { justify-content: center; align-items: flex-start; padding: 14px; background: var(--yellow-050); border-style: dashed; }
.card-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow-600); background: none; }
.card.is-sponsored { border-color: #cfc2f2; box-shadow: 0 0 0 2px var(--sponsor-bg); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-actions .btn { flex: 1 1 auto; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .86rem; color: var(--muted); margin: 0; }
.card-meta .icon { color: var(--ink); }
.route-card { position: relative; }
.route-card .route-line { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.route-card .route-line .icon { color: var(--muted); }
.price-from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price-from strong { font-family: var(--font-heading); font-size: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: .8rem; color: var(--ink); text-decoration: none; }
a.chip:hover { background: var(--yellow-100); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: .76rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge-sponsored { background: var(--sponsor-bg); color: var(--sponsor-fg); }
.badge-operator { background: var(--yellow); color: var(--ink); }
.badge-partner { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge-old { background: var(--danger-bg); color: var(--danger); }
.badge-override { background: var(--info-bg); color: var(--info-fg); }
.badge-kind { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.empty-state { text-align: center; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px 16px; }
.sponsored-block { border: 1px dashed #c9b9f0; border-radius: var(--radius); padding: 12px; background: #fcfbff; margin-bottom: 16px; }
.sponsored-block > .badge { margin-bottom: 10px; }

/* Annuaire */
.catalog-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.filters > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.filters > summary::-webkit-details-marker { display: none; }
.filters:not([open]) > summary::after { content: "+"; font-size: 1.3rem; }
.filters[open] > summary::after { content: "–"; font-size: 1.3rem; }
.filters-body { padding: 0 16px 16px; }
.filters .field { margin-bottom: 12px; }
.filters .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

/* Fiches, panneaux, tableaux */
.detail-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding-bottom: 80px; }
.detail-main { min-width: 0; }
.detail-aside { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.panel h2 { font-size: 1.2rem; }
.panel > :last-child { margin-bottom: 0; }
.illustration { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--yellow-100); }
.figure-note { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.photo-figure { margin: 0 0 14px; }
.photo-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--yellow-100); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.photo-grid .photo-figure img { aspect-ratio: 4 / 3; }
.type-card img.type-photo { background: #ddd; }
.route-card .card-photo { display: block; width: calc(100% + 2 * var(--card-pad, 16px)); max-width: none; margin: calc(-1 * var(--card-pad, 16px)) calc(-1 * var(--card-pad, 16px)) 12px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.spec-table, .fare-table, .sched-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td, .fare-table th, .fare-table td, .sched-table th, .sched-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 600; }
.fare-table thead th, .sched-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fare-amount { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.fare-unit { display: block; font-size: .84rem; font-weight: 600; }
.fare-sub { display: block; font-size: .8rem; color: var(--muted); }
.fare-estimate { margin-top: 6px; border-radius: 8px; padding: 6px 8px; font-size: .86rem; background: var(--ok-bg); }
.fare-estimate.partial { background: var(--warn-bg); }
.fare-estimate.on_request { background: var(--paper); }
.fare-estimate ul { margin: 4px 0 0; padding-left: 16px; }
.times { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.times li { font-family: var(--font-heading); font-weight: 700; background: var(--yellow-100); border-radius: 8px; padding: 2px 8px; font-size: .95rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 699px) {
  .fare-table thead, .sched-table thead { display: none; }
  .fare-table tr, .sched-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .fare-table td, .sched-table td { display: block; border: 0; padding: 3px 0; }
  .fare-table td[data-label]::before, .sched-table td[data-label]::before { content: attr(data-label) " : "; color: var(--muted); font-weight: 600; font-size: .82rem; }
}
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.facts > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.facts .facts-wide { grid-column: 1 / -1; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.request-box { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; box-shadow: 6px 6px 0 var(--yellow); }
.request-box h2 { font-size: 1.15rem; }
.request-box p { font-size: .92rem; }
.estimate-form { background: var(--yellow-050); border: 1px solid #f0dc9c; border-radius: var(--radius); padding: 14px; }
.estimate-form .field { margin-bottom: 10px; }
.estimate-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.estimate-grid > * { min-width: 0; }
.estimate-grid .full { grid-column: 1 / -1; }
.link-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.link-card img { width: 48px; height: 48px; border-radius: 10px; }
.agency-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; }
.agency-card h2, .agency-card h3 { color: #fff; margin: 0; }
.agency-card p { color: rgba(255, 255, 255, .88); margin: 0; }
.agency-card .kicker { color: var(--yellow); margin: 0; }
.agency-card .btn { justify-self: start; }
.safety-box { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--danger); border-radius: var(--radius-sm); padding: 14px 16px; }
.safety-box ul { margin: 6px 0 8px; padding-left: 18px; }

/* Contenus éditoriaux */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--yellow-100); }
.prose blockquote { margin: 1em 0; padding: 10px 14px; border-left: 5px solid var(--yellow); background: #fff; }
.text-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); }
.text-card:hover { border-color: var(--ink); background: #fff; }
.text-card h2, .text-card h3 { margin-bottom: 6px; }
.text-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.sources { font-size: .86rem; color: var(--muted); }
.sources ul { padding-left: 18px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 16px 14px; }
.steps { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 60px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; display: grid; place-items: center; font-family: var(--font-heading); border: 2px solid var(--ink); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list .icon { color: var(--ok); margin-top: 2px; }
.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.done-box { max-width: 680px; margin: 30px auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; text-align: center; }
.reference { font-family: var(--font-heading); font-size: 1.6rem; letter-spacing: .04em; background: var(--yellow); color: var(--ink); border-radius: 10px; padding: 8px 14px; display: inline-block; margin: 6px 0 12px; }
.policy-page { max-width: 780px; padding-top: 24px; padding-bottom: 48px; }

/* Barre fixe du bas et feuille de demande rapide */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(29, 29, 31, .08); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.sticky-cta { transition: transform .2s ease, visibility .2s; }
.sticky-cta.is-hidden { transform: translateY(110%); visibility: hidden; }
.sticky-cta .btn { flex-shrink: 0; box-shadow: none; }
.sticky-text { flex: 1; line-height: 1.2; min-width: 0; }
.sticky-text strong { display: block; font-family: var(--font-heading); font-size: 1rem; }
.sticky-text span { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body:has(.sticky-cta) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 94dvh; border: 0; padding: 0; border-radius: 24px 24px 0 0; background: #fff; color: var(--ink); overflow: auto; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
dialog.sheet::backdrop { background: rgba(10, 10, 12, .55); }
dialog.sheet[open] { animation: sheet-up .22s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-inner { padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet-inner::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 99px; background: #d6d2c8; margin: 0 auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head h2 { margin: 0; }
.sheet-close { border: 0; background: var(--paper); color: var(--ink); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.sheet-inner > .quick-sub { margin: 6px 0 12px; }

/* Bannière de consentement (uniquement si des balises sont configurées) */
.consent-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; max-width: 560px; }
.consent-banner[hidden] { display: none; }
.consent-banner h2 { font-size: 1.05rem; margin-bottom: 6px; }
.consent-banner p { font-size: .9rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { flex: 1 1 auto; }
.consent-choices { display: grid; gap: 8px; margin: 10px 0; }
.consent-choices[hidden] { display: none; }

/* Pied de page (fond anthracite : texte clair, accents jaunes autorisés) */
.site-footer { background: var(--ink); color: #e6e4de; margin-top: 30px; font-size: .92rem; }
.site-footer .checker { background: repeating-conic-gradient(#fff 0 25%, var(--check-dark) 0 50%) 0 0 / 8px 8px; }
.footer-wrap { padding: 28px 0 calc(20px + env(safe-area-inset-bottom)); }
.site-footer a { color: #fff; text-decoration-color: var(--yellow); }
.site-footer a:hover { background: rgba(255, 193, 7, .16); }
.footer-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.site-footer h2 { font-size: 1rem; color: var(--yellow); margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-network { margin-top: 24px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.network-list li { line-height: 1.4; }
.network-list .network-label { color: #c9c7c0; }
.featured-site { background: var(--yellow); color: var(--ink); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; }
.featured-site h2 { color: var(--ink); margin: 0; font-size: 1.05rem; }
.featured-site p { margin: 0; color: var(--ink); }
.featured-site a.btn { color: #fff; background: var(--ink); justify-self: start; text-decoration: none; }
.featured-site a.btn:hover { background: var(--ink-2); }
.footer-emergency { margin-top: 20px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-sm); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 22px; padding-top: 14px; font-size: .84rem; color: #c9c7c0; display: grid; gap: 6px; }
.footer-bottom p { margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); cursor: pointer; }

@media (max-width: 479px) {
  .header-inner { gap: 6px; }
  .brand { font-size: 1rem; gap: 6px; }
  .brand img { width: 30px; height: 30px; }
  .lang-switch a, .lang-switch span { padding: 5px 5px; }
  .mobile-menu > summary { padding: 8px; }
  .mobile-menu > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 600px) {
  :root { --gutter: 22px; }
  .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phone-grid { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
  .quick-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estimate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-network { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
  .hero-art { height: 220px; }
}
@media (min-width: 900px) {
  .main-nav { display: block; }
  .btn.header-cta { display: inline-flex; box-shadow: none; }
  .mobile-menu { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding-top: 56px; padding-bottom: 230px; gap: 40px; }
  .hero-art { height: 260px; }
  .quick-card { padding: 24px; }
  .type-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .catalog-layout { grid-template-columns: 290px minmax(0, 1fr); align-items: start; }
  .filters { position: sticky; top: 84px; }
  .filters > summary { pointer-events: none; }
  .filters > summary::after { content: none !important; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; padding-bottom: 20px; }
  .detail-aside .aside-sticky { position: sticky; top: 84px; }
  .sticky-cta { display: none; }
  .split { grid-template-columns: 1.2fr 1fr; }
  .card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr 1fr 2fr; }
  .facts .facts-wide { grid-column: auto; }
  dialog.sheet { margin: auto; max-width: 480px; border-radius: 24px; }
  .consent-banner { left: 24px; bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .sticky-cta, .filters, .consent-banner, dialog { display: none !important; }
}
.check-grid.one-col, .steps.one-col { grid-template-columns: minmax(0, 1fr) !important; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.request-box .quick-title { font-size: 1.2rem; }
.request-box .quick-sub { font-size: .9rem; }
.detail-main figure { max-width: 560px; }
