/* ============================================================
 * Page « Devenir chauffeur » (chauffeur.html)
 *
 * Reprend la maquette validée : téléphone (390 px) en base,
 * ordinateur (1440 px) à partir de 960 px. Toutes les classes
 * sont préfixées .chf- pour ne rien toucher ailleurs sur le site.
 * Polices : celles déjà déclarées dans css/style.css (fichiers locaux).
 * ============================================================ */

.chf {
  --chf-fond: #f6f3ec;
  --chf-papier: #faf8f3;
  --chf-encre: #0a0a0a;
  --chf-nuit: #0c2f2c;
  --chf-vert: #0f766e;
  --chf-vert-pale: #dff0ec;
  --chf-vert-texte: #0b5a54;
  --chf-menthe: #9fe0d3;
  --chf-gris: #3f3f3f;
  --chf-gris-doux: #4a4a4a;
  --chf-filet: rgba(10, 10, 10, 0.08);
  --chf-marge: 20px;
  --chf-serif: "Fraunces", Georgia, serif;
  --chf-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  background: var(--chf-fond);
  color: var(--chf-encre);
  font-family: "Public Sans", system-ui, sans-serif;
}

/* On neutralise les styles globaux de titres et paragraphes du site */
:where(.chf) h1,
:where(.chf) h2 {
  font-family: var(--chf-serif);
  font-weight: 600;
  letter-spacing: 0;
  color: inherit;
  font-variation-settings: normal;
}
:where(.chf) h1 em,
:where(.chf) h2 em {
  font-style: italic;
  font-weight: 500;
}
:where(.chf) p { max-width: none; color: inherit; }
:where(.chf) ol,
:where(.chf) ul { list-style: none; margin: 0; padding: 0; }
:where(.chf) strong { font-weight: 700; }

.chf-surtitre {
  font-family: var(--chf-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chf-vert-texte);
}

.chf-fleche { flex: none; }

/* Boutons et liens --------------------------------------------- */
.chf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--chf-nuit);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.chf-btn:hover { color: var(--chf-nuit); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45); }
.chf-btn:focus-visible,
.chf-lien:focus-visible,
.chf-pilule:focus-visible {
  outline: 3px solid var(--chf-menthe);
  outline-offset: 3px;
}

.chf-pilule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.chf-pilule:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.7); }

.chf-lien {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.chf-lien:hover { color: var(--chf-vert-pale); }

/* Variantes de texte téléphone / ordinateur (textes de la maquette au mot près) */
.chf-ordi { display: none; }

/* ============================================================
 * 1. Hero
 * ============================================================ */
.chf-hero {
  position: relative;
  background: var(--chf-nuit);
  color: #ffffff;
}
.chf-hero__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 560px;
  overflow: hidden;
}
.chf-hero__media picture,
.chf-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.chf-hero__media img {
  object-fit: cover;
  object-position: 55% 30%;
}
.chf-hero__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 47, 44, 0.10) 0%, rgba(12, 47, 44, 0.35) 40%, rgba(8, 30, 28, 0.92) 78%);
}
.chf-hero__carte { display: none; }

.chf-hero__corps { position: relative; }
.chf-hero__texte {
  min-height: 560px;
  padding: 120px var(--chf-marge) 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}
.chf-hero__texte .chf-surtitre { color: #bfe3dc; }
.chf-hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.05;
}
.chf-hero h1 em { color: var(--chf-menthe); }
.chf-hero__chapo {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.chf-hero__actions {
  padding: 20px var(--chf-marge) 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.chf-hero__delai {
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}
.chf-hero__espace { display: flex; justify-content: center; margin-top: 4px; }

/* ============================================================
 * 2. Zéro commission
 * ============================================================ */
.chf-zero {
  padding: 44px var(--chf-marge) 40px;
  background: var(--chf-papier);
  border-bottom: 1px solid var(--chf-filet);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chf-zero__chiffre {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--chf-serif);
  color: var(--chf-vert);
}
.chf-zero__zero {
  font-weight: 600;
  font-size: 128px;
  line-height: 0.82;
  letter-spacing: -0.04em;
}
.chf-zero__pourcent {
  font-weight: 500;
  font-size: 64px;
  line-height: 0.9;
}
.chf-zero h2 {
  margin: 14px 0 0;
  font-size: 28px;
  line-height: 1.15;
}
.chf-zero p {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--chf-gris);
}

/* ============================================================
 * 3. Pourquoi ON WAY (6 avantages)
 * ============================================================ */
.chf-avantages {
  padding: 44px var(--chf-marge);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.chf-avantages__tete {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.chf-avantages h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}
.chf-avantages__liste { display: flex; flex-direction: column; }
.chf-avantage {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(10, 10, 10, 0.12);
}
.chf-avantage:last-child { border-bottom: 1px solid rgba(10, 10, 10, 0.12); }
.chf-avantage__num {
  flex: none;
  font-family: var(--chf-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--chf-vert-texte);
  padding-top: 4px;
}
.chf-avantage__corps { display: flex; flex-direction: column; gap: 4px; }
.chf-avantage__corps strong { font-size: 17px; line-height: 1.35; }
.chf-avantage__corps span { font-size: 15px; line-height: 1.5; color: var(--chf-gris); }

/* ============================================================
 * 4. Étapes + exemple de demande sur téléphone
 * ============================================================ */
.chf-etapes {
  display: flex;
  flex-direction: column;
}
.chf-telephone-cadre {
  order: -1;
  padding: 0 var(--chf-marge) 44px;
}
.chf-telephone {
  margin: 0;
  background: var(--chf-nuit);
  border-radius: 28px;
  padding: 26px 20px 22px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 4px rgba(12, 47, 44, 0.10), 0 18px 40px rgba(12, 47, 44, 0.28);
}
.chf-telephone .chf-surtitre { color: var(--chf-menthe); }
.chf-telephone__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

/* Carte « Nouvelle demande » (illustration, réutilisée dans le hero ordinateur) */
.chf-demande {
  background: var(--chf-papier);
  color: var(--chf-encre);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chf-demande__haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chf-demande__etiquette {
  font-family: var(--chf-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chf-vert-texte);
}
.chf-demande__quand { font-size: 13px; color: var(--chf-gris-doux); }
.chf-demande__trajet {
  font-family: var(--chf-serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
}
.chf-demande__trajet span { color: var(--chf-vert); }
.chf-demande__trajet .chf-ville { color: inherit; white-space: nowrap; }
.chf-demande__infos { font-size: 15px; color: var(--chf-gris); }
.chf-demande__bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--chf-filet);
}
.chf-demande__prix { font-size: 14px; color: var(--chf-gris-doux); }
.chf-demande__offre {
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--chf-vert);
  color: #ffffff;
}

.chf-etapes__texte {
  padding: 44px var(--chf-marge);
  background: var(--chf-papier);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chf-etapes h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}
.chf-etape {
  position: relative;
  display: flex;
  gap: 14px;
}
.chf-etape:not(:last-child)::before {
  /* fil vertical qui relie les pastilles */
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: #cfe5df;
}
.chf-etape__num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--chf-vert);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chf-etape:last-child .chf-etape__num { background: var(--chf-nuit); }
.chf-etape__corps {
  padding: 4px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chf-etape:last-child .chf-etape__corps { padding-bottom: 0; }
.chf-etape__corps strong { font-size: 17px; line-height: 1.35; }
.chf-etape__corps span { font-size: 15px; line-height: 1.5; color: var(--chf-gris); }

/* ============================================================
 * 5. Documents + candidature
 * ============================================================ */
.chf-documents {
  padding: 44px var(--chf-marge);
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.chf-documents__liste-bloc {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chf-documents h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}
.chf-pieces {
  padding: 6px 18px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 10px 30px rgba(10, 10, 10, 0.07);
}
.chf-pieces li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.07);
  font-size: 15px;
  line-height: 1.4;
}
.chf-pieces li:last-child { border-bottom: 0; }
.chf-pieces svg { flex: none; }
.chf-documents__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--chf-gris-doux);
}

.chf-candidature {
  scroll-margin-top: 90px;
  padding: 32px 22px;
  border-radius: 28px;
  background: var(--chf-vert);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chf-candidature h2 {
  font-size: 32px;
  line-height: 1.1;
}
.chf-candidature p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.chf-candidature .chf-lien { align-self: center; justify-content: center; text-align: center; }

/* Bandeau liens chauffeurs (pied de la maquette) */
.chf-pied {
  padding: 24px var(--chf-marge) 32px;
  border-top: 1px solid var(--chf-filet);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  color: var(--chf-gris-doux);
}
.chf-pied__marque strong { display: block; letter-spacing: 0.04em; color: var(--chf-encre); }
.chf-pied__liens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
}
.chf-pied__liens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--chf-vert-texte);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.chf-pied__liens a:hover { color: var(--chf-nuit); }

/* ============================================================
 * Tablette : un peu plus d'air, même mise en page que le téléphone
 * ============================================================ */
@media (min-width: 600px) {
  .chf { --chf-marge: 40px; }
  .chf-hero__media { height: 600px; }
  .chf-hero__texte { min-height: 600px; max-width: 720px; }
  .chf-hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .chf-hero__actions .chf-btn { padding: 0 28px; }
  .chf-hero__espace { flex-basis: 100%; justify-content: flex-start; margin-top: 0; }
  .chf-telephone-cadre { max-width: 560px; }
}

/* ============================================================
 * Ordinateur (maquette 1440 px)
 * ============================================================ */
@media (min-width: 960px) {
  .chf {
    /* gouttière 72 px à 1440, contenu plafonné à 1296 px sur grand écran */
    --chf-marge: max(clamp(32px, 5vw, 72px), calc((100% - 1296px) / 2));
  }
  .chf-tel { display: none; }
  .chf-ordi { display: inline; }

  /* Hero : texte à gauche, photo à droite */
  .chf-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 720px;
  }
  .chf-hero__media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    height: auto;
  }
  .chf-hero__media img { object-position: 50% 35%; }
  .chf-hero__voile { display: none; }
  .chf-hero__carte {
    display: flex;
    position: absolute;
    left: 32px;
    bottom: 32px;
    width: 330px;
    max-width: calc(100% - 64px);
    gap: 10px;
    box-shadow: 0 2px 4px rgba(12, 47, 44, 0.10), 0 18px 40px rgba(12, 47, 44, 0.28);
  }
  .chf-hero__carte .chf-demande__trajet { font-size: 20px; }
  .chf-hero__carte .chf-demande__infos { font-size: 13px; }
  .chf-hero__carte .chf-demande__quand { font-size: 12px; }
  .chf-hero__carte .chf-demande__etiquette { font-size: 10.5px; }

  .chf-hero__corps {
    grid-column: 1;
    grid-row: 1;
    padding: 112px clamp(32px, 5vw, 72px) 72px max(clamp(32px, 5vw, 72px), calc((200% - 1296px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
  }
  .chf-hero__texte {
    min-height: 0;
    max-width: none;
    padding: 0;
    gap: 26px;
    justify-content: flex-start;
  }
  .chf-hero__texte .chf-surtitre { color: var(--chf-menthe); }
  .chf-hero h1 {
    font-size: clamp(48px, 4.75vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.01em;
  }
  .chf-hero__chapo {
    max-width: 520px;
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
  }
  .chf-hero__actions {
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 22px;
    row-gap: 14px;
  }
  .chf-hero__actions .chf-btn { min-height: 58px; padding: 0 28px; }
  .chf-hero__delai { font-size: 15px; text-align: left; }

  /* Zéro commission */
  .chf-zero {
    padding: 96px var(--chf-marge);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: center;
  }
  .chf-zero__chiffre { gap: 16px; }
  .chf-zero__zero { font-size: clamp(180px, 19.5vw, 280px); line-height: 0.78; letter-spacing: -0.05em; }
  .chf-zero__pourcent { font-size: clamp(90px, 9.75vw, 140px); line-height: 0.85; }
  .chf-zero__texte { display: flex; flex-direction: column; gap: 18px; }
  .chf-zero h2 { margin: 0; font-size: clamp(40px, 3.6vw, 52px); line-height: 1.08; }
  .chf-zero p { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.6; }

  /* Avantages : grille 3 x 2 */
  .chf-avantages { padding: 96px var(--chf-marge); gap: 44px; }
  .chf-avantages__tete {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
  .chf-avantages__tete .chf-surtitre { order: 2; flex: none; }
  .chf-avantages h2 { font-size: clamp(40px, 3.6vw, 52px); line-height: 1.08; max-width: 720px; }
  .chf-avantages__liste {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 48px;
  }
  .chf-avantage {
    flex-direction: column;
    gap: 10px;
    padding: 26px 0;
    border-top: 1px solid rgba(10, 10, 10, 0.16);
  }
  .chf-avantage:nth-child(-n+3) { border-top: 2px solid var(--chf-encre); }
  .chf-avantage:last-child { border-bottom: 0; }
  .chf-avantage__num { padding-top: 0; }
  .chf-avantage__corps { gap: 10px; }
  .chf-avantage__corps strong { font-size: 21px; }
  .chf-avantage__corps span { font-size: 16px; line-height: 1.55; }

  /* Étapes à gauche, téléphone à droite */
  .chf-etapes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
    align-items: center;
    padding: 96px var(--chf-marge);
    background: var(--chf-papier);
  }
  .chf-telephone-cadre { order: 0; padding: 0; max-width: none; }
  .chf-etapes__texte { padding: 0; gap: 26px; background: none; }
  .chf-etapes h2 { font-size: clamp(40px, 3.6vw, 52px); line-height: 1.08; }
  .chf-etapes__liste { display: flex; flex-direction: column; gap: 20px; }
  .chf-etape { gap: 18px; align-items: flex-start; }
  .chf-etape:not(:last-child)::before { display: none; }
  .chf-etape__num { width: 40px; height: 40px; font-size: 16px; }
  .chf-etape__corps { padding: 0; }
  .chf-etape__corps strong { font-size: 19px; }
  .chf-etape__corps span { font-size: 16px; }

  .chf-telephone { border-radius: 32px; padding: 36px; gap: 18px; }
  .chf-telephone .chf-demande { border-radius: 22px; padding: 22px; gap: 14px; }
  .chf-telephone .chf-demande__trajet { font-size: 26px; }
  .chf-telephone .chf-demande__etiquette { font-size: 11px; }
  .chf-telephone .chf-demande__quand { font-size: 13px; }
  .chf-telephone .chf-demande__bas { padding-top: 14px; }
  .chf-telephone .chf-demande__prix { font-size: 14px; }
  .chf-telephone .chf-demande__offre { padding: 12px 18px; font-size: 15px; }
  .chf-telephone__note { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); }

  /* Documents à gauche, candidature à droite */
  .chf-documents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: stretch;
    padding: 96px var(--chf-marge);
  }
  .chf-documents__liste-bloc { gap: 20px; }
  .chf-documents h2 { font-size: clamp(36px, 3.05vw, 44px); line-height: 1.1; }
  .chf-pieces { padding: 6px 24px; border-radius: 22px; }
  .chf-pieces li { gap: 14px; padding: 16px 0; font-size: 17px; }

  .chf-candidature {
    border-radius: 32px;
    padding: clamp(36px, 3.9vw, 56px);
    justify-content: center;
    gap: 22px;
  }
  .chf-candidature h2 { font-size: clamp(40px, 3.9vw, 56px); line-height: 1.04; }
  .chf-candidature p { font-size: 18px; line-height: 1.55; }
  .chf-candidature .chf-btn { align-self: flex-start; min-height: 58px; padding: 0 28px; }
  .chf-candidature .chf-lien { align-self: flex-start; justify-content: flex-start; text-align: left; }
  .chf-pied__marque strong { display: inline; }

  .chf-pied {
    padding: 32px var(--chf-marge);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

/* Texte lu par les lecteurs d'écran, invisible à l'écran */
.chf-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Avant l'ouverture de La Conciergerie (chauffeur.html) */
.chf-avant-ouverture {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(159, 224, 211, 0.16);
  border: 1px solid rgba(159, 224, 211, 0.4);
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
}
.chf-avant-ouverture[hidden] { display: none; }
