/* Portail closing — Camp des Loups. Mobile d'abord (une main, gros boutons). */
:root {
  --noir: #0b0b0c;
  --surface: #151517;
  --surface-2: #1d1d20;
  --bord: #2a2a2e;
  --texte: #f4f4f5;
  --doux: #a1a1aa;
  --rouge: #b00000;
  --rouge-clair: #e23b3b;
  --vert: #22a35a;
  --orange: #d98a1c;
  --bleu: #3b82f6;
  --rayon: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--texte);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 84px; /* place pour la barre du bas */
}
a { color: inherit; }

/* ── En-tête ── */
.entete {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bord);
}
.entete__titre { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 15px; }
.entete__titre span { color: var(--rouge-clair); }
.entete__qui { font-size: 13px; color: var(--doux); }

.page { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; margin: 4px 0 16px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--doux); margin: 24px 0 10px; }

/* ── Barre de navigation du bas ── */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-around;
  background: var(--surface);
  border-top: 1px solid var(--bord);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px; text-decoration: none; color: var(--doux); font-size: 11px; position: relative;
}
.nav a .ico { font-size: 20px; line-height: 1; }
.nav a.actif { color: var(--texte); }
.nav a.actif .ico { filter: none; }
.pastille {
  position: absolute; top: 0; left: 55%;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--rouge); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Messages ── */
.messages { list-style: none; padding: 0; margin: 0 0 12px; }
.messages li { padding: 12px 14px; border-radius: var(--rayon); margin-bottom: 8px; font-size: 15px; }
.messages .success { background: rgba(34, 163, 90, 0.15); border: 1px solid var(--vert); }
.messages .error { background: rgba(226, 59, 59, 0.15); border: 1px solid var(--rouge-clair); }

/* ── Onglets / filtres ── */
.onglets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.onglets a {
  flex: none; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-size: 14px;
  background: var(--surface); border: 1px solid var(--bord); color: var(--doux);
}
.onglets a.actif { background: var(--texte); color: var(--noir); border-color: var(--texte); font-weight: 600; }

.recherche { display: flex; gap: 8px; margin-bottom: 14px; }
.recherche input, .recherche select { flex: 1; min-width: 0; }

/* ── Champs ── */
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px = pas de zoom auto sur iPhone */
  color: var(--texte); background: var(--surface-2);
  border: 1px solid var(--bord); border-radius: 10px; padding: 12px;
}
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--doux); margin: 10px 0 6px; }

/* ── Boutons ── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 0; border-radius: var(--rayon); cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--surface-2); color: var(--texte); border: 1px solid var(--bord);
}
.btn:active { transform: scale(0.98); }
.btn--rouge { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn--vert { background: var(--vert); border-color: var(--vert); color: #fff; }
.btn--petit { min-height: 40px; font-size: 14px; padding: 8px 12px; width: auto; }
.btn[disabled] { opacity: 0.5; }

.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.contacts .btn { flex-direction: column; gap: 2px; min-height: 64px; font-size: 13px; }
.contacts .btn .ico { font-size: 22px; }
.btn--appel { background: var(--vert); border-color: var(--vert); color: #fff; }
.btn--wa { background: #128c4a; border-color: #128c4a; color: #fff; }

/* ── Cartes ── */
.carte {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 14px; margin-bottom: 10px;
}
.carte__haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.carte__nom { font-weight: 700; font-size: 17px; }
.carte__infos { color: var(--doux); font-size: 14px; margin-top: 4px; }
.carte__bas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.vide { color: var(--doux); text-align: center; padding: 40px 12px; }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--doux); border: 1px solid var(--bord); white-space: nowrap;
}
.statut-nouveau { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.4); }
.statut-contacte { background: rgba(217, 138, 28, 0.15); color: #fcd34d; border-color: rgba(217, 138, 28, 0.4); }
.statut-essai_reserve { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border-color: rgba(168, 85, 247, 0.4); }
.statut-venu { background: rgba(20, 184, 166, 0.15); color: #5eead4; border-color: rgba(20, 184, 166, 0.4); }
.statut-inscrit { background: rgba(34, 163, 90, 0.18); color: #86efac; border-color: rgba(34, 163, 90, 0.5); }
.statut-perdu { background: rgba(113, 113, 122, 0.15); color: #a1a1aa; }
.tag--alerte { background: rgba(226, 59, 59, 0.15); color: #fca5a5; border-color: rgba(226, 59, 59, 0.4); }

/* ── Fiche ── */
.bloc { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px; margin-bottom: 12px; }
.ligne { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--bord); font-size: 15px; }
.ligne:last-child { border-bottom: 0; }
.ligne span:first-child { color: var(--doux); }
.ligne span:last-child { text-align: right; word-break: break-word; }
.proprio { padding: 12px 14px; border-radius: var(--rayon); background: var(--surface-2); color: var(--doux); font-size: 14px; margin: 12px 0; }
details summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.pile > * + * { margin-top: 10px; }

.historique { list-style: none; padding: 0; margin: 0; }
.historique li { padding: 10px 0; border-bottom: 1px solid var(--bord); font-size: 14px; }
.historique .quand { color: var(--doux); font-size: 12px; }

/* ── Gains ── */
.gros-chiffre { font-size: 44px; font-weight: 800; line-height: 1; }
.gros-chiffre small { font-size: 18px; color: var(--doux); font-weight: 600; }
.jauge { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin: 10px 0 6px; }
.jauge > div { height: 100%; background: linear-gradient(90deg, var(--rouge), var(--rouge-clair)); }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { background: var(--surface-2); border-radius: 10px; padding: 12px; }
.mini b { display: block; font-size: 22px; }
.mini span { color: var(--doux); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--bord); }
th { color: var(--doux); font-weight: 600; }
td.num, th.num { text-align: right; }

/* ── Connexion ── */
.connexion { max-width: 380px; margin: 12vh auto 0; padding: 16px; }
.connexion .logo { font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.connexion .logo span { color: var(--rouge-clair); }
.connexion p { text-align: center; color: var(--doux); margin: 0 0 24px; }

/* ── Vitesse de réponse ── */
.bandeau-nouveau, .bandeau-retard {
  display: block; text-decoration: none; text-align: center; font-weight: 700;
  padding: 12px 14px; border-radius: var(--rayon); margin-bottom: 12px;
}
.bandeau-nouveau { background: var(--rouge); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
.bandeau-nouveau[hidden] { display: none; }
.bandeau-retard { background: rgba(226, 59, 59, 0.15); border: 1px solid var(--rouge-clair); color: #fca5a5; }
@keyframes pulse { 50% { opacity: 0.75; } }
.carte--retard { border-color: var(--rouge-clair); box-shadow: inset 4px 0 0 var(--rouge-clair); }
.statut-a_relancer { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; border-color: rgba(236, 72, 153, 0.4); }

/* ── Liste ── */
.compteur { color: var(--doux); font-size: 13px; margin: 4px 2px 10px; }
.filtres { padding: 10px 14px; }
.filtres summary { color: var(--doux); font-weight: 600; }
.filtres label { margin-top: 8px; }
.fab {
  position: fixed; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 11;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--rouge); color: #fff; text-decoration: none; font-size: 30px; line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* ── Formulaires ── */
.choix-motif { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.puce, .case {
  display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--bord);
  color: var(--texte); font-size: 15px;
}
.case { margin-top: 10px; }
.puce input, .case input { width: 20px; height: 20px; flex: none; accent-color: var(--rouge); }
.apercu-message { margin: -4px 0 12px; font-size: 14px; color: var(--doux); }
.apercu-message p { margin: 6px 0 0; padding: 10px 12px; background: var(--surface); border-radius: 10px; color: var(--texte); }
.hist-alerte b { color: #fca5a5; }

/* ── Boîte à outils ── */
.texte-outil { margin-top: 8px; font-size: 15px; color: var(--texte); }
.message-brut { white-space: normal; color: var(--doux); }
.etape { display: flex; gap: 12px; align-items: flex-start; }
.etape__num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rouge); color: #fff; font-weight: 800; font-size: 14px;
}
details.bloc summary .tag { margin-left: 6px; font-weight: 600; }
.supports { display: grid; gap: 10px; }
@media (min-width: 560px) { .supports { grid-template-columns: 1fr 1fr; } }
.support img, .support video { display: block; width: 100%; border-radius: 8px; margin-bottom: 10px; background: #000; max-height: 260px; object-fit: cover; }
.support__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
code { font-size: 13px; color: #fcd34d; }

/* Messages types sur la fiche lead */
.modele { border-top: 1px solid var(--bord); padding: 10px 0; }
.modele:first-of-type { border-top: 0; }
.modele summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modele__texte { margin: 8px 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 14px; white-space: pre-line; }
.modele__manque { font-size: 13px; color: #fcd34d; margin: 0 0 8px; }
.modele__envoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.modele__envoi .btn { min-height: 44px; font-size: 13px; padding: 6px; width: 100%; }
.tag--conseil { background: rgba(34, 163, 90, 0.18); color: #86efac; border-color: rgba(34, 163, 90, 0.5); }
.lien-modifier { display: inline-block; margin: 6px 0 0 8px; font-size: 13px; font-weight: 600; color: var(--bleu); text-decoration: none; text-transform: none; letter-spacing: 0; }

/* Conclure */
.lien-envoi { border-top: 1px solid var(--bord); padding: 12px 0; }
.lien-envoi:first-of-type { border-top: 0; }
.lien-envoi > b, .lien-envoi-titre { display: block; margin-bottom: 8px; }
.lien-envoi-titre { border-top: 1px solid var(--bord); padding-top: 12px; }
.lien-envoi select { margin-bottom: 8px; }
.lien-url { font-size: 12px; color: var(--doux); word-break: break-all; margin-bottom: 8px; }

/* Rémunération */
.regles .regle { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bord); }
.regles .regle b { white-space: nowrap; font-size: 17px; }
.regles .regle small { color: var(--doux); }
.ligne small { color: var(--doux); }

/* En-tête : accès Club */
.entete__club { color: var(--texte); font-weight: 700; text-decoration: none; }
.pastille--inline { position: static; display: inline-block; vertical-align: middle; margin-left: 2px; }

/* Planning des essais */
.semaine { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.semaine a { text-decoration: none; }
.jour-titre { margin: 18px 0 8px; font-size: 15px; text-transform: capitalize; }
.jour-titre--auj { color: var(--rouge-clair); }
.seance { padding: 12px 14px; }
.seance__haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.seance__places { font-weight: 800; white-space: nowrap; }
.seance__places--complet { color: #fca5a5; }
.jauge-places { height: 6px; background: var(--surface-2); border-radius: 99px; margin: 8px 0; overflow: hidden; }
.jauge-places > div { height: 100%; background: var(--vert); }
.resa { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--bord); font-size: 14px; }
.resa a { text-decoration: none; }
.pointage { display: flex; gap: 6px; flex: none; }
.pointage form { margin: 0; }
.pointage .btn { min-height: 36px; padding: 6px 10px; font-size: 13px; width: auto; }
.btn--absent { border-color: rgba(226, 59, 59, .5); }
.tag--present { background: rgba(34,163,90,.18); color: #86efac; border-color: rgba(34,163,90,.5); }
