/* ==========================================
   STYLE GLOBAL — Registre 2e génération
   Version 1.5 — 31 octobre 2025
   ========================================== */

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: #0b3a5a;
  background-color: #f7f9fb;
}

/* ==========================================
   HEADER GLOBAL (titre + navigation)
   ========================================== */
header {
  background: #0b3a5a;
  color: #fff;
  display: flex;
  flex-direction: column;     /* empile le titre et le menu */
  align-items: center;        /* centre horizontalement */
  justify-content: center;
  padding: 15px 10px;
}

/* Titre du site */
header h1 {
  margin: 5px 0 12px;
  font-size: 1.6rem;
  text-align: center;
  width: 100%;
}

/* ==========================================
   BARRE DE NAVIGATION (centrée sur tous les écrans)
   ========================================== */
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;   /* centre tout le menu */
  gap: 15px;
  padding: 10px 20px;
  width: 100%;
}

/* Liens du menu */
header nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 5px;
  transition: background 0.3s;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
}

header nav a:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Bouton Admin */
header nav a.btn {
  background: #195b88;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  transition: background 0.3s;
}

header nav a.btn:hover {
  background: #0b3a5a;
}

/* ----- HERO (Image principale) ----- */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 65vh;
  object-fit: cover;
  filter: brightness(70%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 700px;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ----- SECTION INTRO ----- */
.intro {
  text-align: center;
  padding: 40px 20px;
}

.intro h2 {
  color: #0b3a5a;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.intro p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color: #333;
}

/* ----- SECTION ACTIONS (3 cartes) ----- */
.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  background: #eef3f7;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: #0b3a5a;
  margin-bottom: 10px;
}

.card p {
  color: #444;
  margin-bottom: 15px;
}

/* ----- BOUTONS GÉNÉRAUX ----- */
.btn {
  background: #0b3a5a;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn:hover {
  background: #195b88;
}

/* ----- FOOTER ----- */
footer {
  background: #0b3a5a;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* ----- MOBILE OPTIMISATION ----- */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.3rem;
  }

  header nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  header nav a {
    display: block;
    width: 100%;
    text-align: center;
    max-width: 250px;
  }

  .hero-image {
    height: 50vh;
  }

  .hero-text h2 {
    font-size: 1.4rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }
}

/* ===== FORMULAIRE D’INSCRIPTION ===== */
.form-section {
  padding: 30px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.form-section h2 {
  text-align: center;
  color: #0b3a5a;
}

.formulaire {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.formulaire label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
  color: #0b3a5a;
}

.formulaire input,
.formulaire select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 4px;
  font-size: 1rem;
}

.formulaire input:focus,
.formulaire select:focus {
  border-color: #0b3a5a;
  outline: none;
}

button.btn {
  margin-top: 20px;
  width: 100%;
  background: #0b3a5a;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

button.btn:hover {
  background: #195b88;
}

.message {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
}

.message.success {
  background: #e6f7ec;
  color: #0a7a34;
  border: 1px solid #a4e0b1;
}

.message.error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5b7b1;
}
