/* Pastry Fares site (home, /livreur, /commercant) — static pages, no build step. */

:root {
  --orange: #8a773f; /* logo gold (Pantone 10355 C), accents */
  --brand: #256b51; /* brand-500 green (Pantone 7729 C family): buttons, accents */
  --brand-600: #1d5541; /* brand text on light backgrounds (AA) */
  --ink: #121315; /* body text */
  --ink-2: #2a2b2f;
  --muted: #5d5f66;
  --line: #ece6e1;
  --cream: #fbf8f0;
  --peach: #f2ead3;
  --white: #ffffff;
  --green: #138a4b;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgb(18 19 21 / 0.06);
  --shadow: 0 18px 40px -12px rgb(18 19 21 / 0.18);
  --shadow-lg: 0 40px 80px -20px rgb(37 107 81 / 0.35);

  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Cairo", "Rubik", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

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

a {
  color: inherit;
}

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

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.container--narrow {
  width: min(820px, 100% - 32px);
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

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

[dir="rtl"] .icon.flip {
  transform: scaleX(-1);
}

/* ───────────── Buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background-color 0.2s;
  white-space: nowrap;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, #2e7a5d, var(--brand-600));
  box-shadow: 0 10px 24px -8px rgb(37 107 81 / 0.6);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgb(37 107 81 / 0.7);
}

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

.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.92rem;
}

.btn--lg {
  padding: 17px 30px;
  font-size: 1.06rem;
}

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

/* ───────────── Header ───────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}

.header.is-scrolled {
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  width: 100px;
  height: auto;
}

.nav {
  display: flex;
  gap: 24px;
  margin-inline-start: auto;
}

/* Links never wrap: the French merchant page (widest labels + widest CTA) fills the 1200 px row. */
.nav a {
  position: relative;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__cta {
  white-space: nowrap;
}

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgb(18 19 21 / 0.06);
}

.lang button {
  min-width: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang button[lang="ar"] {
  font-family: var(--font-ar);
  font-size: 0.95rem;
  line-height: 1;
}

.lang button[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 0;
  border-radius: 12px;
  background: rgb(18 19 21 / 0.06);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ───────────── Hero ───────────── */

.hero {
  position: relative;
  margin-top: -76px;
  padding: 150px 0 110px;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgb(37 107 81 / 0.072), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--white));
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  width: 640px;
  height: 640px;
  inset-inline-end: -120px;
  top: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(37 107 81 / 0.203), rgb(37 107 81 / 0) 65%);
  filter: blur(20px);
  animation: breathe 8s ease-in-out infinite;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-600);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.pulse {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 1.8s var(--ease) infinite;
}

.hero__title {
  margin-top: 24px;
  font-size: clamp(2.8rem, 6.6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hl {
  display: inline-block;
  color: var(--brand);
  white-space: nowrap;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 24px;
  font-size: 1.18rem;
  color: var(--muted);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
}

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

.hero__trust .icon {
  color: var(--green);
}

/* Phones */

.hero__visual {
  position: relative;
  height: 600px;
}

.phone {
  position: absolute;
  width: 270px;
  aspect-ratio: 600 / 1298;
  padding: 10px;
  border-radius: 46px;
  background: var(--ink);
  box-shadow:
    inset 0 0 0 2px #2c2d31,
    var(--shadow);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 36px;
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
  z-index: 1;
}

.phone--front {
  inset-inline-start: 28%;
  top: 0;
  z-index: 2;
  box-shadow:
    inset 0 0 0 2px #2c2d31,
    var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}

.phone--back {
  inset-inline-start: 0;
  top: 70px;
  width: 240px;
  transform: rotate(-8deg);
  opacity: 0.95;
}

[dir="rtl"] .phone--back {
  transform: rotate(8deg);
}

.speed {
  position: absolute;
  inset-inline-end: 0;
  top: 190px;
  display: grid;
  gap: 16px;
}

.speed i {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, var(--orange));
  animation: dash 1.6s var(--ease) infinite;
}

.speed i:nth-child(1) {
  width: 110px;
}

.speed i:nth-child(2) {
  width: 70px;
  margin-inline-start: 40px;
  animation-delay: 0.3s;
}

.speed i:nth-child(3) {
  width: 90px;
  margin-inline-start: 20px;
  animation-delay: 0.6s;
}

[dir="rtl"] .speed i {
  background: linear-gradient(270deg, transparent, var(--orange));
}

.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  line-height: 1.3;
}

.float strong {
  display: block;
  font-size: 0.95rem;
}

.float small {
  color: var(--muted);
  font-size: 0.8rem;
}

.float--a {
  inset-inline-end: 0;
  top: 64px;
  animation: floaty 6s ease-in-out infinite reverse;
}

.float--b {
  inset-inline-start: -10px;
  bottom: 70px;
  animation: floaty 8s ease-in-out infinite;
}

.float--c {
  inset-inline-end: 4%;
  bottom: 18px;
  animation: floaty 7s ease-in-out 1s infinite;
}

.float__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.float__icon--green {
  color: var(--white);
  background: var(--green);
}

.float__icon--cash {
  color: #8a5a00;
  background: #ffefc7;
}

.float__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 800;
  color: var(--brand);
  background: var(--peach);
}

/* ───────────── Strip ───────────── */

.strip {
  overflow: hidden;
  padding: 22px 0;
  background: var(--ink);
  color: var(--white);
}

.strip__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

[dir="rtl"] .strip__track {
  animation-name: marquee-rtl;
}

.strip:hover .strip__track {
  animation-play-state: paused;
}

.strip__list {
  display: flex;
  gap: 56px;
  margin: 0;
  padding: 0 28px;
  list-style: none;
}

.strip__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgb(138 119 63 / 0.25);
}

/* ───────────── Sections ───────────── */

.section {
  padding: 120px 0;
}

.section--tint {
  background: var(--cream);
}

.section__head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.kicker {
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-600);
}

html[lang="ar"] .kicker {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.kicker--light {
  color: #c9b37a;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s;
}

.step:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.step__num {
  position: absolute;
  inset-inline-end: 28px;
  top: 22px;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(37 107 81 / 0.35);
}

.step__icon,
.tile__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 18px;
  font-size: 1.35rem;
  color: var(--brand);
  background: var(--peach);
}

.step p,
.tile p {
  margin-top: 10px;
  color: var(--muted);
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
}

.tile {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tile--hero {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: radial-gradient(600px 400px at 100% 100%, rgb(37 107 81 / 0.6), transparent 60%), var(--ink);
}

.tile--hero p {
  color: rgb(255 255 255 / 0.72);
}

.tile--hero h3 {
  margin-top: 18px;
  font-size: 1.75rem;
  max-width: 22rem;
}

.tile__phone {
  align-self: center;
  width: 240px;
  margin-top: 32px;
  margin-bottom: -120px;
  padding: 9px;
  border-radius: 40px 40px 0 0;
  background: #2a2b2f;
}

.tile__phone img {
  border-radius: 32px 32px 0 0;
}

/* Fills the row next to the 2 × 2 tracking tile when it holds three small tiles. */
.tile--wide {
  grid-column: span 2;
}

.tile--accent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: center;
  align-content: center;
  color: var(--white);
  background: linear-gradient(135deg, #2e7a5d, var(--brand-600));
}

.tile--accent .tile__icon {
  grid-row: span 2;
  margin: 0;
}

.tile--accent p {
  color: rgb(255 255 255 / 0.88);
}

.tile--accent .tile__icon {
  color: var(--white);
  background: rgb(255 255 255 / 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgb(255 255 255 / 0.12);
}

.badge .pulse {
  background: #3ddc84;
}

/* Tabs */

.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 56px;
  padding: 6px;
  border-radius: 999px;
  background: var(--cream);
}

.tabs button {
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}

.panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 72px;
  max-width: 980px;
  margin-inline: auto;
  animation: fade-up 0.5s var(--ease);
}

.panel[hidden] {
  display: none;
}

.panel__phone {
  position: relative;
  justify-self: center;
  width: 290px;
  padding: 11px;
  border-radius: 48px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}

.panel__phone::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--peach), transparent 70%);
}

.panel__phone img {
  border-radius: 38px;
}

.panel__copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
}

.checks {
  display: grid;
  gap: 16px;
  margin: 28px 0 36px;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-inline-start: 38px;
  color: var(--ink-2);
}

.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E04622' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--peach);
}

/* ───────────── Dark partners ───────────── */

.dark {
  position: relative;
  padding: 120px 0;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.dark__flame {
  position: absolute;
  inset-inline-start: -200px;
  bottom: -300px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(37 107 81 / 0.225), transparent 65%);
  filter: blur(30px);
}

.dark__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 72px;
}

.dark__lead {
  margin: 22px 0 36px;
  font-size: 1.12rem;
  color: rgb(255 255 255 / 0.72);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
  transition:
    background-color 0.3s,
    border-color 0.3s,
    transform 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgb(138 119 63 / 0.5);
  background: rgb(138 119 63 / 0.08);
}

.card__num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #c9b37a, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card p {
  margin-top: 8px;
  color: rgb(255 255 255 / 0.7);
}

/* ───────────── FAQ ───────────── */

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}

.faq details[open] {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.faq summary {
  position: relative;
  padding: 22px 64px 22px 26px;
  font-size: 1.08rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

[dir="rtl"] .faq summary {
  padding: 22px 26px 22px 64px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 22px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand);
  background: var(--peach);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 26px 24px;
  color: var(--muted);
}

/* ───────────── Join ───────────── */

.join {
  padding: 120px 0;
  background: radial-gradient(900px 500px at 0% 0%, rgb(37 107 81 / 0.063), transparent 60%), var(--cream);
}

.join__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 72px;
}

.join__copy > p:not(.kicker) {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--muted);
}

.perks {
  display: grid;
  gap: 18px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.perks li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.perk__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--brand);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.formcard {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.roles legend {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

.roles label {
  position: relative;
}

.roles input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.roles span {
  display: block;
  padding: 12px 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
  text-align: center;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}

.roles input:checked + span {
  border-color: var(--brand);
  color: var(--brand-600);
  background: var(--cream);
}

.roles input:focus-visible + span {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.field[hidden] {
  display: none;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fcfbfa;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

[dir="rtl"] .field input[dir="ltr"] {
  text-align: right;
}

.field select {
  appearance: none;
  padding-inline-end: 44px;
  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='%237a6f6b' 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 16px center;
  cursor: pointer;
}

[dir="rtl"] .field select {
  background-position: left 16px center;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 4px rgb(37 107 81 / 0.14);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #c62828;
  box-shadow: 0 0 0 4px rgb(198 40 40 / 0.12);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 22px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.form__error {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #a51d1d;
  background: #fdecec;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgb(255 255 255 / 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

form.is-loading .spinner {
  display: inline-block;
}

form.is-loading button[type="submit"] {
  pointer-events: none;
  opacity: 0.85;
}

.success {
  padding: 40px 12px;
  text-align: center;
  animation: fade-up 0.5s var(--ease);
}

.success:focus {
  outline: none;
}

.success__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 0 0 12px rgb(19 138 75 / 0.12);
}

.success h3 {
  font-size: 1.6rem;
}

.success p {
  margin-top: 10px;
  color: var(--muted);
}

/* ───────────── Footer ───────────── */

.footer {
  padding: 72px 0 28px;
  color: rgb(255 255 255 / 0.7);
  background: var(--ink);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.footer__grid img {
  width: 150px;
  height: auto;
  margin-bottom: 16px;
}

.footer nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer nav a,
.footer__contact a {
  text-decoration: none;
  color: rgb(255 255 255 / 0.85);
}

.footer nav a:hover,
.footer__contact a:hover {
  color: #c9b37a;
}

.footer__contact {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer__contact p:first-child {
  font-weight: 700;
  color: var(--white);
}

.footer__contact a,
.footer__city {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-wrap: anywhere;
}

.footer__contact .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: #c9b37a;
}

.footer__city {
  margin-top: 4px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.88rem;
}

.totop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition:
    border-color 0.25s,
    background-color 0.25s;
}

[dir="rtl"] .totop {
  padding: 6px 16px 6px 6px;
}

.totop__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, #2e7a5d, var(--brand-600));
  transition: transform 0.3s var(--ease);
}

.totop:hover {
  border-color: rgb(138 119 63 / 0.6);
  background: rgb(138 119 63 / 0.08);
}

.totop:hover .totop__icon {
  transform: translateY(-3px);
}

.fab-top {
  position: fixed;
  inset-inline-end: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--white);
  background: linear-gradient(135deg, #2e7a5d, var(--brand-600));
  box-shadow: 0 12px 28px -8px rgb(37 107 81 / 0.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition:
    opacity 0.3s,
    visibility 0.3s,
    transform 0.3s var(--ease);
}

.fab-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fab-top:hover {
  transform: translateY(-3px);
}

/* ───────────── Motion ───────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes breathe {
  50% {
    transform: scale(1.12);
    opacity: 0.8;
  }
}

@keyframes floaty {
  50% {
    translate: 0 -12px;
  }
}

@keyframes dash {
  0% {
    transform: translateX(30px);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(-30px);
    opacity: 0;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-rtl {
  to {
    transform: translateX(50%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ───────────── Responsive ───────────── */

@media (max-width: 1080px) {
  /* minmax(0, 1fr): a long unbreakable line (the title highlight) must not widen the column past the screen. */
  .hero__grid,
  .dark__grid,
  .join__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 130px;
  }

  .hero__copy {
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__ctas,
  .hero__trust {
    justify-content: center;
  }

  .hero__visual {
    width: min(520px, 100%);
    margin-inline: auto;
  }

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

  .join__copy {
    text-align: center;
  }

  .perks {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: start;
  }
}

/* Tighter header before the burger: five links, the language switch and the CTA on one row. */
@media (max-width: 1300px) {
  .header__inner {
    gap: 16px;
  }

  .header__logo img {
    width: 86px;
  }

  .nav {
    gap: 18px;
    font-size: 0.94rem;
  }

  .header__cta {
    padding-inline: 16px;
  }
}

/* Below this width the French merchant header no longer fits on one row: burger menu. */
@media (max-width: 1139px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 16px 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.3s var(--ease),
      opacity 0.3s,
      visibility 0.3s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav a::after {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header__actions {
    margin-inline-start: auto;
  }
}

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

  .panel {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .panel__copy {
    text-align: center;
  }

  .checks {
    text-align: start;
    max-width: 30rem;
    margin-inline: auto;
  }

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

  .footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .header__cta {
    display: none;
  }

  .header__logo img {
    width: 86px;
  }

  .section,
  .dark,
  .join {
    padding: 84px 0;
  }

  .section__head {
    margin-bottom: 44px;
  }

  .hero {
    padding: 116px 0 72px;
  }

  /* Phones: the title fits the width, the highlight may wrap, and the lines stay balanced. */
  .hero__title {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
    text-wrap: balance;
  }

  .hero__title .hl {
    white-space: normal;
  }

  /* The pill hugs its text: the dot flows with the first line instead of sitting alone on the edge. */
  .hero .eyebrow {
    display: inline-block;
    max-width: 100%;
    padding: 8px 14px;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
    text-wrap: balance;
  }

  .hero .eyebrow .pulse {
    display: inline-block;
    margin-inline-end: 8px;
    vertical-align: 1px;
  }

  .hero__lead {
    font-size: 1.06rem;
  }

  .hero__visual {
    height: 450px;
  }

  .phone {
    width: 210px;
    border-radius: 36px;
    padding: 8px;
  }

  .phone img {
    border-radius: 28px;
  }

  .phone::before {
    top: 16px;
    width: 60px;
    height: 18px;
  }

  .phone--back {
    width: 170px;
    top: 56px;
    inset-inline-start: 6%;
  }

  .phone--front {
    inset-inline-start: 30%;
  }

  .speed {
    display: none;
  }

  .float {
    padding: 10px 12px;
  }

  .float--a {
    top: 150px;
    inset-inline-end: -4px;
  }

  .float--b {
    inset-inline-start: 0;
    bottom: 40px;
  }

  .float--c {
    display: none;
  }

  .float strong {
    font-size: 0.85rem;
  }

  .float small {
    font-size: 0.72rem;
  }

  .float__icon,
  .float__avatar {
    width: 32px;
    height: 32px;
  }

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

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

  .tile--hero,
  .tile--accent,
  .tile--wide {
    grid-column: auto;
  }

  .tabs {
    width: 100%;
  }

  .tabs button {
    flex: 1;
    padding: 12px 8px;
  }

  .panel__phone {
    width: 240px;
  }

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

  .formcard {
    padding: 26px 20px;
  }

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

  .roles span {
    padding: 11px 4px;
    font-size: 0.92rem;
  }

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

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .fab-top {
    inset-inline-end: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

/* Smallest phones (320 px): the eyebrow still fits on one line. */
@media (max-width: 359px) {
  .hero .eyebrow {
    padding-inline: 12px;
    font-size: 0.72rem;
  }
}

/* ═════════════ Multi-page additions (store badges, /livreur, /commercant, contact) ═════════════ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav a[aria-current="page"] {
  color: var(--brand-600);
}

.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn--light {
  color: var(--brand-600);
  background: var(--white);
  box-shadow: 0 14px 30px -12px rgb(18 19 21 / 0.45);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -12px rgb(18 19 21 / 0.5);
}

.btn--ghost:focus-visible,
.btn--light:focus-visible {
  outline-color: var(--ink);
}

.section__head--start {
  margin-inline: 0;
  text-align: start;
}

.section__head--light .dark__lead {
  margin: 20px auto 0;
}

/* Store badges */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Same size for every badge, whatever the store name. */
.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 190px;
  padding-block: 10px;
  padding-inline: 16px 20px;
  border-radius: 16px;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 26px -14px rgb(18 19 21 / 0.7);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

a.store[href]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -14px rgb(18 19 21 / 0.75);
}

.store__logo {
  width: 28px;
  height: 28px;
  flex: none;
}

.store__text {
  display: grid;
  line-height: 1.15;
  white-space: nowrap;
  text-align: start;
}

.store__text small {
  font-size: 0.72rem;
  opacity: 0.8;
}

.store__text strong {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store[aria-disabled="true"] {
  cursor: default;
}

.stores--footer {
  margin-top: 4px;
}

.stores--footer .store {
  width: 168px;
  padding-block: 8px;
  padding-inline: 12px 16px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.04);
  box-shadow: none;
}

.stores--footer .store__logo {
  width: 22px;
  height: 22px;
}

.stores--footer .store__text strong {
  font-size: 0.95rem;
}

.hero__partner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  color: var(--brand-600);
  text-decoration: none;
  border-bottom: 2px solid rgb(37 107 81 / 0.25);
  transition: border-color 0.2s;
}

.hero__partner:hover {
  border-color: var(--brand);
}

/* Home: join cards */

.joincards {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.joincard {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.04);
  text-decoration: none;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    background-color 0.35s;
}

.joincard:hover {
  transform: translateY(-6px);
  border-color: rgb(138 119 63 / 0.55);
  background: rgb(138 119 63 / 0.07);
}

.joincard__img {
  height: 280px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 120%, rgb(37 107 81 / 0.203), transparent 70%);
}

.joincard__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 18px 18px 0;
  transition: transform 0.6s var(--ease);
}

.joincard__img--photo img {
  object-fit: cover;
  object-position: center 30%;
  padding: 0;
}

.joincard:hover .joincard__img img {
  transform: scale(1.04);
}

.joincard__body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 30px 32px;
}

.joincard__body h3 {
  font-size: 1.6rem;
  color: var(--white);
}

.joincard__body p {
  color: rgb(255 255 255 / 0.72);
}

.joincard__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 700;
  color: #c9b37a;
}

.joincard:hover .joincard__cta .icon {
  transform: translateX(4px);
}

[dir="rtl"] .joincard:hover .joincard__cta .icon {
  transform: scaleX(-1) translateX(4px);
}

.joincard__cta .icon {
  transition: transform 0.3s var(--ease);
}

/* Home: the Fares house (the two points of sale, D-214) */

.housestats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 48px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.housestats li {
  display: grid;
  gap: 2px;
}

.housestats strong {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #c9b37a;
}

.housestats span {
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.72);
}

.joincard__img--badge {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 110%, rgb(201 179 122 / 0.22), transparent 65%),
    linear-gradient(160deg, #1d5541, #0f2c23);
}

.joincard__img--badge img {
  width: auto;
  max-width: 70%;
  height: 62%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.joincard__tag {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f2c23;
  background: #c9b37a;
}

.joincard__meta {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: rgb(255 255 255 / 0.85);
}

.joincard__meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.joincard__meta .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: #c9b37a;
}

/* Home: download band */

.appband {
  position: relative;
  padding: 120px 0;
}

.appband__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 420px;
  padding: 64px 72px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  /* White copy needs ≥ 4.5:1: the gradient stays at brand-600 and darker (BRAND.md). */
  background:
    radial-gradient(640px 300px at 50% 135%, rgb(138 119 63 / 0.45), transparent 70%),
    linear-gradient(135deg, var(--brand-600), #174434);
  box-shadow: var(--shadow-lg);
}

.appband__copy {
  position: relative;
  z-index: 1;
}

.appband .kicker--light {
  color: var(--white);
}

.appband__copy > p:not(.kicker) {
  max-width: 30rem;
  margin: 18px 0 30px;
  font-size: 1.1rem;
  color: var(--white);
}

.appband__phones {
  position: relative;
  align-self: stretch;
  min-height: 340px;
}

.appband__phones .phone {
  width: 210px;
  padding: 8px;
  border-radius: 36px;
}

.appband__phones .phone img {
  border-radius: 28px;
}

.phone--tilt-a {
  inset-inline-start: 6%;
  top: 30px;
  transform: rotate(-10deg);
}

.phone--tilt-b {
  inset-inline-start: 44%;
  top: -10px;
  transform: rotate(7deg);
  animation: floaty 7s ease-in-out infinite;
}

[dir="rtl"] .phone--tilt-a {
  transform: rotate(10deg);
}

[dir="rtl"] .phone--tilt-b {
  transform: rotate(-7deg);
}

/* Page hero (/livreur, /commercant) */

.phero {
  position: relative;
  margin-top: -76px;
  padding: 140px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 90% 0%, rgb(37 107 81 / 0.072), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--white));
}

.phero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.phero__grid--form {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.phero__title {
  margin-top: 22px;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.phero__title--md {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
}

.phero__title .hl {
  white-space: normal;
}

.phero__lead {
  max-width: 34rem;
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--muted);
}

.phero .hero__ctas {
  margin-top: 34px;
}

.phero__visual {
  position: relative;
}

.photo-blob {
  position: relative;
  aspect-ratio: 960 / 926;
  overflow: hidden;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  box-shadow: var(--shadow-lg);
  animation: blob 14s ease-in-out infinite;
}

.photo-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phero__visual .float--a {
  top: 8%;
  inset-inline-end: -6px;
}

.phero__visual .float--b {
  bottom: 10%;
  inset-inline-start: -18px;
}

.float__icon--brand {
  color: var(--white);
  background: linear-gradient(135deg, #2e7a5d, var(--brand-600));
}

/* Merchant hero: wave + cut-out photo, form card in the copy column */

.phero--merchant {
  padding-bottom: 120px;
  background: var(--white);
}

.phero__wave {
  position: absolute;
  inset: 0 0 auto;
  height: 82%;
  border-radius: 0 0 50% 50% / 0 0 140px 140px;
  background:
    radial-gradient(760px 520px at 82% 42%, rgb(37 107 81 / 0.117), transparent 64%),
    radial-gradient(500px 360px at 0% 0%, rgb(37 107 81 / 0.045), transparent 70%), var(--cream);
}

.phero__visual--photo {
  position: sticky;
  top: 110px;
  padding-top: 24px;
}

/* The merchant's photo, cropped to a portrait around him. */
.photo-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

[dir="rtl"] .photo-frame {
  transform: rotate(-1.5deg);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.float--order {
  top: 12%;
  inset-inline-end: -18px;
}

.float--merchant {
  inset-inline-start: -24px;
  inset-inline-end: auto;
  bottom: 10%;
}

.formcard--hero {
  margin-top: 34px;
  padding: 32px;
  border: 1px solid var(--line);
}

.formcard__title {
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 800;
}

/* Courier benefits */

.benefits-wrap {
  position: relative;
  z-index: 2;
  margin-top: -40px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  padding: 32px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.benefit__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 16px;
  font-size: 1.2rem;
  color: var(--brand);
  background: var(--peach);
}

.benefit p {
  margin-top: 10px;
  color: var(--muted);
}

/* Courier documents + timeline */

.docs-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 64px;
}

.docs-box {
  position: relative;
  padding: 48px 44px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.docs-box__flame {
  position: absolute;
  inset-inline-end: -160px;
  top: -200px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(37 107 81 / 0.225), transparent 65%);
  filter: blur(20px);
}

.docs-box > :not(.docs-box__flame) {
  position: relative;
}

.docs-box h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.docs-box__lead {
  margin-top: 14px;
  color: rgb(255 255 255 / 0.72);
}

.docs-box__groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}

.docs-group__title {
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a6934;
}

html[lang="ar"] .docs-group__title {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.docs-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.docs-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #7a6934;
  background: rgb(138 119 63 / 0.14);
  border: 1px solid rgb(138 119 63 / 0.3);
}

.docs-box__note {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  color: rgb(255 255 255 / 0.78);
  background: rgb(255 255 255 / 0.06);
}

.docs-box__note .icon {
  margin-top: 3px;
  color: #7a6934;
}

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(var(--brand), rgb(37 107 81 / 0.1));
}

.timeline li {
  position: relative;
  display: flex;
  gap: 20px;
}

.timeline__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, #2e7a5d, var(--brand-600));
  box-shadow:
    0 0 0 6px var(--white),
    0 10px 22px -8px rgb(37 107 81 / 0.6);
}

.timeline h3 {
  margin-top: 10px;
}

.timeline p {
  margin-top: 6px;
  color: var(--muted);
}

/* Courier apply: photo + app screen, and the app availability note */

.apply-visual {
  position: relative;
  width: min(420px, 100%);
  margin: 32px 0 0;
}

.apply-visual__photo {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgb(37 107 81 / 0.25));
}

.phone--mini {
  inset-inline-end: -24px;
  bottom: -18px;
  width: 128px;
  padding: 6px;
  border-radius: 24px;
  transform: rotate(6deg);
}

.phone--mini img {
  border-radius: 19px;
}

.phone--mini::before {
  top: 11px;
  width: 36px;
  height: 10px;
}

[dir="rtl"] .phone--mini {
  transform: rotate(-6deg);
}

.app-note {
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.app-note__title {
  font-weight: 800;
}

.app-note__text {
  margin: 6px 0 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.app-note--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
}

.app-note--wide .app-note__text {
  margin-bottom: 0;
}

.app-note--wide .stores {
  flex: none;
}

/* Final CTA band */

.cta-band {
  padding: 0 0 120px;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 64px;
  border-radius: var(--radius-lg);
  color: var(--white);
  /* Same contrast rule as the download band: white text on brand-600 or darker. */
  background:
    radial-gradient(560px 220px at 50% 150%, rgb(138 119 63 / 0.4), transparent 70%),
    linear-gradient(135deg, var(--brand-600), #174434);
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.cta-band p {
  margin-top: 8px;
  font-size: 1.1rem;
  color: var(--white);
}

.section--tint + .cta-band {
  padding-top: 0;
  background: var(--cream);
}

/* Footer: 4 columns with the store badges */

.footer__grid {
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
}

.footer__title {
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--white);
}

@keyframes blob {
  50% {
    border-radius: 56% 44% 54% 46% / 44% 56% 46% 54%;
  }
}

@media (max-width: 1080px) {
  .apply-visual {
    margin-inline: auto;
  }

  .app-note {
    text-align: start;
  }

  .app-note .stores {
    justify-content: flex-start;
  }

  .phero__grid,
  .phero__grid--form,
  .docs-grid,
  .appband__inner {
    grid-template-columns: 1fr;
  }

  .phero__copy {
    text-align: center;
  }

  .phero__lead {
    margin-inline: auto;
  }

  .phero .hero__ctas,
  .phero .hero__trust {
    justify-content: center;
  }

  .phero__visual {
    width: min(540px, 100%);
    margin-inline: auto;
  }

  .phero__visual--photo {
    position: relative;
    top: 0;
    order: -1;
    width: min(560px, 100%);
    padding-top: 0;
  }

  .phero__visual--photo .photo-frame {
    aspect-ratio: 16 / 10;
    transform: none;
  }

  .formcard--hero {
    text-align: start;
  }

  .stores {
    justify-content: center;
  }

  .stores--footer {
    justify-content: flex-start;
  }

  .appband__inner {
    padding: 56px 40px 0;
    text-align: center;
  }

  .appband__copy > p:not(.kicker) {
    margin-inline: auto;
  }

  .appband__phones {
    min-height: 300px;
    width: min(460px, 100%);
    margin-inline: auto;
  }

  .phone--tilt-a {
    inset-inline-start: 4%;
    top: 40px;
  }

  .phone--tilt-b {
    inset-inline-start: 46%;
    top: 0;
  }

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

  .footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .benefits,
  .joincards {
    grid-template-columns: 1fr;
  }

  .benefits-wrap {
    margin-top: 0;
  }

  .cta-band__inner {
    flex-direction: column;
    text-align: center;
    padding: 48px 28px;
  }

  .section__head--start {
    text-align: center;
    margin-inline: auto;
  }
}

@media (max-width: 1139px) {
  .nav a[aria-current="page"]::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .phero {
    padding: 112px 0 64px;
  }

  .phero--merchant {
    padding-bottom: 72px;
  }

  .float--order {
    inset-inline-end: 8px;
    top: 8px;
  }

  .formcard--hero {
    padding: 24px 18px;
  }

  .phero__visual .float--b {
    inset-inline-start: 0;
  }

  .phero__visual .float--a {
    inset-inline-end: 0;
  }

  .docs-box {
    padding: 36px 22px;
  }

  .docs-box__groups {
    grid-template-columns: 1fr;
  }

  .joincard__img {
    height: 220px;
  }

  .joincard__body {
    padding: 24px 22px 26px;
  }

  .appband {
    padding: 84px 0;
  }

  .cta-band {
    padding-bottom: 84px;
  }

  .appband__inner {
    padding: 44px 22px 0;
  }

  .appband__phones .phone {
    width: 160px;
  }

  .appband__phones {
    min-height: 250px;
  }

  /* Stacked, full width: two badges side by side would wrap their labels on a phone. */
  .stores:not(.stores--footer) {
    flex-direction: column;
  }

  .stores:not(.stores--footer) .store {
    width: 100%;
    justify-content: center;
  }

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

  .phone--mini {
    inset-inline-end: 0;
    width: 104px;
  }

  .app-note--wide {
    flex-direction: column;
    align-items: stretch;
  }
}

/* reCAPTCHA v3: Google allows hiding its badge when the forms show this notice. */
.grecaptcha-badge {
  visibility: hidden;
}

.form__legal {
  margin-top: 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

.form__legal a {
  color: inherit;
}

/* ───────────── Order on the web (customer web app at /commander, D-191) ───────────── */

/* Hero: the web app first, the two store badges under it, same total width. */
.hero__order {
  width: 392px;
  max-width: 100%;
  /* Room before the store badges (14 px row gap + 10 px). */
  margin-bottom: 10px;
}

.hero__ctas .stores {
  flex-basis: 100%;
}

.order {
  background: radial-gradient(60% 80% at 100% 0%, rgb(37 107 81 / 0.045), transparent 70%), var(--cream);
}

.order__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: center;
}

.order__head h2 {
  margin-top: 10px;
}

.order__lead {
  max-width: 30rem;
  margin: 18px 0 30px;
  font-size: 1.1rem;
  color: var(--muted);
}

.ordertiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* An odd last tile takes the whole row instead of leaving a hole. */
.ordertile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.ordertile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.2s;
}

.ordertile:hover,
.ordertile:focus-visible {
  transform: translateY(-3px);
  border-color: rgb(37 107 81 / 0.45);
  box-shadow: var(--shadow);
}

.ordertile__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--peach);
  color: var(--brand-600);
  font-size: 1.2rem;
}

.ordertile__name {
  flex: 1;
}

.ordertile__arrow {
  color: var(--brand);
  opacity: 0.5;
  transition:
    opacity 0.2s,
    transform 0.25s var(--ease);
}

.ordertile:hover .ordertile__arrow {
  opacity: 1;
  transform: translateX(4px);
}

[dir="rtl"] .ordertile:hover .ordertile__arrow {
  transform: scaleX(-1) translateX(4px);
}

@media (max-width: 1080px) {
  .order__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .order__head {
    text-align: center;
  }

  .order__lead {
    margin-inline: auto;
  }

  .hero__ctas .stores {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero__order {
    width: 100%;
  }

  /* "Ouvrir Pastry Fares sur le web" is wider than a 320 px screen on one line. */
  .order__head .btn {
    width: 100%;
    padding-inline: 20px;
    white-space: normal;
  }

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

/* ───────────── Brand "screens" (courier and Partner apps) ─────────────
   The courier and Partner app interfaces are not shown on the site (D-194): their phones display an orange
   brand screen with the person instead of a screenshot. Same 600 / 1298 ratio as the screenshots. */
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  aspect-ratio: 600 / 1298;
  padding: 13% 9% 0;
  overflow: hidden;
  border-radius: 38px;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(80% 45% at 50% 100%, rgb(255 255 255 / 0.2), transparent 70%),
    linear-gradient(165deg, #2e7a5d 0%, var(--brand) 55%, var(--brand-600) 100%);
  container-type: inline-size;
}

.screen img {
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.screen .screen__logo {
  width: 44%;
}

.screen__kicker {
  margin-top: 9cqw;
  font-size: 4.4cqw;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.screen__title {
  margin-top: 2.5cqw;
  font-size: 8.6cqw;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.screen .screen__person {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 114%;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 -10px 24px rgb(29 85 65 / 0.35));
}

.screen--merchant .screen__person {
  width: 82%;
}

.phone--mini .screen {
  border-radius: 19px;
}
