/* Espigoule Déboule — couleurs tirées du soleil et des olives du visuel */
:root {
  --rouge: #b8202b;
  --rouge-fonce: #8e1620;
  --jaune: #f4b81a;
  --olive: #7c7a2e;
  --olive-fonce: #4f4d1c;
  --creme: #fbf3df;
  --sable: #f3e3bd;
  --encre: #241c12;
  --blanc: #fffdf7;
  --titre: "Rubik Mono One", "Arial Black", sans-serif;
  --texte: "Rubik", system-ui, sans-serif;
  --rayon: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
main { overflow-x: clip; }
body { margin: 0; background: var(--creme); color: var(--encre); font: 400 17px/1.6 var(--texte); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.1; margin: 0 0 .6em; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--rouge); }
h2 em { font-style: normal; color: var(--olive); }
p { margin: 0 0 1em; }
.conteneur { width: min(1140px, 100% - 32px); margin-inline: auto; }
.sur-titre { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--olive); margin-bottom: .8em; }
.centre { text-align: center; margin-top: 2rem; }

/* Boutons */
.bouton { display: inline-block; background: var(--rouge); color: var(--jaune); font: 700 1rem var(--texte); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; padding: .9em 1.5em; border-radius: 999px; border: 3px solid var(--encre); box-shadow: 4px 4px 0 var(--encre); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.bouton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.bouton:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
.bouton-clair { background: var(--jaune); color: var(--rouge); }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(16px, calc((100% - 1140px) / 2)); background: rgba(251, 243, 223, .94); backdrop-filter: blur(8px); border-bottom: 3px solid var(--rouge); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font: .82rem/1.05 var(--titre); text-transform: uppercase; color: var(--rouge); }
.marque img { width: 44px; height: 44px; transition: transform .6s; }
.marque:hover img { transform: rotate(180deg); }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.menu a:hover { color: var(--rouge); }
.menu-cta { background: var(--rouge); color: var(--jaune) !important; padding: .45em 1em; border-radius: 999px; }
.menu-insta { display: flex; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 3px; background: var(--rouge); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }

/* Accueil */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; width: min(1140px, 100% - 32px); margin: 0 auto; padding: 60px 0 80px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); color: var(--rouge); -webkit-text-stroke: 2px var(--encre); text-shadow: 5px 5px 0 var(--jaune); margin-bottom: .35em; }
.hero h1 span { color: var(--jaune); text-shadow: 5px 5px 0 var(--rouge); }
.hero-accroche { font-size: 1.15rem; max-width: 34em; }
.hero-prochaine { display: flex; align-items: center; gap: 16px; background: var(--blanc); border: 3px solid var(--encre); border-radius: var(--rayon); padding: 14px 18px; margin: 1.6em 0; max-width: 480px; box-shadow: 4px 4px 0 var(--olive); }
.hero-prochaine strong { display: block; color: var(--rouge); }
.hero-prochaine small { color: #6b5f4c; }
.pastille { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--rouge); color: var(--jaune); font: 1rem var(--titre); border: 3px solid var(--jaune); outline: 3px solid var(--rouge); }
.hero-visuel { position: relative; justify-self: center; width: min(420px, 90%); }
.affiche { border-radius: 10px; border: 4px solid var(--encre); box-shadow: 10px 10px 0 var(--rouge); transform: rotate(2deg); }
.soleil-hero { position: absolute; width: 38%; left: -16%; bottom: -8%; animation: tourne 30s linear infinite; filter: drop-shadow(3px 4px 0 rgba(0,0,0,.25)); }
.olive { position: absolute; filter: drop-shadow(2px 4px 2px rgba(0,0,0,.25)); }
.o1 { width: 30%; right: -10%; top: -6%; animation: flotte 5s ease-in-out infinite; }
.o2 { width: 22%; right: 6%; top: 8%; animation: flotte 6s ease-in-out -2s infinite; }
.o3 { width: 18%; right: -14%; bottom: 18%; animation: flotte 7s ease-in-out -4s infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes flotte { 50% { transform: translateY(-14px) rotate(8deg); } }

/* Bandeau défilant */
.bandeau { background: var(--rouge); color: var(--jaune); border-block: 3px solid var(--encre); overflow: hidden; transform: rotate(-1.5deg); margin: 0 -20px; }
.bandeau-piste { display: flex; gap: 28px; width: max-content; padding: 14px 0; font: 1.1rem var(--titre); text-transform: uppercase; animation: defile 35s linear infinite; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 90px 0; }
.section-rouge { background: var(--rouge); color: var(--blanc); }
.section-rouge h2 { color: var(--jaune); }
.section-rouge .sur-titre { color: var(--sable); }
.section-creme { background: var(--sable); }
.section-olive { background: var(--olive-fonce); color: var(--blanc); }
.section-olive h2 { color: var(--jaune); }
.section-olive .sur-titre { color: #d9d48a; }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Valeurs */
.valeurs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.valeurs li { background: var(--blanc); border: 3px solid var(--encre); border-radius: var(--rayon); padding: 18px; box-shadow: 4px 4px 0 var(--jaune); }
.valeurs img { width: 40px; margin-bottom: 8px; }
.valeurs strong { display: block; font: .95rem var(--titre); text-transform: uppercase; color: var(--rouge); margin-bottom: 4px; }
.valeurs span { font-size: .95rem; }

/* Éditions */
.onglets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.onglet { font: 700 1rem var(--texte); padding: .7em 1.3em; border-radius: 999px; border: 3px solid var(--jaune); background: transparent; color: var(--jaune); cursor: pointer; }
.onglet[aria-selected="true"] { background: var(--jaune); color: var(--rouge); }
.edition { background: var(--creme); color: var(--encre); border: 3px solid var(--encre); border-radius: var(--rayon); box-shadow: 8px 8px 0 var(--rouge-fonce); padding: clamp(20px, 4vw, 40px); }
.edition-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-bottom: 18px; }
.edition-tete h3 { font-size: clamp(1.3rem, 3vw, 2rem); color: var(--rouge); margin: 0; }
.edition-infos { display: flex; flex-wrap: wrap; gap: 8px; }
.etiquette { background: var(--jaune); border: 2px solid var(--encre); border-radius: 999px; padding: .2em .8em; font-weight: 700; font-size: .85rem; }
.edition-citation { font-size: 1.1rem; font-style: italic; border-left: 5px solid var(--olive); padding-left: 14px; }
.jours { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 20px; }
.jour h4 { font: 1rem var(--titre); text-transform: uppercase; color: var(--olive); margin: 0 0 10px; }
.jour h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin: 16px 0 6px; color: var(--rouge); }
.programme { list-style: none; padding: 0; margin: 0; }
.programme li { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #cdbb93; }
.programme time { font-weight: 700; color: var(--rouge); font-variant-numeric: tabular-nums; }

/* Film */
.film-visuel { position: relative; max-width: 360px; justify-self: center; }
.film-visuel img { border-radius: 10px; border: 4px solid var(--encre); box-shadow: -10px 10px 0 var(--olive); filter: sepia(.25) contrast(1.05); }
.film-badge { position: absolute; right: -24px; top: 24px; background: var(--jaune); color: var(--rouge); font: .62rem/1.25 var(--titre); text-transform: uppercase; text-align: center; padding: 12px; box-sizing: border-box; border-radius: 50%; width: 136px; height: 136px; display: grid; place-items: center; border: 3px solid var(--encre); transform: rotate(12deg); }

/* Boutique */
.produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.produit { background: var(--blanc); border: 3px solid var(--encre); border-radius: var(--rayon); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; box-shadow: 4px 4px 0 var(--encre); }
.produit:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 6px 8px 0 var(--rouge); }
.produit-visuel { position: relative; aspect-ratio: 1; background: #f4f1ea; }
.produit-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.produit-visuel img + img { opacity: 0; }
.produit:hover .produit-visuel img + img { opacity: 1; }
.produit-corps { padding: 14px 16px 18px; border-top: 3px solid var(--encre); flex: 1; display: flex; flex-direction: column; }
.produit h3 { font: 700 1.02rem/1.3 var(--texte); text-transform: none; margin-bottom: 4px; }
.produit p { margin: 0; font-size: .9rem; color: #6b5f4c; }
.produit .prix { margin-top: auto; padding-top: 10px; font: 1.05rem var(--titre); color: var(--rouge); }

/* Accueillir le festival */
.village { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: center; background: var(--blanc); border: 3px solid var(--encre); border-radius: 28px; padding: clamp(24px, 5vw, 56px); box-shadow: 10px 10px 0 var(--jaune); }
.village img { animation: tourne 40s linear infinite; }

/* Formulaire */
.formulaire { display: grid; gap: 14px; }
.formulaire .ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formulaire label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.formulaire input, .formulaire select, .formulaire textarea { font: inherit; padding: .75em .9em; border-radius: 12px; border: 2px solid var(--encre); background: var(--creme); color: var(--encre); width: 100%; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 3px solid var(--jaune); }
.formulaire .rgpd { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; }
.formulaire .rgpd input { width: auto; margin-top: 4px; }
.formulaire .bouton { justify-self: start; }
.piege { position: absolute; left: -9999px; }
.form-retour { min-height: 1.4em; font-weight: 700; color: var(--jaune); margin: 0; }

/* Pied de page */
.pied { background: var(--encre); color: var(--sable); text-align: center; padding: 50px 16px 36px; }
.pied img { margin: 0 auto 14px; width: 64px; }
.pied a { color: var(--jaune); }
.devise { font-style: italic; color: var(--jaune); }
.pied-petit { font-size: .82rem; opacity: .7; margin: 0; }

/* Page mentions */
.page-texte { width: min(820px, 100% - 32px); margin: 0 auto; padding: 60px 0 90px; }
.page-texte h1 { color: var(--rouge); font-size: clamp(1.8rem, 5vw, 2.6rem); }
.page-texte h2 { font-size: 1.2rem; margin-top: 2em; }

/* Mobile */
@media (max-width: 900px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 67px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--creme); border-bottom: 3px solid var(--rouge); padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .menu.ouvert { transform: none; }
  .menu a { padding: 14px 4px; border-bottom: 1px solid var(--sable); font-size: 1.05rem; }
  .menu-cta { text-align: center; margin-top: 12px; border: 0 !important; }
  .menu-insta { justify-content: center; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero, .deux-col { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 70px; gap: 56px; }
  .hero-visuel { width: min(320px, 78%); }
  .section { padding: 64px 0; }
  .film-visuel { order: 2; }
  .village { grid-template-columns: 1fr; text-align: center; }
  .village img { width: 120px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .valeurs, .formulaire .ligne { grid-template-columns: 1fr; }
  .programme li { grid-template-columns: 6.2em 1fr; font-size: .95rem; }
  .film-badge { right: 4px; width: 112px; height: 112px; font-size: .52rem; padding: 8px; }
  .hero h1 { -webkit-text-stroke: 1.5px var(--encre); text-shadow: 3px 3px 0 var(--jaune); }
  .hero h1 span { text-shadow: 3px 3px 0 var(--rouge); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.edition-tete .annee { color: var(--olive); }

/* Affiches des éditions */
.edition-grille { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 32px; align-items: start; }
.edition-affiche { margin: 0; position: sticky; top: 96px; }
.edition-affiche img { border-radius: 8px; border: 3px solid var(--encre); box-shadow: 6px 6px 0 var(--jaune); transform: rotate(-1.5deg); transition: transform .2s; }
.edition-affiche a:hover img { transform: rotate(0) scale(1.02); }
.edition-affiche figcaption { font-size: .8rem; color: #6b5f4c; text-align: center; margin-top: 10px; }
.edition-contenu .jours { margin-top: 10px; }

/* Teaser */
.section-teaser { background: var(--encre); color: var(--sable); }
.section-teaser h2 { color: var(--jaune); }
.section-teaser .sur-titre { color: #d9d48a; }
.video { margin-top: 24px; border: 4px solid var(--jaune); border-radius: var(--rayon); overflow: hidden; box-shadow: 10px 10px 0 var(--rouge); background: #000; aspect-ratio: 16 / 9; }
.video video { display: block; width: 100%; height: 100%; }

@media (max-width: 760px) {
  .edition-grille { grid-template-columns: 1fr; gap: 20px; }
  .edition-affiche { position: static; max-width: 240px; margin: 0 auto; }
}
