/* ————————— GLOBAL ————————— */
body {
  background: #000;
  color: #fff;
  font-family: sans-serif;
  margin: 0; padding: 0;
}
a { text-decoration: none; }
.dashicons { vertical-align: middle; }

/* ————————— HERO ————————— */
.hero {
  position: relative;
  background: url('/wp-content/uploads/ton-fond.jpg') center/cover no-repeat; /* CHANGE */
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute; top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.6);
}
.hero-nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1;
}
.hero-nav .logo {
  font-size: 1.5rem;
  color: #23eb96;
  font-weight: bold;
}
.hero-buttons a {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  border: 2px solid #23eb96;
  border-radius: 4px;
  color: #23eb96;
  transition: background .3s, color .3s;
  font-weight: bold;
}
.hero-buttons .btn-primary,
.hero-buttons .btn-primary:hover {
  background: #23eb96;
  color: #000;
  border-color: #23eb96;
}
.hero-buttons .btn-outline:hover {
  background: #23eb96;
  color: #000;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem;
}
.hero-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #23eb96;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.hero-content .btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.2rem;
  border-radius: 4px;
}

/* ————————— HOW IT WORKS ————————— */
.how-it-works {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}
.how-it-works h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.steps, .indices-intro {
  flex: 1;
  min-width: 280px;
}
.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.step .dashicons {
  font-size: 1.5rem;
  color: #23eb96;
  margin-right: 0.75rem;
}
.step strong {
  color: #23eb96;
  margin-right: 0.5rem;
}
.indices-intro {
  text-align: center;
}
.indices-intro .dashicons {
  font-size: 3rem;
  color: #23eb96;
}
.indices-intro h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

/* ————————— LOGIN PROMPT ————————— */
.login-prompt {
  max-width: 400px;
  margin: 3rem auto;
  text-align: center;
  padding: 0 2rem;
}
.login-prompt h2 {
  color: #23eb96;
  margin-bottom: 1.5rem;
}

/* ————————— COUNTDOWN ————————— */
.countdown {
  max-width: 300px;
  margin: 2rem auto 4rem;
  text-align: center;
}
.countdown .timer {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #fff;
}
.countdown ol {
  padding-left: 1.2rem;
  text-align: left;
}
.countdown li {
  margin-bottom: 0.5rem;
}

/* ————————— RESPONSIVE ————————— */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { margin: 0 0 0.75rem !important; }
}


/* Assure le scroll toujours actif */
html, body {
  height: auto !important;
  overflow-y: auto !important;
}
/* Conteneur commun */
.tresoria-form {
  background: #000;
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 480px;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Champs */
.tresoria-form input[type="text"],
.tresoria-form input[type="email"],
.tresoria-form input[type="password"],
.tresoria-form input[type="tel"],
.tresoria-form input[type="number"],
.tresoria-form textarea {
  width: 100%;
  padding: .6rem;
  margin-bottom: 1rem;
  background: #111;
  border: 1px solid #28a745;
  border-radius: 4px;
  color: #fff;
}

/* Boutons */
.tresoria-form button {
  width: 100%;
  padding: .75rem;
  background: #28a745;
  border: none;
  border-radius: 4px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}
.tresoria-form button:hover {
  background: #22a240;
}

/* Lien alterné sous chaque form */
.tresoria-form .tresoria-alt-link {
  text-align: center;
  margin-top: 1rem;
}
.tresoria-form .tresoria-alt-link a {
  color: #28a745;
  text-decoration: underline;
}

/* Avatar circulaire si utilisé */
.tresoria-form img#profile_pic_preview {
  display: block;
  margin: 0 auto 1rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

/* Erreurs en rouge */
.duplicate-error {
  color: #ff4d4f;
}

/* Bouton gris et non-cliquable quand disabled */
.tresoria-form button:disabled {
  background: #555 !important;
  color: #ccc !important;
  cursor: not-allowed;
}


 /* Menu Cash Atak (header ou sidebar) */
.cash-atak-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.cash-atak-menu li {
  margin: 0;
}
.cash-atak-menu a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #23eb96;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border: 2px solid #23eb96;
  border-radius: 4px;
  transition: all .2s;
}
.cash-atak-menu a:hover {
  background: #fff;
  color: #23eb96;
}

/* Empêche le débordement horizontal */
html,body{
  max-width:100%;
  overflow-x:hidden;
}

/* La carte Leaflet s’adapte */
#tresoria-map,
.leaflet-container{
  max-width:100%;
}

/* Profil → mêmes couleurs que les formulaires */
.tresoria-profile.tresoria-form{
  background:#fff;          /* fond blanc */
  color:#000;               /* texte noir */
  max-width:480px;
  margin:2rem auto;
  padding:2rem;
  border:1px solid #28a745;
  border-radius:8px;
  box-shadow:0 4px 10px rgba(0,0,0,.15);
}
.tresoria-profile h3{
  margin-top:0;
  color:#28a745;
}
