/* =========================================================
   Trail Côtelettes – Styles V1
   Inspiration : hero lumineux, pill nav, accents serif
========================================================= */

:root {
  --red: #c5321e;
  --red-dark: #a42714;
  --red-soft: #e8634d;
  --cream: #f5efe6;
  --sand: #ece2d0;
  --white: #ffffff;
  --text-dark: #1d1d1b;
  --text-muted: #6b6b6b;
  --radius: 999px;
  --max: 1200px;
  --ease: cubic-bezier(.4,0,.2,1);
  --serif: 'DM Serif Display', 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow--light { color: rgba(255,255,255,.85); }
.eyebrow--center { display: block; text-align: center; }

/* Serif italic accent utilisé partout */
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

h2 em { color: inherit; }

/* ============ HEADER : pill nav flottante ============ */
.header {
  position: fixed;
  top: 18px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 8px 8px 8px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,.4) inset;
  border: 1px solid rgba(0,0,0,.04);
  max-width: calc(100% - 32px);
}
.header__logo { flex-shrink: 0; }
.header__logo-circle {
  display: block;
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.header__logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
}
.nav {
  display: flex;
  gap: 6px;
  padding: 0 8px;
}
.nav a {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: rgba(197,50,30,.08); color: var(--red); }
.nav a.active { background: var(--red); color: var(--white); }

.header__cta {
  background: var(--text-dark);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.header__cta:hover { background: var(--red); transform: translateY(-1px); }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
}
.burger span {
  width: 22px; height: 2px;
  background: var(--text-dark);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO lumineux ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  overflow: hidden;
  color: var(--text-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.05) 40%, rgba(245,239,230,.85) 100%),
    url('https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  /* image : paysage vallonné ensoleillé, printemps */
  z-index: 0;
}
.hero__grain {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(255,255,255,.2), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.hero__title {
  font-size: clamp(72px, 12vw, 180px);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: .9;
  color: var(--text-dark);
}
.hero__tagline {
  font-size: clamp(22px, 3vw, 36px);
  color: var(--red);
  margin-top: 8px;
}
.hero__tagline em { font-size: 1.1em; }
.hero__desc {
  margin-top: 22px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.hero__scroll-label {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-dark);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -40px; left: 0;
  width: 100%; height: 40px;
  background: var(--red);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { top: -40px; } 100% { top: 40px; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  border: 0;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(197, 50, 30, .35);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 50, 30, .5);
}
.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--text-dark);
}
.btn--ghost:hover {
  background: var(--text-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--white {
  background: var(--white);
  color: var(--red);
  padding: 18px 44px;
  font-size: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* ============ STATS ============ */
.stats {
  background: var(--text-dark);
  color: var(--white);
  padding: 40px 0;
}
.stats__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}
.stats__item strong {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  font-weight: 400;
  color: var(--red-soft);
}
.stats__item sup { font-size: .5em; top: -.8em; }
.stats__item span {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: .7;
}
.stats__sep {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.15);
}

/* ============ SECTIONS ============ */
.section { padding: 120px 0; position: relative; }
.section--red {
  background: var(--red);
  color: var(--white);
}
.section h2 {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.section__title { text-align: center; }
.section__subtitle {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 70px;
  opacity: .95;
  font-size: 17px;
}

/* ============ TRAIL (split) ============ */
.trail { background: var(--cream); }
.trail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.trail__visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px rgba(0,0,0,.15);
}
.trail__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.trail__visual:hover img { transform: scale(1.04); }
.trail__badge {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 120px; height: 120px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 18px;
}
.trail__badge img { width: 100%; object-fit: contain; }
.trail__text h2 { color: var(--text-dark); }
.trail__text .lead {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text-dark);
}
.trail__text p { color: var(--text-muted); margin-bottom: 14px; }
.trail__list {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trail__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.trail__list li span { color: var(--red); font-size: 10px; margin-top: 6px; }

/* ============ PROGRAMME cards numérotées ============ */
.programme .eyebrow { display: block; text-align: center; }
.programme__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.p-card {
  background: var(--white);
  color: var(--text-dark);
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.p-card__num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  color: var(--red);
  opacity: .3;
}
.p-card__icon {
  width: 70px; height: 70px;
  object-fit: contain;
  margin: 14px 0 22px;
}
.p-card h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--red);
}
.p-card p {
  font-size: 15px;
  color: var(--text-muted);
}
.p-card__time {
  display: inline-block;
  margin-top: 24px;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* ============ INFOS PRATIQUES split ============ */
.infos-section { background: var(--cream); }
.infos__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
.infos__text h2 { color: var(--text-dark); }
.infos__list {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.infos__list li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  align-items: flex-start;
}
.infos__list li:last-child { border-bottom: 0; }
.infos__pill {
  flex-shrink: 0;
  min-width: 130px;
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}
.infos__list div { color: var(--text-dark); }
.infos__list strong { color: var(--text-dark); }

.infos__aside {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.infos__aside img {
  border-radius: 20px;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.infos__card {
  background: var(--text-dark);
  color: var(--white);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
}
.infos__card .eyebrow { color: var(--red-soft); }
.infos__date {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.1;
  margin: 10px 0 20px;
}
.infos__date strong { color: var(--red-soft); font-size: 1.3em; font-weight: 400; }
.infos__loc { font-size: 14px; opacity: .8; letter-spacing: 1px; }

/* ============ INSCRIPTIONS ============ */
.inscriptions { text-align: center; }
.inscriptions .btn { margin-top: 30px; }
.inscriptions__text {
  margin: 50px auto 0;
  max-width: 760px;
  opacity: .95;
  font-size: 17px;
}

/* ============ PARTENAIRES ============ */
.partenaires { background: var(--white); padding: 120px 0; }
.partenaires h2 { color: var(--text-dark); }
.partenaires__lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 60px;
  font-size: 17px;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 20px;
  background: var(--cream);
  border-radius: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  cursor: pointer;
}
.partner:hover {
  transform: translateY(-6px);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0,0,0,.1);
}
.partner__logo {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.partner__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .75;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.partner:hover .partner__logo img {
  filter: grayscale(0);
  opacity: 1;
}
.partner__name {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-align: center;
}

/* ============ PARTENAIRES CTA ============ */
.partenaires__cta {
  margin-top: 80px;
  text-align: center;
  padding: 60px 40px;
  background: var(--cream);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.partenaires__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(197,50,30,.1), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(197,50,30,.08), transparent 40%);
  pointer-events: none;
}
.partenaires__cta h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative;
}
.partenaires__cta p {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  position: relative;
}
.partenaires__cta .btn { position: relative; }

/* ============ CONTACT CTA ============ */
.contact-cta {
  background: var(--text-dark);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(197,50,30,.2), transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(197,50,30,.15), transparent 50%);
}
.contact-cta h2 {
  font-size: clamp(50px, 8vw, 110px);
  letter-spacing: -2px;
  margin: 10px 0 20px;
}
.contact-cta__intro {
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: .7;
  font-size: 15px;
}
.contact-cta__intro strong { color: var(--red-soft); font-weight: 700; }

/* Formulaire */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form label > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-soft);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--white);
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.3); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red-soft);
  background: rgba(255,255,255,.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn {
  justify-content: center;
  margin-top: 8px;
}
.contact-form__fallback {
  text-align: center;
  font-size: 13px;
  opacity: .6;
  margin-top: 4px;
}
.contact-form__fallback a {
  color: var(--red-soft);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.contact-form__fallback a:hover { border-color: var(--red-soft); }

/* ============ SOCIAL RAIL ============ */
.social-rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-rail a {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--text-dark);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  border: 1px solid rgba(0,0,0,.04);
}
.social-rail a:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--red);
  color: var(--white);
}
.social-rail svg { width: 20px; height: 20px; }

/* ============ FOOTER ============ */
.footer {
  background: #0f0f0d;
  color: #9c9c9c;
  padding: 70px 0 40px;
  font-size: 14px;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.footer__logo {
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  width: 100%;
  max-width: 640px;
}
.footer__cols h4 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__cols a {
  display: block;
  padding: 4px 0;
  color: #9c9c9c;
  transition: color .2s var(--ease);
}
.footer__cols a:hover { color: var(--red-soft); }
.footer__copy {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.08);
  width: 100%;
  font-size: 12px;
  opacity: .6;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .trail__grid, .infos__grid { grid-template-columns: 1fr; gap: 50px; }
  .programme__grid { grid-template-columns: 1fr; gap: 20px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { flex-wrap: wrap; }
  .stats__sep { display: none; }
  .stats__item { flex: 1 1 40%; }
  .infos__aside { position: static; }
}
@media (max-width: 720px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 16px; right: 16px;
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
  }
  .nav.open a { padding: 14px; text-align: center; }
  .section { padding: 80px 0; }
  .hero { padding: 120px 20px 80px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .infos__list li { flex-direction: column; gap: 8px; }
  .infos__pill { min-width: auto; }
  .contact-form__row { grid-template-columns: 1fr; }
  .social-rail { right: 10px; gap: 6px; }
  .social-rail a { width: 38px; height: 38px; }
  .social-rail svg { width: 16px; height: 16px; }
  .partenaires__cta { padding: 40px 24px; margin-top: 60px; }
}
@media (max-width: 480px) {
  .partners-grid { grid-template-columns: 1fr; }
}
