/* TogoDrive — feuille de styles unique, sans dependance externe. */

:root {
  --green-950: #042a20;
  --green-900: #063b2c;
  --green-800: #07503a;
  --green-700: #0b6349;
  --green-600: #117a5b;
  --green-500: #1a9670;
  --green-100: #e3f2ea;
  --green-50: #f1f8f4;
  --gold-500: #efb126;
  --gold-400: #ffce00;
  --gold-100: #fff4d1;
  --red-600: #bc3b2c;
  --red-100: #fdecea;
  --blue-100: #e5efff;
  --blue-700: #1d4ed8;
  --ink: #15231d;
  --muted: #61726a;
  --line: #e5e0d6;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --shadow-sm: 0 1px 2px rgba(6, 59, 44, 0.05), 0 10px 30px rgba(6, 59, 44, 0.06);
  --shadow-lg: 0 24px 60px rgba(6, 59, 44, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
}

a:hover {
  color: var(--green-900);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

ul {
  padding-left: 1.15rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2.5rem, 780px);
  margin-inline: auto;
}

main {
  min-height: 55vh;
}

.section {
  padding: 3.5rem 0;
}

.section-sm {
  padding: 2rem 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.tiny {
  font-size: 0.78rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-700);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.page-head {
  padding: 2.4rem 0 1.4rem;
}

.page-head h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 0.35rem;
}

.page-head p {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.section-head h2 {
  margin-bottom: 0.2rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.3rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid rgba(26, 150, 112, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-900);
  color: #fff;
}

.btn-gold {
  background: var(--gold-400);
  color: var(--green-950);
}

.btn-gold:hover {
  background: #ffd83d;
  color: var(--green-950);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--green-600);
  color: var(--green-800);
  background: #fff;
}

.btn-danger {
  background: transparent;
  border-color: #e7c4be;
  color: var(--red-600);
}

.btn-danger:hover {
  background: var(--red-100);
  color: var(--red-600);
}

.btn-subtle {
  background: var(--green-50);
  color: var(--green-800);
}

.btn-subtle:hover {
  background: var(--green-100);
}

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.link-arrow::after {
  content: " →";
}

/* ---------- Formulaires ---------- */
label,
.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #33453d;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.68rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9aa7a1;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(26, 150, 112, 0.14);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #61726a 50%),
    linear-gradient(135deg, #61726a 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

input[type="date"] {
  min-height: 46px;
}

input[type="file"] {
  padding: 0.6rem;
  background: var(--green-50);
  border-style: dashed;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.form-grid .span-2 {
  grid-column: span 2;
}

.form-grid .span-3 {
  grid-column: span 3;
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.4rem;
}

.form-error {
  color: var(--red-600);
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}

.radio-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.radio-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 1rem 2.9rem;
  background: #fff;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}

.radio-card input {
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--green-700);
}

.radio-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.radio-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.radio-card:has(input:checked) {
  border-color: var(--green-600);
  background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(26, 150, 112, 0.1);
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.checkbox-line input {
  width: auto;
  margin-top: 0.2rem;
}

/* ---------- En-tete ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green-950);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--green-950);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--green-700), var(--green-950));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  color: #fff;
  overflow: hidden;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 0.66rem;
  color: var(--muted);
  max-width: 190px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
}

.site-nav > a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3a4a43;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav > a:hover {
  color: var(--green-800);
  text-decoration: none;
}

.site-nav > a.is-active {
  color: var(--green-800);
  border-bottom-color: var(--gold-500);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--line);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: var(--muted);
  text-decoration: none;
}

.lang-switch:hover {
  text-decoration: none;
  border-color: var(--green-600);
  color: var(--green-800);
}

.lang-switch span.is-current {
  color: var(--green-800);
}

.notif-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green-800);
  flex-shrink: 0;
}

.notif-link:hover,
.notif-link.is-active {
  border-color: var(--green-600);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red-600);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.review-entry + .review-entry,
.review-entry + .small {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.notification.is-unread {
  border-color: var(--green-600);
  background: var(--green-50);
}

.notification h3 {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.notification:not(.is-unread) h3 {
  font-weight: 400;
}

.user-menu {
  position: relative;
}

.user-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: grid;
  gap: 0.1rem;
  z-index: 50;
}

.user-menu-panel .role-line {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.45rem 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.3rem;
}

.user-menu-panel a,
.user-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.87rem;
  cursor: pointer;
}

.user-menu-panel a:hover,
.user-menu-panel button:hover {
  background: var(--green-50);
  text-decoration: none;
  color: var(--green-800);
}

.user-menu-panel form {
  margin: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 11px;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Les barres du haut et du bas se placent par rapport a la barre du milieu. */
.nav-toggle span::before,
.nav-toggle span::after {
  left: 0;
}

.nav-toggle span {
  top: 20px;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

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

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 206, 0, 0.24), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(26, 150, 112, 0.35), transparent 42%),
    linear-gradient(135deg, var(--green-950) 0%, #064434 55%, var(--green-800) 100%);
  color: #fff;
  padding: 3.6rem 0 3rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 80%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.hero .eyebrow {
  color: var(--gold-400);
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  font-size: 1.03rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 1.3rem 0 1.7rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-trust span::before {
  content: "✓";
  color: var(--gold-400);
  font-weight: 700;
  margin-right: 0.4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 620px;
}

.hero-stats div {
  border-left: 2px solid rgba(255, 206, 0, 0.55);
  padding-left: 0.65rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.1;
}

.hero-stats span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art svg {
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.28));
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid rgba(255, 206, 0, 0.6);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
}

/* Diaporama du hero : les photos sont empilees sur la premiere, seule .is-active est visible. */
.hero-slides {
  position: relative;
  width: 100%;
}

.hero-slides img {
  display: block;
  transition: opacity 0.9s ease;
}

.hero-slides img:not(:first-child) {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-slides img:not(.is-active) {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides img {
    transition: none;
  }
}

.search-card {
  position: relative;
  z-index: 2;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2.6rem;
  box-shadow: var(--shadow-lg);
}

.search-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr 0.9fr 0.9fr 0.9fr auto;
  gap: 0.75rem;
  align-items: end;
}

.search-grid .field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.search-grid .btn {
  min-height: 46px;
}

.search-card .hint {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Cartes vehicules ---------- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: #d5cfc1;
}

.card-media {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #e8efe9, #d7e4da);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vehicle-card:hover .card-media img {
  transform: scale(1.03);
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8aa596;
}

.media-placeholder svg {
  width: 45%;
  height: auto;
}

.price-tag {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-900);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.price-tag small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.7rem;
}

.rating-tag {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(4, 42, 32, 0.82);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.rating-tag small {
  opacity: 0.7;
  font-weight: 400;
}

.card-body {
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.card-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.card-body h3 {
  margin: 0;
  font-size: 1.08rem;
}

.card-body h3 a {
  color: var(--ink);
}

.card-body h3 a:hover {
  color: var(--green-800);
  text-decoration: none;
}

.card-specs {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.55rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Badges et alertes ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--green-100);
  color: var(--green-800);
  white-space: nowrap;
}

.badge-pending,
.badge-pending_review,
.badge-deposit_paid,
.badge-declared {
  background: var(--gold-100);
  color: #7a5200;
}

.badge-rejected,
.badge-cancelled,
.badge-archived,
.badge-draft,
.badge-completed {
  background: #efede7;
  color: #5c5650;
}

.badge-verified {
  background: var(--green-100);
  color: var(--green-800);
}

.badge-active {
  background: var(--blue-100);
  color: var(--blue-700);
}

.badge-unpaid {
  background: var(--red-100);
  color: var(--red-600);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert::before {
  font-weight: 700;
  line-height: 1.4;
}

.alert-success {
  background: var(--green-50);
  color: var(--green-800);
  border-color: #c9e6d7;
}

.alert-success::before {
  content: "✓";
}

.alert-error {
  background: var(--red-100);
  color: #8f2c21;
  border-color: #f3cdc8;
}

.alert-error::before {
  content: "!";
}

.alert-info {
  background: #eef4f8;
  color: #2d4e62;
  border-color: #cfe1eb;
}

.alert-info::before {
  content: "i";
}

.alert-warning {
  background: var(--gold-100);
  color: #6d4a00;
  border-color: #f0dda4;
}

.alert-warning::before {
  content: "!";
}

/* ---------- Etapes, bandeau proprietaire ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.step h3 {
  font-size: 1.02rem;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.owner-band {
  background: linear-gradient(120deg, #fffdf5, #fff7dd);
  border: 1px solid #efe2b7;
  border-radius: 24px;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2rem;
  align-items: center;
}

.owner-band h2 {
  margin-bottom: 0.5rem;
}

.owner-band p {
  color: #6b6144;
}

.owner-points {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 1.4rem;
  list-style: none;
  font-size: 0.9rem;
}

.owner-points li::before {
  content: "✓";
  color: var(--green-700);
  font-weight: 700;
  margin-right: 0.5rem;
}

.owner-band-cta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #efe2b7;
  border-radius: var(--radius);
  padding: 1.4rem;
}

/* ---------- Recherche ---------- */
.search-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: sticky;
  top: 96px;
}

.filters h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.filters .field {
  margin-bottom: 0.8rem;
}

.filters .btn {
  width: 100%;
  margin-top: 0.3rem;
}

.filters .reset {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 0.6rem;
  color: var(--muted);
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.results-toolbar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.results-toolbar .sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-toolbar .sort label {
  margin: 0;
  font-size: 0.8rem;
  white-space: nowrap;
}

.results-toolbar .sort select {
  width: auto;
  min-width: 170px;
  padding: 0.45rem 2rem 0.45rem 0.7rem;
  font-size: 0.85rem;
}

.empty-state {
  background: #fff;
  border: 1px dashed #d8d2c4;
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 0.35rem;
}

.empty-state p {
  color: var(--muted);
  margin: 0 auto 1.2rem;
  max-width: 420px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
}

.pagination a:hover {
  border-color: var(--green-600);
  text-decoration: none;
}

.pagination .is-current {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
  font-weight: 700;
}

.pagination .disabled {
  opacity: 0.45;
}

/* ---------- Fiche vehicule ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 1.2rem 0 0;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 1.8rem;
  align-items: start;
  padding-bottom: 3rem;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dfe8e1;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #dfe8e1;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs button.is-active {
  border-color: var(--green-700);
}

.detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}

.detail-title h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.2rem;
}

.detail-title .price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-800);
  white-space: nowrap;
}

.detail-title .price small {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1.2rem;
}

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.76rem;
  color: #46564f;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: #d9d3c5;
  font-size: 0.95rem;
  line-height: 1;
  vertical-align: middle;
}

.stars .is-on {
  color: var(--gold-500);
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1.2rem;
}

.panel h2 {
  font-size: 1.15rem;
}

.panel h3 {
  font-size: 1rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
}

.spec-grid div {
  background: var(--green-50);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.spec-grid dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.spec-grid dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.owner-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.owner-card .avatar {
  width: 48px;
  height: 48px;
  font-size: 0.95rem;
}

.owner-card strong {
  display: block;
}

.owner-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

.review-list {
  display: grid;
  gap: 1rem;
}

.review {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.review:first-child {
  border-top: 0;
  padding-top: 0;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.review-head strong {
  font-size: 0.88rem;
}

.review p {
  margin: 0;
  font-size: 0.9rem;
  color: #3b4a43;
}

.availability-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.availability-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
}

.booking-panel {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.booking-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.booking-panel .sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.booking-panel .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-panel .btn {
  margin-top: 0.9rem;
}

.quote-box {
  background: var(--green-50);
  border: 1px dashed #c9e0d4;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin-top: 0.9rem;
  font-size: 0.85rem;
}

.quote-box .placeholder {
  margin: 0;
  color: var(--muted);
}

.quote-lines {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.quote-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.quote-lines dt,
.quote-lines dd {
  margin: 0;
}

.quote-lines .quote-total {
  border-top: 1px solid #c9e0d4;
  padding-top: 0.45rem;
  margin-top: 0.15rem;
  font-weight: 800;
  color: var(--green-900);
}

.deposit-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

/* ---------- Reservation ---------- */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 1.8rem;
  align-items: start;
}

.booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.booking-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.2rem;
}

.reference {
  font-family: "Consolas", "SFMono-Regular", monospace;
  background: var(--green-50);
  border: 1px dashed #c9e0d4;
  border-radius: 8px;
  padding: 0.12rem 0.45rem;
  font-size: 0.85rem;
  color: var(--green-900);
}

.summary-list {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.summary-list .summary-total {
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
  font-size: 1rem;
}

.summary-list .summary-total dd {
  color: var(--green-800);
  font-weight: 800;
}

.vehicle-mini {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.9rem;
}

.vehicle-mini img,
.vehicle-mini .media-placeholder {
  width: 92px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: #e4ebe6;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.vehicle-mini .media-placeholder svg {
  width: 70%;
}

.vehicle-mini h3 {
  margin: 0;
  font-size: 1rem;
}

.vehicle-mini p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.status-help {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.timeline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.inline-form {
  display: inline;
  margin: 0;
}

.payment-panel {
  background: #fffdf5;
  border: 1px solid #efe2b7;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-top: 1rem;
}

.payment-panel h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.payment-panel p {
  font-size: 0.85rem;
  color: #6b6144;
  margin: 0 0 0.6rem;
}

/* ---------- Tableau de bord ---------- */
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 2.2rem 0 1rem;
}

.dash-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.15rem;
}

.dash-head p {
  margin: 0;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}

.tabs a {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tabs a:hover {
  color: var(--green-800);
  text-decoration: none;
}

.tabs a.is-active {
  color: var(--green-800);
  border-bottom-color: var(--green-700);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}

.stat-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}

.stat-card .value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.1;
}

.stat-card .hint {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 1.4rem;
  align-items: start;
}

.list-stack {
  display: grid;
  gap: 0.8rem;
}

.list-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.list-item .main {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
}

.list-item .thumb {
  width: 72px;
  height: 54px;
  border-radius: 9px;
  background: #e4ebe6;
  overflow: hidden;
  flex-shrink: 0;
}

.list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-item h3 {
  margin: 0;
  font-size: 0.95rem;
}

.list-item p {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.list-item .side {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.vehicle-manage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.vehicle-manage .thumb {
  width: 132px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: #e4ebe6;
  flex-shrink: 0;
}

.vehicle-manage .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-manage .main {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.vehicle-manage h3 {
  margin: 0 0 0.1rem;
  font-size: 1.02rem;
}

.vehicle-manage p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.vehicle-manage .badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.vehicle-manage .actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.notice-box {
  background: var(--gold-100);
  border: 1px solid #f0dda4;
  color: #6d4a00;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  margin: 0.9rem 0;
}

.notice-box strong {
  display: block;
}

/* ---------- Tables ---------- */
.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

thead th {
  text-align: left;
  background: #fbfaf6;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #f0ece2;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfaf6;
}

.table-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Telephone : plus de defilement lateral, une carte par ligne (les libelles viennent de app.js). */
@media (max-width: 760px) {
  .table-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

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

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table-wrap tbody tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.35rem 1rem;
    margin-bottom: 0.9rem;
  }

  .table-wrap tbody tr:hover {
    background: #fff;
  }

  .table-wrap tbody td,
  .table-wrap tbody tr:last-child td {
    display: grid;
    grid-template-columns: minmax(6rem, 40%) minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #ebe6da;
  }

  .table-wrap tbody td:last-child {
    border-bottom: 0;
  }

  .table-wrap tbody td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 0.15rem;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* Cellule sans en-tete : pleine largeur. */
  .table-wrap tbody td:not([data-label]) {
    display: block;
  }

  .table-wrap .td-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .table-wrap .table-actions {
    justify-content: flex-start;
  }
}

.cell-title {
  font-weight: 600;
}

.cell-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
}

/* ---------- Admin ---------- */
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2.2rem 0 1rem;
}

.filter-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.filter-tabs a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.filter-tabs a:hover {
  text-decoration: none;
  border-color: var(--green-600);
}

.filter-tabs a.is-active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.moderation-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 175px minmax(0, 1fr);
  margin-bottom: 1rem;
}

.moderation-card .media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #e4ebe6;
  aspect-ratio: 4 / 3;
}

.moderation-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moderation-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.moderation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.4rem 0;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 0.7rem;
}

.moderation-actions .field {
  min-width: 220px;
  flex: 1;
}

/* ---------- Auth ---------- */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

.auth-side {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 206, 0, 0.22), transparent 35%),
    linear-gradient(150deg, var(--green-950), var(--green-800));
  color: #fff;
  border-radius: 24px;
  padding: 2.2rem;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-side .eyebrow {
  color: var(--gold-400);
}

.auth-side h2 {
  color: #fff;
  font-size: 1.7rem;
}

.auth-side p {
  color: rgba(255, 255, 255, 0.78);
}

.auth-side ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-side li::before {
  content: "✓";
  color: var(--gold-400);
  margin-right: 0.5rem;
  font-weight: 700;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.auth-card h1 {
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}

.auth-card .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.auth-card .btn {
  margin-top: 0.4rem;
}

.auth-foot {
  margin: 1.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Contenu editorial ---------- */
.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.prose h2 {
  margin-top: 1.6rem;
}

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

.prose p,
.prose li {
  color: #3b4a43;
}

.prose .lead {
  font-size: 1.08rem;
  color: var(--ink);
}

.faq {
  display: grid;
  gap: 1rem;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.faq p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4rem;
  padding: 3rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
}

.site-footer a:hover {
  color: var(--gold-400);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-contact {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

/* Groupes de liens : colonnes sur ecran large, menus deroulants sur telephone. */
.footer-group summary {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  list-style: none;
  cursor: default;
  pointer-events: none;
}

.footer-group summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 640px) {
  .footer-group {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-group:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0.95rem 0;
    cursor: pointer;
    pointer-events: auto;
  }

  .footer-group summary::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--gold-400);
    border-bottom: 2px solid var(--gold-400);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .footer-group[open] summary::after {
    transform: rotate(-135deg);
  }

  .footer-group summary:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 2px;
  }

  .footer-group .footer-links {
    padding-bottom: 1rem;
  }
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 0.8rem;
}

.footer-brand .brand-mark {
  background: var(--gold-400);
  color: var(--green-950);
}

.footer-brand .brand-mark svg {
  color: var(--green-950);
}

.footer-brand p {
  font-size: 0.86rem;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Erreur ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green-100);
  margin-bottom: 0.2rem;
}

.error-page h1 {
  font-size: 1.7rem;
}

.error-page p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 1.4rem;
}

/* ---------- Divers ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

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

.stack {
  display: grid;
  gap: 1rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.6rem;
}

.mt-2 {
  margin-top: 1.2rem;
}

.mt-3 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

.text-right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.photo-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-item form {
  padding: 0.3rem;
  margin: 0;
}

.photo-item button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--red-600);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0.2rem;
}

.side-panel {
  display: grid;
  gap: 1rem;
}

.side-panel .panel {
  margin-top: 0;
}

.side-panel .photos-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.75fr);
  gap: 1.5rem;
  align-items: start;
}

.form-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
}

.form-section h2 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.form-section .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-section .span-2 {
  grid-column: span 2;
}

.form-section .span-3 {
  grid-column: span 3;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #ece8de;
  overflow: hidden;
  margin: 0.4rem 0;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
}

progress.progress {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
}

progress.progress::-webkit-progress-bar {
  background: #ece8de;
  border-radius: 999px;
}

progress.progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  border-radius: 999px;
}

progress.progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  border-radius: 999px;
}

.danger-zone {
  border-color: #f0d2cd;
  background: #fffafa;
}

.danger-zone h2 {
  color: var(--red-600);
  border-bottom-color: #f0d2cd;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .search-grid .btn {
    grid-column: span 2;
    justify-self: stretch;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

  /* Une vraie photo reste visible sur tablette et mobile, en bandeau. */
  .hero-art.hero-photo {
    display: block;
  }

  .hero-photo img {
    aspect-ratio: 16 / 7;
    max-height: 200px;
  }

  /* Hero compact: la recherche et le debut des annonces tiennent dans l'ecran. */
  .hero {
    padding: 2.2rem 0 1.7rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 3.4vw, 2.15rem);
    margin-bottom: 0.45rem;
  }

  .hero-copy p {
    font-size: 0.97rem;
  }

  .hero-trust {
    margin: 0.9rem 0 0.85rem;
    font-size: 0.8rem;
  }

  .hero-stats strong {
    font-size: 1.15rem;
  }

  .hero-stats span {
    font-size: 0.67rem;
  }

  .search-card {
    margin-top: 1.4rem;
    padding: 1.05rem;
  }

  .search-card h2 {
    margin-bottom: 0.75rem;
  }

  .search-grid {
    gap: 0.6rem;
  }

  .search-card .hint {
    margin-top: 0.5rem;
  }

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

  .form-section .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-section .span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .brand-text small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.4rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1ede4;
  }

  .site-nav > a.is-active {
    border-bottom-color: #f1ede4;
    color: var(--green-800);
  }

  .nav-actions {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 0.8rem 0 0;
    margin-top: 0.4rem;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* Menu utilisateur : pleine largeur, le panneau se deplie dans le menu (pas de popover rogne). */
  .nav-actions .user-menu {
    flex: 1 0 100%;
    order: 10;
  }

  .user-menu summary {
    display: flex;
    width: 100%;
    padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  }

  .user-menu summary::after {
    content: "";
    margin-left: auto;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--green-800);
    border-bottom: 2px solid var(--green-800);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .user-menu[open] summary::after {
    transform: rotate(-135deg);
  }

  .user-menu-panel {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
    background: var(--green-50);
  }

  .user-menu-panel .role-line {
    overflow-wrap: anywhere;
  }

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

  .filters {
    position: static;
  }

  .detail-layout,
  .booking-layout,
  .form-layout,
  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-panel {
    position: static;
    order: -1;
  }

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

  .owner-band {
    grid-template-columns: 1fr;
  }

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

  .auth-side {
    min-height: auto;
    order: 2;
  }

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

  .moderation-card {
    grid-template-columns: 1fr;
  }

  .moderation-card .media {
    aspect-ratio: 16 / 7;
  }
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    width: min(100% - 1.6rem, var(--container));
  }

  .hero {
    padding: 1.9rem 0 1.8rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero-copy p {
    font-size: 0.94rem;
  }

  .hero-trust {
    margin: 0.75rem 0 0.95rem;
    gap: 0.3rem 0.9rem;
    font-size: 0.76rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.9rem;
  }

  .search-card {
    padding: 1rem;
    margin-top: 1.4rem;
  }

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

  .search-grid .btn {
    grid-column: span 2;
  }

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

  .steps,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .form-section .form-grid,
  .spec-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2,
  .form-grid .span-3,
  .form-section .span-2,
  .form-section .span-3 {
    grid-column: span 1;
  }

  .radio-cards {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .detail-title {
    flex-direction: column;
  }

  .vehicle-manage {
    align-items: flex-start;
  }

  .vehicle-manage .thumb {
    width: 92px;
    height: 70px;
  }

  .section {
    padding: 2.4rem 0;
  }

  .owner-band {
    padding: 1.4rem;
  }

  .auth-card {
    padding: 1.4rem;
  }

  .prose {
    padding: 1.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-brand {
    margin-bottom: 1.5rem;
  }

  .list-item {
    align-items: flex-start;
  }

  .summary-list > div {
    font-size: 0.86rem;
  }
}

/* Case a cocher avec texte (declaration de paiement des frais). */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.check-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  margin-top: 0.2rem;
  flex: none;
}

.fee-declare {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

a.badge {
  text-decoration: none;
}

.notif-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.message-thread {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.message {
  max-width: 85%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.message.is-mine {
  margin-left: auto;
  border-color: var(--green-100);
  background: var(--green-50);
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
}

.message-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-form textarea {
  width: 100%;
}

.account-page .panel {
  max-width: 760px;
}

.vehicle-bookings {
  margin-top: 0.4rem;
}

.vehicle-bookings a.badge {
  text-decoration: none;
}

.filter-note {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.card-availability {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.card-availability::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--gold-500);
}

.card-availability.is-now,
.card-availability.is-dates {
  color: var(--green-700);
}

.card-availability.is-now::before,
.card-availability.is-dates::before {
  background: var(--green-500);
}

/* ----- Frise d'avancement d'une reservation ----- */
.timeline-card {
  margin-bottom: 1.4rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.timeline-card .alert {
  margin-top: 1rem;
}

.timeline-step {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 2.4rem 0.4rem 0;
  text-align: center;
}

/* pastille de l'etape */
.timeline-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.8rem;
  height: 1.8rem;
  margin-left: -0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

/* trait vers l'etape suivante */
.timeline-step::after {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: calc(50% + 1.1rem);
  width: calc(100% - 2.2rem);
  height: 2px;
  background: var(--line);
}

.timeline-step:last-child::after {
  display: none;
}

.timeline-step.is-done::before {
  content: "✓";
  border-color: var(--green-600);
  background: var(--green-600);
}

.timeline-step.is-done::after {
  background: var(--green-600);
}

.timeline-step.is-current::before {
  border-color: var(--gold-500);
  background: var(--gold-100);
  box-shadow: 0 0 0 4px rgba(239, 177, 38, 0.25);
}

.timeline-step.is-stopped::before {
  content: "✕";
  border-color: var(--red-600);
  background: var(--red-600);
}

.timeline-label,
.timeline-date,
.timeline-hint {
  display: block;
}

.timeline-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-step.is-upcoming .timeline-label {
  color: var(--muted);
  font-weight: 600;
}

.timeline-step.is-stopped .timeline-label {
  color: var(--red-600);
}

.timeline-date,
.timeline-hint {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.timeline-step.is-current .timeline-hint {
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .timeline {
    flex-direction: column;
  }

  .timeline-step {
    padding: 0 0 1.3rem 2.7rem;
    text-align: left;
  }

  .timeline-step:last-child {
    padding-bottom: 0;
  }

  .timeline-step::before {
    left: 0;
    margin-left: 0;
  }

  .timeline-step::after {
    top: 1.9rem;
    left: 0.9rem;
    width: 2px;
    height: calc(100% - 1.9rem);
  }
}

/* ===== Telephone d'abord ===== */

/* Filtres de recherche repliables */
.filters-fields > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.filters-fields > summary::-webkit-details-marker {
  display: none;
}

.filters-fields > summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
}

.filters-fields[open] > summary::after {
  content: "▴";
}

.filters-fields:not([open]) > summary {
  margin-bottom: 0;
}

.filters-count {
  min-width: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4rem;
  text-align: center;
}

@media (min-width: 901px) {
  .filters-fields > summary {
    pointer-events: none;
    cursor: default;
  }

  .filters-fields > summary::after {
    display: none;
  }
}

/* Barre « Reserver » fixe sur la fiche voiture */
.mobile-book-bar,
.mobile-book-spacer {
  display: none;
}

#booking {
  scroll-margin-top: 5rem;
}

@media (max-width: 900px) {
  .mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(6, 59, 44, 0.12);
    transition: transform 0.2s ease;
  }

  .mobile-book-bar.is-hidden {
    transform: translateY(110%);
  }

  .mobile-book-price strong {
    font-size: 1.05rem;
    color: var(--green-800);
  }

  .mobile-book-price small {
    color: var(--muted);
  }

  .mobile-book-spacer {
    display: block;
    height: 4.6rem;
  }

  /* Pas de zoom automatique d'iOS dans les champs (il faut au moins 16 px) */
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .field select,
  .field textarea,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Cibles tactiles confortables (44 px) */
@media (max-width: 900px), (pointer: coarse) {
  .btn-sm {
    min-height: 44px;
    padding: 0.6rem 1rem;
  }

  .filter-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.4rem 0.95rem;
  }

  summary {
    min-height: 44px;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 22px;
    height: 22px;
  }

  .filters .reset {
    padding: 0.7rem 0;
  }
}

/* Cartes « Mes voitures » : les actions passent sous la voiture au lieu de la recouvrir */
@media (max-width: 640px) {
  .vehicle-manage {
    flex-direction: column;
    align-items: stretch;
  }

  .vehicle-manage .main {
    align-items: flex-start;
  }

  .vehicle-manage .actions {
    justify-content: flex-start;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
}

@media (max-width: 900px) {
  /* le tri des resultats avait une regle plus specifique : meme taille de police que les autres champs */
  .results-toolbar .sort select {
    font-size: 16px;
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  /* les longues pastilles (« Prochaine location : … ») passent a la ligne au lieu de depasser de la carte */
  .vehicle-manage .main > div {
    min-width: 0;
  }

  .vehicle-manage .badge,
  .vehicle-bookings .badge {
    white-space: normal;
  }
}

/* ---------- Calendrier de disponibilite ---------- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}

.calendar-month h3 {
  font-size: 0.95rem;
  text-transform: capitalize;
  margin: 0 0 0.5rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.calendar-head {
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.calendar-day {
  display: inline-block;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.9rem;
  min-height: 1.9rem;
  border-radius: 8px;
  background: var(--green-50);
  color: var(--ink);
}

.calendar-day.is-past { background: transparent; color: #aab4af; }
.calendar-day.is-booked { background: #f4c7c3; color: #7a1f17; }
.calendar-day.is-blocked { background: #d9dcdf; color: #3b4045; text-decoration: line-through; }

.calendar-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.calendar-legend .calendar-day {
  width: 1rem;
  min-height: 1rem;
  line-height: 1rem;
  vertical-align: middle;
}

.alert-action a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Fenetre d'information (popup) ---------- */
.popup {
  width: min(92vw, 26rem);
  border: 0;
  border-radius: 18px;
  padding: 1.5rem;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.popup::backdrop {
  background: rgba(6, 40, 30, 0.55);
}

.popup h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.popup p {
  margin: 0 0 0.8rem;
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.popup-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}
