/* ==========================================================================
   Appel à projet · Gala Droits de l'Enfant · Rotary Club Béziers Doyen
   Palette : bleu royal #17458F · azur #0067C8 · or #F7A81B · gris #54565A
   ========================================================================== */

:root {
  --royal: #17458F;
  --azure: #0067C8;
  --gold: #F7A81B;
  --gold-dark: #E89A0F;
  --gold-text: #B07406;
  --grey: #54565A;
  --sky: #B9D9EB;
  --paper: #FCFBF8;
  --white: #FFFFFF;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', Arial, sans-serif;
  --condensed: 'Open Sans Condensed', 'Arial Narrow', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
}

body {
  color: var(--royal);
  font-family: var(--sans);
  overflow-x: hidden;
}

a { color: var(--azure); }
a:hover { color: var(--royal); }

img { max-width: 100%; }

@keyframes rbd-spin {
  from { transform: rotate(-360deg); }
  to { transform: rotate(0deg); }
}

@keyframes rbd-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Indicateurs de progression : roue (desktop) / barre (mobile)
   -------------------------------------------------------------------------- */

.rbd-wheel {
  position: fixed;
  left: 18px;
  top: 44vh;
  z-index: 60;
}

.rbd-wheel-inner {
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
  animation: rbd-spin 1.2s cubic-bezier(.2,.8,.2,1);
}

.rbd-wheel svg {
  display: block;
  width: 46px;
  height: 46px;
  opacity: 0.9;
}

.rbd-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: rgba(185,217,235,0.45);
  z-index: 60;
}

.rbd-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
}

@media (min-width: 1080px) {
  .rbd-progress { display: none; }
}

@media (max-width: 1079.98px) {
  .rbd-wheel { display: none; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.rbd-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  box-shadow: 0 2px 0 0 rgba(247,168,27,0);
  transition: box-shadow .22s ease;
}

.rbd-header.is-scrolled {
  box-shadow: 0 2px 0 0 var(--gold);
}

.rbd-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rbd-header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.rbd-header-logo img {
  height: 46px;
  width: auto;
  display: block;
}

.rbd-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.rbd-nav-link {
  color: var(--royal);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .12s ease, color .12s ease;
}

.rbd-nav-link:hover {
  border-bottom-color: var(--gold);
  color: var(--azure);
}

.rbd-cta-mobile { display: none; }

@media (max-width: 1079.98px) {
  .rbd-nav { display: none; }
  .rbd-cta-mobile {
    display: inline-block;
    background: var(--gold);
    color: var(--royal);
    font-weight: 700;
    font-size: 14px;
    padding: 9px 14px;
    border-radius: 6px;
    text-decoration: none;
  }
  .rbd-cta-mobile:active { transform: scale(0.98); }
  .rbd-cta-mobile:hover { color: var(--royal); }
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.rbd-btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--royal);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 24px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease, transform .12s ease;
}

.rbd-btn-primary:hover {
  background: var(--gold-dark);
  color: var(--royal);
  transform: translateY(-1px);
}

.rbd-btn-primary:active { transform: scale(0.98); }

.rbd-btn-primary--nav {
  font-size: 15px;
  padding: 10px 18px;
}

.rbd-btn-primary--nav:hover { transform: none; }

.rbd-btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--royal);
  color: var(--royal);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 23px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .12s ease;
}

.rbd-btn-secondary:hover {
  background: rgba(185,217,235,0.3);
  color: var(--royal);
}

.rbd-btn-secondary:active { transform: scale(0.98); }

/* --------------------------------------------------------------------------
   Typographie récurrente
   -------------------------------------------------------------------------- */

.rbd-eyebrow {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.rbd-h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--royal);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.2;
}

.rbd-h2 em { font-style: italic; }

.rbd-section {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 80px) 22px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.rbd-hero { position: relative; }

.rbd-hero-media {
  display: block;
  width: 100%;
  height: clamp(300px, 52vh, 620px);
  object-fit: cover;
  background: linear-gradient(160deg, #B9D9EB 0%, #DCEBF4 45%, #F3E9D2 100%);
}

.rbd-hero-panel-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 5;
}

.rbd-hero-panel {
  max-width: 760px;
  background: var(--paper);
  border-top: 3px solid var(--gold);
  padding: clamp(22px, 3.5vw, 40px);
  margin-top: clamp(-130px, -9vw, -54px);
  position: relative;
}

.rbd-hero-eyebrow { animation: rbd-rise .7s cubic-bezier(.2,.8,.2,1) .05s both; }

.rbd-hero h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--royal);
  font-size: clamp(2.05rem, 4.6vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.rbd-hero h1 .line-1 {
  display: block;
  animation: rbd-rise .7s cubic-bezier(.2,.8,.2,1) .18s both;
}

.rbd-hero h1 .line-2 {
  display: block;
  animation: rbd-rise .7s cubic-bezier(.2,.8,.2,1) .34s both;
}

.rbd-hero h1 em {
  font-style: italic;
  border-bottom: 4px solid var(--gold);
}

.rbd-hero-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--grey);
  max-width: 58ch;
  margin: 20px 0 26px;
  animation: rbd-rise .7s cubic-bezier(.2,.8,.2,1) .5s both;
}

.rbd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  animation: rbd-rise .7s cubic-bezier(.2,.8,.2,1) .62s both;
}

.rbd-deadline-pill {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--grey);
  border: 1px solid rgba(84,86,90,0.35);
  border-radius: 999px;
  padding: 4px 14px;
}

/* --------------------------------------------------------------------------
   Le gala et sa cause
   -------------------------------------------------------------------------- */

.rbd-gala-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 34px;
  align-items: start;
}

.rbd-gala-timeline {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.rbd-milestone {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: baseline;
}

.rbd-milestone-year {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
}

.rbd-milestone-year.is-italic { font-style: italic; }

.rbd-milestone p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey);
}

.rbd-milestone p strong {
  font-weight: 600;
  color: var(--royal);
}

.rbd-gala-note {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey);
  border-top: 1px solid rgba(185,217,235,0.9);
  padding-top: 22px;
}

.rbd-prize-card {
  background: var(--white);
  border: 1px solid rgba(185,217,235,0.9);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 36px);
}

.rbd-prize-amount {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  color: var(--gold);
}

.rbd-prize-card p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey);
}

.rbd-prize-meta {
  margin-top: 18px;
  border-top: 1px solid rgba(185,217,235,0.9);
  padding-top: 16px;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.rbd-prize-card .rbd-prize-note {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Le club en chiffres
   -------------------------------------------------------------------------- */

.rbd-club { background: rgba(185,217,235,0.3); }

.rbd-club-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey);
  max-width: 70ch;
  margin: 18px 0 0;
}

.rbd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px;
  margin-top: 38px;
}

.rbd-stat {
  border-left: 2px solid rgba(23,69,143,0.18);
  padding-left: 18px;
}

.rbd-stat-value {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  line-height: 1.05;
  color: var(--gold);
}

.rbd-stat-label {
  margin-top: 8px;
  color: var(--royal);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Les parrains
   -------------------------------------------------------------------------- */

.rbd-patrons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 34px;
  align-items: stretch;
}

.rbd-patron-card {
  background: var(--white);
  border: 1px solid rgba(185,217,235,0.9);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.rbd-patron-photo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(185,217,235,0.9);
}

.rbd-patron-photo--mp { object-position: 50% 18%; }

.rbd-patron-photo--ar { object-position: 50% 28%; }

.rbd-patron-body {
  flex: 1 1 220px;
}

.rbd-patron-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--royal);
  line-height: 1.25;
}

.rbd-patron-role {
  margin-top: 6px;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.rbd-patron-card p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey);
}

/* --------------------------------------------------------------------------
   Éligibilité
   -------------------------------------------------------------------------- */

.rbd-criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 34px;
  align-items: stretch;
}

.rbd-criteria-card {
  background: var(--white);
  border: 1px solid rgba(185,217,235,0.9);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 34px);
}

.rbd-criteria-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--royal);
  line-height: 1.25;
}

.rbd-criteria-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rbd-criteria-card li {
  display: flex;
  gap: 12px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--grey);
}

.rbd-criteria-card li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 9px;
}

.rbd-commitments {
  margin-top: 22px;
  background: rgba(185,217,235,0.28);
  border-radius: 8px;
  padding: clamp(20px, 2.6vw, 28px);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: baseline;
}

.rbd-commitments-title {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--royal);
  white-space: nowrap;
}

.rbd-commitments p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey);
  flex: 1 1 420px;
}

/* --------------------------------------------------------------------------
   Ligne d'eau
   -------------------------------------------------------------------------- */

.rbd-wave {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.rbd-wave svg {
  display: block;
  width: 100%;
  height: 8px;
}

/* --------------------------------------------------------------------------
   Calendrier
   -------------------------------------------------------------------------- */

.rbd-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  margin-top: 38px;
}

.rbd-step {
  border-top: 2px solid rgba(23,69,143,0.18);
  padding: 22px 26px 0 0;
}

.rbd-step:first-child { border-top-color: var(--gold); }

.rbd-step:last-child { padding-right: 0; }

.rbd-step-date {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  color: var(--gold-text);
}

.rbd-step h3 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--royal);
  line-height: 1.25;
}

.rbd-step p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey);
}

/* --------------------------------------------------------------------------
   Formulaire de candidature
   -------------------------------------------------------------------------- */

.rbd-apply {
  background: var(--white);
  border-top: 1px solid rgba(185,217,235,0.7);
}

.rbd-apply-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 80px) 22px;
}

.rbd-apply-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey);
  max-width: 68ch;
  margin: 18px 0 0;
}

.rbd-form { margin-top: 38px; }

.rbd-form-section {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--royal);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.rbd-form-section + .rbd-form-section,
.rbd-field + .rbd-form-section,
.rbd-form-grid + .rbd-form-section {
  margin-top: 14px;
}

.rbd-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  column-gap: 22px;
}

.rbd-label {
  display: block;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 7px;
}

.rbd-input, .rbd-textarea, .rbd-select {
  width: 100%;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--royal);
  background: var(--white);
  border: 1px solid rgba(185,217,235,0.9);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color .12s ease, box-shadow .12s ease;
  outline: none;
}

.rbd-input:focus, .rbd-textarea:focus, .rbd-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(247,168,27,0.35);
}

.rbd-input::placeholder, .rbd-textarea::placeholder {
  color: rgba(84,86,90,0.55);
}

.rbd-textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.55;
}

.rbd-field { margin-bottom: 22px; }

.rbd-hint {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--grey);
}

.rbd-honeypot { display: none; }

.rbd-attestation {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 28px;
  cursor: pointer;
}

.rbd-attestation input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.rbd-attestation span {
  font-size: 16px;
  line-height: 1.55;
  color: var(--grey);
}

.rbd-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.rbd-form-footer p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--grey);
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   Page de confirmation
   -------------------------------------------------------------------------- */

.rbd-thanks {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) 22px;
  text-align: left;
}

.rbd-thanks h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--royal);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.rbd-thanks h1 em {
  font-style: italic;
  border-bottom: 4px solid var(--gold);
}

.rbd-thanks p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey);
  max-width: 60ch;
  margin: 20px 0 0;
}

.rbd-thanks .rbd-hero-actions { margin-top: 30px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.rbd-footer {
  background: var(--grey);
  color: var(--white);
}

.rbd-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 64px) 22px 28px;
}

.rbd-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
}

.rbd-footer-logo {
  display: inline-block;
  background: var(--white);
  border-radius: 8px;
  padding: 12px 16px;
}

.rbd-footer-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.rbd-footer p {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.rbd-footer-heading {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.rbd-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.rbd-footer a {
  color: var(--white);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  transition: text-decoration-color .12s ease;
}

.rbd-footer a:hover {
  color: var(--white);
  text-decoration-color: var(--gold);
}

.rbd-footer-legal {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
}
