/* ============================================
   TCN 40th Anniversary — "La Nuit des Finishers"
   Dark editorial design system
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:ital,wght@0,600;1,600&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* --- Design Tokens --- */
:root {
  --color-bg: #0A0A0A;
  --color-surface: #131313;
  --color-border: #1F1F1F;
  --color-orange: #F26419;
  --color-orange-dim: #C44E0F;
  --color-orange-glow: #F2641930;
  --color-white: #F5F0EB;
  --color-muted: #7A7570;

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --header-h: 64px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-white);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-orange);
}

.label-tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-orange);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 3px;
  color: var(--color-white);
  margin-bottom: 48px;
}

.section-title::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-orange);
  flex-shrink: 0;
}

/* --- Scroll-reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.reveal-d1 {
  transition-delay: 0.1s;
}

.reveal-d2 {
  transition-delay: 0.2s;
}

.reveal-d3 {
  transition-delay: 0.3s;
}

.reveal-d4 {
  transition-delay: 0.4s;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-orange);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.site-header.scrolled::after {
  opacity: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  height: 40px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: #f4762f;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--color-orange-glow);
}

.btn-large {
  font-size: 16px;
  padding: 14px 36px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* Noise grain overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* Orange glow bottom-right */
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--color-orange-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 8%;
  max-width: 700px;
}

.hero-label {
  margin-bottom: 24px;
  animation: fadeSlideUp 0.8s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 120px);
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--color-white);
  margin-bottom: 24px;
  animation: fadeSlideUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-white);
  max-width: 480px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.3s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.45s forwards;
}

.hero-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.25s ease;
}

.hero-link:hover {
  color: var(--color-orange);
}

/* Giant background number */
.hero-watermark {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(200px, 30vw, 450px);
  color: rgba(255, 255, 255, 0.035);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease;
  animation: bounce 2s ease infinite;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-muted);
  stroke-width: 2;
  fill: none;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   DATE / LIEU / HEURE — Info band
   ============================================ */
.info-band {
  background: var(--color-surface);
  padding: 60px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.info-icon {
  font-size: 28px;
  color: var(--color-orange);
  margin-bottom: 4px;
}

.info-label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--color-muted);
  text-transform: uppercase;
}

.info-value {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--color-white);
}

.info-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

.info-link:hover {
  color: #f4762f;
}

/* ============================================
   PROGRAMME — Timeline
   ============================================ */
.programme {
  padding: 100px 0;
  background: var(--color-bg);
}

.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-image: repeating-linear-gradient(to bottom,
      var(--color-orange) 0,
      var(--color-orange) 6px,
      transparent 6px,
      transparent 12px);
}

.timeline-item {
  position: relative;
  padding-left: 36px;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-orange);
  border: 2px solid var(--color-bg);
}

.timeline-hour {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--color-orange);
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--color-white);
  margin-bottom: 6px;
}

.timeline-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ============================================
   INSCRIPTION — CTA Section
   ============================================ */
.inscription {
  position: relative;
  padding: 100px 0;
  background: #0F0F0F;
  overflow: hidden;
}

/* Noise */
.inscription::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* Orange glow center-bottom */
.inscription::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--color-orange-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.inscription-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.inscription-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 16px;
}

.inscription-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: 20px;
}

.inscription-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 40px;
}

/* --- Form --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 4px;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7570' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px var(--color-orange-glow);
}

.form-group input::placeholder {
  color: #555;
}

/* Radio group */
.radio-group {
  display: flex;
  gap: 24px;
  padding-top: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-white);
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #2A2A2A;
  border-radius: 50%;
  background: #1A1A1A;
  cursor: pointer;
  position: relative;
  transition: border-color 0.25s ease;
}

.radio-option input[type="radio"]:checked {
  border-color: var(--color-orange);
}

.radio-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px;
  margin-top: 8px;
}

.form-note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 16px;
  text-align: center;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--color-orange);
  margin-bottom: 12px;
}

.form-success p {
  font-family: var(--font-body);
  color: var(--color-muted);
  font-size: 15px;
}

/* ============================================
   LIEU — Location split
   ============================================ */
.lieu {
  padding: 100px 0;
  background: var(--color-bg);
}

.lieu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.lieu-info h3 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.lieu-info address {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.lieu-info p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.lieu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-orange);
  transition: color 0.25s ease;
}

.lieu-link:hover {
  color: #f4762f;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  height: 320px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(80%) contrast(1.1);
  transition: filter 0.6s ease;
}

.map-container:hover iframe {
  filter: grayscale(0%) contrast(1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #050505;
  padding: 48px 0 32px;
  text-align: center;
}

.footer-logo {
  height: 32px;
  margin: 0 auto 16px;
}

.footer-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-muted);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--color-orange);
}

.footer-separator {
  width: 120px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
}

/* ============================================
   RESPONSIVE — Tablet (640px+)
   ============================================ */
@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
  }

  .info-item {
    position: relative;
  }

  .info-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--color-orange);
    opacity: 0.4;
  }

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

  .timeline {
    padding-left: 0;
    margin-left: 80px;
  }
}

/* ============================================
   RESPONSIVE — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero-content {
    padding-left: 8%;
  }

  .lieu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .timeline {
    margin-left: auto;
    margin-right: auto;
  }
}
/* ============================================
   EQUIPE
   ============================================ */
.equipe {
  padding: 80px 0;
  background: var(--color-bg);
}

.equipe-photo {
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.equipe-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
