/* ======================================================
   RESET & BASE
====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* ======================================================
   HEADER
====================================================== */
.header {
  background: #003366;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 15px 30px;
}

.header-logo img {
  width: 65px;
}

.header-text {
  text-align: center;
}

.header-text h1 { font-size: 22px; color: #1e90ff; font-weight: 700; }
.header-text h2 { font-size: 17px; color: #e6e6e6; }
.header-text h3 { font-size: 15px; color: #cc0000; }
.header-text p { font-size: 13px; color: #fff; }

/* ======================================================
   NAVIGATION
====================================================== */
.main-nav {
  background: #1e5fa5;
  padding: 12px 0;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover {
  text-decoration: underline;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

/* ======================================================
   SECTIONS GENERALES
====================================================== */
.section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

.section h2 {
  color: #003366;
  margin-bottom: 20px;
}

/* ======================================================
   FORMULAIRE
====================================================== */
.identification-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 30px auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #003366;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccd6e0;
  font-size: 15px;
}

.form-group input:focus {
  outline: none;
  border-color: #1e90ff;
}

button {
  width: 100%;
  padding: 14px;
  background: #003366;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background: #002244;
}

.form-note {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

/* ======================================================
   RESULTATS STRUCTURE
====================================================== */
.result-container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px;
}

.result-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  border-left: 6px solid #003366;
}

/* BADGE */
.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 700;
  margin-bottom: 20px;
}

.badge-valid {
  background: #e6f4ea;
  color: #2e8b57;
  border: 1px solid #2e8b57;
}

.badge-invalid {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #c0392b;
}

/* ======================================================
   IDENTIFICATION CARD
====================================================== */
.result-body {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

.result-photo {
  width: 240px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  overflow: hidden;
}

.result-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.result-info p {
  margin-bottom: 10px;
  font-size: 16px;
}

.result-info strong {
  color: #003366;
}

/* ======================================================
   MEDAILLES CARDS
====================================================== */
.medals-section {
  margin-top: 40px;
}

.medals-title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 30px;
  color: #003366;
}

.medals-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.medal-card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
  transition: 0.3s ease;
  border-top: 6px solid #003366;
}

.medal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.medal-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #003366;
}

.medal-grade {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.medal-card.grade-or { border-top-color: #d4af37; }
.medal-card.grade-or .medal-grade {
  background: #fff4cc;
  color: #b8860b;
}

.medal-card.grade-argent { border-top-color: #adb5bd; }
.medal-card.grade-argent .medal-grade {
  background: #eef1f4;
  color: #6c757d;
}

.medal-card.grade-bronze { border-top-color: #cd7f32; }
.medal-card.grade-bronze .medal-grade {
  background: #fbe9e7;
  color: #a0522d;
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
  font-size: 14px;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 768px) {

  .nav-links {
    flex-direction: column;
    display: none;
    gap: 15px;
    margin-top: 15px;
  }

  .nav-links.show {
    display: flex;
  }

  .burger {
    display: block;
    margin-left: 15px;
  }

  .result-body {
    flex-direction: column;
    text-align: center;
  }

  .result-photo {
    width: 220px;
    height: 280px;
  }

  .medals-container {
    grid-template-columns: 1fr;
  }
}

/* HERO IMAGE FULL WIDTH */
.hero-full {
  width: 100%;
  height: 100vh; /* pleine hauteur écran */
  overflow: hidden;
}

.hero-full img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* couvre toute la zone */
  display: block;
}
.slider {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ======================================================
   BULLETIN DOSSIER (DESIGN OFFICIEL PROPRE)
====================================================== */

.bulletin {
  margin-top: 30px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #e0e6ed;
}

.bulletin-header {
  background: #0b3d6d;
  color: white;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bulletin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #edf2f7;
  font-size: 15px;
}

.bulletin-row:last-child {
  border-bottom: none;
}

.bulletin-label {
  font-weight: 500;
  color: #003366;
}

/* États */

.bulletin-ok {
  color: #2e8b57;
  font-weight: 600;
}

.bulletin-ok::before {
  content: "✔ ";
}

.bulletin-ko {
  color: #c0392b;
  font-weight: 600;
}

.bulletin-ko::before {
  content: "✖ ";
}

/* Carte résultat améliorée */

.result-card.valid {
  border-left: 6px solid #2e8b57;
}

.result-card.invalid {
  border-left: 6px solid #c0392b;
}

/* Titre plus élégant */

.result-card h2 {
  color: #0b3d6d;
  margin-bottom: 15px;
}

/* Bouton retour */

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: #0b3d6d;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}
.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* force centrage parfait */
}

/* ======================================================
   JUSTIFICATION PROPRE DES TEXTES
====================================================== */

/* Paragraphes justifiés */
.section p,
.hero p {
  text-align: justify;
  text-justify: inter-word;
  max-width: 900px;
  margin: 0 auto 20px auto;
  line-height: 1.8;
  font-size: 16px;
  color: #444;
}

/* Titres restent centrés (plus élégant institutionnellement) */
.section h1,
.section h2,
.section h3,
.hero h1 {
  text-align: center;
}

/* ======================================================
   CORRECTION JUSTIFICATION MOBILE
====================================================== */

@media (max-width: 768px) {

  /* On garde les titres centrés */
  .result-card h2,
  .bulletin-header {
    text-align: center;
  }

  /* On force la justification des textes */
  .result-info,
  .result-info p,
  .bulletin-label,
  .section p {
    text-align: justify;
    text-justify: inter-word;
  }

  /* On enlève le centrage global du bloc résultat */
  .result-body {
    text-align: unset;
  }

}
