:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #f2f2f7;
  --text: #0a0a0a;
  --muted: #9e9e9e;
  --accent: #ef1d26;
  --border: #e0e0e0;
  --shadow-glossy: 0 2px 4px 0 rgba(255, 255, 255, 0.45) inset,
    0 -4px 5px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 4px 0 rgba(0, 0, 0, 0.2);
  --accent-soft: #fdeceb;
  --accent-soft-border: rgba(239, 29, 38, 0.18);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-soft-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  /* Courbes de mouvement : décélération naturelle. Pas de rebond ni
     d'élastique — ça attire l'attention sur l'animation au lieu du contenu. */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-tap: 110ms;
  --dur-state: 200ms;
  --dur-enter: 600ms;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 96px;
}

#app {
  padding: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.logo {
  height: 32px;
  display: block;
}

.logo-small {
  height: 24px;
  margin-bottom: 16px;
}

.accueil-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.tagline {
  font-weight: 600;
  font-size: 1rem;
  margin: 20px 0 16px;
}

.section-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.32px;
  margin: 0;
}

.page-title {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 8px 0 16px;
}

/* Espacement fixe logo -> titre de page sur les écrans "Mes alertes" et "Paramètres" */
.logo + .page-title,
.logo + .row-between {
  margin-top: 20px;
}

.section-count {
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
}

.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0;
}

.pill-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-glossy);
}

.pill-button img {
  width: 18px;
  height: 18px;
}

.pill-button:disabled {
  opacity: 0.6;
}

.link-button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.link-button img {
  width: 16px;
  height: 16px;
}

.view.hidden {
  display: none;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.button-group {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.24px;
  margin: 0 0 8px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

form#form-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

input[type="text"] {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

select {
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.select-pill {
  appearance: none;
  -webkit-appearance: none;
  background: #e5e5ea url("/assets/icon-caret-down.svg") no-repeat right 12px center;
  background-size: 14px;
  border: 1px solid #c2c2c2;
  border-radius: 8px;
  padding: 10px 32px 10px 12px;
  width: 100%;
  cursor: pointer;
}

.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-glossy);
}

.btn-primary img {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

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

.zones-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zones-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.zone-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.zones-list .zone-name {
  font-weight: 700;
  font-size: 0.875rem;
}

.zones-list .zone-keywords {
  display: block;
  color: var(--text);
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Les hashtags réellement interrogés sur TikTok : information secondaire,
   affichée en retrait pour que l'utilisateur comprenne ce qui est cherché
   sans confondre avec ses propres mots-clés. */
.zones-list .zone-hashtags {
  display: block;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.35;
  margin-top: 4px;
  word-break: break-word;
}

.field-hint {
  margin-top: -4px;
  font-size: 0.75rem;
}

.zone-daterange {
  width: auto;
  font-size: 0.875rem;
  padding: 10px 32px 10px 10px;
}

.btn-icon-delete {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e5ea;
  border: 1px solid #c2c2c2;
  border-radius: 999px;
  padding: 8px;
  cursor: pointer;
}

.btn-icon-delete img {
  width: 20px;
  height: 20px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.filter-chip {
  flex-shrink: 0;
  background: rgba(10, 10, 10, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip.active {
  background: var(--text);
  border-color: var(--text);
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-glossy);
}

.listing-posted {
  font-size: 0.75rem;
  color: var(--muted);
}

.listings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.listing-card:active {
  border-color: var(--accent);
}

.listing-card-link {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.listing-delete {
  flex-shrink: 0;
  padding: 6px;
}

.listing-delete img {
  width: 18px;
  height: 18px;
}

.date-group-label {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.listing-new-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 6px;
}

.listing-card-link img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  flex-shrink: 0;
}

.listing-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.listing-zone {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.listing-caption {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.24px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.listing-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.listing-contact {
  font-size: 0.8rem;
  color: #4ade80;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
}

.tabbar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  background: #000000;
  border-radius: 999px;
  padding: 10px;
  margin-bottom: env(safe-area-inset-bottom);
  box-shadow: var(--shadow-glossy);
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 76px;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: #9ca3af;
  font-family: inherit;
  font-size: 0.65rem;
  cursor: pointer;
}

.tab-label {
  white-space: nowrap;
}

.tab-icon {
  width: 22px;
  height: 22px;
}

.tab.active {
  color: white;
  font-weight: 600;
}

/* --- Fenêtre de confirmation (suppression) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.37);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 66px 16px;
  z-index: 20;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: white;
  border-radius: 32px;
  padding: 24px;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.modal-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.modal-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.modal-close img {
  width: 40px;
  height: 40px;
}

.modal-badge {
  width: 100px;
  height: 100px;
}

.modal-title {
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
  margin: 0 0 4px;
}

/* Fin du flux "mot de passe oublié" : même police que les autres titres de
   ce flux (Connexion, Inscription, etc.), contrairement aux autres modales
   (suppression, succès du Compte) qui gardent le style générique. */
#reset-success-modal .modal-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 8px;
}

.modal-description {
  font-weight: 500;
  font-size: 0.875rem;
  color: #424242;
  text-align: center;
  margin: 0;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.modal-confirm {
  width: 100%;
  padding: 18px 16px;
}

.modal-cancel {
  width: 100%;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  color: black;
  border-radius: 999px;
  padding: 18px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}

/* --- Écran de bienvenue (première visite) --- */
.onboarding-hero {
  margin-top: 24px;
  height: 237px;
  border: 4px solid var(--border);
  border-radius: 32px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  color: white;
  overflow: hidden;
}

.onboarding-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 29%, black 100%);
}

.onboarding-hero-dots {
  display: flex;
  gap: 3px;
  align-items: center;
  position: relative;
  margin-bottom: 4px;
}

.onboarding-hero-dots .dot {
  width: 5px;
  height: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
}

.onboarding-hero-dots .dot.active {
  height: 16px;
  background: white;
}

.onboarding-hero-title {
  position: relative;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.onboarding-hero-text {
  position: relative;
  font-weight: 500;
  font-size: 0.75rem;
  color: #f3f4f6;
  margin: 0;
}

.onboarding-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.onboarding-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 3rem;
  margin: 0;
}

.onboarding-subtitle {
  font-weight: 600;
  font-size: 1.125rem;
  color: #616161;
  margin: 0;
}

.onboarding-button {
  width: 300px;
  justify-content: center;
  padding: 16px;
}

/* --- Authentification (connexion, inscription, mdp oublié, OTP) --- */
.auth-shell {
  padding: 16px;
  padding-bottom: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.auth-top-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-top-row .logo {
  margin-bottom: 0;
}

.auth-view.hidden {
  display: none;
}

/* En-tête flèche+titre+flèche invisible (pour centrer le titre) utilisé par
   les sous-écrans du Compte (Modifier profil, Sécurité, Support) — distinct
   du header logo+flèche de login.html. */
.auth-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.btn-circle-back {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px;
  cursor: pointer;
}

.btn-circle-back img {
  width: 21px;
  height: 21px;
}

.btn-circle-back.hidden {
  display: none;
}

.btn-circle-back.invisible {
  visibility: hidden;
}

.auth-back-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.auth-header-title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.3px;
  margin: 0;
}

/* Même traitement que .onboarding-title (Playfair Display italique) plutôt
   que la police payante "Mintage Twentys" de la maquette, pour rester
   cohérent avec le reste de l'appli sans dépendance supplémentaire. */
.auth-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 12px;
}

.auth-subtitle {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  margin: 0 0 24px;
}

.otp-email-bold {
  font-weight: 700;
  color: var(--text);
}

.field-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label-bold {
  font-weight: 700;
  font-size: 0.8125rem;
  margin: 0;
}

.field-card input[type="text"],
.field-card input[type="email"],
.field-card input[type="password"],
.field-card textarea {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

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

.field-card input::placeholder,
.field-card textarea::placeholder {
  color: #c2c2c2;
  font-weight: 500;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 40px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle img {
  width: 20px;
  height: 20px;
}

.field-forgot-link {
  display: flex;
  justify-content: flex-end;
}

.field-forgot-link button {
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.password-strength {
  background: white;
  border: 1px solid #ededed;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strength-track {
  background: #f5f5f5;
  height: 10px;
  border-radius: 9px;
  overflow: hidden;
}

.strength-fill {
  background: #d80027;
  height: 10px;
  border-radius: 36px;
  width: 0%;
  transition: width 0.2s ease;
}

.strength-hint {
  color: #616161;
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: -0.22px;
  margin: 0;
}

.strength-list {
  color: #616161;
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: -0.22px;
  margin: 0;
  padding-left: 16.5px;
}

.strength-list li.met {
  color: #34c759;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 0.875rem;
}

.auth-switch {
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 24px;
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.form-error {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
  margin: -12px 0 16px;
  min-height: 1.2em;
}

/* --- Vérification OTP --- */
.otp-groups {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.otp-group {
  display: flex;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.15s ease, border-width 0.15s ease;
}

.otp-group.invalid {
  border-width: 2px;
  border-color: var(--accent);
}

.otp-group.valid {
  border-width: 2px;
  border-color: #34c759;
}

.otp-digit {
  width: 48px;
  height: 64px;
  text-align: center;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
}

.otp-digit + .otp-digit {
  border-left: 1.5px solid var(--border);
}

/* Pastille de statut (comme la maquette) : fond teinté + texte/icône de la
   même couleur, pas juste du texte brut. */
.otp-feedback {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: -8px auto 24px;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.otp-feedback.invalid,
.otp-feedback.valid {
  display: flex;
}

.otp-feedback img {
  width: 14px;
  height: 14px;
}

.otp-feedback.invalid {
  background: rgba(239, 29, 38, 0.12);
  color: var(--accent);
}

.otp-feedback.valid {
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
}

.otp-resend-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.otp-resend-label {
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.otp-resend-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.otp-resend-action:not(:disabled) {
  color: var(--accent);
}

.otp-resend-action img {
  width: 16px;
  height: 16px;
}

/* --- Onglet Compte --- */
.account-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.account-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.account-avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: white;
  border: 5px solid #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.account-avatar img {
  width: 42px;
  height: 54px;
}

.account-avatar-edit {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 7px;
  display: flex;
  cursor: pointer;
}

.account-avatar-edit img {
  width: 20px;
  height: 20px;
}

.account-name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.8px;
  margin: 0;
}

.account-handle {
  color: #757575;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.56px;
  margin: -8px 0 0;
}

.account-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.account-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 12px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.account-menu-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-menu-row-left img {
  width: 24px;
  height: 24px;
}

.account-menu-row span {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.5px;
}

.account-menu-row-caret {
  width: 24px;
  height: 24px;
}

.account-logout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--text);
  border-radius: 12px;
  padding: 16px 12px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.account-logout-row-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-logout-row-left img {
  width: 20px;
  height: 20px;
}

.account-logout-row span {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.5px;
}

.field-readonly-hint {
  color: var(--muted);
  font-size: 0.75rem;
  margin: -20px 0 24px;
}

/* --- Page d'accueil marketing (landing.html) ---
   Système éditorial dédié à cette page uniquement (toutes les classes sont
   préfixées .landing-) : mise en page large desktop (jusqu'à 1200px), gros
   titres serif Playfair, cartes arrondies à ombre douce, tout le reste
   respire davantage que l'app mobile. N'affecte aucune autre page. */

.landing-body {
  padding-bottom: 0;
  overflow-x: hidden;
}

.landing-shell a.btn-primary,
.landing-shell a.btn-secondary {
  text-decoration: none;
  width: fit-content;
}

.landing-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.landing-container {
  max-width: 720px;
  margin: 0 auto;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 10px 10px 20px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.landing-nav .logo {
  height: 22px;
}

.landing-nav a.btn-primary {
  padding: 10px 20px;
}

.landing-hero {
  text-align: center;
  padding: 72px 16px 0;
  position: relative;
  z-index: 0;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.landing-hero-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 auto;
  max-width: 725px;
}

.landing-hero-subtitle {
  color: #616161;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
  max-width: 561px;
  margin: 16px auto 0;
}

.landing-hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
}

.landing-hero-ctas .btn-primary {
  padding: 19px 32px;
  font-size: 1rem;
}

.landing-hero-ctas .btn-secondary {
  padding: 19px 32px;
  font-size: 1rem;
  background: white;
}

.landing-section {
  padding: 64px 16px;
}

.landing-section-steps {
  padding: 80px 16px 128px;
}

.landing-section-alt {
  background: var(--card);
  border-radius: 40px;
}

.landing-section-eyebrow {
  display: block;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.landing-section-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.landing-section-subtitle {
  color: var(--muted);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  max-width: 560px;
  margin: 16px auto 0;
}

.landing-diff-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Comparaison Sans/Avec Tonchez --- */
.landing-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 40px auto 0;
}

.landing-compare-card {
  border-radius: 32px;
  padding: 28px;
}

.landing-compare-sans {
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.landing-compare-avec {
  background: var(--text);
  color: white;
  display: flex;
  flex-direction: column;
}

.landing-compare-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.landing-compare-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.landing-compare-sans .landing-compare-label {
  color: var(--accent);
}

.landing-compare-avec .landing-compare-label {
  color: white;
}

.landing-compare-label img {
  width: 20px;
  height: 20px;
}

.landing-compare-logo {
  height: 18px;
  width: 87.7px;
  align-self: flex-start;
  display: block;
}

.landing-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.landing-compare-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.4;
}

.landing-compare-list .landing-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 999px;
  border: 1.5px solid;
  background: white;
}

.landing-compare-list .landing-pill-icon img {
  width: 10px;
  height: 10px;
}

.landing-compare-sans .landing-pill-icon {
  border-color: var(--accent);
}

.landing-compare-sans .landing-pill-icon img {
  transform: rotate(180deg);
}

.landing-compare-avec .landing-pill-icon {
  border-color: #34c759;
  background: transparent;
}

.landing-compare-avec .landing-compare-list {
  color: white;
  flex: 1;
}

.landing-stat-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #46c12d;
  border-radius: 999px;
  padding: 6px 20px 6px 6px;
  margin-top: 24px;
  width: fit-content;
}

.landing-stat-icon {
  background: white;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-stat-icon img {
  width: 16px;
  height: 16px;
}

.landing-stat-value {
  font-family: "Baloo Tamma 2", cursive;
  font-size: 1.5rem;
  color: #185e02;
  line-height: 1;
  display: block;
}

.landing-stat-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
  line-height: 1.2;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 48px auto 0;
}

.landing-feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.landing-feature-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.landing-feature-icon-circle img {
  width: 22px;
  height: 22px;
}

.landing-feature-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 8px;
}

.landing-feature-benefit {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}

/* --- Mockup de téléphone réutilisable (héros + étapes) --- */
.landing-phone-mockup {
  position: relative;
  aspect-ratio: 418.442 / 848.758;
}

.landing-phone-screen {
  position: absolute;
  top: 2.9%;
  left: 5.9%;
  right: 5.9%;
  bottom: 2.9%;
  border-radius: 13%;
  overflow: hidden;
  background: black;
}

.landing-phone-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.landing-phone-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Bandeau visuel du héros : reprend exactement la bande basse de la maquette
   (illustration ville + halo + mockup coupé au ras du bas de la section), donc
   pleine largeur d'écran et ratio naturel — aucun recadrage CSS. */
/* --- Hero : la vidéo de présentation posée sur la ville ---------------
   Maquette Figma 146:10812. Toutes les valeurs ci-dessous sont celles du
   design, exprimées en pourcentage de la largeur de la frame (1440) pour
   que la composition tienne à toutes les tailles :
     fond de ville  1440 × 776   (frame 146:10813)
     carte vidéo     980 × 560   à x=230, et son bas à 42 px du bas du fond
   soit : côtés 230/1440 = 15.97 %, bas 42/1440 = 2.92 %. */
.landing-hero-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Écart exact de la maquette entre le bas des boutons et le haut de la
     carte (bas du bloc texte à y=440, haut de la carte à y=472). */
  margin-top: 32px;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

/* La ville, derrière la carte et débordant sur le bloc texte comme dans la
   maquette (le fond démarre à y=298, bien au-dessus des boutons).
   L'étage n'a pas d'autre enfant que la carte : sa hauteur EST celle de la
   carte, donc des pourcentages verticaux reproduisent exactement les
   proportions du design, à n'importe quelle largeur d'écran :
     haut   -174 / 560 = -31.0714 %
     hauteur 776 / 560 = 138.5714 %
   ce qui laisse 42/560 = 7.5 % de ville sous la carte. */
.landing-hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: -31.0714%;
  height: 138.5714%;
  background: url("/assets/figma/hero-city-bg.svg") center bottom / 100% auto
    no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* Le cadre clair autour de l'écran : fond, bordure et ombres internes
   repris tels quels du nœud 146:13236. */
.landing-hero-video {
  position: relative;
  width: 100%;
  max-width: 980px;
  padding: 10px;
  border-radius: 36px;
  background: rgba(0, 0, 0, 0.02);
  box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.04),
    inset 0 0 70px 0 rgba(0, 0, 0, 0.02), inset 0 0 12px 0 rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

/* La bordure de la maquette est en retrait d'1 px (inset px / rounded-[35px]),
   pas sur le bord du cadre : un simple `border` l'épaissirait visuellement. */
.landing-hero-video::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 35px;
  pointer-events: none;
}

.landing-hero-screen {
  position: relative;
  aspect-ratio: 960 / 540;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 26px;
  overflow: hidden;
  background: #0f0f10;
}

.landing-hero-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bouton « Activer le son » : nœud 146:13242, à 16 px du haut et de la
   droite de l'écran. `color` et `font-family` sont explicites — sans eux,
   iOS Safari teinte le texte des boutons en bleu système. */
.landing-hero-sound {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(15, 15, 16, 0.24);
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
    inset 0 0 70px 0 rgba(255, 255, 255, 0.02),
    inset 0 0 12px 0 rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: "Geist", "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 19.6px;
  cursor: pointer;
  transition: background var(--dur-state, 200ms) ease;
}

.landing-hero-sound:hover {
  background: rgba(15, 15, 16, 0.4);
}

.landing-hero-sound img {
  display: block;
  flex-shrink: 0;
}

/* Sous cette largeur la carte deviendrait plus haute que le fond : on rend
   la hauteur libre et on garde la ville ancrée en bas. */
@media (max-width: 760px) {
  /* Sur un écran étroit, la ville dessinée pour 1440 px devient illisible :
     on l'agrandit pour en garder les immeubles reconnaissables. */
  .landing-hero-stage::before {
    background-size: 170% auto;
  }

  .landing-hero-video {
    padding: 6px;
    border-radius: 24px;
  }

  .landing-hero-video::before {
    border-radius: 23px;
  }

  .landing-hero-screen {
    border-radius: 18px;
  }

  .landing-hero-sound {
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .landing-hero-sound img {
    width: 15px;
    height: 15px;
  }
}

/* --- Comment ça marche : cartes avec mockup qui dépasse --- */
.landing-steps3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 48px auto 0;
}

.landing-step3-card {
  position: relative;
  background: linear-gradient(to bottom, #ffefef, white);
  border: 1px solid #f0efef;
  border-radius: 24px;
  overflow: hidden;
  padding: 40px 24px 0;
  aspect-ratio: 394.67 / 526.22;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-step3-title {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.landing-step3-desc {
  color: #424242;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 240px;
  margin: 0;
}

.landing-step3-phone {
  position: absolute;
  bottom: -33%;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
}

.landing-cta-band {
  background: var(--text);
  border-radius: 40px;
  padding: 64px 24px;
  text-align: center;
  color: white;
}

.landing-cta-band .landing-section-title {
  color: white;
}

.landing-cta-band .landing-section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.landing-cta-band .btn-primary {
  margin: 32px auto 0;
  padding: 18px 36px;
  font-size: 1rem;
  width: fit-content;
}

.landing-diff-list {
  max-width: 640px;
  margin: 40px auto 0;
}

.landing-diff-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.landing-diff-list li img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.landing-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 32px 16px 8px;
  border-top: 1px solid var(--border);
}

.landing-footer p {
  margin: 0 0 8px;
}

.landing-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 720px) {
  .landing-shell {
    padding: 56px 40px 0;
  }

  .landing-hero {
    padding-top: 40px;
  }

  /* La maquette fait démarrer l'illustration 23px avant la fin des boutons
     (ses premiers pixels sont blancs), d'où la remontée. */
  .landing-hero-visual {
    margin-top: -23px;
  }

  .landing-hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .landing-compare-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .landing-steps3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-diff-list {
    max-width: 720px;
  }

  .landing-diff-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
  }
}

@media (min-width: 1024px) {
  .landing-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === Animations et micro-interactions de la page d'accueil (landing.html) ===

   Contrainte de perfo assumée : public mobile béninois sur téléphones
   d'entrée de gamme et réseau lent. Donc uniquement `transform`, `opacity` et
   `box-shadow` (jamais `width`, `height`, `top` ni marges), aucune animation
   infinie (batterie), aucun `will-change` semé partout, et le seul flou de la
   page est borné à la barre de nav. Tout est neutralisé par
   `prefers-reduced-motion` en bas de ce bloc.

   Les états masqués sont tous sous `.has-reveal`, posée par landing.js : sans
   ce script, rien n'est caché (voir le commentaire en tête de landing.js). */

/* --- 1. Entrée du héros ---------------------------------------------------
   La seule chorégraphie de la page, en CSS pur pour qu'elle démarre sans
   attendre le moindre script. Un enchaînement bien réglé vaut mieux que dix
   micro-animations dispersées. */

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes landing-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.landing-nav,
.landing-hero > .landing-badge,
.landing-hero-title,
.landing-hero-subtitle,
.landing-hero-ctas {
  animation: landing-rise var(--dur-enter) var(--ease-out-expo) both;
}

.landing-hero > .landing-badge {
  animation-delay: 120ms;
}

.landing-hero-title {
  animation-delay: 200ms;
}

.landing-hero-subtitle {
  animation-delay: 300ms;
}

.landing-hero-ctas {
  animation-delay: 390ms;
}

/* L'illustration est en `z-index: -1` et fait `100vw` avec des marges
   négatives : on ne touche surtout pas à son `transform` (ça casserait le
   plein écran et créerait une barre de défilement horizontale), seulement à
   l'opacité. */
.landing-hero-visual {
  animation: landing-fade 800ms var(--ease-out-quart) 480ms both;
}

/* --- 2. Révélation au défilement ----------------------------------------- */

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--dur-enter) var(--ease-out-quart),
    transform var(--dur-enter) var(--ease-out-expo);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}

.has-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Le badge « 90% de gain de temps » arrive après le reste de sa carte : c'est
   le chiffre qu'on veut voir atterrir en dernier. */
.has-reveal .landing-stat-badge {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 420ms var(--ease-out-quart) 520ms,
    transform 420ms var(--ease-out-expo) 520ms;
}

.has-reveal .landing-compare-avec.is-revealed .landing-stat-badge {
  opacity: 1;
  transform: none;
}

/* --- 3. Boutons ----------------------------------------------------------
   Scopé à `.landing-shell` : l'app (index.html / login.html) garde exactement
   le comportement qu'elle a aujourd'hui. */

.landing-shell .btn-primary,
.landing-shell .btn-secondary {
  transition: transform var(--dur-state) var(--ease-out-quart),
    box-shadow var(--dur-state) var(--ease-out-quart),
    background-color var(--dur-state) var(--ease-out-quart),
    border-color var(--dur-state) var(--ease-out-quart),
    color var(--dur-state) var(--ease-out-quart);
}

/* `hover: hover` évite l'état survolé collant après un tap sur mobile. */
@media (hover: hover) {
  .landing-shell .btn-primary:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: var(--shadow-glossy), 0 10px 24px rgba(239, 29, 38, 0.32);
  }

  .landing-shell .btn-secondary:hover {
    transform: translate3d(0, -2px, 0);
    border-color: var(--accent);
    color: var(--accent);
  }
}

.landing-shell .btn-primary:active,
.landing-shell .btn-secondary:active {
  transform: scale(0.97);
  transition-duration: var(--dur-tap);
}

/* Il n'y avait aucun anneau de focus visible sur cette page : au clavier, on
   ne savait pas où on se trouvait. */
.landing-shell a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- 4. Cartes ----------------------------------------------------------- */

.landing-feature-card,
.landing-compare-card {
  transition: transform var(--dur-state) var(--ease-out-quart),
    box-shadow var(--dur-state) var(--ease-out-quart),
    border-color var(--dur-state) var(--ease-out-quart);
}

.landing-feature-icon-circle {
  transition: transform 260ms var(--ease-out-expo);
}

/* Le mockup dépasse de la carte, qui est en `overflow: hidden` : le faire
   remonter au survol en découvre un peu plus. */
.landing-step3-phone {
  transition: transform 320ms var(--ease-out-expo);
}

@media (hover: hover) {
  .landing-feature-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--shadow-soft-lg);
    border-color: var(--accent-soft-border);
  }

  .landing-feature-card:hover .landing-feature-icon-circle {
    transform: scale(1.08) rotate(-4deg);
  }

  .landing-compare-sans:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--shadow-soft-lg);
  }

  .landing-compare-avec:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  }

  /* On conserve le `translateX(-50%)` de centrage de style.css. */
  .landing-step3-card:hover .landing-step3-phone {
    transform: translateX(-50%) translateY(-12px);
  }
}

/* --- 5. Barre de nav collante et liens ----------------------------------- */

.landing-nav {
  transition: box-shadow var(--dur-state) var(--ease-out-quart),
    background-color var(--dur-state) var(--ease-out-quart);
}

/* `.is-stuck` est posée par landing.js quand la barre se décolle du haut. Le
   flou est volontairement limité à cette bande de 44px de haut. */
.landing-nav.is-stuck {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.landing-footer a {
  transition: color var(--dur-state) var(--ease-out-quart);
}

@media (hover: hover) {
  .landing-footer a:hover {
    color: var(--text);
    text-decoration: underline;
  }
}

/* --- 6. Mouvement réduit -------------------------------------------------
   landing.js ne pose pas `.has-reveal` dans ce cas, donc rien n'est masqué ;
   cette règle neutralise en plus l'entrée du héros et les transitions de
   survol, qui sont en CSS pur. */

@media (prefers-reduced-motion: reduce) {
  .landing-body *,
  .landing-body *::before,
  .landing-body *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
