/* ============================================================
   Dossier Mécénat — Lions de Lorraine
   Styles complémentaires à Tailwind (composants non triviaux)
   ============================================================ */

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  --militaire: #1a365d;
  --militaire-dark: #0f2440;
  --or: #d4af37;
  --or-light: #e7c85f;
}

footer[id] {
  background-color: var(--militaire-dark);
}

footer[id] .reveal-on-scroll {
  opacity: 1;
  transform: none;
}

/* ----------------- Header / Nav ----------------- */
header.shadow-scroll {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--or);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link-mobile {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link-mobile:hover {
  color: var(--or);
}

/* ----------------- Hero ----------------- */
.bg-hero-gradient {
  background: radial-gradient(ellipse at 50% 20%, var(--militaire) 0%, var(--militaire-dark) 65%, #081527 100%);
}

.hero-frame {
  background: radial-gradient(ellipse at 50% 20%, rgba(26, 54, 93, 0.72) 0%, rgba(15, 36, 64, 0.78) 65%, rgba(8, 21, 39, 0.82) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-pattern {
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ----------------- Parallaxe statue (calque unique, toute la page) ----------------- */
#global-parallax {
  background-image: url('../img/lion_transparent.png');
  background-repeat: no-repeat;
  background-position: center 0%;
  background-size: cover;
  opacity: 0.7;
}

/* ----------------- Section headings ----------------- */
.section-tag {
  display: inline-block;
  color: var(--or);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-tag--light {
  background: rgba(212, 175, 55, 0.12);
}

.section-title {
  color: var(--militaire);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ----------------- Spec cards (Section Projet) ----------------- */
.spec-card {
  background: #f8f9fb;
  border: 1px solid #e6e9ef;
  border-radius: 0.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  border-color: var(--or);
  box-shadow: 0 10px 25px -8px rgba(26, 54, 93, 0.25);
}

.spec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--militaire);
  color: var(--or);
  margin-bottom: 1rem;
}

.spec-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--or-dark, #b8942c);
  margin-bottom: 0.35rem;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--militaire);
  line-height: 1.4;
}

/* ----------------- Image / schema placeholders ----------------- */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: repeating-linear-gradient(
      45deg,
      #eef1f6,
      #eef1f6 10px,
      #e4e8f0 10px,
      #e4e8f0 20px
    );
  border: 2px dashed #c7cedb;
  border-radius: 0.5rem;
  color: #7a8699;
  text-align: center;
  padding: 1rem;
}

.img-placeholder figcaption {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 85%;
}

/* ----------------- Figures avec images réelles ----------------- */
.img-figure {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.img-figure img {
  display: block;
  box-shadow: 0 8px 20px -8px rgba(26, 54, 93, 0.3);
}

.img-figure figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--militaire);
  text-align: center;
}

.img-figure figcaption.text-white {
  color: #ffffff;
}

/* ----------------- Accordion (Section Artiste) ----------------- */
.accordion-item {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 0.5rem;
  overflow: hidden;
}

.participation-tile > * {
  position: relative;
  z-index: 1;
}

.accordion-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--militaire);
  font-size: 0.98rem;
}

.accordion-summary::-webkit-details-marker {
  display: none;
}

.accordion-chevron {
  flex-shrink: 0;
  color: var(--or-dark, #b8942c);
  transition: transform 0.25s ease;
}

details[open] .accordion-chevron {
  transform: rotate(180deg);
}

details[open] .accordion-summary {
  border-bottom: 1px solid #eef0f4;
}

.accordion-content {
  padding: 1rem 1.25rem 1.35rem;
  color: #506078;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ----------------- Budget cards (Section Financement) ----------------- */
.budget-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 320px;
  text-align: center;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(173, 198, 230, 0.22);
  background: linear-gradient(180deg, rgba(34, 66, 109, 0.96) 0%, rgba(23, 48, 84, 0.98) 100%);
  box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.budget-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.budget-card:hover {
  transform: translateY(-4px);
  border-color: rgba(186, 212, 245, 0.38);
  box-shadow: 0 22px 45px -26px rgba(0, 0, 0, 0.78);
}

.budget-card--blue {
  color: #ffffff;
}

.budget-card__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  flex: none;
  border-radius: 999px;
  background: conic-gradient(from 0deg, var(--or) 0 calc(var(--progress) * 1%), rgba(255, 255, 255, 0.12) calc(var(--progress) * 1%) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 30px -22px rgba(0, 0, 0, 0.75);
}

.budget-card__ring::after {
  content: '';
  position: absolute;
  inset: 0.55rem;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(29, 54, 91, 0.98) 0%, rgba(21, 42, 72, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.budget-card__ring-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.budget-card__title {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #ffffff;
}

.budget-card__meta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(232, 241, 255, 0.82);
}

.budget-card__partners {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.25rem;
}

.budget-card__partners-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
  text-align: center;
}

.budget-card--participer {
  min-height: 0;
}

.budget-card--participer .budget-card__title--top {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-bottom: 0.25rem;
  text-align: center;
}

.budget-card__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.budget-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

@media (min-width: 640px) {
  .budget-card__row {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.1rem;
  }

  .budget-card__content {
    align-items: flex-start;
  }

  .budget-card__partners {
    justify-content: flex-start;
  }

  .budget-card__partners-title {
    width: 100%;
    text-align: left;
  }
}

.budget-card--participer .partner-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
  white-space: nowrap;
}

.budget-card--participer .partner-pill:hover {
  transform: none;
}

.participation-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-height: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, rgba(22, 44, 77, 0.96) 0%, rgba(13, 30, 52, 0.98) 100%);
  box-shadow: 0 16px 36px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.participation-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 62%);
  pointer-events: none;
}

.participation-tile__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.08);
  color: var(--or);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.participation-tile__title {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
}

.participation-tile__text {
  position: relative;
  z-index: 1;
  color: rgba(232, 241, 255, 0.82);
  line-height: 1.65;
}

.participation-tile__qr {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 0.15rem;
}

.participation-tile .support-trigger {
  margin-top: 0.5rem;
}

.participation-tile__qr--ghost {
  min-height: 180px;
  border-radius: 0.85rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 768px) {
  .participation-tile {
    min-height: 100%;
  }
}

.budget-card--featured {
  min-height: 220px;
}

.support-trigger {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.35rem;
  border: 0;
  background: var(--or);
  color: var(--militaire-dark);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.support-trigger:hover {
  transform: translateY(-1px);
  background: var(--or-light);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.support-trigger:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.support-modal.hidden {
  display: none;
}

.support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 32, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.support-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(180deg, rgba(15, 36, 64, 0.98) 0%, rgba(10, 24, 45, 0.98) 100%);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
  padding: 1.75rem;
}

.support-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.support-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

.support-modal__qr {
  display: flex;
  justify-content: center;
}

.partner-pill {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  font-style: italic;
  opacity: 0.95;
}

.support-trigger,
.hidden.sm\:inline-flex.items-center.gap-2.bg-or.hover\:bg-or-light.text-militaire-dark.font-bold.text-sm.px-5.py-2\.5.rounded-sm.shadow-md.hover\:shadow-lg.transition-all.duration-200.tracking-wide,
.inline-flex.justify-center.items-center.gap-2.bg-or.text-militaire-dark.font-bold.text-sm.px-5.py-3.rounded-sm.mt-2 {
  border-radius: 0.35rem;
}

.budget-card__ring svg {
  position: relative;
  z-index: 1;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* ----------------- Scrollbar (subtle, on-brand) ----------------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f2f5;
}

::-webkit-scrollbar-thumb {
  background: var(--militaire);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--or);
}
