:root{
  --cream:#FBF3E4;
  --cream-2:#F7E9CF;
  --card:#FAEAD0;
  --card-warm:#F9E2C2;
  --red:#E63329;
  --red-soft:#F25C4D;
  --green:#14502E;
  --green-2:#1F6B41;
  --yellow:#F5B82E;
  --yellow-d:#E29C12;
  --pink:#F2A9B6;
  --ink:#2C2620;
  --muted:#6E6457;
  --radius:22px;
  --shadow:0 18px 40px -22px rgba(44,38,32,.45);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Nunito",system-ui,sans-serif;
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:"Baloo 2",sans-serif;line-height:1.05;margin:0}
html,body{overflow-x:hidden}
#festival,#infos,#inscription,#programme,#exposer,#contact{scroll-margin-top:84px}
.wrap{width:100%;max-width:1180px;margin-inline:auto;padding-inline:clamp(16px,4vw,32px)}
.hand{font-family:"Caveat",cursive}

/* ---------- HEADER ---------- */
.header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:rgba(251,243,228,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(44,38,32,.08);
  transform:translateY(-100%);transition:transform .35s ease;
}
.header.show{transform:translateY(0)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:.7rem 0;gap:1rem}
.nav .logo{height:42px;width:auto}
.nav-links{display:flex;align-items:center;gap:1.6rem;list-style:none;margin:0;padding:0}
.nav-links a{
  font-weight:700;font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;
  color:var(--green);transition:color .2s;
}
.nav-links a:hover{color:var(--red)}
.nav-cta,.nav-cta:hover{color:var(--green);font-size:.82rem;padding:.5rem 1.2rem}
.btn{
  font-family:"Baloo 2",sans-serif;font-weight:600;
  border:none;cursor:pointer;display:inline-flex;align-items:center;gap:.4rem;
  border-radius:999px;transition:transform .15s,box-shadow .15s;
}
.btn:active{transform:scale(.97)}
.btn-yellow{background:var(--yellow);color:var(--green);padding:.55rem 1.3rem;font-size:.95rem;box-shadow:0 4px 0 var(--yellow-d)}
.btn-yellow:hover{transform:translateY(-1px)}
.btn-red{background:var(--red);color:#fff;padding:.85rem 1.7rem;font-size:1.05rem;box-shadow:0 5px 0 #b8261e}
.btn-red:hover{transform:translateY(-1px)}
.burger{display:none;background:none;border:none;cursor:pointer;color:var(--green);padding:.3rem}
.burger svg{width:30px;height:30px}

/* ---------- HERO ---------- */
.hero{position:relative;padding:2.5rem 0 1rem}
.hero-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:2rem;align-items:center}
.hero-text{display:flex;flex-direction:column;align-items:center;text-align:center}
.hero-logo{width:min(560px,92%);margin:0 auto .1rem;filter:drop-shadow(0 6px 12px rgba(230,51,41,.18))}
.hero-sub{font-family:"Baloo 2",sans-serif;font-size:1.85rem;color:var(--green);font-weight:600;
  line-height:1.12;max-width:22ch;margin:.1rem auto 0}
.sub-underline{display:block;width:230px;max-width:70%;height:auto;margin:.15rem auto 0}
.date-badge{
  display:inline-flex;flex-direction:column;align-items:center;gap:.1rem;
  background:url(../img/date-badge-bg.png) center/100% 100% no-repeat;
  padding:1.5rem 3.4rem 1.7rem;margin-top:1.6rem;
  transform:rotate(-1.5deg);filter:drop-shadow(0 12px 16px rgba(44,38,32,.22));position:relative;
}
.date-badge .d{font-family:"Baloo 2";font-weight:700;font-size:2.9rem;color:var(--red);line-height:1}
.date-badge .h{font-family:"Baloo 2";font-weight:700;font-size:1.7rem;color:var(--green);display:flex;align-items:center;gap:.5rem}
.date-badge .h::before,.date-badge .h::after{content:"»";color:var(--red);font-weight:700}
.date-badge .h::after{content:"«"}
/* phone : cadre = image PNG, video derriere la fenetre transparente */
.phone{position:relative;width:min(340px,92%);margin-inline:auto;aspect-ratio:662/1276;
  transform:translateX(-18px);filter:drop-shadow(0 22px 32px rgba(44,38,32,.28))}
.phone-frame{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
/* fenetre ecran (insets mesures sur le PNG, leger debord pour couvrir sous le cadre) */
.phone-screen{position:absolute;top:9%;left:5%;right:8.5%;bottom:9%;z-index:1;overflow:hidden;background:#16321f}
.phone-screen video,.phone-screen img.poster{width:100%;height:100%;object-fit:cover}
.play-btn{position:absolute;inset:0;margin:auto;width:68px;height:68px;border-radius:50%;
  background:rgba(255,255,255,.92);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:transform .15s;z-index:3}
.play-btn:hover{transform:scale(1.07)}
.play-btn svg{width:28px;height:28px;margin-left:2px;fill:var(--green)}
/* note manuscrite en bas a droite du telephone */
.phone-note{position:absolute;top:42px;left:calc(100% + 4px);right:auto;width:200px;display:flex;flex-direction:column;align-items:flex-start;z-index:4;pointer-events:none}
.phone-note .arr{width:62px;height:auto;margin:2px 0 0 -10px}
.phone-note p{font-family:"Caveat",cursive;font-weight:700;font-size:1.3rem;line-height:1.05;color:var(--green);margin:0;text-align:center;width:100%}
.vid-caption{position:absolute;left:0;right:0;bottom:0;padding:.7rem .8rem;z-index:1;
  background:linear-gradient(to top,rgba(0,0,0,.7),transparent);color:#fff;font-size:.8rem;font-weight:600}
.vid-caption .t{font-weight:800}
.vid-time{position:absolute;right:.5rem;bottom:.5rem;color:#fff;font-size:.7rem;font-weight:700;opacity:.9;z-index:1}

/* chute aleatoire : positions/tailles/vitesses/flou tires au hasard par script.js.
   profondeur = taille + flou + opacite + vitesse. Mouvement en transform (fluide, flou stable). */
.hero{position:relative}
.hero-deco{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 80%,transparent);
  mask-image:linear-gradient(to bottom,#000 80%,transparent)}
.hero-grid{position:relative;z-index:1}
.orbit{position:absolute;top:0;height:auto;will-change:transform;opacity:0}

/* ---------- PILLARS ---------- */
.pillars{padding:4.5rem 0 1.5rem;position:relative}
.pillars-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;text-align:center;position:relative;z-index:1}
.picto{width:146px;height:146px;object-fit:cover;margin:0 auto .8rem;border-radius:50%;
  border:4px solid var(--green);background:#FFF5EB;
  box-shadow:0 16px 30px -14px rgba(20,80,46,.4), 0 4px 12px rgba(20,80,46,.1);
  transition:transform .55s ease, box-shadow .55s ease}
.pillar:hover .picto{transform:translateY(-12px);
  box-shadow:0 28px 38px -16px rgba(20,80,46,.45), 0 8px 16px rgba(20,80,46,.12);
  transition:transform .18s ease-out, box-shadow .18s ease-out}
@media(prefers-reduced-motion:reduce){.pillar:hover .picto{transform:none}}
.pillar h3{font-size:1.375rem;font-weight:700;color:var(--green);text-transform:uppercase;
  letter-spacing:.02em;line-height:1.15;max-width:230px;margin:.4rem auto 0}
.dotline{position:absolute;top:14px;left:6%;right:6%;z-index:0;opacity:.8}
.dotline svg{width:100%;height:auto;display:block}
.dotline path{stroke:var(--red);stroke-width:11;stroke-linecap:round;fill:none;stroke-dasharray:0.1 30}

/* ---------- SECTION HELPERS ---------- */
section{position:relative}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem;margin:2.5rem auto}
.card{background:var(--card);border-radius:var(--radius);padding:1.8rem;box-shadow:var(--shadow)}
.card.warm{background:var(--card-warm)}
.prog{display:grid;grid-template-columns:.85fr 1.15fr;gap:1.3rem;align-items:start}
.prog img{border-radius:16px;aspect-ratio:20/30;object-fit:cover;width:100%;
  box-shadow:0 26px 40px -18px rgba(44,38,32,.45), 0 8px 16px -8px rgba(44,38,32,.25)}
.prog h2{font-size:1.7rem;color:var(--green);text-transform:uppercase}
.prog h2 .hl{color:var(--red);display:block}
.prog p{font-size:.95rem;color:var(--muted);margin:.8rem 0 0}

/* newsletter */
.news{display:flex;flex-direction:column;gap:.9rem}
.news .head{display:flex;gap:1rem;align-items:flex-start}
.news .mail{flex:none;width:58px;height:58px;border-radius:50%;background:var(--green);
  display:flex;align-items:center;justify-content:center}
.news .mail svg{width:28px;height:28px;stroke:#fff;fill:none;stroke-width:2}
.news .head p{margin:0;font-size:1.05rem;color:var(--green);font-weight:700;line-height:1.3}
.field{width:100%;padding:.85rem 1rem;border-radius:12px;border:1.5px solid #e2cfa6;
  background:#fff;font-family:inherit;font-size:1rem}
.field:focus{outline:none;border-color:var(--yellow-d)}
.name-row{display:flex;gap:.6rem;flex-wrap:wrap}
.name-row .field{flex:1;min-width:130px}
.news .priv{display:flex;gap:.5rem;align-items:flex-start;font-size:.8rem;color:var(--muted)}
.news .priv svg{width:18px;height:18px;flex:none;stroke:var(--green);fill:none;margin-top:1px}
.news .priv a{color:var(--green-2);font-weight:700;word-break:break-word}
.news .ok,.ok{font-size:.9rem;color:var(--green-2);font-weight:700;display:none}
.priv svg{width:18px;height:18px;flex:none;stroke:var(--green);fill:none;margin-top:1px}

/* ---------- FEATURE CARDS ---------- */
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem;margin:1.5rem auto 3rem}
.feat-title{text-align:center;color:var(--green);font-size:2.3rem;margin:5rem auto 2.5rem;line-height:1.15}
.feat{background:var(--card);border-radius:18px;padding:.8rem .8rem 1.1rem;box-shadow:var(--shadow);
  transition:transform .3s ease, box-shadow .3s ease}
.feat:hover{transform:translateY(-6px);box-shadow:0 26px 46px -24px rgba(44,38,32,.5)}
.feat .ph{border-radius:14px;overflow:hidden;aspect-ratio:3/2;margin-bottom:.7rem}
.feat .ph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.feat:hover .ph img{transform:scale(1.06)}
.feat h3{font-size:1.15rem;color:var(--green);font-weight:700;margin:.1rem 0 .15rem;line-height:1.1}
.feat .lead{font-family:"Caveat",cursive;font-weight:700;font-size:1.25rem;color:var(--green-2);margin:0 0 1.1rem;line-height:1.05}
.tag-row{display:flex;flex-wrap:wrap;gap:.45rem}
.tag{font-size:.8rem;font-weight:700;color:var(--green);background:var(--cream-2);
  border:1px solid rgba(20,80,46,.14);border-radius:999px;padding:.34rem .7rem;line-height:1;
  transition:background .2s ease, color .2s ease, border-color .2s ease}
.tag:hover{background:var(--red-soft);color:#fff;border-color:var(--red-soft)}
@media(prefers-reduced-motion:reduce){.feat:hover{transform:none}.feat:hover .ph img{transform:none}}

/* ---------- LOCATION ---------- */
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.btn-green{background:var(--green);color:#fff}
.btn-green:hover{background:var(--green-2)}
/* CTA participer */
.join{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;
  background:var(--card-warm);border:2px dashed rgba(20,80,46,.3);border-radius:var(--radius);
  padding:1.6rem 2rem;margin:2.5rem auto}
.join-txt h3{color:var(--green);font-size:1.45rem;margin:0 0 .2rem}
.join-txt p{margin:0;color:var(--ink);max-width:62ch}
.join .btn{flex:none;white-space:nowrap}
/* liens "comment venir" */
.go{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-top:1.2rem}
.go-lbl{font-weight:700;color:var(--green);font-size:.95rem;width:100%}
.go a{display:inline-flex;align-items:center;gap:.4rem;font-weight:700;font-size:.9rem;color:var(--green);
  background:#fff;border:1.5px solid rgba(20,80,46,.18);border-radius:999px;padding:.5rem .9rem;
  transition:background .2s,color .2s,border-color .2s}
.go a svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.go a:hover{background:var(--green);color:#fff;border-color:var(--green)}
/* infos cles */
.infos-key{list-style:none;margin:1.6rem 0 0;padding:1.4rem 0 0;border-top:1px solid rgba(44,38,32,.12);
  display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.infos-key li{display:flex;align-items:center;gap:.55rem;font-weight:700;color:var(--green);font-size:.95rem;line-height:1.2}
.infos-key svg{width:24px;height:24px;flex:none;fill:none;stroke:var(--green);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
/* 2 boutons editions */
.cta-btns{display:flex;gap:.8rem;flex-wrap:wrap}
/* modale */
.modal{position:fixed;inset:0;z-index:100;display:none}
.modal.open{display:block}
.modal-backdrop{position:absolute;inset:0;background:rgba(20,30,20,.55)}
.modal-box{position:relative;max-width:540px;margin:6vh auto;background:var(--cream);border-radius:var(--radius);
  padding:2rem;box-shadow:0 30px 60px -20px rgba(0,0,0,.5);max-height:88vh;overflow:auto}
.modal-x{position:absolute;top:.7rem;right:1rem;background:none;border:none;font-size:2rem;line-height:1;
  color:var(--muted);cursor:pointer}
.modal-box h3{color:var(--green);font-size:1.6rem;margin:0 .8rem 0 0}
.modal-sub{color:var(--muted);margin:.3rem 0 1.2rem}
.join-form{display:flex;flex-direction:column;gap:.7rem}
.join-form select.field{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314502E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .8rem center;background-size:18px;padding-right:2.4rem}
.join-form textarea.field{resize:vertical;font-family:inherit}

/* ---------- LOCATION ---------- */
.loc{background:var(--card);border-radius:var(--radius);padding:2rem;margin:2.5rem 0;box-shadow:var(--shadow)}
.loc-grid{display:grid;grid-template-columns:.7fr 1.4fr .8fr;gap:1.4rem;align-items:center}
.loc h2 .small{font-size:1.4rem;color:var(--green);display:block;font-weight:600}
.loc h2 .big{font-size:2.6rem;color:var(--red);display:block;line-height:.95;margin:.1rem 0}
.loc h2 .small2{font-size:1.4rem;color:var(--green);display:block;font-weight:600}
.loc .addr{margin-top:1.2rem;font-size:.95rem;color:var(--ink)}
.loc .addr .pin{display:flex;gap:.5rem;align-items:flex-start;font-weight:700;margin-bottom:.6rem}
.loc .addr .pin svg{width:20px;height:20px;flex:none;fill:var(--red)}
.loc-map img{border-radius:16px;width:100%}
.loc-photo img{border-radius:8px;width:100%;transform:rotate(2.5deg);
  border:8px solid #fff;box-shadow:var(--shadow)}

/* ---------- CTA BANNER ---------- */
.cta{background:var(--red-soft);border-radius:var(--radius);padding:1.6rem 2rem;margin:2.5rem 0;
  display:flex;align-items:center;justify-content:space-between;gap:1.2rem;color:#fff;box-shadow:var(--shadow)}
.cta .txt{display:flex;gap:1rem;align-items:center}
.cta .txt svg{width:46px;height:46px;flex:none;stroke:#fff;fill:none;stroke-width:1.8}
.cta h3{font-size:1.3rem;text-transform:uppercase;letter-spacing:.02em}
.cta p{margin:.15rem 0 0;font-size:.92rem;opacity:.95}

/* ---------- FOOTER ---------- */
.footer{padding:2.5rem 0 1.5rem;border-top:1px solid rgba(44,38,32,.1);margin-top:1rem}
.footer-top{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.asso{display:flex;align-items:center;gap:.6rem}
.asso-logo img{height:150px;width:auto;transition:transform .25s ease}
.asso-logo:hover img{transform:translateY(-3px)}
.asso-note{display:flex;align-items:center;gap:.5rem;max-width:230px}
.asso-note .arr{width:56px;height:auto;flex:none;transform:scaleX(-1)}
.asso-note span{font-family:"Caveat",cursive;font-weight:700;font-size:1.25rem;line-height:1.05;color:var(--green-2)}
.asso-note:hover span{color:var(--green)}
.social{display:flex;align-items:center;gap:.9rem;font-family:"Baloo 2";font-weight:600;color:var(--green)}
.social a{width:42px;height:42px;border-radius:50%;background:var(--green);display:flex;align-items:center;justify-content:center;transition:transform .15s}
.social a:hover{transform:translateY(-2px)}
.social svg{width:20px;height:20px;fill:#fff}
.footer-dl{margin-top:1.6rem;text-align:center}
.footer-legal{margin-top:1.6rem;font-size:.78rem;color:var(--muted);text-align:center;line-height:1.5}
.footer-legal a{color:var(--green-2);font-weight:700}
.footer-legal a{color:var(--green-2);font-weight:700}

/* ---------- RESPONSIVE ---------- */
@media(max-width:900px){
  .hero-grid,.two-col,.prog,.loc-grid{grid-template-columns:1fr}
  .features{grid-template-columns:repeat(2,1fr)}
  .pillars-grid{grid-template-columns:1fr;gap:1.8rem}
  .dotline{display:none}
  .phone-note{display:none}
  .phone{max-width:300px;transform:none}
  .hero-sub{font-size:1.6rem}
  .loc-photo{display:none}
  .infos-key{grid-template-columns:repeat(2,1fr)}
  .join{flex-direction:column;text-align:center;align-items:center}
  .cta{flex-direction:column;text-align:center;align-items:center}
  .cta .txt{flex-direction:column}
}
@media(max-width:680px){
  .nav-links{
    position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;
    background:var(--cream);border-bottom:1px solid rgba(44,38,32,.1);
    max-height:0;overflow:hidden;transition:max-height .3s;padding:0;
  }
  .nav-links.open{max-height:420px;padding:.6rem 0}
  .nav-links li{width:100%;text-align:center}
  .nav-links a{display:block;padding:.8rem 0}
  .nav-cta{display:inline-flex;margin:.5rem auto;padding:.6rem 1.4rem}
  .burger{display:block}
  .features{grid-template-columns:1fr}
  .infos-key{grid-template-columns:1fr}
  .hero-sub{font-size:1.4rem}
  .loc h2 .big{font-size:2rem}
  .date-badge .d{font-size:2.3rem}
}
