/* ==========================================================================
   RA2028 - Feuille de style principale
   Palette : rouge / orange (thème sapeurs-pompiers)
   ========================================================================== */

:root {
  --ra-red-600: #dc2626;
  --ra-red-700: #b91c1c;
  --ra-red-800: #991b1b;
  --ra-red-50: #fef2f2;
  --ra-red-100: #fee2e2;
  --ra-orange-500: #f97316;
  --ra-orange-600: #ea580c;
  --ra-orange-50: #fff7ed;
  --ra-gray-50: #f9fafb;
  --ra-gray-100: #f3f4f6;
  --ra-gray-300: #d1d5db;
  --ra-gray-600: #4b5563;
  --ra-gray-800: #1f2937;
  --ra-gray-900: #111827;
  --ra-gradient: linear-gradient(115deg, var(--ra-red-600) 0%, var(--ra-red-700) 45%, var(--ra-orange-600) 100%);
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ra-gray-900);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
}

/* ---------- Bandeau d'information (accueil) ---------- */
.ra-info-banner-wrap {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 1rem;
  pointer-events: none;
}

.ra-info-banner-wrap .ra-info-banner {
  pointer-events: auto;
}

.ra-info-banner {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.7rem;
  max-width: 100%;
  padding: 0.5rem 2.4rem 0.5rem 1.1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--ra-gray-100);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.06);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ra-gray-800);
}

.ra-info-banner-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ra-info-banner-red .ra-info-banner-icon,
.ra-info-banner-red .ra-info-banner-link {
  color: var(--ra-red-600);
}

.ra-info-banner-orange .ra-info-banner-icon,
.ra-info-banner-orange .ra-info-banner-link {
  color: var(--ra-orange-600);
}

.ra-info-banner-gray .ra-info-banner-icon,
.ra-info-banner-gray .ra-info-banner-link {
  color: var(--ra-gray-600);
}

.ra-info-banner-link {
  font-weight: 700;
  white-space: nowrap;
}

.ra-info-banner-link:hover,
.ra-info-banner-link:focus {
  opacity: 0.8;
}

.ra-info-banner-close {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ra-gray-600);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.15rem 0.4rem;
  cursor: pointer;
  opacity: 0.6;
}

.ra-info-banner-close:hover,
.ra-info-banner-close:focus {
  opacity: 1;
}

/* ---------- Header / Navigation ---------- */
.ra-header {
  background: var(--ra-gradient);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.ra-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ra-header .navbar-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

.ra-header .brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.1;
}

.ra-header .brand-subtitle {
  font-size: 0.7rem;
  color: var(--ra-red-100);
  display: block;
}

.ra-header .nav-link {
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem !important;
  transition: background-color 0.15s ease-in-out;
}

.ra-header .nav-link:hover,
.ra-header .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.12);
}

.ra-header .nav-link.active {
  background-color: #fff;
  color: var(--ra-red-700) !important;
}

.ra-header .ra-nav-cta {
  display: inline-block;
  background: #fff;
  color: var(--ra-red-700);
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.5rem 1.1rem;
  transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.ra-header .ra-nav-cta:hover,
.ra-header .ra-nav-cta:focus,
.ra-header .ra-nav-cta.active {
  background: var(--ra-red-50);
  color: var(--ra-red-700);
  transform: translateY(-1px);
}

.ra-header .ra-nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 1.15rem;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.ra-header .ra-nav-login:hover,
.ra-header .ra-nav-login:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.ra-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.ra-header .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* ---------- Hero ---------- */
.ra-hero {
  background: var(--ra-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.ra-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.ra-hero .ra-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.ra-hero .ra-blob-1 {
  top: 4rem;
  left: 3rem;
  width: 9rem;
  height: 9rem;
  background: rgba(255, 255, 255, 0.06);
}

.ra-hero .ra-blob-2 {
  bottom: 4rem;
  right: 3rem;
  width: 11rem;
  height: 11rem;
  background: rgba(249, 115, 22, 0.12);
}

.ra-hero .container {
  position: relative;
  z-index: 1;
}

.ra-hero .ra-logo {
  max-height: 12rem;
  width: auto;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.25));
}

.ra-hero h1 {
  font-weight: 900;
  font-size: clamp(3.5rem, 12vw, 8rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.ra-hero h1 span {
  color: #fdba74;
}

.ra-hero .lead {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 600;
}

.ra-btn-light {
  background: #fff;
  color: var(--ra-red-700);
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.9rem 2rem;
  transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.ra-btn-light:hover {
  background: var(--ra-red-50);
  color: var(--ra-red-700);
  transform: translateY(-2px);
}

.ra-btn-outline-light {
  background: rgba(153, 27, 27, 0.5);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.9rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.ra-btn-outline-light:hover {
  background: rgba(153, 27, 27, 0.7);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Page hero (pages secondaires) ---------- */
.ra-page-hero {
  background: var(--ra-gradient);
  color: #fff;
  padding: 3.5rem 0;
}

.ra-page-hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
}

/* ---------- Stats ---------- */
.ra-stat-number {
  font-size: 2.75rem;
  font-weight: 800;
}

.ra-stat-number.text-ra-red {
  color: var(--ra-red-600);
}

.ra-stat-number.text-ra-orange {
  color: var(--ra-orange-600);
}

/* ---------- Compte à rebours ---------- */
.ra-countdown-item {
  background: #fff;
  border: 1px solid var(--ra-gray-100);
  border-radius: 0.75rem;
  padding: 1.25rem 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
}

.ra-countdown-value {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--ra-red-600);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ra-countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ra-gray-600);
  margin-top: 0.35rem;
}

/* ---------- Cards ---------- */
.ra-card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  height: 100%;
}

.ra-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.ra-card .ra-card-cover {
  height: 12rem;
  background: var(--ra-gradient);
}

.ra-card .ra-card-cover.alt {
  background: linear-gradient(115deg, var(--ra-orange-500), var(--ra-red-600));
}

.ra-card .ra-card-cover.alt2 {
  background: linear-gradient(115deg, var(--ra-red-600), var(--ra-orange-600));
}

.ra-card h3 {
  font-weight: 700;
  font-size: 1.4rem;
}

.ra-card:hover h3 {
  color: var(--ra-red-600);
}

/* ---------- Sponsors carousel ---------- */
.ra-sponsors-track-wrap {
  overflow: hidden;
}

.ra-sponsors-track {
  display: flex;
  width: max-content;
  animation: ra-scroll 30s linear infinite;
}

.ra-sponsors-track-wrap:hover .ra-sponsors-track {
  animation-play-state: paused;
}

@keyframes ra-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ra-sponsor-tile {
  flex-shrink: 0;
  width: 220px;
  margin: 0 1rem;
  height: 8rem;
  background: #fff;
  border: 2px solid var(--ra-gray-100);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ra-gray-300);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease-in-out;
}

.ra-sponsor-tile:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* ---------- Newsletter ---------- */
.ra-newsletter {
  background: var(--ra-gradient);
  color: #fff;
  padding: 5rem 0;
}

/* ---------- Footer ---------- */
.ra-footer {
  background: var(--ra-gray-900);
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.ra-footer h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.ra-footer a {
  color: var(--ra-gray-300);
  transition: color 0.15s ease-in-out;
}

.ra-footer a:hover {
  color: #fff;
}

.ra-footer .ra-social {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease-in-out;
}

.ra-footer .ra-social:hover {
  background: var(--ra-orange-600);
}

.ra-footer hr {
  border-color: #374151;
  margin: 2rem 0 1.5rem;
}

/* ---------- Gallery ---------- */
.ra-gallery-item {
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4 / 3;
  color: #fff;
  display: flex;
  align-items: flex-end;
  background: var(--ra-gradient);
}

.ra-gallery-item .ra-gallery-caption {
  background: rgba(0, 0, 0, 0.45);
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.ra-gallery-item:nth-child(3n+2) {
  background: linear-gradient(115deg, var(--ra-orange-500), var(--ra-red-600));
}

.ra-gallery-item:nth-child(3n+3) {
  background: linear-gradient(115deg, var(--ra-gray-800), var(--ra-red-700));
}

.ra-filter-btn {
  border-radius: 2rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
}

/* ---------- Blocs d'information (page Information) ---------- */
.ra-icon-badge {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: var(--ra-red-100);
  color: var(--ra-red-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.ra-programme-item {
  border-left-width: 4px !important;
  border-left-style: solid;
  padding-left: 1rem;
}

/* ---------- Accordion (FAQ / Programme) ---------- */
.ra-accordion .accordion-button:not(.collapsed) {
  background-color: var(--ra-red-50);
  color: var(--ra-red-700);
}

.ra-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: var(--ra-red-600);
}

/* ---------- Organigramme (page Comité) ---------- */
:root {
  --ra-org-card-w: 190px;
  --ra-org-gap: 1.5rem;
  --ra-org-line: 2px;
}

.ra-org {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ra-org-row-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  gap: var(--ra-org-gap);
}

.ra-org-row-wrap.root {
  padding-top: 0;
}

.ra-org-row-wrap.single,
.ra-org-row-wrap.multi {
  padding-top: 3rem;
}

.ra-org-row-wrap.single::before,
.ra-org-row-wrap.multi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--ra-org-line);
  background: var(--ra-red-600);
  transform: translateX(-50%);
}

.ra-org-row-wrap.single::before {
  height: 3rem;
}

.ra-org-row-wrap.multi::before {
  height: 1.5rem;
}

.ra-org-row-wrap.multi::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 50%;
  width: var(--span, 0px);
  height: var(--ra-org-line);
  background: var(--ra-red-600);
  transform: translateX(-50%);
}

.ra-org-card-wrap {
  position: relative;
}

.ra-org-row-wrap.multi .ra-org-card-wrap::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: 50%;
  width: var(--ra-org-line);
  height: 1.5rem;
  background: var(--ra-red-600);
  transform: translateX(-50%);
}

.ra-org-card {
  width: var(--ra-org-card-w);
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.ra-org-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.ra-org-card-photo {
  height: 6.5rem;
  background: linear-gradient(135deg, #fecaca, #fed7aa);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ra-org-card-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  font-size: 1.35rem;
}

.ra-org-card-body {
  padding: 0.75rem 1rem 1rem;
  text-align: center;
}

.ra-org-card-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ra-gray-900);
}

.ra-org-role-badge {
  display: inline-block;
  background: var(--ra-red-100);
  color: var(--ra-red-600);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  margin: 0.35rem 0;
}

.ra-org-card-desc {
  font-size: 0.7rem;
  color: var(--ra-gray-600);
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .ra-org-row-wrap {
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem !important;
  }
  .ra-org-row-wrap.root {
    padding-top: 0 !important;
  }
  .ra-org-row-wrap::before,
  .ra-org-row-wrap::after,
  .ra-org-row-wrap .ra-org-card-wrap::before {
    display: none;
  }
  .ra-org-card-wrap {
    margin-bottom: 0.5rem;
  }
}

/* ---------- Generic section titles ---------- */
.ra-section-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 3rem;
}

.ra-badge-tier {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Cartes sponsors (page Sponsors) ---------- */
.ra-tier-heading {
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.ra-tier-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  transform: translateX(-50%);
}

.ra-tier-heading.platine::after {
  background: var(--ra-red-600);
}

.ra-tier-heading.or::after {
  background: #d97706;
}

.ra-tier-heading.argent::after {
  background: #6b7280;
}

.ra-sponsor-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  height: 100%;
}

.ra-sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.ra-sponsor-cover {
  position: relative;
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ra-sponsor-cover.platine {
  background: linear-gradient(135deg, #fee2e2, #fed7aa);
}

.ra-sponsor-cover.or {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
}

.ra-sponsor-cover.argent {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.ra-sponsor-cover .ra-sponsor-placeholder {
  color: rgba(0, 0, 0, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
}

.ra-sponsor-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  color: #fff;
  white-space: nowrap;
}

.ra-sponsor-badge.platine {
  background: var(--ra-red-600);
}

.ra-sponsor-badge.or {
  background: #d97706;
}

.ra-sponsor-badge.argent {
  background: #6b7280;
}

.ra-sponsor-body {
  padding: 0.85rem 1rem 1rem;
}

.ra-sponsor-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.ra-sponsor-name.platine {
  color: var(--ra-red-600);
}

.ra-sponsor-name.or {
  color: #d97706;
}

.ra-sponsor-name.argent {
  color: var(--ra-gray-600);
}

.ra-sponsor-desc {
  font-size: 0.75rem;
  color: var(--ra-gray-600);
  margin-bottom: 0;
}

/* ---------- Bénévoles ---------- */
.ra-perk-card {
  background: #fff;
  border: 1px solid var(--ra-gray-100);
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
}

.ra-perk-icon,
.ra-mission-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.ra-perk-icon {
  margin: 0 auto 0.85rem;
}

.ra-mission-icon {
  margin-bottom: 0.85rem;
}

.ra-perk-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.ra-perk-desc {
  font-size: 0.75rem;
  color: var(--ra-gray-600);
  margin-bottom: 0;
}

.ra-mission-card {
  background: #fff;
  border: 1px solid var(--ra-gray-100);
  border-radius: 0.75rem;
  padding: 1.5rem;
  height: 100%;
}

.ra-mission-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ra-red-600);
  margin-bottom: 0.4rem;
}

.ra-mission-desc {
  font-size: 0.8rem;
  color: var(--ra-gray-600);
  margin-bottom: 0.9rem;
}

.ra-mission-tasks-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ra-gray-500);
  border-top: 1px solid var(--ra-gray-100);
  padding-top: 0.85rem;
  margin-bottom: 0.5rem;
}

.ra-mission-tasks {
  font-size: 0.78rem;
  color: var(--ra-gray-600);
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.ra-mission-tasks li {
  margin-bottom: 0.2rem;
}

.ra-condition-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.ra-condition-item:last-child {
  margin-bottom: 0;
}

.ra-condition-check {
  color: #16a34a;
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.ra-condition-title {
  font-weight: 700;
  font-size: 0.88rem;
}

.ra-condition-desc {
  font-size: 0.8rem;
  color: var(--ra-gray-600);
  margin-bottom: 0;
}

/* ---------- Page Inscription ---------- */
.ra-tab-btn {
  border-radius: 2rem;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  color: var(--ra-red-600);
  border: 2px solid var(--ra-red-600);
  background: #fff;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.nav-pills .ra-tab-btn.active,
.ra-tab-btn:hover {
  background: var(--ra-red-600);
  color: #fff;
  border-color: var(--ra-red-600);
}
