/* ============================================================
   STYLES PARTAGÉS — Pronostics Bleus
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bleu:       #0055A4;
  --bleu-sombre:#0A1F44;
  --rouge:      #EF4135;
  --blanc:      #FFFFFF;
  --or:         #FFD700;
  --fond:       #f4f6fb;
  --texte:      #0A1F44;
  --texte-sec:  #5a6a82;
  --border:     rgba(0,85,164,0.13);
  --radius:     14px;
  --radius-sm:  9px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--fond);
  color: var(--texte);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Typographie ── */
.display-font { font-family: 'Barlow Condensed', sans-serif; }

/* ── Nav ── */
nav {
  background: var(--bleu-sombre);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-brand {
  color: var(--or);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  padding: 14px 0;
  text-decoration: none;
}
.nav-links { display: flex; }
.nav-link {
  color: rgba(255,255,255,0.7);
  padding: 14px 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
}
.nav-link:hover  { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link.active { color: var(--or); border-bottom-color: var(--or); }

/* ── Cards ── */
.card {
  background: var(--blanc);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 24px;
}

/* ── Boutons ── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
  text-align: center;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary  { background: var(--bleu);  color: #fff; }
.btn-primary:hover  { background: var(--bleu-sombre); }
.btn-rouge    { background: var(--rouge); color: #fff; }
.btn-rouge:hover    { background: #c0392b; }
.btn-outline  { background: transparent; color: var(--bleu); border: 1.5px solid var(--bleu); }
.btn-outline:hover  { background: var(--bleu); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Formulaire ── */
.form-group { margin-bottom: 18px; }
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--texte-sec);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--texte);
  background: #fafbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(0,85,164,0.1);
}
textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.field-error { border-color: var(--rouge) !important; }
.error-msg {
  color: var(--rouge);
  font-size: 12px;
  margin-top: 5px;
  display: none;
}
.error-msg.visible { display: block; }

/* ── Consent ── */
.consent-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: #eef3ff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,85,164,0.15);
}
.consent-box input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 2px;
  accent-color: var(--bleu);
}
.consent-box p { font-size: 13px; color: var(--texte-sec); line-height: 1.5; }

/* ── Info text ── */
.info-text {
  font-size: 12px;
  color: var(--texte-sec);
  padding: 12px 14px;
  background: #f8f9fc;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--bleu);
  line-height: 1.5;
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bleu-sombre);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--rouge); }

/* ── Utilitaires ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-center { text-align: center; }
.text-sec { color: var(--texte-sec); }
.hidden { display: none !important; }
