/* ==========================================================================
   Sabil — covoiturage vers la mosquée
   ========================================================================== */

:root {
  --ink: #10251d;
  --ink-soft: #33473e;
  --muted: #6b7d74;
  --muted-light: #8c9a93;
  --emerald-950: #061f18;
  --emerald-900: #0a2f25;
  --emerald-800: #0f4033;
  --emerald-700: #155844;
  --emerald-600: #1d6f56;
  --emerald-500: #2a8b6b;
  --emerald-100: #dceee5;
  --emerald-50: #eef7f2;
  --gold-600: #a9852f;
  --gold-500: #c9a14a;
  --gold-400: #d9b45f;
  --gold-300: #ecd28f;
  --gold-100: #f6eccf;
  --cream: #f6f1e6;
  --cream-2: #efe8d9;
  --paper: #fffdf8;
  --line: rgba(16, 37, 29, 0.11);
  --line-strong: rgba(16, 37, 29, 0.2);
  --danger: #b4442f;
  --danger-soft: #fbe9e5;
  --success: #1d7a52;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 45px -32px rgba(8, 40, 30, 0.45);
  --shadow-card: 0 1px 0 rgba(16, 37, 29, 0.04), 0 16px 40px -34px rgba(8, 40, 30, 0.5);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% -4%, rgba(201, 161, 74, 0.12), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(42, 139, 107, 0.07), transparent 30rem);
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--gold-300);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(42, 139, 107, 0.5);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
}

/* ---------- Boutons ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

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

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

.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #241d09;
  box-shadow: 0 12px 30px -16px rgba(201, 161, 74, 0.8);
}

.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
}

.btn--dark {
  background: var(--emerald-900);
  color: var(--paper);
  box-shadow: 0 12px 28px -18px rgba(10, 47, 37, 0.8);
}

.btn--dark:hover {
  background: var(--emerald-800);
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--danger:hover {
  background: #9c3926;
}

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

.btn--ghost:hover {
  background: rgba(16, 37, 29, 0.05);
}

.btn--soft {
  background: var(--emerald-50);
  color: var(--emerald-800);
  border-color: rgba(42, 139, 107, 0.16);
}

.btn--soft:hover {
  background: var(--emerald-100);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--paper);
  backdrop-filter: blur(8px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn--xs {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn--full {
  width: 100%;
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-soft);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  background: var(--emerald-50);
  border-color: rgba(42, 139, 107, 0.3);
  color: var(--emerald-700);
}

.icon-btn--light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
}

.icon-btn--light:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---------- Bandeau démo ------------------------------------------------- */

.demo-banner {
  background: linear-gradient(90deg, var(--gold-300), var(--gold-400));
  color: #2a2109;
  font-size: 13px;
  padding-top: env(safe-area-inset-top, 0px);
}

.demo-banner__inner {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 36px;
  text-align: center;
}

.demo-banner strong {
  font-weight: 700;
}

.demo-banner__close {
  position: absolute;
  right: 14px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(42, 33, 9, 0.12);
  color: #2a2109;
  font-size: 17px;
  line-height: 1;
}

.demo-banner__inner {
  position: relative;
}

/* ---------- En-tête ------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 230, 0.86);
  border-bottom: 1px solid rgba(16, 37, 29, 0.07);
  backdrop-filter: blur(16px) saturate(1.2);
}

.topbar__inner {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(10, 47, 37, 0.2));
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__mark--sm {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__text small {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
}

.nav a,
.nav__link {
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 550;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav__link:hover {
  background: rgba(16, 37, 29, 0.055);
  color: var(--ink);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.prayer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(10, 47, 37, 0.12);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prayer-pill:hover {
  border-color: rgba(201, 161, 74, 0.55);
  box-shadow: 0 190px 0 0 transparent, 0 8px 22px -14px rgba(10, 47, 37, 0.4);
}

.prayer-pill .icon {
  width: 16px;
  height: 16px;
  color: var(--gold-600);
}

.prayer-pill__sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.prayer-pill__count {
  color: var(--muted);
  font-weight: 500;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 4px 14px 4px 5px;
  border: 1px solid rgba(10, 47, 37, 0.12);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.account-btn:hover {
  border-color: rgba(42, 139, 107, 0.4);
  background: var(--emerald-50);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--emerald-600), var(--emerald-800));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.avatar--sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 19px;
}

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

.hero {
  position: relative;
  margin-top: 26px;
  padding: 58px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  align-items: center;
  gap: 52px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(110% 140% at 12% 0%, #14563f 0%, #0b3428 46%, #071f19 100%);
  color: var(--paper);
  overflow: hidden;
  box-shadow: 0 32px 80px -46px rgba(6, 31, 24, 0.85);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg fill='none' stroke='%23d9b45f' stroke-opacity='.14' stroke-width='1'%3E%3Cpath d='M66 12 75.7 39.7 103 50 75.7 60.3 66 88 56.3 60.3 29 50 56.3 39.7Z'/%3E%3Ccircle cx='66' cy='50' r='17.5'/%3E%3Cpath d='M20 102 28 78l-8-24 24 8 22-8-8 24 8 24-22-8Z' stroke-opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 132px 132px;
  mask-image: linear-gradient(100deg, #000 0%, #000 42%, transparent 82%);
  opacity: 0.85;
}

.hero__glow {
  position: absolute;
  top: -220px;
  right: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 180, 95, 0.2), transparent 66%);
  pointer-events: none;
}

.hero__content,
.hero__panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--gold-300);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(217, 180, 95, 0.12);
}

.hero h1 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--gold-300);
  font-weight: 500;
}

.hero__lead {
  max-width: 31rem;
  margin-top: 22px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 16.5px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 12.5px;
  font-weight: 550;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__trust .icon {
  width: 14px;
  height: 14px;
  color: var(--gold-300);
}

.hero__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.next-card {
  position: relative;
  padding: 24px 26px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 28px 60px -40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
}

.next-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 253, 248, 0.58);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.06em;
  color: var(--gold-300);
  font-size: 10px;
}

.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 0 0 rgba(236, 210, 143, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(236, 210, 143, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(236, 210, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(236, 210, 143, 0);
  }
}

.next-card__prayer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-size: 17px;
  font-weight: 650;
}

.next-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(217, 180, 95, 0.16);
  color: var(--gold-300);
}

.next-card__icon .icon {
  width: 17px;
  height: 17px;
}

.arabic {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-300);
  opacity: 0.9;
  direction: rtl;
}

.next-card__time {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.next-card__count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 13px;
}

.next-card__dot {
  color: rgba(255, 253, 248, 0.3);
}

#hero-countdown {
  color: var(--gold-300);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.next-card__times {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.next-card__time-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.next-card__time-item:first-child {
  border-left: 0;
}

.next-card__time-item span {
  color: rgba(255, 253, 248, 0.46);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.next-card__time-item strong {
  color: rgba(255, 253, 248, 0.82);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.next-card__time-item.is-next span,
.next-card__time-item.is-next strong {
  color: var(--gold-300);
}

.next-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid rgba(217, 180, 95, 0.22);
  border-radius: 12px;
  background: rgba(217, 180, 95, 0.09);
  color: var(--gold-300);
  font-size: 12.5px;
  font-weight: 650;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.next-card__cta:hover {
  background: rgba(217, 180, 95, 0.16);
  border-color: rgba(217, 180, 95, 0.4);
}

.next-card__cta .icon {
  width: 15px;
  height: 15px;
}

.hero__mosque {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
}

.hero__mosque-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-300);
}

.hero__mosque-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero__mosque-text strong {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__mosque-text span {
  color: rgba(255, 253, 248, 0.5);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__mosque .icon-btn {
  margin-left: 0;
}

.hero__mosque [data-mosque-directions] {
  margin-left: auto;
}

/* ---------- Section trajets --------------------------------------------- */

.rides-section {
  padding-top: 80px;
  scroll-margin-top: 100px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.section-head--center {
  justify-content: center;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head__text h2 {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.date-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.date-btn:hover {
  border-color: rgba(42, 139, 107, 0.35);
  background: var(--emerald-50);
}

.date-btn .icon {
  width: 16px;
  height: 16px;
  color: var(--emerald-600);
}

.date-btn input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.date-nav .icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.prayer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.filter-chip:hover {
  border-color: rgba(42, 139, 107, 0.35);
  transform: translateY(-1px);
}

.filter-chip .icon {
  width: 16px;
  height: 16px;
  color: var(--emerald-600);
}

.filter-chip__time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.filter-chip.is-active {
  background: var(--emerald-900);
  border-color: var(--emerald-900);
  color: var(--paper);
  box-shadow: 0 12px 24px -18px rgba(10, 47, 37, 0.8);
}

.filter-chip.is-active .icon,
.filter-chip.is-active .filter-chip__time {
  color: var(--gold-300);
}

.filter-chip--all {
  padding-inline: 16px;
}

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

.ride-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.ride-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 139, 107, 0.22);
  box-shadow: 0 24px 46px -30px rgba(8, 40, 30, 0.45);
}

.ride-card.is-mine {
  border-color: rgba(201, 161, 74, 0.34);
}

.ride-card.is-mine::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gold-400);
}

.ride-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ride-card__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.prayer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.prayer-pill .icon {
  width: 13px;
  height: 13px;
}

.ride-card__date {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.ride-card__time {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ride-card__driver {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ride-card__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ride-card__who strong {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ride-card__who span {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ride-card__seats {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.seat-dots {
  display: flex;
  gap: 3px;
}

.seat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(42, 139, 107, 0.35);
  background: transparent;
}

.seat-dot.is-taken {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
}

.ride-card__seats span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.ride-card__pickup {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.ride-card__pickup .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--gold-600);
}

.ride-card__route {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 10.5px;
  font-weight: 650;
}

.ride-card__route .icon {
  width: 12px;
  height: 12px;
}

.ride-card__notes {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ride-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ride-card__status {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.ride-card__status strong {
  color: var(--emerald-700);
}

.ride-card__status.is-full {
  color: var(--danger);
}

.ride-card__status.is-joined {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
}

.ride-card__status.is-joined .icon {
  width: 14px;
  height: 14px;
}

.ride-card__actions {
  display: flex;
  gap: 7px;
}

.ride-card .btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

/* Squelette de chargement */
.skeleton-card {
  min-height: 260px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px;
  overflow: hidden;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 13px;
  border-radius: 7px;
  background: linear-gradient(90deg, #eee8dc 25%, #f7f2e8 45%, #eee8dc 65%);
  background-size: 260% 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-line--lg {
  height: 28px;
  width: 45%;
}

.skeleton-line--sm {
  width: 65%;
}

.skeleton-line--avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* État vide */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  border: 1px dashed rgba(42, 139, 107, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.55);
  text-align: center;
}

.empty-state__icon {
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.empty-state p {
  max-width: 30rem;
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Comment ça marche ------------------------------------------- */

.how {
  padding-top: 84px;
  scroll-margin-top: 100px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.step {
  position: relative;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}

.step__number {
  position: absolute;
  top: 16px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  color: rgba(201, 161, 74, 0.2);
}

.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.step__icon .icon {
  width: 22px;
  height: 22px;
}

.step h3 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.invite-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 54px;
  padding: 40px 46px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(90% 140% at 200% 0%, #14563f, #0a2f25 70%);
  color: var(--paper);
  overflow: hidden;
}

.invite-band__pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23d9b45f' stroke-opacity='.13'%3E%3Cpath d='M50 8 58 34 84 42 58 50 50 76 42 50 16 42 42 34Z'/%3E%3Ccircle cx='50' cy='42' r='13'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100px 100px;
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
  pointer-events: none;
}

.invite-band__text {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.invite-band h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.invite-band p:not(.eyebrow) {
  margin-top: 10px;
  color: rgba(255, 253, 248, 0.66);
  font-size: 14px;
}

.invite-band .btn {
  position: relative;
  z-index: 1;
  flex: none;
}

/* ---------- Pied de page ------------------------------------------------- */

.footer {
  margin-top: 90px;
  padding: 52px 0 24px;
  background: var(--emerald-950);
  color: rgba(255, 253, 248, 0.72);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 44px;
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.footer__brand strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.1;
}

.footer__brand p {
  margin-top: 7px;
  color: rgba(255, 253, 248, 0.48);
  font-size: 12.5px;
}

.footer__col h4 {
  margin-bottom: 11px;
  color: var(--gold-300);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__col p {
  color: rgba(255, 253, 248, 0.56);
  font-size: 12.5px;
  line-height: 1.6;
}

.footer__link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(217, 180, 95, 0.35);
  background: transparent;
  color: var(--gold-300);
  font-size: 12.5px;
}

.footer__link:hover {
  border-color: var(--gold-300);
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 253, 248, 0.38);
  font-size: 11.5px;
}

.footer__install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  color: rgba(217, 180, 95, 0.78);
}

.footer__install .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Barre de navigation mobile ----------------------------------- */

.tabbar {
  display: none;
}

@media (max-width: 780px) {
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(16, 37, 29, 0.08);
    background: rgba(246, 241, 230, 0.94);
    backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 -16px 34px -28px rgba(10, 47, 37, 0.55);
  }

  .tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 50px;
    padding: 5px 2px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .tabbar__item .icon {
    width: 21px;
    height: 21px;
  }

  .tabbar__item:hover,
  .tabbar__item:active {
    background: rgba(16, 37, 29, 0.055);
    color: var(--ink);
  }

  .tabbar__item.is-active {
    color: var(--emerald-700);
  }

  .tabbar__item.is-active .icon {
    color: var(--gold-600);
  }

  .tabbar__plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: -19px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: #241d09;
    box-shadow: 0 12px 24px -12px rgba(10, 47, 37, 0.65);
  }

  .tabbar__plus .icon {
    width: 20px;
    height: 20px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .fab {
    display: none;
  }

  .toasts {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

.install-btn {
  color: var(--gold-600);
}

/* ---------- Bouton flottant --------------------------------------------- */

.fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #241d09;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 40px -16px rgba(10, 47, 37, 0.55);
}

.fab .icon {
  width: 20px;
  height: 20px;
}

/* ---------- Dialogues ---------------------------------------------------- */

dialog.modal {
  width: min(560px, calc(100vw - 32px));
  max-width: 100%;
  max-height: min(92dvh, 940px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 50px 120px -30px rgba(3, 20, 15, 0.65);
  overflow: hidden;
}

dialog.modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-in 0.24s cubic-bezier(0.2, 0.8, 0.25, 1);
}

dialog.modal::backdrop {
  background: rgba(4, 24, 18, 0.55);
  backdrop-filter: blur(5px);
  animation: backdrop-in 0.24s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

dialog.modal--wide {
  width: min(760px, calc(100vw - 32px));
}

dialog.modal--sm {
  width: min(470px, calc(100vw - 32px));
}

dialog.modal--xs {
  width: min(400px, calc(100vw - 32px));
}

.modal__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0;
  flex: none;
}

.modal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.modal__badge .icon {
  width: 19px;
  height: 19px;
}

.modal__body {
  padding: 14px 30px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__body--tight {
  padding: 30px;
  text-align: center;
}

.modal__body h2 {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.modal__lead {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.modal__actions--center {
  justify-content: center;
}

.modal__actions .btn {
  min-height: 44px;
}

/* ---------- Installation sur téléphone ----------------------------------- */

.install-panel {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 37, 29, 0.06);
  border-radius: 16px;
  background: var(--cream-2);
}

.install-panel h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-700);
}

.install-panel p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.install-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.install-steps li + li {
  margin-top: 6px;
}

.install-steps strong {
  color: var(--ink);
}

.install-url {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.install-url code {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  white-space: nowrap;
  overflow-x: auto;
}

.install-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.btn--block {
  width: 100%;
  margin-top: 18px;
}

dialog.modal > .modal__actions {
  margin-top: 0;
  padding: 0 30px 30px;
}

/* Feuille glissante sur téléphone */
@media (max-width: 780px) {
  dialog.modal {
    width: 100%;
    max-width: 100%;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  dialog.modal[open] {
    animation: sheet-in 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
  }

  dialog.modal--wide,
  dialog.modal--sm,
  dialog.modal--xs {
    width: 100%;
  }

  .modal__chrome {
    padding: 13px 18px 0;
  }

  .modal__body {
    padding: 12px 20px 24px;
  }

  .modal__body--tight {
    padding: 24px 20px;
  }

  .modal__body h2 {
    font-size: 27px;
  }

  dialog.modal > .modal__actions {
    padding: 0 20px 20px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  body {
    overscroll-behavior-y: none;
  }
}

@keyframes sheet-in {
  from {
    opacity: 0.6;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Onglets */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  border-radius: 13px;
  background: var(--cream-2);
}

.tab {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(16, 37, 29, 0.08);
}

/* Formulaires */
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.tabs + form {
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 650;
}

.optional {
  color: var(--muted-light);
  font-weight: 500;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder {
  color: #a3ada7;
}

.input:hover {
  border-color: rgba(16, 37, 29, 0.3);
}

.input:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(42, 139, 107, 0.12);
}

select.input {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7d74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

textarea.input {
  min-height: 86px;
  resize: vertical;
  line-height: 1.5;
}

.field__hint {
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.4;
}

.field__hint--right {
  text-align: right;
  margin-top: -2px;
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.switch-field__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.switch-field__text strong {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.switch-field__text span {
  color: var(--muted-light);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
}

.switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(10, 47, 37, 0.18);
  transition: background 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(8, 40, 30, 0.28);
  transition: transform 0.2s ease;
}

.switch-input:checked + .switch {
  background: var(--emerald-500);
}

.switch-input:checked + .switch::after {
  transform: translateX(18px);
}

.switch-input:focus-visible + .switch {
  box-shadow: 0 0 0 4px rgba(42, 139, 107, 0.2);
}

#offer-route-position .field-row {
  align-items: center;
}

#offer-route-position .gps-status {
  margin: 0;
}

.input-icon {
  position: relative;
}

.input-icon > .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.input-icon .input {
  padding-left: 39px;
}

.stepper {
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
}

.stepper__btn:hover {
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.stepper__btn .icon {
  width: 16px;
  height: 16px;
}

.stepper__value {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.form-error {
  padding: 10px 13px;
  border: 1px solid rgba(180, 68, 47, 0.2);
  border-radius: 10px;
  background: var(--danger-soft);
  color: #8e3424;
  font-size: 12.5px;
  line-height: 1.45;
}

.hint-line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hint-line::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-400);
}

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.45;
}

.privacy-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--emerald-500);
}

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(201, 161, 74, 0.28);
  border-radius: 11px;
  background: rgba(246, 236, 207, 0.55);
  color: #6f5a26;
  font-size: 12px;
  line-height: 1.45;
}

.notice .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.notice .btn {
  margin-left: auto;
  flex: none;
}

.demo-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(201, 161, 74, 0.5);
  border-radius: 10px;
  background: rgba(246, 236, 207, 0.35);
  color: #6f5a26;
  font-size: 12px;
}

.settings-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.field-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.field-row .input {
  flex: 1;
  min-width: 0;
}

.field-row .btn {
  flex: none;
  min-height: 46px;
  white-space: nowrap;
}

.gps-status {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.gps-status.is-success {
  color: var(--success);
}

.gps-status.is-error {
  color: var(--danger);
}

@media (max-width: 520px) {
  .field-row {
    flex-direction: column;
  }

  .field-row .btn {
    align-self: flex-start;
    min-height: 40px;
  }
}

/* ---------- Détail d'un trajet ------------------------------------------ */

.detail-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 15px;
  background: var(--emerald-50);
}

.detail-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--paper);
  color: var(--emerald-700);
  box-shadow: var(--shadow-soft);
}

.detail-hero__icon .icon {
  width: 22px;
  height: 22px;
}

.detail-hero__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-hero__text strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.detail-hero__text span {
  color: var(--muted);
  font-size: 12.5px;
}

.detail-hero__time {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-row .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--gold-600);
}

.detail-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.detail-row span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-row strong {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}

.detail-row--with-action {
  flex-wrap: wrap;
}

.detail-row .detail-row__sub {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.35;
}

.detail-row__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  align-self: center;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--emerald-700);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.detail-row__link:hover {
  background: var(--emerald-50);
}

.detail-row__link .icon {
  width: 13px;
  height: 13px;
  margin: 0;
  color: currentColor;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(42, 139, 107, 0.2);
  border-radius: 13px;
  background: var(--emerald-50);
}

.contact-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-card__text span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-card__text strong {
  font-size: 14px;
  font-weight: 650;
}

.contact-card__actions {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.contact-card__actions .btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.passenger-block {
  margin-top: 18px;
}

.passenger-block h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.passenger-block h3 .icon {
  width: 14px;
  height: 14px;
  color: var(--gold-600);
}

.passenger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.passenger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.passenger__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.passenger__text strong {
  font-size: 13px;
  font-weight: 600;
}

.passenger__text span {
  color: var(--muted);
  font-size: 11.5px;
}

.passenger__pickup {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 2px;
  color: var(--ink-soft) !important;
  line-height: 1.35;
}

.passenger__pickup .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex: none;
  color: var(--gold-600);
}

.passenger__actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.passenger__actions .icon-btn {
  width: 32px;
  height: 32px;
}

.passenger__actions .icon-btn .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Mes trajets -------------------------------------------------- */

.my-content {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-item {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}

.my-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  background: linear-gradient(180deg, rgba(238, 247, 242, 0.6), rgba(255, 255, 255, 0));
}

.my-item__head .icon-btn {
  width: 34px;
  height: 34px;
  margin-left: auto;
}

.my-item__title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.my-item__title strong {
  font-size: 14px;
  font-weight: 650;
}

.my-item__title span {
  color: var(--muted);
  font-size: 11.5px;
}

.my-item__time {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.my-item__body {
  padding: 0 15px 14px;
}

.my-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 12px;
}

.my-item__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.my-item__meta .icon {
  width: 13px;
  height: 13px;
  color: var(--gold-600);
}

.my-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.my-item__actions .btn {
  min-height: 33px;
  padding: 0 12px;
  font-size: 12px;
}

.my-empty {
  padding: 32px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.my-empty .btn {
  margin-top: 14px;
}

/* ---------- Compte ------------------------------------------------------- */

.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--emerald-50);
}

.account-profile__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-profile__text strong {
  font-size: 16px;
  font-weight: 650;
}

.account-profile__text span {
  color: var(--muted);
  font-size: 12.5px;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.account-actions .btn {
  justify-content: flex-start;
  min-height: 44px;
  border-radius: 11px;
}

.account-actions .btn .icon {
  color: var(--emerald-600);
}

.account-actions .btn--danger-soft {
  background: var(--danger-soft);
  border-color: rgba(180, 68, 47, 0.16);
  color: #8e3424;
}

.account-actions .btn--danger-soft .icon {
  color: #8e3424;
}

/* ---------- Confirmation ------------------------------------------------- */

.confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
}

.confirm-icon .icon {
  width: 25px;
  height: 25px;
}

/* ---------- Toasts ------------------------------------------------------- */

.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(370px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--gold-400);
  border-radius: 12px;
  background: var(--emerald-950);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 20px 50px -20px rgba(3, 20, 15, 0.7);
  animation: toast-in 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
  pointer-events: auto;
}

.toast.is-success {
  border-left-color: var(--emerald-500);
}

.toast.is-error {
  border-left-color: #e06a52;
}

.toast .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex: none;
  color: var(--gold-300);
}

.toast.is-success .icon {
  color: #6bd3a6;
}

.toast.is-error .icon {
  color: #ffad9c;
}

.toast__content {
  flex: 1;
  min-width: 0;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 1080px) {
  .hero {
    padding: 46px 42px;
    gap: 38px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  }

  .hero h1 {
    font-size: clamp(40px, 5vw, 58px);
  }

  .next-card__time {
    font-size: 58px;
  }

  .nav {
    gap: 0;
  }

  .nav a,
  .nav__link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .prayer-pill__count {
    display: none;
  }

  .prayer-pill__sep {
    display: none;
  }
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 46px 40px 40px;
  }

  .hero__lead {
    max-width: 38rem;
  }

  .hero__panel {
    max-width: 560px;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    padding: 24px;
  }

  .step__icon {
    grid-row: span 2;
    width: 52px;
    height: 52px;
  }

  .step h3 {
    margin-top: 0;
    align-self: end;
  }

  .step p {
    margin-top: 3px;
  }

  .step__number {
    font-size: 44px;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .container {
    width: calc(100% - 36px);
  }

  .topbar__inner {
    width: calc(100% - 36px);
    min-height: 68px;
    gap: 14px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand__text strong {
    font-size: 22px;
  }

  .brand__text small {
    display: none;
  }

  .nav {
    display: none;
  }

  .topbar__actions {
    margin-left: auto;
  }

  .account-btn #account-label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    margin-top: 16px;
    padding: 38px 28px 30px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__trust {
    gap: 14px;
    margin-top: 22px;
  }

  .next-card {
    padding: 20px;
  }

  .next-card__time {
    font-size: 56px;
  }

  .rides-section {
    padding-top: 58px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .date-nav {
    width: 100%;
  }

  .date-btn {
    flex: 1;
    justify-content: center;
  }

  .prayer-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .prayer-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: none;
  }

  .invite-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-top: 40px;
    padding: 30px 26px;
  }

  .how {
    padding-top: 62px;
  }

  .footer {
    margin-top: 64px;
    padding-top: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .toasts {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }

  dialog.modal,
  dialog.modal--wide,
  dialog.modal--sm,
  dialog.modal--xs {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    max-height: 92dvh;
  }

  .modal__body {
    padding: 12px 22px 26px;
  }

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

  .field--full {
    grid-column: auto;
  }

  .modal__body h2 {
    font-size: 28px;
  }
}

@media (max-width: 620px) {
  .rides-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .next-card__times {
    margin-top: 18px;
    padding-top: 14px;
  }

  .next-card__time-item span {
    font-size: 9px;
  }

  .next-card__time-item strong {
    font-size: 12.5px;
  }

  .prayer-pill {
    padding: 0 11px;
  }

  .account-btn {
    padding-right: 10px;
  }

  .hero__mosque {
    padding: 0;
  }

  .section-head__text h2 {
    font-size: 34px;
  }

  .footer__brand p {
    max-width: 20rem;
  }
}

@media (max-width: 440px) {
  .topbar .prayer-pill {
    display: none;
  }

  .hero {
    padding: 32px 20px 24px;
  }

  .next-card {
    padding: 18px 16px;
  }

  .next-card__time {
    font-size: 52px;
  }

  .next-card__prayer {
    margin-top: 16px;
  }

  .hero__trust {
    font-size: 11.5px;
  }

  .date-btn {
    padding: 0 10px;
    font-size: 12.5px;
  }

  .demo-banner__inner {
    width: calc(100% - 44px);
    font-size: 11.5px;
  }

  .modal__actions {
    flex-direction: column-reverse;
  }

  .modal__actions .btn {
    width: 100%;
  }

  .my-item__head {
    flex-wrap: wrap;
  }

  .my-item__time {
    margin-left: 0;
  }

  .contact-card {
    flex-wrap: wrap;
  }

  .contact-card__actions {
    width: 100%;
    margin-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 780px) {
  .input,
  select.input,
  textarea.input {
    font-size: 16px;
  }
}

/* ---------- Répertoire des mosquées -------------------------------------- */
.mosques-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.mosques-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.mosques-head h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mosques-count {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mosques-search {
  margin-top: 12px;
}

.mosques-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mosques-group {
  margin: 12px 0 4px;
  color: var(--emerald-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mosques-group:first-child {
  margin-top: 0;
}

.mosque-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mosque-card--current {
  border-color: var(--emerald-300, #a7cfb8);
  background: var(--emerald-50);
}

.mosque-card__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mosque-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mosque-card__text strong {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
}

.mosque-card__text span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  word-break: break-word;
}

.mosque-card__badge {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--emerald-700);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mosque-card__actions {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 520px) {
  .mosque-card__actions {
    flex-direction: row;
  }
}

/* ---------- Recherche d’adresse par nom ---------------------------------- */
.lookup-results {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 45, 35, 0.08);
}

.lookup-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lookup-result:hover,
.lookup-result:focus-visible {
  border-color: var(--line);
  background: var(--emerald-50);
}

.lookup-result__name {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.lookup-result__address {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  word-break: break-word;
}

.lookup-result__source {
  color: var(--emerald-700);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lookup-empty {
  margin: 0;
  padding: 8px 4px;
  color: var(--muted);
  font-size: 12px;
}
