/* Thème repris de l'affiche : rideaux rouges, plateau éclairé crème, lettrage bleu nuit, or, vert. */
:root {
  --rideau: #b3121f;
  --rideau-fonce: #6e0a12;
  --nuit: #1f2a5a;
  --or: #f2b705;
  --or-pale: #ffe7a3;
  --plateau: #fdf1cf;
  --papier: #fffaf0;
  --vert: #157a6e;
  --bois: #9c5b27;
  --texte: #2a2440;
  --texte-doux: #5c5670;
  --trait: #ecd9a8;
  --font-titre: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-script: "Courgette", "Brush Script MT", cursive;
  --font-texte: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--papier); color: var(--texte);
  font-family: var(--font-texte); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--vert); text-underline-offset: 3px; font-weight: 700; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-titre); font-weight: 400; line-height: 1.05; text-wrap: balance; margin: 0; color: var(--nuit); letter-spacing: .01em; }
.wrap {
  max-width: 66rem; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.script { font-family: var(--font-script); color: var(--rideau); }

/* En-tête : lambrequin rouge */
.top {
  background: linear-gradient(var(--rideau), var(--rideau-fonce));
  color: #fff; border-bottom: 4px solid var(--or);
}
.top .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between; padding-block: .9rem; }
.brand { color: #fff; text-decoration: none; font-family: var(--font-titre); font-size: 1.25rem; line-height: 1.1; display: grid; }
.brand small { font-family: var(--font-texte); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or-pale); }
.top nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.top nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .98rem; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--or); }

/* Scène : rideaux de chaque côté, projecteur au centre */
.scene {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 35%, #fffbe9 0%, var(--plateau) 45%, #f3d58c 100%);
  border-bottom: 14px solid var(--bois);
  box-shadow: inset 0 -10px 0 #7d4519;
}
.scene::before, .scene::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(28px, 11vw, 150px);
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 6px, rgba(255,255,255,.08) 12px, rgba(0,0,0,.18) 22px, rgba(0,0,0,.28) 28px),
    linear-gradient(var(--rideau), var(--rideau-fonce));
}
.scene::before { left: 0; border-bottom-right-radius: 70% 18%; }
.scene::after { right: 0; border-bottom-left-radius: 70% 18%; }
.scene .wrap { position: relative; z-index: 1; padding-block: clamp(2.5rem, 7vw, 4.5rem); display: grid; justify-items: center; gap: 1rem; }
.scene .wrap { padding-left: max(clamp(40px, 13vw, 170px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(40px, 13vw, 170px), env(safe-area-inset-right, 0px)); }
.asso { font-family: var(--font-titre); color: var(--rideau); font-size: clamp(1rem, 2.6vw, 1.35rem); line-height: 1.1; }
.asso span { display: block; font-size: .7em; color: var(--vert); letter-spacing: .1em; }
.scene h1 { font-size: clamp(2.8rem, 10vw, 6.2rem); line-height: .92; text-shadow: 3px 3px 0 var(--or-pale); }
.scene h1 .script { display: block; font-size: .42em; line-height: 1.2; text-shadow: none; }
.ruban {
  display: inline-block; background: var(--rideau); color: #fff;
  font-family: var(--font-titre); font-size: clamp(.95rem, 2.6vw, 1.3rem); letter-spacing: .02em;
  padding: .45rem 1.4rem; position: relative; margin-inline: 1.2rem;
  box-shadow: 0 4px 0 var(--rideau-fonce);
}
.ruban::before, .ruban::after { content: "★"; color: var(--or); position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.2em; }
.ruban::before { left: -1.3rem; }
.ruban::after { right: -1.3rem; }
.direction { display: grid; gap: .15rem; margin-top: .4rem; }
.direction .script { color: var(--nuit); font-size: clamp(1.15rem, 3vw, 1.5rem); }
.direction strong { font-family: var(--font-titre); font-weight: 400; color: var(--vert); font-size: clamp(1.1rem, 3vw, 1.45rem); }
.direction small { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rideau); font-size: .8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .6rem; }
.btn {
  display: inline-block; text-decoration: none; font-family: var(--font-titre); font-weight: 400; font-size: 1.1rem;
  padding: .7rem 1.4rem; border-radius: 999px; border: 3px solid var(--nuit); cursor: pointer;
}
.btn-main { background: var(--nuit); color: #fff; }
.btn-alt { background: var(--or); color: var(--nuit); }
.btn:hover { transform: translateY(-1px); }

/* Sections */
section { padding-block: clamp(2.8rem, 7vw, 4.5rem); }
section + section { border-top: 2px dashed var(--trait); }
.sec-head { display: grid; gap: .4rem; margin-bottom: 1.6rem; max-width: 42rem; }
.sec-head .script { font-size: 1.25rem; }
.sec-head h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1rem; }

.atouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.2rem; margin-top: 2rem; }
.atout { background: #fff; border: 2px solid var(--trait); border-radius: 16px; padding: 1.3rem; display: grid; gap: .4rem; align-content: start; }
.atout h3 { font-size: 1.4rem; color: var(--rideau); }
.atout p { margin: 0; color: var(--texte-doux); }

.formateur { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2rem; align-items: start; }
.carte-jd {
  background: var(--nuit); color: #fff; border-radius: 18px; padding: 1.6rem; display: grid; gap: .9rem;
  border: 4px solid var(--or); box-shadow: 8px 8px 0 var(--rideau);
}
.carte-jd .initiales { font-family: var(--font-titre); font-size: 3.4rem; line-height: 1; color: var(--or); }
.carte-jd ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-weight: 700; }
.carte-jd li::before { content: "★ "; color: var(--or); }
.films { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0; max-width: 40rem; }
.films li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--trait); }
.films li:last-child { border-bottom: 0; }
.films b { font-family: var(--font-titre); font-weight: 400; color: var(--rideau); font-variant-numeric: tabular-nums; }
.films em { color: var(--texte-doux); font-style: normal; }

.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.4rem 2rem; margin: 0; }
.infos div { display: grid; gap: .25rem; border-top: 4px solid var(--or); padding-top: .8rem; }
.infos dt { font-family: var(--font-titre); color: var(--nuit); font-size: 1.25rem; }
.infos dd { margin: 0; color: var(--texte-doux); }

details { border-bottom: 1px solid var(--trait); padding: .9rem 0; max-width: 44rem; }
summary { font-weight: 800; color: var(--nuit); cursor: pointer; font-size: 1.08rem; }
details p { margin: .5rem 0 0; color: var(--texte-doux); }

/* Renseignements : bandeau vert de l'affiche */
.renseignements { background: var(--nuit); color: #fff; border-top: 0 !important; text-align: center; }
.renseignements h2 { color: #fff; }
.renseignements .sec-head { margin-inline: auto; justify-items: center; }
.renseignements .sec-head .script { color: var(--or); }
.tels { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.tel {
  display: inline-flex; align-items: center; gap: .55rem; background: var(--plateau); color: var(--nuit);
  font-family: var(--font-titre); font-size: clamp(1.3rem, 4vw, 1.7rem); padding: .45rem 1.2rem; border-radius: 12px;
  text-decoration: none; font-weight: 400; font-variant-numeric: tabular-nums; border: 3px solid var(--vert);
}
.tel::before { content: "☎"; color: var(--vert); font-size: .85em; }
.mail-line { margin-top: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }
.mail-line a { color: var(--or); }

/* Formulaire de contact */
.form { display: grid; gap: 1.1rem; max-width: 40rem; background: #fff; border: 2px solid var(--trait); border-radius: 18px; padding: clamp(1.2rem, 4vw, 2rem); }
.champ { display: grid; gap: .35rem; }
.champ label { font-weight: 800; color: var(--nuit); }
.champ input, .champ textarea, .champ select {
  font: inherit; color: var(--texte); background: var(--papier);
  border: 2px solid var(--trait); border-radius: 10px; padding: .7rem .85rem; width: 100%;
}
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--nuit); }
.champ textarea { min-height: 9rem; resize: vertical; }
.ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.1rem; }
.note { color: var(--texte-doux); font-size: .92rem; margin: 0; }
.hp { position: absolute; left: -9999px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.coordonnees { display: grid; gap: 1rem; }
.coordonnees .bloc { background: var(--plateau); border-radius: 14px; padding: 1.1rem 1.2rem; display: grid; gap: .2rem; overflow-wrap: anywhere; }
.coordonnees .bloc span { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rideau); }

footer { background: var(--rideau-fonce); color: var(--or-pale); padding-block: 1.6rem; font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between; }
footer a { color: #fff; }
