:root {
  --brique: #7a2418;
  --brique-vif: #a8321f;
  --rouge: #c8331f;
  --encre: #231b19;
  --gris: #6b615c;
  --beige: #efe8df;
  --blanc: #ffffff;
  --titre: "Oswald", "Arial Narrow", sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --texte: "Source Sans 3", "Segoe UI", sans-serif;
  --largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--encre);
  font: 400 1.125rem/1.7 var(--texte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brique); }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1.1em; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.conteneur.etroit { max-width: 760px; }
.discret { color: var(--gris); font-size: .95em; }

.surtitre {
  font: 500 .95rem/1.2 var(--titre);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brique-vif);
  margin-bottom: .8em;
}
section h2 {
  font: 500 clamp(2rem, 4.5vw, 3rem)/1.1 var(--titre);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: .7em;
}

.bouton {
  display: inline-block;
  background: var(--brique);
  color: var(--blanc);
  font: 500 1rem/1 var(--titre);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.6em;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s;
}
.bouton:hover, .bouton:focus-visible { background: var(--rouge); }

/* ---------- Barre du haut ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  background: rgba(255,255,255,0);
  transition: background .4s, box-shadow .4s;
}
.topbar.pleine { background: rgba(255,255,255,.94); box-shadow: 0 1px 0 rgba(0,0,0,.06); backdrop-filter: blur(6px); }
.topbar-logo img { height: 46px; width: auto; opacity: 0; transition: opacity .4s; }
.topbar.pleine .topbar-logo img { opacity: 1; }
.menu { display: flex; gap: 28px; padding: 12px 22px; background: rgba(255,255,255,.88); border-radius: 2px; transition: background .4s; }
.topbar.pleine .menu { background: transparent; }
.menu a {
  font: 400 .95rem/1 var(--titre);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--encre); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.menu a:hover { border-color: var(--brique-vif); }
.menu-btn { display: none; }

/* ---------- Accueil : le tableau rouge se dissout dans le blanc ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-tableau {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 58%;
  background: url(img/tableau-rouge.jpg) center 30% / cover no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 22%, #000 52%),
    linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 22%, #000 52%),
    linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-composite: intersect;
  animation: respire 26s ease-in-out infinite alternate, apparait 2.2s ease-out both;
  transform-origin: 70% 40%;
}
@keyframes respire { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }

.hero-texte {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--largeur);
  margin: 0 auto; padding: 110px 24px 80px;
}
.hero-logo { width: 150px; margin-bottom: 44px; animation: monte 1.2s .2s ease-out both; }
.baseline { font: 500 clamp(2.6rem, 6.6vw, 5.4rem)/1.02 var(--serif); max-width: 11.5em; }
.baseline span { display: block; }
.baseline .b1 { color: var(--encre); animation: monte 1.4s .5s ease-out both; }
.baseline .b2 { color: var(--brique-vif); font-style: italic; animation: monte 1.4s 1.1s ease-out both; }
.hero-sous {
  margin: 1.6em 0 2.4em; max-width: 30em;
  color: var(--gris); font-size: 1.15rem;
  animation: monte 1.2s 1.6s ease-out both;
}
.hero-prochaine {
  display: inline-flex; flex-direction: column; gap: 4px;
  padding: 18px 26px 18px 22px;
  border-left: 3px solid var(--brique-vif);
  background: rgba(255,255,255,.82);
  text-decoration: none; color: var(--encre);
  animation: monte 1.2s 1.9s ease-out both;
  transition: background .3s, transform .3s;
}
.hero-prochaine:hover { background: #fff; transform: translateX(4px); }
.hp-label { font: 500 .8rem/1 var(--titre); letter-spacing: .2em; text-transform: uppercase; color: var(--brique-vif); }
.hp-titre { font: 600 1.6rem/1.2 var(--serif); }
.hp-date { font-size: .95rem; color: var(--gris); }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Conférence ---------- */
.conference { padding: 90px 0 110px; }
.conf-orateur { font: 500 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--titre); text-transform: none; letter-spacing: .03em; margin-bottom: .3em; }
.conf-titre {
  font: 600 clamp(2.6rem, 7vw, 5rem)/1 var(--titre);
  text-transform: uppercase;
  margin-bottom: 1.1em;
}
.conf-titre .guill { color: var(--rouge); font-weight: 400; }
.conference .conf-titre { margin-bottom: .35em; }
.conference .conf-orateur { margin-bottom: 2em; }
.conf-sous { font: italic 500 1.15em/1.3 var(--serif); color: var(--brique); }
.conf-sous-titre { font: italic 500 1.5rem/1.3 var(--serif); color: var(--brique); }
.conf-grille { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.conf-infos { position: sticky; top: 96px; }
.conf-infos dl { margin: 0 0 28px; }
.conf-infos dl > div { padding: 16px 0; border-top: 1px solid #e4dcd3; }
.conf-infos dl > div:last-child { border-bottom: 1px solid #e4dcd3; }
.conf-infos dt { font: 500 .8rem/1 var(--titre); letter-spacing: .2em; text-transform: uppercase; color: var(--brique-vif); margin-bottom: 6px; }
.conf-infos dd { margin: 0; line-height: 1.5; }
.lien-flyer { display: block; margin-top: 32px; text-decoration: none; position: relative; max-width: 220px; }
.lien-flyer img { box-shadow: 0 10px 30px rgba(60,20,10,.18); transition: transform .4s; }
.lien-flyer:hover img { transform: translateY(-4px) rotate(-1deg); }
.lien-flyer span { display: block; margin-top: 10px; font: 400 .85rem/1 var(--titre); letter-spacing: .15em; text-transform: uppercase; }
.conf-argument h3 {
  font: 500 1.05rem/1 var(--titre); letter-spacing: .18em; text-transform: uppercase;
  color: var(--brique); margin: 2.4em 0 1em;
}
.conf-argument h3:first-child { margin-top: 0; }
.conf-argument > p:first-of-type::first-letter {
  float: left; font: 600 4.2em/.8 var(--serif); color: var(--brique-vif); padding: .08em .1em 0 0;
}
.deroule { list-style: none; counter-reset: d; padding: 0; margin: 0; }
.deroule li { padding: 12px 0; border-bottom: 1px solid #efe8df; text-align: justify; }
.deroule li:last-child { border-bottom: 0; }
.deroule .h { display: inline-block; margin-right: .5em; font: 500 1.15rem/1.3 var(--serif); color: var(--brique-vif); white-space: nowrap; }
.deroule p { margin: .6em 0 0; }
.deroule .conf-sous-titre { margin-top: .3em; font-size: 1.25rem; }
.conf-argument p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.deroule span { font-weight: 600; }

/* ---------- Bandeau : le tableau entre deux blancs ---------- */
.bandeau { height: 46vh; min-height: 260px; position: relative; overflow: hidden; }
.bandeau-tableau {
  position: absolute; inset: -20% 0;
  background: url(img/tableau-rouge.jpg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 38%, #000 62%, transparent 100%);
  will-change: transform;
}

/* ---------- Association ---------- */
.association { padding: 70px 0 110px; }
.chapo { font: 500 clamp(1.5rem, 2.8vw, 1.9rem)/1.35 var(--serif); color: var(--encre); margin-bottom: 1.2em; }
.piliers { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.piliers li { border-top: 2px solid var(--brique-vif); padding-top: 18px; }
.piliers strong { display: block; font: 500 1.5rem/1.1 var(--titre); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.piliers span { color: var(--gris); font-size: 1rem; line-height: 1.55; }

/* ---------- Archives ---------- */
.archives { padding: 100px 0; background: linear-gradient(to bottom, #fff 0%, var(--beige) 22%, var(--beige) 78%, #fff 100%); }
.archive { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; margin-top: 20px; }
.archive img { box-shadow: 0 10px 30px rgba(60,20,10,.15); }
.archive-date { font: 500 .85rem/1 var(--titre); letter-spacing: .18em; text-transform: uppercase; color: var(--brique-vif); }
.archive h3 { font: 500 1.8rem/1.1 var(--titre); margin-bottom: .3em; }
.archive-titre { font: italic 500 1.5rem/1.3 var(--serif); }

/* ---------- Contact + pied : le tableau remonte du bas et passe sous le pied de page ---------- */
.bas { position: relative; overflow: hidden; }
.bas-tableau {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
  background: url(img/tableau-rouge.jpg) center 70% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to top, #000 45%, rgba(0,0,0,.6) 70%, transparent 100%);
          mask-image: linear-gradient(to top, #000 45%, rgba(0,0,0,.6) 70%, transparent 100%);
}
.contact { position: relative; padding: 110px 0 170px; }
.contact-contenu { position: relative; text-align: center; }
.mail { font: 500 clamp(1.5rem, 3.4vw, 2.2rem)/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid currentColor; word-break: break-word; }
.annonces { margin: 48px auto 0; max-width: 560px; padding: 28px; background: rgba(255,255,255,.9); box-shadow: 0 10px 40px rgba(60,20,10,.12); }
.annonces label { display: block; font: 500 1rem/1.3 var(--titre); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.annonces-ligne { display: flex; gap: 8px; }
.annonces input[type=email] {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem;
  padding: .8em 1em; border: 1px solid #d8cec4; border-radius: 2px;
}
.annonces input[type=email]:focus { outline: 2px solid var(--brique-vif); outline-offset: 1px; }
.annonces .discret { margin: 12px 0 0; font-size: .85rem; }

/* ---------- Pied ---------- */
.pied { position: relative; background: linear-gradient(to bottom, rgba(40,10,6,0) 0%, rgba(40,10,6,.55) 35%, rgba(40,10,6,.78) 100%); color: #f3e6e1; text-align: center; padding: 110px 24px 56px; font-size: .95rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.pied img { width: 92px; margin: 0 auto 18px; opacity: .92; }
.pied p { margin: 0 0 .5em; }
.pied a { color: #f3e6e1; }
.pied .credit { opacity: .6; font-size: .8rem; margin-top: 1.2em; }

/* ---------- Apparitions au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s ease-out, transform 1s ease-out; }
.js .reveal.vu { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-btn {
    display: block; font: 500 .9rem/1 var(--titre); letter-spacing: .15em; text-transform: uppercase;
    background: rgba(255,255,255,.85); border: 1px solid #e0d6cc; padding: 10px 14px; border-radius: 2px; color: var(--encre);
  }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 0; border-radius: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .menu.ouvert { max-height: 320px; }
  .topbar.pleine .menu { background: #fff; }
  .menu:not(.ouvert) { box-shadow: none; }
  .menu a { padding: 16px 24px; border-bottom: 1px solid #f0ebe6; }
  .topbar-logo img { height: 40px; }

  .hero { align-items: flex-end; }
  .hero-tableau {
    width: 100%; height: 62%; bottom: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .hero-texte { padding-top: 34vh; padding-bottom: 56px; }
  .hero-logo { width: 104px; margin-bottom: 24px; background: rgba(255,255,255,.85); padding: 10px; }
  .conf-grille, .archive { grid-template-columns: 1fr; gap: 36px; }
  .conf-infos { position: static; }
  .archive img { max-width: 220px; }
  .piliers { grid-template-columns: 1fr; gap: 24px; }
  .annonces-ligne { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Variante « scène » (16/10) : illustration de scène sans les rideaux ----------
   Image plus haute que large (1340x1536), danseurs à 58 % depuis la gauche : en pleine hauteur sur
   56 % de la largeur, ils restent à droite de la baseline. Fondu vers le blanc à gauche et en bas. */
.variante-scene .hero-tableau {
  width: 56%;
  background: url(img/scene-sans-rideau.jpg) center 30% / cover no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 14%, #000 34%),
    linear-gradient(to bottom, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 14%, #000 34%),
    linear-gradient(to bottom, #000 60%, transparent 100%);
          mask-composite: intersect;
  animation: apparait 2.2s ease-out both;
}
@media (max-width: 860px) {
  .variante-scene .hero-tableau {
    width: 100%; height: 58%;
    background-position: 62% 35%;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
}

/* Variante « scène » : les danseurs aussi en bas ; image claire → texte foncé, pas de voile sombre */
.variante-scene .bas-tableau { background: url(img/scene-sans-rideau.jpg) 58% 38% / cover no-repeat; height: 66%; }
.variante-scene .pied { background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,250,244,.45) 100%); color: var(--encre); text-shadow: 0 0 12px rgba(255,255,255,.8); }
.variante-scene .pied a { color: var(--brique); }
.variante-scene .pied .credit { opacity: .75; }
.variante-scene .bandeau-tableau { background: url(img/scene-sans-rideau.jpg) 50% 42% / cover no-repeat; }

/* ---------- Variante « grand tableau » (17/10) : le tableau gris d'où vient le logo, parcouru de haut en bas ----------
   980x2767 : papillon rouge du haut (~20 %) en accueil, feuille sombre (~45 %) au milieu, papillon du bas (~85 %) en pied. */
.variante-grand-tableau .hero-tableau { background: url(img/tableau-gris.jpg) center 5% / cover no-repeat; }
.variante-grand-tableau .bandeau-tableau { background: url(img/tableau-gris.jpg) center 44% / cover no-repeat; }
.variante-grand-tableau .bas-tableau { background: url(img/tableau-gris.jpg) center 92% / cover no-repeat; }
@media (max-width: 860px) {
  .variante-grand-tableau .hero-tableau { background-position: center 3%; }
}

/* 07/11/2026 : textes justifiés partout (demande Jonathan) */
.association p, .archive p, .piliers span { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* 07/11/2026 : logo du pied en couleur sur fond blanc */
.pied img.pied-logo { background: #fff; padding: 12px; width: 116px; opacity: 1; box-sizing: content-box; }

/* 07/11/2026 : titre légèrement en retrait sous « Matinée… » ; orateur et sous-titre alignés */
.conference .conf-titre { padding-left: .4em; }
.conference .conf-orateur { padding-left: 0; }
.conf-orateur .conf-sous { display: block; margin: .2em 0 0; font-size: .85em; }

/* 07/11/2026 : conférences passées sans affiche (2022, 2023) */
.archive + .archive { margin-top: 64px; padding-top: 48px; border-top: 1px solid #e4dcd3; }
.archive-annee { font: 600 4.5rem/1 var(--titre); color: var(--brique-vif); opacity: .35; text-align: right; }
@media (max-width: 860px) { .archive-annee { text-align: left; font-size: 3rem; } }

/* 07/11/2026 : titre de la conférence sur une seule ligne malgré le retrait (largeur mesurée ≈ 15 em) */
.conference .conf-titre { font-size: min(4.3rem, calc((100vw - 48px) / 15.8)); white-space: nowrap; }
