/* ===========================================================
   Festi'Ferme — feuille de style partagée
   Charte graphique : Acacia Studio
=========================================================== */

:root{
  --vert-prairie:#E2DC50;
  --vert-prairie-40:#EFEBA8;
  --bleu-nuit:#222147;
  --vert-menthe:#6CBE99;
  --rose-fushia:#EA4B94;
  --sable:#FFF4E6;
  --jaune:#F4CD0A;
  --rouge:#DA2C15;
  --bleu:#213B89;
  --bleu-ciel:#ACD0EE;
  --orange:#EF7C1E;
  --white:#FFFFFF;

  --font-display:'Baloo 2', sans-serif;
  --font-body:'Raleway', sans-serif;
  --font-script:'Sarina', cursive;

  --container: 1180px;
  --radius-soft: 28px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;}
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--bleu-nuit);
  background:var(--sable);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  margin:0;
  letter-spacing:0.2px;
}

p{ line-height:1.6; margin:0 0 1em; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
section{ position:relative; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:1rem;
  padding:14px 28px;
  border-radius:999px;
  border:3px solid var(--bleu-nuit);
  text-decoration:none;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
  background:var(--white);
  color:var(--bleu-nuit);
}
.btn:hover{ transform:translateY(-3px); box-shadow:0 8px 0 0 rgba(34,33,71,0.15); }
.btn:focus-visible{ outline:3px solid var(--rose-fushia); outline-offset:3px; }
.btn-primary{ background:var(--rose-fushia); color:var(--white); border-color:var(--bleu-nuit); }
.btn-dark{ background:var(--bleu-nuit); color:var(--white); border-color:var(--bleu-nuit); }
.btn-outline-light{ background:transparent; color:var(--white); border-color:var(--white); }

/* ---------- Scallop badges (signature element) ---------- */
.scallop{
  display:inline-block;
  position:relative;
  padding:0.55em 1.6em;
  font-family:var(--font-display);
  font-weight:700;
  border-radius:999px;
  line-height:1.2;
}
.scallop-yellow{ background:var(--vert-prairie); color:var(--bleu-nuit); }
.scallop-navy{ background:var(--bleu-nuit); color:var(--white); }
.scallop-pink{ background:var(--rose-fushia); color:var(--white); }
.scallop-mint{ background:var(--vert-menthe); color:var(--bleu-nuit); }

.eyebrow-wrap{ margin-bottom:18px; }

/* ---------- Header / Nav ---------- */
header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,244,230,0.92);
  backdrop-filter:blur(6px);
  border-bottom:2px solid rgba(34,33,71,0.08);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
  max-width:var(--container);
  margin:0 auto;
}
.nav-logo img{ height:42px; width:auto; }
.nav-logo{ display:flex; align-items:center; text-decoration:none; }
nav.nav-links{ display:flex; align-items:center; gap:26px; }
nav.nav-links a{
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
  color:var(--bleu-nuit);
  position:relative;
  padding:4px 2px;
}
nav.nav-links a::after{
  content:'';
  position:absolute;
  left:0; bottom:-3px;
  width:0%; height:3px;
  background:var(--rose-fushia);
  border-radius:3px;
  transition:width .2s ease;
}
nav.nav-links a:hover::after, nav.nav-links a.active::after{ width:100%; }
nav.nav-links a.active{ color:var(--rose-fushia); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-cta .btn{ padding:10px 20px; font-size:0.9rem; }
.menu-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}
.menu-toggle span{
  display:block;
  width:26px;
  height:3px;
  background:var(--bleu-nuit);
  margin:5px 0;
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}

@media (max-width: 920px){
  nav.nav-links{
    position:fixed;
    top:72px; left:0; right:0;
    background:var(--sable);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 24px 20px;
    border-bottom:2px solid rgba(34,33,71,0.08);
    transform:translateY(-130%);
    opacity:0;
    transition:transform .25s ease, opacity .25s ease;
    pointer-events:none;
    max-height:80vh;
    overflow-y:auto;
  }
  nav.nav-links.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  nav.nav-links a{ width:100%; padding:12px 0; border-bottom:1px solid rgba(34,33,71,0.06); }
  .nav-cta .btn-text{ display:none; }
  .menu-toggle{ display:block; }
}

/* ---------- Wave dividers (signature transition, inspired by organic
   shapes used across the brand's illustrations) ---------- */
.wave-divider{
  display:block;
  width:100%;
  height:auto;
  line-height:0;
  margin:0;
  position:relative;
}
.wave-divider svg{ display:block; width:100%; height:60px; }
@media (max-width:700px){ .wave-divider svg{ height:34px; } }

/* ---------- Fade up on scroll ---------- */
.fade-up{ opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.fade-up.in-view{ opacity:1; transform:translateY(0); }
.fade-up.stagger.in-view > *{ animation:none; }

/* ---------- Page header (sub-pages) ---------- */
.page-header{
  padding:60px 0 90px;
  background:var(--vert-prairie);
  position:relative;
  overflow:hidden;
}
.page-header .container{ position:relative; z-index:2; }
.page-header h1{ font-size:clamp(2.2rem, 5vw, 3.4rem); max-width:680px; }
.page-header p{ max-width:50ch; font-size:1.08rem; margin-top:14px; color:rgba(34,33,71,0.8); }
.page-header .breadcrumb{ font-size:0.85rem; font-weight:700; opacity:0.7; margin-bottom:14px; }
.page-header .breadcrumb a{ text-decoration:none; }
.page-header .breadcrumb a:hover{ text-decoration:underline; }
.page-deco{ position:absolute; pointer-events:none; opacity:0.95; }

/* ---------- Quadrant quick-nav grid (home) ---------- */
.quad-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}
.quad-card{
  border-radius:24px;
  padding:30px 24px;
  text-decoration:none;
  color:var(--bleu-nuit);
  border:3px solid var(--bleu-nuit);
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:190px;
  justify-content:space-between;
  transition:transform .2s ease, box-shadow .2s ease;
  position:relative;
  overflow:hidden;
}
.quad-card:hover{ transform:translateY(-6px); box-shadow:0 12px 0 0 var(--bleu-nuit); }
.quad-card .quad-icon{ font-size:2.1rem; }
.quad-card h3{ font-size:1.25rem; line-height:1.2; }
.quad-card span.quad-arrow{ font-weight:700; font-size:0.9rem; }
.quad-1{ background:var(--vert-prairie); }
.quad-2{ background:var(--rose-fushia); color:var(--white); border-color:var(--bleu-nuit); }
.quad-3{ background:var(--vert-menthe); }
.quad-4{ background:var(--bleu-ciel); }

@media (max-width:920px){ .quad-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .quad-grid{ grid-template-columns:1fr; } }

/* ---------- Countdown ---------- */
.countdown{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.countdown .cd-item{
  background:var(--bleu-nuit);
  color:var(--white);
  border-radius:18px;
  padding:14px 18px;
  text-align:center;
  min-width:78px;
}
.countdown .cd-num{
  font-family:var(--font-display);
  font-size:1.8rem;
  font-weight:700;
  display:block;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.countdown .cd-label{
  font-size:0.65rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  opacity:0.8;
}

/* ---------- Icon trio (objectifs) ---------- */
.trio{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.trio-item{ text-align:center; padding:10px; }
.trio-icon{
  width:64px; height:64px;
  border-radius:50%;
  background:var(--white);
  border:3px solid var(--bleu-nuit);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px;
  font-size:1.7rem;
}
.trio-item h4{ font-size:1.1rem; margin-bottom:8px; }
.trio-item p{ font-size:0.92rem; color:rgba(34,33,71,0.72); margin:0; }
@media (max-width:760px){ .trio{ grid-template-columns:1fr; gap:30px; } }

/* ---------- Stat row ---------- */
.stat-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.stat-card{
  background:var(--white);
  border:3px solid var(--bleu-nuit);
  border-radius:20px;
  padding:24px 18px;
  text-align:center;
}
.stat-num{ font-family:var(--font-display); font-size:2.1rem; color:var(--rose-fushia); display:block; }
.stat-label{ font-size:0.82rem; color:rgba(34,33,71,0.7); margin-top:4px; }
@media (max-width:760px){ .stat-row{ grid-template-columns:1fr 1fr; } }

/* ---------- Generic section paddings ---------- */
.section-pad{ padding:90px 0; }
@media (max-width:760px){ .section-pad{ padding:60px 0; } }

/* ---------- About / intro (reused across pages) ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:60px;
  align-items:center;
}
.about-text h2{ font-size:clamp(2rem, 4vw, 2.8rem); line-height:1.15; margin-bottom:22px; }
.about-text p{ font-size:1.08rem; max-width:50ch; }
.about-tags{ display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.about-visual{ position:relative; display:flex; justify-content:center; }
.about-visual img{ width:78%; filter:drop-shadow(0 18px 18px rgba(34,33,71,0.18)); }
.float-leaf{
  position:absolute;
  width:34%;
  top:-8%;
  left:2%;
  opacity:0.9;
  animation:sway 7s ease-in-out infinite;
}
@keyframes sway{
  0%,100%{ transform:rotate(-3deg) translateY(0); }
  50%{ transform:rotate(2deg) translateY(-10px); }
}
@media (max-width: 860px){
  .about-grid{ grid-template-columns:1fr; gap:40px; }
  .about-visual{ order:-1; }
  .about-visual img{ width:55%; }
}

/* ---------- Programme timeline ---------- */
.programme-band{
  background:var(--vert-prairie);
  padding:90px 0 110px;
  position:relative;
  overflow:hidden;
}
.programme-band .container{ position:relative; z-index:2; }
.programme-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  flex-wrap:wrap;
  gap:24px;
  margin-bottom:48px;
}
.programme-head h2{ font-size:clamp(2rem,4vw,2.8rem); }
.nowrap-title{ white-space:nowrap; font-size:clamp(1.3rem, 3.4vw, 2.8rem); }
@media (max-width:480px){ .nowrap-title{ font-size:clamp(1.05rem, 5vw, 1.6rem); } }
.programme-date{
  font-family:var(--font-body);
  font-weight:700;
  font-size:1.05rem;
  background:var(--bleu-nuit);
  color:var(--white);
  padding:10px 20px;
  border-radius:999px;
}
.timeline{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
}
.slot{
  background:var(--sable);
  border:3px solid var(--bleu-nuit);
  border-radius:20px;
  padding:20px 22px;
  display:flex;
  align-items:center;
  gap:18px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.slot:hover{ transform:translateY(-4px); box-shadow:0 10px 0 0 var(--bleu-nuit); }
.slot-time{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  color:var(--rose-fushia);
  white-space:nowrap;
  min-width:118px;
}
.slot-name{ font-family:var(--font-display); font-weight:600; font-size:1.15rem; }
.slot-note{ font-family:var(--font-body); font-weight:400; font-size:0.85rem; color:#48476a; margin-top:4px; }
.slot.special{ background:var(--white); border-style:dashed; }
.slot.cancelled{ position:relative; opacity:0.65; }
.slot.cancelled .slot-time,
.slot.cancelled .slot-name{ text-decoration:line-through; text-decoration-thickness:2px; }
.slot-cancel-badge{
  position:absolute;
  top:-12px;
  right:16px;
  background:var(--rouge);
  color:var(--white);
  font-family:var(--font-display);
  font-weight:700;
  font-size:0.75rem;
  text-transform:uppercase;
  letter-spacing:0.04em;
  padding:5px 14px;
  border-radius:999px;
  border:2px solid var(--bleu-nuit);
  transform:rotate(-4deg);
}
@media (max-width: 720px){ .timeline{ grid-template-columns:1fr; } }

/* ---------- Billetterie ---------- */
.billetterie-band{
  background:var(--bleu-nuit);
  color:var(--white);
  padding:90px 0;
  position:relative;
  overflow:hidden;
}
.billet-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap:56px;
  align-items:start;
}
.billet-grid h2{ color:var(--white); font-size:clamp(2rem,4vw,2.8rem); margin-bottom:18px; }
.billet-grid p{ color:rgba(255,255,255,0.82); max-width:46ch; }
.price-cards{ display:flex; gap:16px; margin:30px 0 32px; flex-wrap:wrap; }
.price-card{
  flex:1 1 160px;
  background:rgba(255,255,255,0.06);
  border:2px solid rgba(255,255,255,0.25);
  border-radius:20px;
  padding:22px;
  text-align:center;
}
.price-card.highlight{ background:var(--rose-fushia); border-color:var(--rose-fushia); }
.price-card .price{ font-family:var(--font-display); font-size:2.4rem; font-weight:700; display:block; }
.price-card .label{ font-size:0.85rem; opacity:0.85; text-transform:uppercase; letter-spacing:0.06em; }
.billet-embed{
  background:var(--white);
  border-radius:24px;
  padding:22px;
  color:var(--bleu-nuit);
  box-shadow:0 30px 60px -25px rgba(0,0,0,0.5);
}
.billet-embed-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.billet-embed-head h3{ font-size:1.2rem; }
.billetweb-frame{
  width:100%;
  min-height:600px;
  border-radius:16px;
  overflow:hidden;
  background:var(--sable);
}
.billetweb-frame iframe{
  width:100% !important;
  border:0;
  display:block;
}
@media (max-width: 860px){ .billet-grid{ grid-template-columns:1fr; gap:40px; } }

/* checklist cards (infos pratiques style, echoing H-Run bullet cards) */
.check-card{
  background:var(--white);
  border:3px solid var(--bleu-nuit);
  border-radius:22px;
  padding:26px;
}
.check-card h3{ display:flex; align-items:center; gap:10px; font-size:1.1rem; margin-bottom:16px; }
.check-card ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.check-card li{ display:flex; gap:10px; align-items:flex-start; font-size:0.95rem; }
.check-card li::before{ content:'✓'; color:var(--vert-menthe); font-weight:900; flex-shrink:0; }

/* Artist card with photo placeholder */
.artist-card{ display:flex; flex-direction:column; gap:14px; }
.artist-photo{
  width:100%;
  aspect-ratio:4/3;
  border-radius:16px;
  overflow:hidden;
  border:2px solid var(--bleu-nuit);
}
.artist-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.artist-card h3{ display:flex; align-items:center; gap:8px; font-size:1.1rem; margin:0; }

/* ---------- Infos pratiques grid ---------- */
.infos-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.info-card{
  background:var(--white);
  border:3px solid var(--bleu-nuit);
  border-radius:22px;
  padding:28px 24px;
  position:relative;
}
.info-card .icon-badge{
  width:48px; height:48px;
  border-radius:50%;
  background:var(--vert-menthe);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
  font-size:1.3rem;
}
.info-card h3{ font-size:1.15rem; margin-bottom:10px; }
.info-card p{ font-size:0.95rem; color:#4a4966; margin-bottom:0;}
.info-card a{ color:var(--rose-fushia); font-weight:700; text-decoration:none; }
@media (max-width: 900px){ .infos-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 600px){ .infos-grid{ grid-template-columns:1fr; } }

.map-wrap{
  border-radius:24px;
  overflow:hidden;
  border:4px solid var(--bleu-nuit);
  height:380px;
}
.map-wrap iframe{ width:100%; height:100%; border:0; display:block; }

/* ---------- Partenaires ---------- */
.partenaires-band{ background:var(--vert-menthe); padding:80px 0; }
.partenaires-head{ text-align:center; margin-bottom:36px; }
.partenaires-head h2{ font-size:clamp(1.8rem,3.4vw,2.4rem); }
.partner-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
  max-width:880px;
  margin:0 auto;
}
.partner-chip{
  background:var(--white);
  border-radius:999px;
  padding:10px 22px;
  font-weight:600;
  font-size:0.92rem;
  border:2px solid var(--bleu-nuit);
}

/* Partner cards with logo placeholder above name */
.partner-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:16px;
  max-width:1000px;
  margin:0 auto;
}
.partner-card{
  background:var(--white);
  border:2px solid var(--bleu-nuit);
  border-radius:18px;
  padding:18px 12px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
}
.partner-logo{
  width:100%;
  height:76px;
  background:var(--white);
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  padding:8px;
}
.partner-logo img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
}
.partner-card .partner-name{ font-size:0.85rem; font-weight:600; line-height:1.25; }
@media (max-width:900px){ .partner-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .partner-grid{ grid-template-columns:repeat(2,1fr); } }
.partenaires-foot{ text-align:center; margin-top:34px; font-size:0.9rem; color:rgba(34,33,71,0.75); }

.tier-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:30px;
}
.tier-card{
  background:var(--white);
  border:3px solid var(--bleu-nuit);
  border-radius:22px;
  padding:30px 24px;
  text-align:center;
}
.tier-card h3{ font-size:1.2rem; margin-bottom:10px; }
.tier-card p{ font-size:0.9rem; color:#4a4966; }
@media (max-width:860px){ .tier-grid{ grid-template-columns:1fr; } }

/* ---------- Decorative illustration anchors ---------- */
.deco-img{ position:absolute; pointer-events:none; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background:var(--rose-fushia);
  color:var(--white);
  padding:70px 0;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-banner h2{ font-size:clamp(1.8rem,4vw,2.6rem); margin-bottom:18px; color:var(--white); }
.cta-banner p{ color:rgba(255,255,255,0.9); max-width:50ch; margin:0 auto 28px; }
.cta-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ---------- Footer ---------- */
footer{ background:var(--bleu-nuit); color:var(--white); padding:70px 0 30px; position:relative; overflow:hidden; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:40px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,0.15);
}
.footer-brand img{ height:46px; margin-bottom:14px; }
.footer-brand p{ color:rgba(255,255,255,0.75); max-width:36ch; font-size:0.92rem; }
footer h4{ font-family:var(--font-body); font-weight:700; font-size:0.95rem; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:16px; color:var(--vert-prairie); }
footer ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
footer a{ text-decoration:none; color:rgba(255,255,255,0.85); font-size:0.95rem; }
footer a:hover{ color:var(--rose-fushia); }
.socials{ display:flex; gap:12px; margin-top:6px; }
.socials a{
  width:38px; height:38px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,0.4);
  display:flex; align-items:center; justify-content:center;
}
.socials a:hover{ border-color:var(--rose-fushia); }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  padding-top:24px; font-size:0.82rem; color:rgba(255,255,255,0.55);
}
.leaf-deco-footer{
  position:absolute; right:-20px; top:-30px; width:160px; opacity:0.18; transform:rotate(15deg);
  pointer-events:none;
}
@media (max-width: 760px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:span 2; }
}
@media (max-width: 480px){
  .footer-grid{ grid-template-columns:1fr; }
  .footer-brand{ grid-column:span 1; }
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
:focus-visible{ outline:3px solid var(--rose-fushia); outline-offset:2px; }
