/* =========================================================
   Transport touristique — système de design
   Palette : vert Atlas, terracotta, crème désert, sauge
   ========================================================= */
:root {
  --green: #10251e;
  --green-2: #183a2f;
  --green-3: #24493c;
  --terra: #df653b;          /* accent, grands titres */
  --terra-strong: #b8461f;   /* boutons et petits textes (contraste AA) */
  --terra-tint: #fbebe4;
  --cream: #f3efe6;
  --paper: #faf8f3;
  --white: #fff;
  --sage: #789487;
  --sage-tint: #e8efeb;
  --ink: #10251e;
  --muted: #5d6b65;
  --line: #e2dccf;
  --line-2: #d3cbbb;
  --ok: #1d7a5a;
  --ok-tint: #e3f2ec;
  --warn: #8a5d07;
  --warn-tint: #fbf1dc;
  --info: #4c5aa8;
  --info-tint: #ebedf8;
  --danger: #b3261e;
  --danger-tint: #fbe9e7;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(16 37 30 / .05), 0 10px 30px -14px rgb(16 37 30 / .18);
  --shadow-lg: 0 2px 6px rgb(16 37 30 / .06), 0 30px 60px -24px rgb(16 37 30 / .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--terra-strong); outline-offset: 2px; border-radius: 4px; }
.dark :focus-visible, .on-dark :focus-visible { outline-color: var(--terra); }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
::selection { background: var(--terra-tint); }
[hidden] { display: none !important; }
#site-header, #site-footer { display: contents; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Langue : blocs bilingues */
html[lang='en'] .fr, html[lang='fr'] .en { display: none !important; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.section { padding-block: 72px; }
@media (min-width: 900px) { .section { padding-block: 104px; } }
.section-tight { padding-block: 56px; }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.dark { background: var(--green); color: #fff; }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 24px; } }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.dark .muted { color: rgb(255 255 255 / .72); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }

/* ---------- Typographie ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 700 12px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--terra-strong); }
.eyebrow::before { content: ''; width: 32px; height: 1.5px; background: currentColor; }
.dark .eyebrow, .on-dark .eyebrow { color: var(--terra); }
.h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 700; letter-spacing: -.035em; }
.h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--muted); }
.dark .lead, .on-dark .lead { color: rgb(255 255 255 / .78); }
.accent { color: var(--terra); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }
.section-head .lead { max-width: 620px; }
@media (min-width: 900px) { .section-head.split { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* ---------- Boutons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 10px;
  font: 700 15px/1 var(--font-display); white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .2s, box-shadow .25s;
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn-primary { background: var(--terra-strong); color: #fff; box-shadow: 0 10px 24px -12px rgb(184 70 31 / .7); }
.btn-primary:hover { background: #9e3a17; }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-3); }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--green); background: var(--green); color: #fff; }
.btn-light { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn-light:hover { background: #fff; color: var(--green); border-color: #fff; }
.btn-white { background: #fff; color: var(--green); }
.btn-wa { background: #1d7a5a; color: #fff; }
.btn-wa:hover { background: #166349; }
.btn-ghost { color: var(--ink); padding: 0 14px; }
.btn-ghost:hover { background: rgb(16 37 30 / .06); }
.btn-sm { --h: 42px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; }
.btn .spin { width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--font-display); border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; transition: background .2s; }
.icon-btn:hover { background: rgb(16 37 30 / .07); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Icônes ---------- */
.ic { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cartes, badges ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
@media (min-width: 768px) { .card-pad { padding: 32px; } }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; }
.chip svg { width: 15px; height: 15px; }
.dark .chip { border-color: rgb(255 255 255 / .25); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-new { background: var(--info-tint); color: var(--info); }
.b-quote { background: var(--warn-tint); color: var(--warn); }
.b-accepted { background: var(--sage-tint); color: #3f5b4f; }
.b-ok { background: var(--ok-tint); color: var(--ok); }
.b-done { background: #eceae4; color: #4d4a42; }
.b-cancel { background: var(--danger-tint); color: var(--danger); }
.b-demo { background: var(--terra-tint); color: var(--terra-strong); }
.b-demo::before { display: none; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.label .opt { font-weight: 400; color: var(--muted); }
.req { color: var(--terra-strong); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6b65' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(16 37 30 / .08); }
.input[aria-invalid='true'], .select[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--danger); box-shadow: 0 0 0 4px rgb(179 38 30 / .08); }
.input-icon { position: relative; width: 100%; min-width: 0; }
.input-icon > .ic { position: absolute; left: 14px; top: 15px; color: var(--terra-strong); pointer-events: none; }
.input-icon .input, .input-icon .select { padding-left: 42px; }
/* Safari iOS garde parfois la largeur native des champs date/heure. */
input.input[type='date'], input.input[type='time'] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  inline-size: 100%;
  min-inline-size: 0;
  -webkit-appearance: none;
  appearance: none;
}
input.input[type='date']::-webkit-date-and-time-value,
input.input[type='time']::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: left;
}
.error { display: flex; gap: 6px; font-size: 13px; font-weight: 500; color: var(--danger); }
.error:empty { display: none; }
.hint { font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex-shrink: 0; }

/* Segmented control (onglets de type de trajet) */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--cream); flex-wrap: wrap; }
.seg button { min-height: 42px; padding: 0 16px; border-radius: 9px; font: 600 14px var(--font-display); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.seg button svg { width: 17px; height: 17px; }
.seg button[aria-pressed='true'], .seg button[aria-selected='true'] { background: var(--green); color: #fff; }
.seg button:not([aria-pressed='true']):not([aria-selected='true']):hover { color: var(--ink); background: rgb(255 255 255 / .7); }

/* Interrupteur */
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); transition: background .25s; flex-shrink: 0; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .3s var(--ease); }
.switch[aria-checked='true'] .track { background: var(--terra-strong); }
.switch[aria-checked='true'] .track::after { transform: translateX(18px); }

/* Compteur +/- */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.stepper strong { display: block; font-size: 15px; }
.stepper small { color: var(--muted); font-size: 12.5px; }
.stepper .ctrl { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 20px; line-height: 1; transition: border-color .2s; }
.stepper button:hover:not(:disabled) { border-color: var(--green); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { width: 30px; text-align: center; font: 700 18px var(--font-display); }

/* Suggestions de lieux */
.combo { position: relative; }
.combo-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; max-height: 280px; overflow: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.combo-list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.combo-list li .ic { width: 17px; height: 17px; color: var(--terra-strong); }
.combo-list li[aria-selected='true'] { background: var(--cream); }

/* Choix sous forme de pastilles */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.pill:hover { border-color: var(--green); }
.pill[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- En-tête ---------- */
.topbar { background: var(--green); color: rgb(255 255 255 / .8); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar a:hover { color: var(--terra); }
.topbar .demo-note { display: flex; align-items: center; gap: 8px; }
.topbar .demo-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }
@media (max-width: 899px) { .topbar .hide-sm { display: none; } }
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(250 248 243 / .92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgb(16 37 30 / .5); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font: 800 15px var(--font-display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name.placeholder { color: var(--muted); border: 1.5px dashed var(--line-2); padding: 2px 8px; border-radius: 6px; letter-spacing: .08em; font-size: 12px; }
.dark .brand-name.placeholder, .on-dark .brand-name.placeholder { color: rgb(255 255 255 / .75); border-color: rgb(255 255 255 / .35); }
.brand-tag { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.brand-name.placeholder { overflow: visible; }
@media (max-width: 1240px) and (min-width: 1080px) { .site-header .brand-tag { display: none; } .menu a { padding: 0 10px; } }
@media (max-width: 479px) { .site-header .brand-tag { display: none; } .topbar { font-size: 12px; } }
.dark .brand-tag { color: rgb(255 255 255 / .6); }
.menu { display: none; align-items: center; gap: 2px; }
.menu a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; font: 600 15px var(--font-display); border-radius: 8px; transition: color .2s; }
.menu a::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 2px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:hover::after, .menu a[aria-current='page']::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-actions .btn { display: none; }
.lang-btn { min-height: 44px; padding: 0 10px; border-radius: 8px; font: 700 13px var(--font-display); display: inline-flex; align-items: center; gap: 6px; }
.lang-btn:hover { background: rgb(16 37 30 / .07); }
.lang-btn svg { width: 17px; height: 17px; }
.burger { display: inline-flex; }
@media (min-width: 1080px) {
  .menu { display: flex; }
  .burger { display: none; }
  .nav-actions .btn { display: inline-flex; }
}
@media (min-width: 640px) and (max-width: 1079px) { .nav-actions .btn-primary { display: inline-flex; } }

/* Tiroir mobile */
dialog { color: inherit; }
dialog::backdrop { background: rgb(8 20 16 / .6); backdrop-filter: blur(3px); }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(88vw, 400px); max-width: none; padding: 0; border: 0; background: var(--paper); }
.drawer[open] { animation: slideIn .4s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; margin: 0 20px; border-bottom: 1px solid var(--line); font: 700 19px var(--font-display); }
.drawer nav a[aria-current='page'] { color: var(--terra-strong); }
.drawer-foot { padding: 20px; display: grid; gap: 10px; }
.drawer-foot .row > * { flex: 1; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--green); color: rgb(255 255 255 / .75); padding-bottom: 88px; }
@media (min-width: 768px) { .site-footer { padding-bottom: 0; } }
.footer-grid { display: grid; gap: 40px; padding-block: 64px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.footer-title { font: 700 12px var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin-bottom: 18px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a:hover { color: var(--terra); }
.site-footer .contact-line { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .contact-line .ic { color: var(--terra); margin-top: 3px; width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); font-size: 13px; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 10px; padding-block: 22px; }
@media (min-width: 900px) { .footer-bottom .container { flex-direction: row; justify-content: space-between; } }

/* ---------- Actions flottantes ---------- */
.wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: none; align-items: center; height: 58px; padding: 0 18px; border-radius: 999px; background: #1d7a5a; color: #fff; box-shadow: var(--shadow-lg); font: 700 14px var(--font-display); gap: 0; transition: gap .35s var(--ease), padding .35s var(--ease); }
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease); }
.wa-fab:hover { gap: 10px; }
.wa-fab:hover span { max-width: 140px; }
@media (min-width: 768px) { .wa-fab { display: inline-flex; } }
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.mobile-bar .btn { --h: 50px; }
.mobile-bar .btn:first-child { flex: 1; }
.mobile-bar .square { width: 52px; padding: 0; }
@media (min-width: 768px) { .mobile-bar { display: none; } }
.cookie { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: 84px; max-width: 440px; padding: 18px; animation: rise .5s var(--ease); }
@media (min-width: 768px) { .cookie { left: 24px; bottom: 24px; } }
.cookie p { font-size: 13.5px; color: var(--muted); }
.cookie a { font-weight: 600; color: var(--ink); text-decoration: underline; }

/* Notifications (toasts) */
.toasts { position: fixed; z-index: 100; top: 16px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--green); color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: rise .4s var(--ease); }
.toast .ic { color: var(--terra); }
.toast.ok .ic { color: #7fd3b2; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: all .3s; }

/* ---------- Héros d'accueil ---------- */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero-grid { display: grid; }
.hero-media { position: relative; height: 46vh; min-height: 300px; background: var(--green); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: zoom 14s ease-out both; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(16 37 30 / .1), rgb(16 37 30 / .35)); }
.hero-copy { padding: 36px 0 40px; }
.hero-copy .lead { margin-top: 22px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .ic { color: var(--terra-strong); width: 18px; height: 18px; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; min-height: calc(100vh - var(--header-h) - 38px); max-height: 860px; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px 48px 140px 0; }
  .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; height: auto; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(16 37 30 / .45), transparent 40%); }
}
.reveal-up { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0ms); }

/* Widget de réservation */
.widget-wrap { position: relative; z-index: 5; }
@media (min-width: 1000px) { .widget-wrap { margin-top: -96px; } }
.widget { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .widget { padding: 28px 30px; } }
.widget-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
@media (min-width: 768px) { .widget-head { flex-direction: row; align-items: center; justify-content: space-between; } }
.widget-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.widget-fields > .field { width: 100%; min-width: 0; }
@media (min-width: 700px) { .widget-fields { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .widget-fields { grid-template-columns: 1.3fr 1.3fr 1fr .8fr .8fr auto; align-items: end; } }
.widget-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Bandeau de réassurance */
.trust-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 800px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }
.trust-strip > div { display: flex; gap: 16px; padding: 24px; background: #fff; }
.trust-strip .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--terra-tint); color: var(--terra-strong); flex-shrink: 0; }
.trust-strip strong { font-family: var(--font-display); display: block; margin-bottom: 2px; }
.trust-strip p { font-size: 14px; color: var(--muted); }

/* ---------- Cartes de contenu ---------- */
.media { position: relative; overflow: hidden; background: var(--cream); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.media img[data-loading] { opacity: 0; }
.media.loading { background: linear-gradient(100deg, #ece6da 30%, #f6f2ea 50%, #ece6da 70%) 0 0 / 200% 100%; animation: shimmer 1.5s linear infinite; }
a:hover > .media img, .card:hover .media img, .hover-zoom:hover img { transform: scale(1.05); }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

.service-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; transition: box-shadow .4s, transform .4s var(--ease); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card .body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px; }
.service-card .ico { width: 44px; height: 44px; margin-top: -44px; position: relative; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: var(--shadow); }
.service-card p { font-size: 14.5px; color: var(--muted); }
.service-card .more { margin-top: auto; padding-top: 8px; font: 700 14px var(--font-display); color: var(--terra-strong); display: inline-flex; align-items: center; gap: 6px; }

.vehicle-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.vehicle-card .tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 12px; border-radius: 999px; background: rgb(16 37 30 / .85); color: #fff; font-size: 12px; font-weight: 600; }
.vehicle-card .compare { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: rgb(255 255 255 / .94); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.vehicle-card .compare input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.vehicle-card .body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.spec { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--cream); font-size: 13px; font-weight: 500; }
.spec .ic { width: 16px; height: 16px; color: var(--terra-strong); }
.vehicle-card .actions { display: flex; gap: 10px; margin-top: auto; padding-top: 20px; }
.vehicle-card .actions .btn:first-child { flex: 1; }

.dest-card { position: relative; display: block; min-height: 320px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; background: var(--green); }
.dest-card .media { position: absolute; inset: 0; z-index: -2; }
.dest-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(16 37 30 / .92) 0%, rgb(16 37 30 / .15) 60%, transparent); }
.dest-card .body { position: absolute; inset: auto 0 0 0; padding: 22px; }
.dest-card small { color: var(--terra); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; }
.dest-card h3 { font-size: 1.6rem; margin-top: 4px; }
.dest-card p { font-size: 14px; color: rgb(255 255 255 / .82); margin-top: 6px; }
.dest-card .go { position: absolute; right: 20px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .4); display: grid; place-items: center; transition: all .3s; }
.dest-card:hover .go { background: var(--terra); border-color: var(--terra); }
.dest-card:hover .media img { transform: scale(1.06); }
.bento { display: grid; gap: 16px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; } .bento .wide { grid-column: span 2; } .bento .tall { grid-row: span 2; } .bento .dest-card { min-height: 0; } }

.circuit-card { display: grid; overflow: hidden; }
@media (min-width: 800px) { .circuit-card { grid-template-columns: .9fr 1.1fr; } }
.circuit-card .media { min-height: 240px; }
.circuit-card .body { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.timeline { counter-reset: d; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 14.5px; }
.timeline li::before { counter-increment: d; content: counter(d); position: absolute; left: -12px; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font: 700 11px/22px var(--font-display); text-align: center; }

/* Parcours client */
.journey { display: grid; gap: 28px; counter-reset: j; }
@media (min-width: 800px) { .journey { grid-template-columns: repeat(4, 1fr); } }
.journey li { position: relative; padding-top: 26px; border-top: 2px solid rgb(255 255 255 / .15); }
.journey li::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--terra); }
.journey .num { font: 800 13px var(--font-display); color: var(--terra); letter-spacing: .1em; }
.journey h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.journey p { font-size: 14.5px; color: rgb(255 255 255 / .72); }

/* Split image + texte */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 950px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.reverse > :first-child { order: 2; } }
.split .media { border-radius: var(--radius); }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.checks li + li { margin-top: 12px; }
.checks .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--terra-tint); color: var(--terra-strong); flex-shrink: 0; margin-top: 1px; }
.checks .tick svg { width: 13px; height: 13px; stroke-width: 3; }
.dark .checks .tick { background: rgb(223 101 59 / .18); color: var(--terra); }

/* FAQ (details natifs) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; padding: 18px 0; font: 700 17px/1.35 var(--font-display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--terra-strong); }
.faq summary .plus { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .3s var(--ease); }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--green); border-color: var(--green); color: #fff; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 760px; }
.faq details[open] p { animation: rise .45s var(--ease); }
.faq-search { max-width: 520px; margin-bottom: 28px; }

/* Bandeau d'appel à l'action */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; padding: 56px 24px; color: #fff; background: var(--green); }
@media (min-width: 768px) { .cta-band { padding: 80px 64px; } }
.cta-band .media { position: absolute; inset: 0; z-index: -2; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(16 37 30 / .96) 30%, rgb(16 37 30 / .55)); }
.cta-band .lead { max-width: 560px; margin-top: 16px; }

/* En-tête de page interne */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--green); overflow: hidden; }
.page-hero .media { position: absolute; inset: 0; z-index: -2; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(16 37 30 / .95), rgb(16 37 30 / .45)); }
.page-hero .container { padding-block: 120px 56px; }
@media (min-width: 900px) { .page-hero .container { padding-block: 170px 80px; } }
.page-hero .lead { max-width: 640px; margin-top: 18px; }
.page-hero.plain { background: var(--green); }
.page-hero.plain::after { display: none; }
.page-hero.plain .container { padding-block: 64px 56px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgb(255 255 255 / .75); margin-bottom: 18px; }
.crumbs a:hover { color: var(--terra); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }

/* Filtres */
.filters { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
@media (min-width: 900px) { .filters { flex-direction: row; align-items: flex-end; flex-wrap: wrap; } .filters .field { min-width: 170px; } }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0; font-size: 14px; color: var(--muted); }
.empty { padding: 56px 24px; text-align: center; }
.empty .ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--terra-tint); color: var(--terra-strong); }
.empty h3 { font-size: 1.25rem; }
.empty p { color: var(--muted); margin: 8px auto 20px; max-width: 420px; }

/* Comparateur */
.compare-bar { position: fixed; z-index: 44; left: 12px; right: 12px; bottom: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--green); color: #fff; box-shadow: var(--shadow-lg); animation: rise .4s var(--ease); }
@media (min-width: 768px) { .compare-bar { left: 50%; right: auto; bottom: 24px; transform: translateX(-50%); width: min(640px, 90vw); } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font: 700 12px var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--paper); white-space: nowrap; }
.table tbody tr { transition: background .15s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--paper); }

/* Galerie */
.gallery { display: grid; gap: 10px; }
.gallery .main { border-radius: var(--radius); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.thumbs button { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid transparent; opacity: .7; transition: all .2s; }
.thumbs button[aria-current='true'] { border-color: var(--terra); opacity: 1; }
.thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; }
.lightbox[open] { animation: pop .35s var(--ease); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px; }
.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; color: #fff; font-size: 14px; }
.lightbox .icon-btn { color: #fff; background: rgb(255 255 255 / .12); }

/* Modale */
.modal { width: min(560px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); }
.modal[open] { animation: pop .35s var(--ease); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 18px 0 24px; }
.modal-body { padding: 16px 24px 24px; }

/* ---------- Réservation ---------- */
.bk-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.bk-steps li { display: flex; flex-direction: column; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.bk-steps .bar { height: 4px; border-radius: 9px; background: var(--line); overflow: hidden; }
.bk-steps .bar::after { content: ''; display: block; height: 100%; width: 0; background: var(--terra-strong); transition: width .5s var(--ease); }
.bk-steps li.done .bar::after, .bk-steps li.current .bar::after { width: 100%; }
.bk-steps li.current, .bk-steps li.done { color: var(--ink); }
.bk-steps .lbl { display: none; }
@media (min-width: 640px) { .bk-steps .lbl { display: inline; } }
.bk-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .bk-layout { grid-template-columns: 1fr 360px; } .bk-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.bk-panel { animation: rise .5s var(--ease); }
.bk-title { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.bk-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 767px) {
  .bk-nav { position: fixed; z-index: 42; inset: auto 0 0 0; margin: 0; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: rgb(255 255 255 / .97); border-top: 1px solid var(--line); }
  .bk-nav .btn { flex: 1; }
  .page-booking { padding-bottom: 80px; }
}
.summary { padding: 22px; }
.summary dl { margin: 0; display: grid; gap: 12px; font-size: 14px; }
.summary dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.summary dd { margin: 2px 0 0; font-weight: 600; }
.summary .price { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.summary .price strong { color: var(--terra-strong); font-family: var(--font-display); }
.veh-option { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; width: 100%; transition: border-color .2s, box-shadow .2s; }
.veh-option:hover:not(:disabled) { border-color: var(--green); }
.veh-option[aria-pressed='true'] { border-color: var(--terra-strong); box-shadow: 0 0 0 4px rgb(184 70 31 / .12); }
.veh-option:disabled { opacity: .5; cursor: not-allowed; }
.veh-option .media { border-radius: 10px; aspect-ratio: 4 / 3; }
.veh-option .rec { position: absolute; top: -10px; right: 12px; }
.recap-table td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
.recap-table td:first-child { color: var(--muted); width: 38%; padding-right: 12px; }
.recap-table td:last-child { font-weight: 600; }
.success-mark { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; }
.success-mark svg { width: 42px; height: 42px; stroke-width: 2.5; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .2s var(--ease) forwards; }

/* Statut (espace client) */
.status-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0; }
.status-track li { font-size: 12px; font-weight: 600; color: var(--muted); }
.status-track li::before { content: ''; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 8px; }
.status-track li.on { color: var(--ink); }
.status-track li.on::before { background: var(--ok); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impression (récapitulatif, facture) ---------- */
@media print {
  .site-header, .topbar, .site-footer, .wa-fab, .mobile-bar, .cookie, .no-print, .bk-nav, .toasts { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card { box-shadow: none; }
}

/* =========================================================
   Espace équipe (démonstration)
   ========================================================= */
.admin-body { background: #eef0ec; }
.adm { display: grid; min-height: 100vh; }
@media (min-width: 1080px) { .adm { grid-template-columns: 264px 1fr; } }
.adm-side { background: var(--green); color: rgb(255 255 255 / .78); padding: 14px 12px; position: sticky; top: 0; z-index: 30; }
@media (min-width: 1080px) { .adm-side { height: 100vh; overflow-y: auto; padding: 22px 14px; display: flex; flex-direction: column; } }
.adm-side .brand { padding: 4px 8px 18px; }
.adm-side .brand-tag { color: rgb(255 255 255 / .55); }
.adm-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.adm-nav::-webkit-scrollbar { display: none; }
@media (min-width: 1080px) { .adm-nav { flex-direction: column; overflow: visible; } }
.adm-nav button { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.adm-nav button:hover { background: rgb(255 255 255 / .07); color: #fff; }
.adm-nav button[aria-current='page'] { background: var(--green-3); color: #fff; }
.adm-nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--terra); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.adm-side-foot { margin-top: auto; padding: 16px 8px 0; font-size: 12.5px; display: none; }
@media (min-width: 1080px) { .adm-side-foot { display: block; } }
.adm-main { padding: 20px 16px 60px; min-width: 0; }
@media (min-width: 768px) { .adm-main { padding: 28px 32px 60px; } }
.adm-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--terra-tint); color: #7a3014; font-size: 13.5px; margin-bottom: 22px; }
.adm-banner strong { font-family: var(--font-display); }
.adm-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.adm-top h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.adm-card { background: #fff; border: 1px solid #e3e5df; border-radius: 14px; padding: 20px; }
.adm-card h2 { font-size: 1.05rem; margin-bottom: 14px; }
.adm-grid { display: grid; gap: 16px; }
@media (min-width: 1100px) { .adm-grid.cols-2-1 { grid-template-columns: 2fr 1fr; } .adm-grid.cols-1-1 { grid-template-columns: 1fr 1fr; } }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
@media (min-width: 1000px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid #e3e5df; border-radius: 14px; padding: 18px; text-align: left; transition: box-shadow .2s, transform .2s; }
.kpi:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kpi span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.kpi span .ic { width: 16px; height: 16px; color: var(--terra-strong); }
.kpi strong { display: block; margin-top: 10px; font: 800 2rem/1 var(--font-display); letter-spacing: -.03em; }
.kpi small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.adm-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.adm-filters .input, .adm-filters .select { min-height: 44px; width: auto; }
.adm-filters .grow { flex: 1 1 220px; }
.adm .table td { font-size: 13.5px; }
.adm .table .sub { display: block; color: var(--muted); font-size: 12.5px; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 44px; align-items: center; gap: 10px; font-size: 13.5px; }
.hbar .track { height: 12px; border-radius: 4px; background: #eef0ec; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--sage); }
.hbar .fill.terra { background: var(--terra); }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.vbars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.vbars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; font-size: 12px; }
.vbars .bar { width: 100%; max-width: 46px; border-radius: 4px 4px 0 0; background: var(--terra); min-height: 2px; position: relative; }
.vbars .bar:hover { background: var(--terra-strong); }
.vbars .val { font-weight: 700; font-size: 12.5px; }
.vbars-labels { display: flex; gap: 10px; margin-top: 8px; }
.vbars-labels span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
.kanban { display: grid; gap: 14px; }
@media (min-width: 900px) { .kanban { grid-template-columns: repeat(4, 1fr); } }
.kanban-col { background: #e6e9e3; border-radius: 14px; padding: 12px; min-height: 160px; }
.kanban-col h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; margin: 4px 4px 12px; }
.k-card { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid #e3e5df; border-radius: 10px; padding: 12px; margin-bottom: 8px; font-size: 13.5px; transition: box-shadow .2s; }
.k-card:hover { box-shadow: var(--shadow); }
.week { display: grid; gap: 10px; }
@media (min-width: 1000px) { .week { grid-template-columns: repeat(7, 1fr); } }
.day { background: #fff; border: 1px solid #e3e5df; border-radius: 12px; padding: 10px; min-height: 120px; }
.day.today { border-color: var(--terra); box-shadow: 0 0 0 2px var(--terra-tint); }
.day h3 { font-size: 13px; margin-bottom: 8px; text-transform: capitalize; }
.mission { display: block; width: 100%; text-align: left; border-left: 3px solid var(--sage); background: var(--paper); border-radius: 6px; padding: 8px; margin-bottom: 6px; font-size: 12.5px; }
.mission.conflict { border-left-color: var(--danger); background: var(--danger-tint); }
.mission.unassigned { border-left-color: var(--warn); }
.alert-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.alert-list li:last-child { border-bottom: 0; }
.alert-list .ic { width: 18px; height: 18px; color: var(--warn); margin-top: 1px; }
.adm-drawer { width: min(96vw, 560px); }
.adm-drawer .body { padding: 20px; display: grid; gap: 16px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.warn-box { padding: 10px 12px; border-radius: 10px; background: var(--danger-tint); color: var(--danger); font-size: 13px; display: flex; gap: 8px; }
.role-select { background: var(--green-2); color: #fff; border-color: var(--green-3); min-height: 40px; font-size: 13px; }

/* Navigation et mise en page responsive de l’espace équipe */
.adm-side {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(88vw, 320px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-104%);
  visibility: hidden;
  box-shadow: 18px 0 48px rgb(5 20 15 / .28);
  transition: transform .28s var(--ease), visibility .28s;
}
.adm.menu-open .adm-side { transform: translateX(0); visibility: visible; }
.adm-side-head { flex-shrink: 0; }
.adm-side .brand { min-width: 0; }
.adm-side .brand-text { min-width: 0; }
.adm-nav { flex: 1 0 auto; flex-direction: column; overflow: visible; }
.adm-nav button { width: 100%; flex-shrink: 0; }
.adm-side-foot { display: block; }
.adm-menu-close { display: inline-flex; color: #fff; }
.adm-scrim {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgb(4 18 14 / .56);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.adm.menu-open .adm-scrim { opacity: 1; visibility: visible; }
.adm-mobile-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  margin: -20px -16px 20px;
  padding: 10px 16px;
  background: rgb(238 240 236 / .94);
  border-bottom: 1px solid #dfe3dc;
  backdrop-filter: blur(12px);
}
.adm-mobile-head > strong { font: 700 14px var(--font-display); text-align: center; }
.adm-mobile-head > .icon-btn { justify-self: end; }
.adm-menu-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; font-weight: 700; }
.adm-menu-trigger .ic { width: 21px; height: 21px; }
.adm-card { min-width: 0; }

@media (min-width: 768px) and (max-width: 1079px) {
  .adm-mobile-head { margin: -28px -32px 24px; padding-inline: 32px; }
}

@media (min-width: 1080px) {
  .adm-side {
    position: sticky;
    inset: auto;
    top: 0;
    width: auto;
    height: 100vh;
    transform: none;
    visibility: visible;
    box-shadow: none;
  }
  .adm-menu-close, .adm-scrim, .adm-mobile-head { display: none; }
}

@media (max-width: 639px) {
  .adm-main { padding: 20px 12px 44px; }
  .adm-mobile-head { margin-inline: -12px; padding-inline: 12px; }
  .adm-banner { display: grid; grid-template-columns: auto 1fr; align-items: start; padding: 14px; font-size: 13px; }
  .adm-banner > span { grid-column: 1 / -1; }
  .adm-banner #role-m { grid-column: 1 / -1; width: 100% !important; margin: 4px 0 0 !important; }
  .adm-top { align-items: stretch; margin-bottom: 18px; }
  .adm-top > .row { width: 100%; }
  .adm-top > .row > .btn { flex: 1 1 auto; }
  .adm-card { padding: 16px; border-radius: 12px; }
  .adm-filters { align-items: stretch; }
  .adm-filters > *, .adm-filters .input, .adm-filters .select { width: 100%; }
  .adm-filters .grow { flex-basis: 100%; }
  .adm-card > .table-wrap { width: calc(100% + 32px); margin-inline: -16px; }
  .adm .table { min-width: 680px; }
  .adm .table th, .adm .table td { padding: 11px 12px; }
  .hbar { grid-template-columns: minmax(74px, 110px) 1fr 36px; gap: 7px; font-size: 12.5px; }
  .vbars { gap: 6px; height: 150px; }
  .vbars-labels { gap: 4px; }
  .vbars-labels span { font-size: 11px; }
  .modal, .adm-drawer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  .modal-head { padding: 14px 12px 0 16px; }
  .modal-body, .adm-drawer .body { padding: 14px 16px 18px; }
  .kv { grid-template-columns: 1fr; gap: 3px; }
  .kv dd { padding-bottom: 8px; overflow-wrap: anywhere; }
}

@media (max-width: 359px) {
  .kpis { grid-template-columns: 1fr; }
  .adm-mobile-head > strong { display: none; }
  .adm-mobile-head { grid-template-columns: 1fr auto; }
}

/* Correctifs de débordement */
.table-wrap { position: relative; }
.sr-only { margin: -1px; padding: 0; border: 0; left: 0; top: 0; }
.result-bar { flex-wrap: wrap; }
.result-bar .badge { white-space: normal; }
.adm { grid-template-columns: minmax(0, 1fr); }
.adm-side, .adm-main { min-width: 0; }
@media (min-width: 1080px) { .adm { grid-template-columns: 264px minmax(0, 1fr); } }
.vehicle-card, .service-card { position: relative; }
.adm-grid > *, .kpis > *, .kanban > *, .week > * { min-width: 0; }
ol { margin: 0; padding: 0; list-style: none; }
.adm-side .brand-name { white-space: normal; }
.cta-band .lead { color: rgb(255 255 255 / .82); }
.page-hero::after { background: linear-gradient(0deg, rgb(16 37 30 / .95), rgb(16 37 30 / .6)); }
[tabindex='-1']:focus { outline: none; }

/* En-tête : le logo ne se compresse jamais, le menu s'adapte */
.nav > .brand { flex-shrink: 0; }
.nav-actions { flex-shrink: 0; gap: 6px; }
.nav-actions .btn-primary { margin-left: 4px; }
.menu { flex: 1 1 auto; justify-content: safe center; min-width: 0; }
.nav-wa { --h: 44px; width: 44px; padding: 0; border: 1.5px solid #cfe5dc; color: #1d7a5a; background: var(--ok-tint); }
.nav-wa:hover { background: #1d7a5a; border-color: #1d7a5a; color: #fff; }
.nav-wa .ic { width: 20px; height: 20px; }
.nav-wa-label { display: none; }
/* Menu complet seulement quand la place suffit (sinon menu ☰) */
@media (max-width: 1199px) {
  .menu { display: none; }
  .burger { display: inline-flex; }
  .nav-actions .btn { display: none; }
}
@media (min-width: 640px) and (max-width: 1199px) { .nav-actions .btn-primary { display: inline-flex; } }
/* Avec le menu complet, la mention sous le logo reste dans le tiroir et le pied de page */
@media (min-width: 1200px) { .site-header .brand-tag { display: none; } .menu a { padding: 0 12px; } }
@media (min-width: 640px) { .site-header .brand-tag { display: none; } }
@media (min-width: 480px) and (max-width: 639px) { .site-header .brand-tag { display: block; } }

/* Icône WhatsApp (Font Awesome) */
.fa-whatsapp { font-size: 20px; line-height: 1; display: inline-block; flex-shrink: 0; }
.fa-whatsapp.ic { width: auto; height: auto; }
.nav-wa .fa-whatsapp { font-size: 22px; }
.wa-fab .fa-whatsapp { font-size: 28px; }
.mobile-bar .fa-whatsapp { font-size: 24px; }
.btn-sm .fa-whatsapp { font-size: 18px; }
.site-footer .contact-line .fa-whatsapp { font-size: 17px; color: var(--terra); margin-top: 3px; }
.nav-actions .nav-wa .fa-whatsapp { font-size: 23px; }
