/* style.css - version améliorée (remplace ou fusionne) */

/* Reset basique */
* { margin: 0; padding: 0; box-sizing: border-box; }
html,body { height: 100%; }

:root{
  --blue-600:#2A7AE2;
  --blue-700:#1f5fcc;
  --accent:#FFA500;
  --bg:#f5f9ff;
  --card:#ffffff;
  --muted:#6b7280;
}

/* Global */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: #0f1724;
  line-height: 1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* NAVBAR (menu.php) */
.navbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  background: linear-gradient(90deg,var(--blue-600),#377ee6);
  padding: 12px 20px;
  border-radius: 12px;
  color: #fff;
  margin: 20px auto;
  max-width: 1100px;
}
.logo { display:flex; align-items:center; gap:10px; }
.logo-text { font-weight:700; font-size:1.2rem; letter-spacing:0.6px; }
.menu { list-style:none; display:flex; gap:18px; align-items:center; }
.menu li a { color: #fff; text-decoration:none; font-weight:600; }
.menu li a:hover { color: var(--accent); }

/* HERO */
.hero-wrap { padding-bottom: 20px; }
.hero {
  display:flex;
  gap: 30px;
  align-items:center;
  justify-content:space-between;
  padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(16,24,40,0.06);
}
.hero-left { flex:1; min-width:280px; }
.hero-right { flex:1; display:flex; align-items:center; justify-content:center; min-width:320px; }

.hero-title { font-size:2rem; color: #052047; margin-bottom:12px; }
.hero-sub { color: var(--muted); margin-bottom:18px; max-width:560px; }

/* IATA form */
.iata-form { display:flex; gap:12px; align-items:center; margin-bottom:8px; }
#iataInput {
  padding:12px 14px;
  border-radius:10px;
  border: 1px solid #e2e8f0;
  font-size:1rem;
  width: 260px;
  background: white;
  box-shadow: inset 0 1px 2px rgba(16,24,40,0.02);
}
.btn-primary {
  background: var(--blue-600);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight:700;
  cursor:pointer;
}
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--blue-600);
  color: var(--blue-600);
  padding:10px 12px;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
}
.btn-ghost:hover { background: var(--blue-600); color: white; }

/* hint + accessibility */
.hint { color: var(--muted); font-size:0.95rem; margin-top:8px; }

/* hero svg */
.map-svg { width:100%; height:320px; max-width:480px; border-radius:12px; overflow:visible; }

/* Features */
.features { margin-top:34px; padding: 30px 0; }
.features h2 { text-align:center; font-size:1.4rem; margin-bottom:20px; color:#06203a; }
.grid { display:grid; grid-template-columns: repeat(2,1fr); gap:18px; }
.feature {
  background: var(--card);
  padding:18px;
  border-radius:12px;
  box-shadow: 0 6px 18px rgba(12,20,40,0.04);
}
.feature h3 { margin: 10px 0; font-size:1.05rem; color:#052047; }
.feature p { color:var(--muted); font-size:0.95rem; }

.icon {
  width:40px; height:40px; fill:var(--accent);
  background: rgba(255,165,0,0.12);
  padding:6px; border-radius:10px;
}

/* CTA */
.cta { margin-top:26px; }
.cta-card {
  background:linear-gradient(90deg, #ffffff, #fbfdff);
  padding: 22px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  box-shadow: 0 8px 30px rgba(12,20,40,0.04);
}
.cta-card h3 { margin-bottom:6px; }
.cta-actions { display:flex; gap:12px; align-items:center; }

/* Footer */
.site-footer { margin-top:40px; padding:18px 0; color:var(--muted); text-align:center; }

/* Responsive */
@media (max-width: 900px) {
  .hero { flex-direction:column-reverse; padding:18px; }
  .grid { grid-template-columns: 1fr; }
  .cta-card { flex-direction:column; text-align:center; }
  .map-svg { height:260px; }
  .menu { display:none; } /* simple responsive : hide menu on small screens, adapt later */
}

/* Small helpers */
.sr-only { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.large { padding:14px 20px; font-size:1.05rem; border-radius:12px; }

/* subtle accent for result messages (used on mission page) */
.result-success { background: linear-gradient(90deg, rgba(38,166,154,0.08), rgba(34,197,94,0.06)); padding:12px; border-radius:8px; color:#064e3b; }
.result-fail { background: rgba(255,235,238,0.6); padding:12px; border-radius:8px; color:#7f1d1d; }
																		
															
.iata-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  margin-bottom: 1rem;
}

.input-wrapper {
  position: relative;
  flex: 1; /* prend tout l’espace disponible */
}

#iataInput {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 1rem;
  background: white;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.02);
  box-sizing: border-box;
}

.suggestions-list {
  position: absolute;
  top: 100%; /* juste sous l'input */
  left: 0;
  right: 0;
  max-height: 180px;
  overflow-y: auto;
  margin: 6px 0 0 0;
  padding: 6px 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  list-style: none;
  z-index: 1000;
}

.suggestion-item {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #052047;
  border-radius: 6px;
}

.suggestion-item:hover,
.suggestion-item:focus {
  background-color: var(--blue-600);
  color: white;
  outline: none;
}


/* ---------- mission gamified styles ---------- */
.badge-card { display:flex; gap:24px; align-items:flex-start; padding:22px; border-radius:12px; }
.badge-left { flex:1; min-width:280px; }
.badge-right { width:320px; display:flex; flex-direction:column; align-items:center; gap:14px; }
.mission-title { font-size:1.4rem; margin-bottom:6px; }
.muted { color:var(--muted); }
.small { font-size:0.9rem; }

.meta-row { display:flex; gap:12px; margin-top:10px; flex-wrap:wrap; }
.meta { background: #fbfdff; padding:8px 10px; border-radius:8px; box-shadow: 0 6px 14px rgba(12,20,40,0.03); min-width:120px; }
.meta-label { font-size:0.8rem; color:var(--muted); }
.meta-value { font-weight:700; margin-top:4px; }

.actions-row { display:flex; gap:10px; align-items:center; margin-top:12px; }

.badge-visual { width:220px; height:220px; display:inline-block; border-radius:12px; overflow:visible; }
.badge-svg { width:100%; height:100%; display:block; border-radius:12px; box-shadow: 0 12px 40px rgba(42,122,226,0.18); transition: transform .35s ease; }
.badge-svg:hover { transform: translateY(-6px) rotate(-2deg); }

.points-box { background:#fff; padding:12px 16px; border-radius:10px; width:100%; text-align:center; box-shadow: 0 6px 16px rgba(12,20,40,0.04); }
.points-label { font-size:0.85rem; color:var(--muted); }
.points-counter { font-weight:900; font-size:1.6rem; color:var(--blue-600); margin-top:6px; }

.progress-bar { background:#f1f5f9; border-radius:999px; height:12px; overflow:hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); }
.progress-fill { height:100%; background: linear-gradient(90deg,#2A7AE2,#377ee6); width:0%; transition: width 600ms ease; }

.result-success { background: linear-gradient(90deg, rgba(38,166,154,0.08), rgba(34,197,94,0.06)); padding:12px; border-radius:8px; color:#064e3b; }
.result-fail { background: rgba(255,235,238,0.6); padding:12px; border-radius:8px; color:#7f1d1d; }

#confetti-canvas { pointer-events:none; }

/* responsive tweaks */
@media (max-width:900px){
  .badge-card { flex-direction:column; }
  .badge-right { width:100%; display:flex; flex-direction:row; justify-content:space-between; }
}

}

																							  /* Formulaire Authentification - style modernisé */
.auth-container {
  max-width: 400px;
  margin: 3rem auto;
  background: var(--card);
  padding: 30px 24px;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(10, 35, 80, 0.1);
  text-align: center;
}

.auth-container h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--blue-700);
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
  padding: 14px 18px;
  font-size: 1rem;
  border: 1.5px solid var(--blue-600);
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

.auth-container input[type="text"]:focus,
.auth-container input[type="email"]:focus,
.auth-container input[type="password"]:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 8px var(--accent);
}

.auth-container .btn-primary {
  padding: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-container .btn-primary:hover {
  background: #cc8400;
}

.auth-container .link-text {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.auth-container .link-text a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-container .link-text a:hover {
  color: var(--accent);
}

/* Message d'erreur */
.result-fail {
  background: rgba(255, 100, 100, 0.12);
  color: #b22222;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
}
																																			
.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.mission-card {
  display: flex;
  flex-direction: column;
  align-items: center;       /* centre l’image horizontalement */
  background: #f5f5f5;       /* fond clair */
  padding: 12px 8px; /* réduit un peu le padding horizontal et vertical */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.badge-img {
  width: 90px;              /* taille raisonnable */
  height: 90px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 6px;        /* espace sous l’image */
}

.mission-info strong {
  display: block;
  font-size: 1rem;
  color: #222;               /* texte visible */
  margin-top: 8px;       /* espace entre l’image et le texte */
}

.mission-info p {
  margin: 2px 0;
  font-size: 0.85rem;
  color: #555;               /* texte secondaire */
}

.progress-bar {
  background: #ddd;
  border-radius: 8px;
  width: 100%;
  height: 8px;
  margin-top: 6px;
  overflow: hidden;
}

.progress-fill {
  background: #2A7AE2;
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 8px;
}



																																			
																																			
																																			