/* ==========================================================================
   Michaëlo — Un Noël à Versailles — Feuille de style
   Charte graphique : Navy #0e1d3c · Or #ffbd59 · Bordeaux #6b1f1f
   Approche : MOBILE-FIRST. Les styles de base ciblent le smartphone ;
   les media queries min-width ajoutent/adaptent pour tablette et desktop.
   ========================================================================== */

@import url('https://fonts.cdnfonts.com/css/maharlika');
@import url('https://fonts.googleapis.com/css2?family=Chau+Philomene+One&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,400&display=swap');

:root{
  --navy:#0e1d3c;
  --navy-deep:#091326;
  --gold:#ffbd59;
  --bordeaux:#6b1f1f;
  --ember:#e36f00;
  --ember-deep:#8e3204;
  --clay:#d55312;
  --cream:#faf6ec;
  --white:#ffffff;
  --ink:#0e1d3c;

  --font-title: 'Maharlika', 'Cormorant Garamond', serif;
  --font-sub: 'Chau Philomene One', sans-serif;
  --font-text: 'Poppins', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --transition: 0.4s cubic-bezier(.23,1,.32,1);

  /* Timeline grid geometry — single source of truth so the connecting
     line always lands exactly on the center of the dot column, at every
     breakpoint (values are overridden per breakpoint below). */
  --tl-time-w: 56px;
  --tl-gap: 12px;
  --tl-dot-w: 34px;

  /* Fluid section padding, scales smoothly from phone to desktop */
  --pad-section: clamp(64px, 10vw, 130px);
  --pad-container: clamp(20px, 5vw, 32px);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  font-family: var(--font-text);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
.container{ max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-container); }
section{ position: relative; }

h1,h2,h3,h4{ margin: 0; font-family: var(--font-title); font-weight: 400; letter-spacing: .01em; }
.eyebrow{
  font-family: var(--font-sub);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  color: var(--ember);
}
.eyebrow.on-dark{ color: var(--gold); }

/* ---------- Icon helper (real PNG assets) ---------- */
.icon{ width:20px; height:20px; flex-shrink:0; object-fit:contain; }

/* ---------- Buttons — generous tap targets on touch devices ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 16px 30px;
  min-height: 50px;
  border-radius: 999px;
  font-family: var(--font-sub);
  letter-spacing: .04em;
  font-size: 14px;
  text-transform: uppercase;
  cursor:pointer;
  border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
  touch-action: manipulation;
}
.btn:active{ transform: scale(.97); }
.btn-gold{
  background: linear-gradient(135deg, var(--gold), #ffd085);
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(255,189,89,.3);
}
.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
@media (hover:hover){
  .btn:hover{ transform: translateY(-3px); }
  .btn-gold:hover{ box-shadow: 0 16px 34px rgba(255,189,89,.45); }
  .btn-outline:hover{ background: rgba(255,255,255,.12); border-color: var(--white); }
}

/* ---------- Header ----------
   No burger / off-canvas menu: on small screens the header keeps only
   the logo and a single, always-visible "Participer" call-to-action.
   The full text navigation (Le projet / Programme / etc.) only appears
   once there is enough room for it, at the desktop breakpoint — this
   avoids shipping a hamburger interaction that doesn't add value on
   a single-page site where scrolling already reveals every section. */
header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 999;
  padding: 14px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
header .container{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
header.scrolled{
  background: rgba(14,29,60,.94);
  backdrop-filter: blur(10px);
  padding: 9px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.brand{ display:flex; align-items:center; }
.brand img{ height: 28px; width:auto; transition: height var(--transition); }
header.scrolled .brand img{ height: 25px; }

nav.main-nav{ display:none; align-items:center; gap: 40px; }

.nav-cta{
  padding: 11px 20px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-sub);
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero{
  min-height: 100dvh;
  display:flex;
  flex-direction: column;
  background: var(--navy);
  position: relative;
}
.hero-visual{
  position: relative;
  overflow:hidden;
  background: var(--navy);
  height: min(72vh, 560px);
  flex-shrink: 0;
}
.hero-visual img{
  width:100%; height:100%;
  object-fit: cover;
  object-position: 50% 15%;
}
.hero-visual::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(14,29,60,0) 45%, var(--navy) 96%);
  z-index:1;
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 8px 0 56px;
  position: relative;
  z-index: 2;
  flex: 1;
}
.hero-copy .deco-line{
  display:flex; align-items:center; gap:12px;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-copy .deco-line img{ width:16px; height:16px; }
.hero-copy .deco-line span.rule{ height:1px; width:40px; background: rgba(255,189,89,.5); }

.hero-logo{ width: min(230px, 56%); margin-bottom: 22px; }

.hero h1{
  color: var(--white);
  font-size: clamp(38px, 10vw, 78px);
  line-height: 1.04;
  margin-bottom: 6px;
}
.hero h1 em{ font-style: normal; color: var(--gold); }
.hero .subtitle{
  font-family: var(--font-sub);
  color: rgba(255,255,255,.88);
  font-size: clamp(16px, 3.6vw, 24px);
  letter-spacing: .02em;
  margin: 12px 0 22px;
  max-width: 46ch;
}
.hero .meta{
  display:flex; flex-direction: column; gap: 12px;
  color: rgba(255,255,255,.75);
  font-size: 14.5px;
  margin-bottom: 30px;
}
.hero .meta div{ display:flex; align-items:center; gap:10px; }
.hero .meta img{ width:16px; height:16px; opacity:.95; flex-shrink:0; }
.hero-actions{ display:flex; flex-direction: column; gap:12px; }
.hero-actions .btn{ width:100%; }

.starfield{
  position:absolute; inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.55) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 28% 68%, rgba(255,255,255,.4) 0, transparent 100%),
    radial-gradient(2px 2px at 46% 30%, rgba(255,255,255,.5) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 63% 12%, rgba(255,255,255,.35) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 18% 85%, rgba(255,255,255,.4) 0, transparent 100%),
    radial-gradient(2px 2px at 8% 50%, rgba(255,255,255,.45) 0, transparent 100%);
  background-repeat: no-repeat;
}
.scroll-cue{ display:none; }

/* ---------- Section commons ---------- */
.section-pad{ padding: var(--pad-section) 0; }
.section-head{ max-width: 720px; margin-bottom: 40px; }
.section-head h2{ font-size: clamp(28px, 6vw, 54px); margin-top: 10px; color: var(--navy); line-height:1.08; }
.section-head p.lead{ margin-top: 16px; font-size: 15.5px; color: #414d64; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- Le Projet ---------- */
.projet{ background: var(--cream); }
.projet-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items:center;
}
.projet-text p{ color:#3a4459; font-size: 15.5px; margin-bottom: 16px; }
.projet-text p.intro{
  font-family: var(--font-sub);
  font-size: 18px;
  color: var(--navy);
  line-height: 1.5;
}
.pillars{
  display:grid; grid-template-columns: 1fr; gap: 14px;
  margin-top: 28px;
}
.pillar{
  background: var(--white);
  border: 1px solid #eadfca;
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  display:flex; flex-direction:column;
}
@media (hover:hover){
  .pillar:hover{ transform: translateY(-6px); box-shadow: 0 20px 40px rgba(14,29,60,.08); }
}
.pillar img{ width:28px; height:28px; margin-bottom: 12px; object-fit:contain; }
.pillar h4{ font-family: var(--font-sub); font-size:15px; color:var(--navy); margin-bottom:6px; letter-spacing:.02em;}
.pillar p{ font-size: 13.5px; color:#5a6579; margin:0; }

.projet-photo{ position:relative; max-width: 420px; margin: 0 auto; width:100%; }
.projet-photo .frame{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 24px 50px rgba(14,29,60,.16);
  aspect-ratio: 4/3;
  background: var(--navy);
}
.projet-photo .frame img{ width:100%; height:100%; object-fit:cover; }
.projet-photo .badge{
  position:absolute; bottom:-22px; left: 16px; right: 16px;
  background: var(--navy);
  color:var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 16px 34px rgba(14,29,60,.28);
  display:flex; align-items:center; gap:12px;
}
.projet-photo .badge img{ width:22px; height:22px; object-fit:contain; flex-shrink:0; }
.projet-photo .badge strong{ display:block; font-family: var(--font-title); font-size:19px; color:var(--gold); line-height:1.2;}
.projet-photo .badge span{ font-size:10.5px; letter-spacing:.05em; text-transform:uppercase; color:rgba(255,255,255,.75);}

/* ---------- Programme (timeline) ---------- */
.programme{ background: var(--cream); }
.timeline{
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 0;
}
.timeline::before{
  content:'';
  position:absolute;
  left: calc(var(--tl-time-w) + var(--tl-gap) + (var(--tl-dot-w) / 2));
  top:26px; bottom:26px;
  width: 2px;
  transform: translateX(-1px);
  background: repeating-linear-gradient(180deg, rgba(230,111,0,.4) 0 7px, transparent 7px 14px);
}
.tl-item{
  display:grid;
  grid-template-columns: var(--tl-time-w) var(--tl-dot-w) 1fr;
  column-gap: var(--tl-gap);
  padding: 18px 0;
  align-items:flex-start;
}
.tl-time{
  font-family: var(--font-sub);
  color: var(--navy);
  font-size: 14px;
  padding-top: 4px;
  text-align:right;
  white-space: nowrap;
}
.tl-dot{
  width: var(--tl-dot-w); height: var(--tl-dot-w);
  border-radius:50%;
  background: var(--white);
  border: 2px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 16px rgba(14,29,60,.08);
  z-index:1;
  flex-shrink:0;
}
.tl-dot img{ width:15px; height:15px; object-fit:contain; }
.tl-content h4{
  font-family: var(--font-sub);
  font-size: 16px; color: var(--navy); margin-bottom:5px; letter-spacing:.01em;
}
.tl-content p{ margin:0; color:#4d5872; font-size:13.5px; }
.tl-content .tag{
  display:inline-block; margin-top:8px;
  font-size:10px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--bordeaux); background: rgba(107,31,31,.08);
  padding: 4px 10px; border-radius:999px;
}

/* ---------- Le lieu ---------- */
.lieu{ background: var(--white); }
.lieu-grid{
  display:grid; grid-template-columns: 1fr; gap: 32px; align-items:stretch;
}
.lieu-info h3{ font-family: var(--font-title); font-size: 26px; color:var(--navy); margin-bottom:14px; line-height:1.15; }
.lieu-info p{ color:#414d64; margin-bottom:14px; font-size: 15px; }
.lieu-facts{ display:flex; flex-direction:column; gap:14px; margin-top: 20px; }
.lieu-facts div{ display:flex; gap:12px; align-items:flex-start; }
.lieu-facts img{ width:19px; height:19px; margin-top:2px; object-fit:contain; flex-shrink:0; }
.lieu-facts strong{ display:block; font-family: var(--font-sub); font-size:13.5px; color:var(--navy); }
.lieu-facts span{ font-size:13.5px; color:#5a6579; }

.gares-block{
  margin-top: 26px;
  background: var(--cream);
  border: 1px solid #eadfca;
  border-radius: var(--radius);
  padding: 20px 20px;
}
.gares-label{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-sub);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--navy);
  margin: 0 0 14px;
}
.gares-label img{ width:14px; height:14px; object-fit:contain; flex-shrink:0; }
.gares-list{ display:flex; flex-direction:column; gap:10px; }
.gare-item{
  display:flex; flex-wrap: wrap; align-items:baseline; justify-content:space-between;
  gap: 8px 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e6dcc8;
}
.gare-item:last-child{ border-bottom:none; padding-bottom:0; }
.gare-name{ font-size: 13.5px; color:#333d51; }
.gare-time{
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--ember);
  white-space: nowrap;
}
.map-frame{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 20px 44px rgba(14,29,60,.13);
  min-height: 280px;
}
.map-frame iframe{ width:100%; height:100%; min-height:280px; border:0; filter: grayscale(.15) contrast(1.05); }

/* ---------- Rejoindre l'aventure ---------- */
.rejoindre{
  background: var(--navy);
  color: var(--white);
  position:relative;
  overflow:hidden;
}
.rejoindre .section-head h2{ color:var(--white); }
.rejoindre .section-head p.lead{ color: rgba(255,255,255,.75); }
.cards{
  display:grid; grid-template-columns: 1fr; gap: 18px;
}
.card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  display:flex; flex-direction:column;
}
@media (hover:hover){
  .card:hover{ transform: translateY(-6px); background: rgba(255,255,255,.07); border-color: rgba(255,189,89,.4); }
}
.card.card-link{ cursor:pointer; }
.card .icon-wrap{
  width:54px; height:54px; border-radius:50%;
  background: rgba(255,189,89,.12);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
  flex-shrink:0;
}
.card .icon-wrap img{ width:22px; height:22px; object-fit:contain; }
.card h3{ font-family: var(--font-sub); font-size:18px; margin-bottom:10px; color:var(--gold); }
.card p{ color: rgba(255,255,255,.72); font-size:13.5px; margin-bottom:0; }
.card .card-cta, .card a.card-cta{
  display:inline-flex; align-items:center; gap:6px;
  margin-top: 18px;
  font-family: var(--font-sub);
  font-size: 12.5px;
  letter-spacing:.03em;
  text-transform: uppercase;
  color: var(--gold);
}
.card .card-cta .arrow{ transition: transform .3s ease; }
@media (hover:hover){
  .card:hover .card-cta .arrow{ transform: translateX(5px); }
}

.contact-note{
  text-align:center; margin: 32px 0 0;
  color: rgba(255,255,255,.55);
  font-size: 13.5px;
}
.contact-note a{ color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
footer{
  background: var(--navy-deep);
  color: rgba(255,255,255,.65);
  padding: 48px 0 24px;
}
.footer-top{
  display:flex; flex-direction: column; gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand{
  display:flex; flex-direction:column; align-items:flex-start; gap:12px;
}
.footer-brand img{
  height:26px; width:auto; max-width:100%;
  align-self:flex-start;
  object-fit:contain;
}
.footer-brand p{ max-width: 340px; font-size:13.5px; color:rgba(255,255,255,.55); margin:0; }
.footer-cols{ display:grid; grid-template-columns: 1fr; gap: 28px; }
.footer-col h5{
  font-family: var(--font-sub); color:var(--gold); font-size:13px;
  text-transform:uppercase; letter-spacing:.08em; margin-bottom:14px;
}
.footer-col a, .footer-col p{ display:block; font-size:13.5px; color: rgba(255,255,255,.65); margin-bottom:10px; }
.footer-col a{ padding: 4px 0; }
.footer-col a:hover{ color: var(--gold); }
.footer-bottom{
  display:flex; flex-direction: column; gap:8px;
  padding-top: 22px; font-size:12px; color: rgba(255,255,255,.4);
}

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible{ opacity:1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ==========================================================================
   BREAKPOINT: ≥ 480px  (large phones, landscape phones)
   ========================================================================== */
@media (min-width: 480px){
  .hero-actions{ flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn{ width:auto; }
  .hero .meta{ flex-direction: row; flex-wrap: wrap; column-gap: 22px; row-gap: 10px; }
  .pillars{ grid-template-columns: 1fr 1fr; }
  .footer-cols{ grid-template-columns: 1fr 1fr; }
  .footer-bottom{ flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   BREAKPOINT: ≥ 640px  (small tablets / large phones landscape)
   ========================================================================== */
@media (min-width: 640px){
  :root{
    --tl-time-w: 78px;
    --tl-gap: 18px;
    --tl-dot-w: 40px;
  }
  .tl-dot img{ width:17px; height:17px; }
  .tl-time{ font-size:16px; }
  .tl-content h4{ font-size:17px; }
  .tl-content p{ font-size:14.5px; }
  .projet-photo{ max-width: 480px; }
  .cards{ grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   BREAKPOINT: ≥ 768px  (tablets)
   ========================================================================== */
@media (min-width: 768px){
  .hero-logo{ width: min(260px, 55%); }
  .section-head p.lead{ font-size: 16.5px; }
  .lieu-grid{ grid-template-columns: 1fr 1fr; gap: 44px; }
  .footer-top{ flex-direction: row; justify-content: space-between; align-items:flex-start; }
  .footer-brand{ flex: 0 1 320px; }
}

/* ==========================================================================
   BREAKPOINT: ≥ 980px  (desktop — full text navigation appears here)
   ========================================================================== */
@media (min-width: 980px){
  :root{
    --tl-time-w: 92px;
    --tl-gap: 24px;
    --tl-dot-w: 46px;
  }
  .tl-dot img{ width:19px; height:19px; }

  nav.main-nav{ display:flex; }
  nav.main-nav a{
    font-family: var(--font-sub);
    font-size:14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding:4px 0;
  }
  nav.main-nav a::after{
    content:''; position:absolute; left:0; bottom:-2px; width:0; height:1.5px;
    background: var(--gold); transition: width .3s ease;
  }
  @media (hover:hover){
    nav.main-nav a:hover::after{ width:100%; }
  }
  .nav-cta{
    padding:10px 24px; border-bottom:1.5px solid var(--gold); font-size:14px;
  }
  .brand img{ height:34px; }
  header.scrolled .brand img{ height:30px; }

  .hero{ flex-direction:row; min-height:100vh; }
  .hero-visual{ flex:1 1 48%; height:auto; order:2; }
  .hero-visual::before{ background: linear-gradient(90deg, var(--navy) 0%, rgba(14,29,60,0) 18%, rgba(14,29,60,0) 100%); }
  .hero-visual::after{
    content:''; position:absolute; inset:0; z-index:1;
    background: linear-gradient(0deg, rgba(9,19,38,.35), rgba(14,29,60,0) 42%);
  }
  .hero-visual img{ object-position: center 25%; }
  .hero-copy{ flex:1 1 52%; order:1; padding: 160px 4vw 100px 6vw; }
  .hero-logo{ width:min(300px,60%); margin-bottom:34px; }
  .hero .subtitle{ margin: 14px 0 30px; }
  .hero .meta{ margin-bottom:42px; }
  .scroll-cue{
    display:flex; position:absolute; bottom:34px; left:6vw; align-items:center; gap:10px;
    color: rgba(255,255,255,.6); font-family: var(--font-sub); font-size:12px;
    letter-spacing:.2em; text-transform:uppercase; z-index:3;
  }
  .scroll-cue .line{ width:1px; height:34px; background: rgba(255,255,255,.4); position:relative; overflow:hidden; }
  .scroll-cue .line::after{
    content:''; position:absolute; top:-100%; left:0; width:100%; height:100%;
    background: var(--gold); animation: scrolldrop 2.2s ease-in-out infinite;
  }

  .projet-grid{ grid-template-columns: 1.1fr .9fr; gap:70px; }
  .projet-photo{ max-width:none; }
  .projet-photo .frame{ aspect-ratio:4/5.1; }
  .projet-photo .badge{ left:-26px; right:auto; bottom:-26px; max-width:270px; padding:20px 24px; }
  .projet-photo .badge img{ width:26px; height:26px; }
  .projet-photo .badge strong{ font-size:24px; }

  .lieu-grid{ gap:60px; }

  .cards{ grid-template-columns: repeat(3, 1fr); gap:28px; }
  .card{ padding:40px 30px; }
  .card .icon-wrap{ width:64px; height:64px; margin-bottom:22px; }
  .card .icon-wrap img{ width:26px; height:26px; }
  .card h3{ font-size:20px; }
  .card p{ font-size:14.5px; }
}

@keyframes scrolldrop{ 0%{top:-100%;} 60%{top:100%;} 100%{top:100%;} }

/* ==========================================================================
   BREAKPOINT: ≥ 1180px  (large desktop, fine-tuning)
   ========================================================================== */
@media (min-width: 1180px){
  .hero .meta{ font-size:15px; }
}

/* ==========================================================================
   Very small phones (≤ 359px) — extra safety margin
   ========================================================================== */
@media (max-width: 359px){
  :root{
    --tl-time-w: 48px;
    --tl-gap: 8px;
    --tl-dot-w: 30px;
  }
  .hero h1{ font-size: 34px; }
  .btn{ font-size:13px; padding:14px 22px; }
}
