/* Styles propres à Afrisite (en plus de Tailwind). */
[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; background: #0A110E; }
body { overflow-x: clip; }   /* jamais de défilement horizontal sur téléphone */

/* Téléphone : tout un peu plus petit (les tailles Tailwind sont en rem → tout suit la base).
   Les champs de saisie gardent 16 px, sinon l'iPhone zoome tout seul quand on les touche. */
@media (max-width: 640px) {
  html { font-size: 15px; }
  input, textarea, select { font-size: 16px !important; }
}

/* Bouton principal : vert vif */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .6rem 1.2rem;
  background: #0FA765; color: #fff; font-weight: 700;   /* 21/11/2026 : #12B76A → #0FA765 (texte blanc : 2,6 → 3,1) */
  box-shadow: 0 8px 24px -8px rgba(18, 183, 106, .7);
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: #0D9259; }
.btn-primary:active { transform: translateY(1px); }

/* Bouton clair (comme Lovable) */
.btn-clair {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .6rem 1.2rem;
  background: #fff; color: #0F1712; font-weight: 700;
  transition: background .15s;
}
.btn-clair:hover { background: #E8F7EF; }

/* Panneau "verre" sombre posé sur le dégradé */
.verre {
  background: rgba(18, 26, 22, .9);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}

/* Motif géométrique discret, inspiré des tissus africains. */
.motif {
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.07) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,.07) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255,255,255,.07) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,.07) 25%, transparent 25%);
  background-size: 28px 28px;
  background-position: 14px 0, 14px 0, 0 0, 0 0;
}

/* Champs de formulaire (thème sombre) */
.champ {
  width: 100%; border-radius: .9rem; padding: .8rem 1rem; font-size: 1rem;
  background: rgba(255, 255, 255, .05); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.champ::placeholder { color: rgba(255, 255, 255, .35); }
.champ:focus { outline: none; border-color: #3DDC97; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(61, 220, 151, .15); }
.champ.erreur { border-color: #F87171; }
/* Évite le fond jaune/blanc de l'autoremplissage du navigateur */
.champ:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #17211C inset; caret-color: #fff; }

/* Champs en forme de pilule (pages connexion / inscription, façon Lovable) */
.form-arrondi .champ { border-radius: 999px; padding: .8rem 1.3rem; background: transparent; border-color: rgba(255, 255, 255, .18); }
.form-arrondi .champ.pr-20 { padding-right: 5.5rem; }
.form-arrondi label { font-size: 1rem; }

/* Rangée qui défile sur le côté sans barre visible (filtres sur téléphone) */
.sans-barre { scrollbar-width: none; }
.sans-barre::-webkit-scrollbar { display: none; }

/* Curseur clignotant de la démo */
.curseur::after { content: "|"; margin-left: 1px; animation: clignote 1s steps(1) infinite; color: #3DDC97; }
@keyframes clignote { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curseur::after { animation: none; }
}

/* Listes déroulantes (21/11/2026, capture : « Langue du site » invisible dans l'éditeur) : le texte des menus est clair
   (interface sombre) mais Windows dessine la liste des choix sur fond BLANC → texte blanc sur blanc. On fixe les deux
   couleurs des choix, et le navigateur dessine les commandes en mode sombre sur les pages sombres. */
html { color-scheme: dark; }
select option, select optgroup { background-color: #15191c; color: #f4f4f2; }
select option:disabled { color: #9aa3a0; }
