* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f6fb;
  color: #111827;
}

.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f3c68;
  font-size: 28px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1d4ed8, #0f3c68);
  color: white;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  box-shadow: 0 10px 18px rgba(29, 78, 216, 0.22);
}

.main-nav {
  display: none;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  background: white;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  padding: 14px 8px;
  font-size: 15px;
  background: transparent;
}

.search-box span {
  font-size: 22px;
  color: #334155;
}

.login-button {
  border: none;
  background: #0f3c68;
  color: white;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 60, 104, 0.18);
  white-space: nowrap;
}

.login-button:hover {
  background: #082f52;
}

/* ACCUEIL AVEC IMAGE LOCALE */

.hero {
  min-height: 470px !important;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 18, 43, 0.82) 0%, rgba(7, 18, 43, 0.55) 45%, rgba(7, 18, 43, 0.12) 100%),
    url("./hero-train.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.hero::before,
.hero::after,
.hero-content::before,
.hero-content::after {
  display: none !important;
}

.hero-overlay {
  min-height: 470px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 70px 24px;
  color: white;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 740px;
  margin: 0;
  font-size: 21px;
  line-height: 1.45;
  color: #f1f5f9;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link {
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: bold;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.primary-link {
  background: #1d4ed8;
  color: white;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.30);
}

.secondary-link {
  background: rgba(255, 255, 255, 0.94);
  color: #0f3c68;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

/* INTRO */

.intro-section {
  max-width: 1180px;
  margin: -36px auto 34px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.intro-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 24px;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
  border: 1px solid #edf2f7;
}

.intro-icon {
  font-size: 23px;
  margin-bottom: 8px;
}

.intro-card h3 {
  margin: 0 0 10px;
  color: #0f3c68;
  font-size: 22px;
}

.intro-card p {
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

/* SECTIONS */

.content-section {
  max-width: 1180px;
  margin: 44px auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 22px;
}

.section-header h2 {
  margin: 0 0 8px;
  color: #0f3c68;
  font-size: 32px;
}

.section-header p {
  margin: 0;
  color: #6b7280;
}

.empty-state {
  background: white;
  border-radius: 16px;
  padding: 20px;
  color: #6b7280;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.reports-list {
  display: grid;
  gap: 28px;
}

/* CARTES RÉSUMÉ PREMIUM */

.report-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  border: 1px solid #e8edf4;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.15);
}

.report-summary {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 24px;
  padding: 22px;
  align-items: stretch;
}

.summary-cover {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #e5e7eb;
  border-radius: 22px;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.summary-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  background: linear-gradient(135deg, #edf4ff, #dbeafe);
}

.summary-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.summary-info h3 {
  margin: 0 0 12px;
  color: #0f3c68;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.report-meta {
  color: #4b5563;
  line-height: 1.65;
  font-size: 15px;
  margin: 0 0 10px;
}

.report-meta strong {
  color: #111827;
}

.rating {
  font-size: 21px;
  margin: 10px 0;
}

.summary-info .rating {
  display: inline-block;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 7px 12px;
  align-self: flex-start;
  font-size: 18px;
  margin: 8px 0 10px;
}

.open-report-button {
  align-self: flex-start;
  margin-top: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #0f3c68, #1d4ed8);
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(15, 60, 104, 0.20);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.open-report-button:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

/* PETITS BADGES VISUELS SUR LES RÉSUMÉS */

.summary-info::before {
  content: "Report ferroviaire";
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* REPORT OUVERT */

.report-details {
  border-top: 1px solid #e5e7eb;
}

.hidden {
  display: none;
}

.report-content {
  padding: 28px;
}

/* CARTE DU TRAJET */

.route-card {
  position: relative;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #d9e7ff;
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.08);
  overflow: hidden;
}

.route-card::before {
  content: "TRAJET";
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.4px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  padding: 6px 10px;
}

.route-card h4 {
  margin-top: 0;
  margin-bottom: 18px;
  color: #0f3c68;
  font-size: 22px;
}

.route-cities {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 20px;
}

.city {
  width: 42%;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.city.city-end {
  text-align: right;
}

.city-name {
  display: block;
  font-weight: 800;
  font-size: 18px;
  color: #0f172a;
  line-height: 1.35;
}

.city-role {
  display: inline-block;
  margin-top: 10px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: bold;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 6px 10px;
}

/* VOIE FERRÉE */

.route-track {
  position: relative;
  height: 90px;
  margin-top: 6px;
}

.route-line {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  height: 42px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 12px,
      #9a6b3a 12px 16px,
      #7b5230 16px 22px,
      transparent 22px 34px
    );
}

.route-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.route-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.route-track::before,
.route-track::after {
  content: "";
  position: absolute;
  top: 29px;
  width: 24px;
  height: 24px;
  background: white;
  border: 5px solid #1d4ed8;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.14);
  z-index: 2;
}

.route-track::before {
  left: 0;
}

.route-track::after {
  right: 0;
}

.route-train {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  width: 118px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.tgv-icon {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(16, 38, 84, 0.22));
}

/* CONTENU DU REPORT */

.report-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
}

.report-section h4 {
  margin-bottom: 10px;
  color: #1d4ed8;
  font-size: 20px;
}

.report-section p {
  line-height: 1.68;
  color: #334155;
}

.section-photo {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #edf2f7;
  border-radius: 16px;
  margin-top: 14px;
}

/* COMMENTAIRES */

.interaction-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.interaction-section h4 {
  color: #0f3c68;
  margin-bottom: 12px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  background: #fbfdff;
}

.comment-form button {
  align-self: flex-start;
  padding: 10px 14px;
  background: #0f3c68;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.comment {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.comment p {
  margin-top: 0;
  margin-bottom: 6px;
  color: #334155;
}

.comment span,
.no-comments {
  color: #6b7280;
  font-size: 13px;
}

.report-bottom-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
}

.close-report-bottom-button {
  padding: 12px 18px;
  background: linear-gradient(135deg, #0f3c68, #1d4ed8);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 60, 104, 0.18);
}

.close-report-bottom-button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.delete-button {
  margin-top: 0;
  padding: 12px 18px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.delete-button:hover {
  background: #991b1b;
}

/* FORMULAIRE */

.report-form {
  background: white;
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
  border: 1px solid #e8edf4;
}

.form-block {
  margin-bottom: 24px;
}

.form-block h3 {
  color: #0f3c68;
  margin-top: 0;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.form-block:first-child h3 {
  border-top: none;
  padding-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.report-form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: bold;
  color: #1f2937;
}

.report-form input,
.report-form textarea,
.report-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.report-form textarea {
  resize: vertical;
  min-height: 110px;
}

.publish-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8, #0f3c68);
  color: white;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(29, 78, 216, 0.20);
}

.publish-button:hover {
  opacity: 0.96;
}

.footer {
  max-width: 1180px;
  margin: 50px auto 20px;
  padding: 0 24px;
  color: #6b7280;
}

/* MOBILE */

@media (max-width: 900px) {
  .topbar-inner {
    grid-template-columns: 1fr;
  }

  .intro-section {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero {
    min-height: 420px !important;
  }

  .route-cities {
    flex-direction: column;
  }

  .city,
  .city.city-end {
    width: 100%;
    text-align: left;
  }

  .route-card::before {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }
}.summary-info::before {
  display: none !important;
  content: none !important;
}/* LOGO RAILREPORTERS PLUS IMPOSANT */

.topbar-inner {
  grid-template-columns: auto 1fr auto;
  max-width: 1240px;
  padding: 18px 28px;
}

.brand {
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.8px;
  color: #0b3563;
  gap: 12px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 23px;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.28);
}

.search-box {
  max-width: 620px;
  justify-self: end;
  width: 100%;
}

.login-button {
  padding: 14px 20px;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .topbar-inner {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 30px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .search-box {
    max-width: none;
    justify-self: stretch;
  }
}/* AMÉLIORATION DU REPORT OUVERT */

.report-details {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.report-content {
  padding: 34px;
}

.report-section {
  background: white;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #e5edf7;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.report-section h4 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #0f3c68;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.report-section h4::before {
  content: "▸ ";
  color: #1d4ed8;
}

.report-section p {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 0;
}

.section-photo {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #edf2f7;
  border-radius: 18px;
  margin: 8px 0 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* CONCLUSION PLUS PREMIUM */

.report-section:has(.rating) {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid #cfe0ff;
}

.report-section:has(.rating) h4 {
  color: #0f3c68;
}

.report-section:has(.rating) .rating {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: 21px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

/* COMMENTAIRES PLUS PROPRES */

.interaction-section {
  background: white;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid #e5edf7;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.interaction-section h4 {
  margin-top: 0;
  color: #0f3c68;
  font-size: 22px;
}

.comment-form textarea {
  min-height: 100px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
}

.comment-form button {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, #0f3c68, #1d4ed8);
  box-shadow: 0 10px 18px rgba(15, 60, 104, 0.16);
}

.comment {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.comment p {
  line-height: 1.6;
}

.no-comments {
  display: block;
  padding: 14px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
}

/* BOUTONS DE FIN DE REPORT */

.report-bottom-actions {
  background: white;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid #e5edf7;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.close-report-bottom-button {
  padding: 13px 20px;
  background: linear-gradient(135deg, #0f3c68, #1d4ed8);
  color: white;
  border-radius: 999px;
  font-weight: 800;
}

.delete-button {
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
}

/* MOBILE */

@media (max-width: 700px) {
  .report-content {
    padding: 18px;
  }

  .report-section,
  .interaction-section,
  .report-bottom-actions {
    padding: 18px;
    border-radius: 18px;
  }

  .report-section h4 {
    font-size: 20px;
  }
}/* SUPPRESSION DU BADGE "TRAJET" DANS LA CARTE */

.route-card::before {
  display: none !important;
  content: none !important;
}/* AMÉLIORATION DES PHOTOS DANS LES REPORTS */

.section-photo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 640px;
  object-fit: contain;
  margin: 14px auto 20px;
  background: #f8fafc;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

/* Cadre plus doux autour des photos verticales */
.report-section {
  overflow: hidden;
}

.report-section img.section-photo {
  padding: 0;
}

/* Texte sous la photo plus agréable */
.report-section p {
  max-width: 900px;
  margin-top: 12px;
}/* TEXTE SOUS LES PHOTOS PLUS PROPRE */

.report-section p {
  max-width: 760px;
  margin: 18px auto 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #334155;
  font-size: 16px;
  line-height: 1.7;
}/* PHOTOS DE REPORT PLUS COMPACTES */

.section-photo {
  width: auto !important;
  max-width: min(760px, 100%) !important;
  max-height: 460px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 14px auto 18px !important;
  border-radius: 18px;
}

/* Quand la fenêtre est petite, on réduit encore la hauteur */
@media (max-width: 700px) {
  .section-photo {
    max-width: 100% !important;
    max-height: 360px !important;
  }

  .report-section p {
    max-width: 100% !important;
  }
}

/* En très petite fenêtre, on évite que l'image mange tout l'écran */
@media (max-width: 480px) {
  .section-photo {
    max-height: 300px !important;
  }
}/* AJUSTEMENT FINAL PHOTOS + COMMENTAIRE SOUS PHOTO */

.report-section {
  padding-bottom: 28px;
}

.section-photo {
  margin-bottom: 24px !important;
}

.report-section p {
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 700px) {
  .report-section p {
    max-width: 92% !important;
  }
}/* AMÉLIORATION DU FORMULAIRE PUBLIER UN REPORT */

.report-form {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 34px;
  border-radius: 30px;
  border: 1px solid #e3ebf6;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.form-block {
  background: white;
  border: 1px solid #e5edf7;
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.form-block h3 {
  margin: 0 0 18px;
  padding: 0;
  border-top: none;
  color: #0f3c68;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.form-block h3::before {
  content: "▸ ";
  color: #1d4ed8;
}

.report-form label {
  margin: 14px 0 7px;
  font-weight: 800;
  color: #1f2937;
  font-size: 14px;
}

.report-form input,
.report-form textarea,
.report-form select {
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fbfdff;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.report-form input:focus,
.report-form textarea:focus,
.report-form select:focus {
  outline: none;
  border-color: #1d4ed8;
  background: white;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.report-form input[type="file"] {
  background: #f8fafc;
  border-style: dashed;
  cursor: pointer;
}

.form-grid {
  gap: 16px;
}

.publish-button {
  margin-top: 8px;
  padding: 17px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #0f3c68, #1d4ed8);
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.24);
}

.publish-button:hover {
  transform: translateY(-1px);
  opacity: 0.97;
}

@media (max-width: 700px) {
  .report-form {
    padding: 20px;
    border-radius: 24px;
  }

  .form-block {
    padding: 18px;
    border-radius: 20px;
  }
}/* BOUTON RETOUR EN HAUT */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f3c68, #1d4ed8);
  color: white;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 60, 104, 0.28);
  z-index: 50;
}

.back-to-top:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}.login-button {
  display: none !important;
}.search-box span {
  pointer-events: none;
  opacity: 0.65;
  cursor: default;
}

.search-box {
  cursor: text;
}/* AJUSTEMENT CARTE DU TRAJET : VOIE PLUS FINE + TRAIN ANIMÉ */

.route-track {
  position: relative;
  height: 72px;
  margin-top: 10px;
}

.route-line {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 14px,
      #9a6b3a 14px 18px,
      #7b5230 18px 24px,
      transparent 24px 42px
    );
}

.route-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.18);
}

.route-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.18);
}

.route-track::before,
.route-track::after {
  content: "";
  position: absolute;
  top: 23px;
  width: 18px;
  height: 18px;
  background: white;
  border: 4px solid #1d4ed8;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.14);
  z-index: 2;
}

.route-track::before {
  left: 0;
}

.route-track::after {
  right: 0;
}

.route-train {
  position: absolute;
  top: 50%;
  left: 14%;
  transform: translate(-50%, -56%);
  width: 130px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
  will-change: left, opacity;
  animation: train-glide 6s linear infinite;
}

.tgv-icon {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(16, 38, 84, 0.18));
}

@keyframes train-glide {
  0% {
    left: 14%;
    opacity: 0;
  }

  8% {
    left: 20%;
    opacity: 1;
  }

  85% {
    left: 80%;
    opacity: 1;
  }

  100% {
    left: 86%;
    opacity: 0;
  }
}

@media (max-width: 700px) {
  .route-track {
    height: 64px;
  }

  .route-line {
    height: 24px;
  }

  .route-line::before,
  .route-line::after {
    height: 3px;
  }

  .route-track::before,
  .route-track::after {
    top: 21px;
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .route-train {
    width: 110px;
    height: 40px;
  }
}/* FORMULAIRE MASQUÉ PAR DÉFAUT */

#create-report {
  display: none;
}

#create-report.visible {
  display: block;
}/* RELOOKING PREMIUM PLUS CHALEUREUX RAILREPORTERS */

body {
  background:
    radial-gradient(circle at top left, rgba(255, 237, 213, 0.65), transparent 32%),
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.95), transparent 34%),
    linear-gradient(180deg, #fffaf3 0%, #f3f7ff 42%, #eef4fb 100%) !important;
  color: #111827;
}

/* HEADER PLUS LUMINEUX */

.topbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.brand {
  color: #082f52 !important;
}

.brand-icon {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28) !important;
}

.search-box {
  border: 1px solid #dbeafe !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

/* HERO PLUS ATTRACTIF */

.hero {
  background:
    linear-gradient(90deg, rgba(7, 18, 43, 0.76) 0%, rgba(7, 18, 43, 0.48) 43%, rgba(7, 18, 43, 0.08) 100%),
    url("./hero-train.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  color: #fff7ed !important;
}

.hero h1 {
  color: #ffffff !important;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45) !important;
}

.hero p {
  color: #fff7ed !important;
}

.primary-link {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: white !important;
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.35) !important;
}

.secondary-link {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #082f52 !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22) !important;
}

/* CARTES INTRO PLUS VIVANTES */

.intro-card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(219, 234, 254, 0.9) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09) !important;
}

.intro-card h3 {
  color: #082f52 !important;
}

.intro-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eff6ff, #ffedd5);
  margin-bottom: 12px;
}

/* TITRES DE SECTION PLUS PREMIUM */

.section-header h2 {
  color: #082f52 !important;
  letter-spacing: -0.4px;
}

.section-header p {
  color: #64748b !important;
}

/* CARTES REPORTS PLUS ATTRACTIVES */

.report-card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(219, 234, 254, 0.95) !important;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.13) !important;
}

.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 68px rgba(15, 23, 42, 0.16) !important;
}

.summary-cover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
}

.summary-info h3 {
  color: #082f52 !important;
}

.report-meta {
  color: #475569 !important;
}

.summary-info .rating {
  background: linear-gradient(135deg, #fff7ed, #ffffff) !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.10) !important;
}

.open-report-button {
  background: linear-gradient(135deg, #082f52, #2563eb) !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24) !important;
}

/* CARTE DU TRAJET PLUS CLAIRE */

.route-card {
  background:
    radial-gradient(circle at top right, rgba(255, 237, 213, 0.65), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
  border: 1px solid #bfdbfe !important;
}

.city {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid #dbeafe !important;
}

.city-role {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

/* REPORT OUVERT PLUS “ARTICLE VOYAGE” */

.report-details {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.report-section {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #e0ecff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07) !important;
}

.report-section h4 {
  color: #082f52 !important;
}

.report-section h4::before {
  color: #0ea5e9 !important;
}

.report-section p {
  background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
}

/* FORMULAIRE PLUS DOUX ET MOINS GRIS */

.report-form {
  background:
    radial-gradient(circle at top right, rgba(255, 237, 213, 0.7), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid #dbeafe !important;
}

.form-block {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #e0ecff !important;
}

.form-block h3 {
  color: #082f52 !important;
}

.form-block h3::before {
  color: #0ea5e9 !important;
}

.report-form input,
.report-form textarea,
.report-form select {
  background: #ffffff !important;
  border: 1px solid #cfe0ff !important;
}

.report-form input:focus,
.report-form textarea:focus,
.report-form select:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14) !important;
}

.publish-button {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.28) !important;
}

/* COMMENTAIRES PLUS PROPRES */

.interaction-section {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #e0ecff !important;
}

.comment-form button {
  background: linear-gradient(135deg, #082f52, #2563eb) !important;
}

.comment {
  background: #ffffff !important;
}

/* BOUTON RETOUR EN HAUT PLUS MODERNE */

.back-to-top {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.32) !important;
}/* CARTES RÉSUMÉ EN VERSION PREMIUM SOMBRE */

.report-card {
  background: linear-gradient(135deg, #07152f 0%, #0f172a 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28) !important;
}

.report-card:hover {
  box-shadow: 0 30px 76px rgba(15, 23, 42, 0.34) !important;
}

.summary-info h3 {
  color: #ffffff !important;
}

.report-meta {
  color: #cbd5e1 !important;
}

.report-meta strong {
  color: #ffffff !important;
}

.summary-info .rating {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.open-report-button {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: white !important;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.28) !important;
}

.summary-cover {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28) !important;
}

/* Quand le report est ouvert, on garde le contenu lisible en clair */
.report-details {
  background: #ffffff !important;
}