/* La landing page de Dar Lhkaya : les couleurs du thème de l'app (ADR 0061), Inter servie avec la page.
   Pensée d'abord pour le téléphone ; au-delà de 900 px, la mise en page de l'ordinateur. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(polices/inter-latin.woff2) format("woff2");
}

:root {
  --nuit: #0A1650;
  --nuit-profonde: #08103C;
  --carte: #1B2559;
  --bord: #313965;
  --bord-champ: #6C6E86;
  --texte: #FFF3D6;
  --discret: #BAB5B0;
  --or: #FBC530;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--or); }
a:hover { color: var(--texte); }
input:focus-visible, button:focus-visible, a:focus-visible, audio:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
}

h1, h2, h3, p { margin: 0; }
h1 { font-weight: 800; font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-weight: 600; font-size: 18px; line-height: 1.4; }

.discret { color: var(--discret); }
.petit { font-size: 14px; }
.fort { font-weight: 600; }

/* L'en-tête */
.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 8px;
}
.marque { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.entete .marque img { width: 44px; height: 44px; border-radius: 11px; }
.entete .marque span { font-size: 20px; letter-spacing: -0.01em; }
.entete .bouton-entete { display: none; }

/* Les boutons */
.bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.bouton-plein { background: var(--or); color: var(--nuit); border: 0; }
.bouton-plein:hover { background: #FFD65C; color: var(--nuit); }
.bouton-plein:disabled { opacity: 0.6; cursor: wait; }
.bouton-contour { border: 1px solid var(--bord-champ); color: var(--texte); }
.bouton-contour:hover { border-color: var(--texte); }

/* L'accueil */
.accueil {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 8px;
}
.accueil-texte { display: flex; flex-direction: column; gap: 16px; }
.surtitre, .genre {
  color: var(--or);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.genre { font-size: 13px; }
.chapeau { color: var(--discret); }
.actions { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.note { font-size: 14px; color: var(--discret); }
.maison {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  object-fit: cover;
}

/* Les sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px 8px;
}
.carte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  background: var(--carte);
  border: 1px solid var(--bord);
}
.carte h3 { font-weight: 800; font-size: 21px; line-height: 1.3; }
.carte .discret { font-size: 16px; }

/* Les extraits */
.extraits { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.extraits audio { width: 100%; height: 44px; margin-top: 6px; }
.infos { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.infos .discret { font-size: 14px; }

/* Les étapes */
.etapes {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.etapes li { display: flex; gap: 16px; }
.etapes li > div { display: flex; flex-direction: column; gap: 4px; }
.etapes .discret { font-size: 16px; }
.numero {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--or);
  color: var(--nuit);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* La liste d'attente */
#liste { padding-left: 16px; padding-right: 16px; padding-bottom: 64px; }
.carte-liste { gap: 16px; padding: 24px 20px; border-radius: 20px; }
.carte-liste h2 { font-size: 26px; }
.liste-texte { display: flex; flex-direction: column; gap: 16px; }
form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
form[hidden] { display: none; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ label { font-weight: 600; font-size: 15px; }
.champ input {
  height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--bord-champ);
  background: var(--nuit-profonde);
  color: var(--texte);
  font: inherit;
}
.champ input::placeholder { color: #8E8A99; }
.accord { display: flex; gap: 12px; align-items: flex-start; }
.accord input { flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--or); }
.accord label { font-size: 15px; line-height: 1.5; }
.erreur { color: #FFB4A8; font-size: 15px; }
.erreur:empty { display: none; }
.confirmation {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: var(--nuit-profonde);
}
.confirmation[hidden] { display: none; }
.confirmation svg { flex: 0 0 24px; margin-top: 2px; }
.confirmation > div { display: flex; flex-direction: column; gap: 4px; }
.confirmation .discret { font-size: 16px; }

/* Le pied */
.pied { background: var(--nuit-profonde); }
.pied-dedans {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}
.pied .marque { flex-wrap: wrap; gap: 10px; }
.pied .marque img { width: 32px; height: 32px; border-radius: 8px; }
.pied-devise { flex-basis: 100%; font-weight: 400; font-size: 15px; }
.pied nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pied nav .discret { font-size: 13px; }

/* L'ordinateur */
@media (min-width: 900px) {
  body { font-size: 18px; line-height: 1.6; }
  h1 { font-size: 60px; line-height: 1.08; letter-spacing: -0.025em; }
  h2 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; }

  .entete { padding: 28px 40px 0; }
  .entete .marque img { width: 48px; height: 48px; border-radius: 12px; }
  .entete .marque span { font-size: 22px; }
  .entete .bouton-entete { display: inline-flex; min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 16px; }

  .accueil { flex-direction: row; align-items: center; gap: 56px; padding: 72px 40px 24px; }
  .accueil-texte { flex: 1 1 420px; gap: 20px; }
  .chapeau { font-size: 20px; max-width: 560px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions .bouton { display: inline-flex; min-height: 54px; }
  .note { font-size: 15px; }
  .maison { flex: 1 1 360px; border-radius: 24px; }

  .section { padding: 104px 40px 0; }
  .carte { padding: 28px; border-radius: 18px; gap: 12px; }
  .carte h3 { font-size: 24px; }
  .carte .discret { font-size: 17px; }
  .extraits { flex-direction: row; gap: 24px; margin-top: 20px; }
  .extraits .carte { flex: 1 1 340px; }
  .infos { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 15px; }

  .etapes { flex-direction: row; flex-wrap: wrap; gap: 32px 28px; margin-top: 28px; }
  .etapes li { flex: 1 1 180px; flex-direction: column; gap: 12px; }
  .etapes h3 { font-size: 19px; }
  .numero { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 20px; }

  #liste { padding: 112px 40px 96px; }
  .carte-liste { flex-direction: row; flex-wrap: wrap; gap: 40px 56px; padding: 48px; border-radius: 24px; }
  .carte-liste h2 { font-size: 36px; }
  .liste-texte { flex: 1 1 340px; }
  .liste-formulaire { flex: 1 1 380px; }
  form button { align-self: flex-start; min-height: 54px; padding: 0 32px; }

  .pied-dedans { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 40px 40px 48px; }
  .pied .marque { gap: 12px; }
  .pied .marque img { width: 36px; height: 36px; border-radius: 9px; }
  .pied-devise { flex-basis: auto; }
  .pied nav { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .pied nav .discret { font-size: 15px; }
}
