:root {
  --rouge: #c0284d;
  --rouge-fonce: #9e1f3f;
  --creme: #fff6d5;
  --jaune: #fde38c;
  --nuit: #221f28;
  --encre: #1d1a1f;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--encre);
  background: var(--nuit);
}

/* ---------- Barre de navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--rouge);
  border-bottom: 12px solid var(--rouge-fonce);
}
.nav {
  max-width: 1100px;
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img {
  height: 52px;
  display: block;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex: 1;
  justify-content: space-between;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav-links a:hover,
.nav-links a:focus-visible { border-color: var(--jaune); outline: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  border-radius: 2px;
  background: #fff;
}

/* ---------- Scène d'accueil ---------- */
.scene {
  position: relative;
  min-height: max(620px, calc(100vh - var(--nav-h) - 12px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.affiche {
  position: relative;
  text-align: center;
  padding-top: clamp(16px, 4vh, 40px);
  color: #2a2026;
}
.etoiles {
  margin: 0;
  font-size: .8rem;
  letter-spacing: .4em;
}
.surtitre {
  margin: 6px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  text-transform: uppercase;
}

.titre {
  margin: clamp(16px, 4vh, 44px) 0 0;
  padding: 0 16px;
}
.titre img {
  display: block;
  width: min(500px, 84vw);
  height: auto;
  margin: 0 auto;
}

.devise {
  margin: clamp(20px, 5vh, 48px) 0 0;
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}
.depuis {
  margin: 12px 0 0;
  font-size: 1.15rem;
  text-transform: uppercase;
}
.depuis::before,
.depuis::after {
  content: "●";
  margin: 0 .5em;
  font-size: .8em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--jaune);
  color: var(--encre);
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #e6c25c;
  border-radius: 2px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(253, 227, 140, .35);
  outline: none;
}
.btn-scene {
  position: relative;
  margin-top: auto;
  margin-bottom: clamp(48px, 10vh, 90px);
}

/* ---------- Pages en préparation ---------- */
.bientot {
  min-height: calc(100vh - var(--nav-h) - 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--creme);
}
.bientot h1 {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: normal;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--rouge);
    border-bottom: 12px solid var(--rouge-fonce);
    padding: 8px 24px 16px;
  }
  .menu-open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 10px 0; }
}

/* ---------- Messages ---------- */
.messages {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 16px;
}
.message {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 4px;
  border-left: 4px solid;
}
.message-erreur { background: #fde8ec; border-color: var(--rouge); color: #7a1430; }
.message-ok     { background: #eaf6e7; border-color: #3b8a2e; color: #24561c; }

/* ---------- Administration ---------- */
.admin {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
.admin-etroit { max-width: 420px; }
.admin h1,
.admin h2 {
  font-family: "Anton", Impact, sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.admin h1 { margin: 0 0 20px; font-size: 2.2rem; color: var(--creme); }
.carte h1 { color: var(--encre); }
.admin h2 { margin: 0 0 16px; font-size: 1.5rem; }
.carte {
  background: var(--creme);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.carte code { background: #f3e3ad; padding: 1px 5px; border-radius: 3px; }

.formulaire {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.formulaire label {
  margin-top: 10px;
  font-weight: 600;
}
.formulaire .aide { font-weight: 400; font-size: .85rem; color: #6b5f55; }
.formulaire input,
.formulaire textarea {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid #d8c584;
  border-radius: 4px;
  background: #fff;
}
.formulaire input:focus,
.formulaire textarea:focus {
  outline: 2px solid var(--rouge);
  outline-offset: 1px;
}
.formulaire textarea { resize: vertical; }
.formulaire .btn {
  align-self: flex-start;
  margin-top: 18px;
  cursor: pointer;
  font-family: inherit;
}

.liste-pieces {
  list-style: none;
  margin: 0;
  padding: 0;
}
.liste-pieces li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #ead9a0;
}
.liste-pieces img,
.liste-pieces .sans-image {
  flex: none;
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  background: #f0dfa5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.liste-pieces .meta { display: block; color: #6b5f55; font-size: .9rem; }
.liste-pieces p { margin: 6px 0 0; white-space: pre-line; }

/* ---------- Menu d'administration ---------- */
.nav-links.nav-admin {
  justify-content: flex-start;
  align-items: center;
  gap: 36px;
}
.nav-admin .nav-admin-fin { margin-left: auto; }
.nav-admin .nav-admin-fin a {
  font-weight: 600;
  text-transform: none;
  opacity: .85;
}
.nav-links a.actif {
  color: var(--jaune);
  border-bottom: 3px solid var(--jaune);
}
.nav-admin form { margin: 0; }
.nav-bouton {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 3px;
  padding: 5px 12px;
  cursor: pointer;
}
.nav-bouton:hover,
.nav-bouton:focus-visible { background: rgba(255, 255, 255, .15); outline: none; }
/* Pas de bouton menu sur mobile quand il n'y a pas de liens (page de connexion) */
.nav:not(:has(.nav-links)) .nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links.nav-admin { align-items: stretch; gap: 0; }
  .nav-admin .nav-admin-fin { margin-left: 0; }
  .nav-admin form { padding: 10px 0; }
}

/* ---------- Liste des pièces (admin) ---------- */
.admin-entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-entete h1 { margin: 0; }
.liste-pieces li { align-items: flex-start; }
.liste-pieces li:first-child { border-top: 0; padding-top: 0; }
.piece-texte { flex: 1; min-width: 0; }
.piece-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none;
}
.piece-actions form { margin: 0; }
.piece-actions .btn { width: 100%; text-align: center; }
.btn-petit { font-size: .85rem; padding: 6px 12px; cursor: pointer; font-family: inherit; }
.btn-danger {
  background: transparent;
  color: #9b1c3a;
  border-color: #d99aa9;
}
.btn-danger:hover,
.btn-danger:focus-visible { background: #fde8ec; box-shadow: none; }
.btn-secondaire {
  background: transparent;
  border-color: #c9b26a;
}
.vide { margin: 0; }
.vide a, .retour a { color: var(--rouge); font-weight: 600; }
.retour { margin: 0 0 16px; }
.retour a { color: var(--jaune); text-decoration: none; }
.retour a:hover { text-decoration: underline; }

.boutons { display: flex; gap: 12px; margin-top: 18px; }
.formulaire .boutons .btn { margin-top: 0; }
.image-actuelle {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}
.image-actuelle img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}
.formulaire .case { margin: 0; font-weight: 400; display: flex; align-items: center; gap: 8px; }

@media (max-width: 600px) {
  .liste-pieces li { flex-wrap: wrap; }
  .piece-actions { flex-direction: row; width: 100%; }
}

/* ---------- Dates (admin) ---------- */
.date-titre { font-size: 1.05rem; }
.meta a { color: var(--rouge); font-weight: 600; }
.etiquette {
  display: inline-block;
  margin: 0 6px 4px 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f3dc95;
  font-size: .85rem;
  font-weight: 600;
}
.carte-passees summary {
  cursor: pointer;
  list-style: none;
}
.carte-passees summary::-webkit-details-marker { display: none; }
.carte-passees summary h2 { display: inline; margin: 0; }
.carte-passees summary::before { content: "▸ "; font-size: 1.2rem; }
.carte-passees[open] summary::before { content: "▾ "; }
.carte-passees[open] summary { margin-bottom: 16px; }
.carte-passees .liste-pieces { opacity: .8; }

.colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.colonnes > div { display: flex; flex-direction: column; gap: 6px; }
.formulaire fieldset {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
}
.formulaire legend { font-weight: 600; margin-bottom: 8px; }
.choix-pieces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid #d8c584;
  border-radius: 4px;
}
.choix-pieces input { accent-color: var(--rouge); width: 18px; height: 18px; }

@media (max-width: 600px) {
  .colonnes { grid-template-columns: 1fr; }
}
.message-info { background: #fff6d5; border-color: #e0b43c; color: #5c4a12; }

/* ---------- Représentation annulée ---------- */
.badge-annule {
  display: inline-block;
  margin: 0 8px 4px 0;
  padding: 2px 10px;
  border-radius: 3px;
  background: var(--rouge);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.liste-pieces li.annulee .date-titre { text-decoration: line-through; text-decoration-color: var(--rouge); }
.liste-pieces li.annulee img,
.liste-pieces li.annulee .sans-image { filter: grayscale(1); opacity: .6; }
.liste-pieces li.annulee .meta,
.liste-pieces li.annulee p { opacity: .65; }
.formulaire .case-annule {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fde8ec;
  border: 1px solid #efb3c1;
  border-radius: 4px;
  font-weight: 600;
  color: #7a1430;
}
.case-annule input { accent-color: var(--rouge); width: 18px; height: 18px; }

/* ================= Agenda (public) ================= */
.page-entete {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 16px;
  text-align: center;
  padding: 10px 16px 12px;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(253, 227, 140, .35), transparent 60%),
    repeating-linear-gradient(90deg, #c42a50 0 10px, #a81f43 10px 20px, #d43a60 20px 34px, #9a1b3d 34px 40px);
  box-shadow: inset 0 -30px 40px -20px rgba(0, 0, 0, .5);
}
.page-entete h1 {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  font-weight: normal;
  font-size: 2rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}
.page-entete p:last-child {
  margin: 0;
  font-family: "Dancing Script", cursive;
  font-size: 1.3rem;
  color: var(--creme);
}

.agenda {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 72px;
}
.agenda-mois {
  margin: 36px 0 14px;
  font-family: "Anton", Impact, sans-serif;
  font-weight: normal;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--jaune);
  display: flex;
  align-items: center;
  gap: 14px;
}
.agenda-mois::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(253, 227, 140, .3);
}
.agenda-mois:first-child { margin-top: 4px; }
.agenda-vide {
  margin: 56px 0;
  text-align: center;
  color: var(--creme);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* --- Carte d'une représentation --- */
.rep {
  position: relative;
  margin-bottom: 22px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--creme);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.rep-contenu {
  display: grid;
  grid-template-columns: 220px 1fr;
}
.rep-visuel { background: #2c2833; }
.rep-visuel > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;   /* affiche montrée en entier, sans recadrage */
  padding: 10px;
}
.rep-sans-visuel {
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #fbeab0, #f1cf73);
}
.rep-sans-visuel img { width: 55%; opacity: .9; }

/* Affiche paysage : bandeau pleine largeur au-dessus du texte */
.rep.format-paysage .rep-contenu { grid-template-columns: 1fr; }
.rep.format-paysage .rep-visuel > img {
  height: auto;
  min-height: 0;
  max-height: 420px;
  aspect-ratio: auto;   /* l'image garde ses propres proportions, même sur mobile */
  padding: 0;
  margin: 0 auto;
}

.rep-texte { padding: 22px 26px; }
.rep-entete {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #e0c878;
}
.rep-date {
  flex: none;
  width: 78px;
  margin: 0;
  padding: 8px 0 10px;
  text-align: center;
  background: var(--rouge);
  color: #fff;
  border-radius: 6px;
  line-height: 1;
}
.rep-jour { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.rep-num { display: block; font-family: "Anton", Impact, sans-serif; font-size: 2.3rem; margin: 4px 0 2px; }
.rep-mois { display: block; font-size: .8rem; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.rep-heure { margin: 0; font-weight: 700; font-size: 1.1rem; }
.rep-lieu { margin: 4px 0 0; color: #4a3f38; }
.rep-carte {
  display: inline-block;
  margin-left: 6px;
  color: var(--rouge);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}
.rep-carte:hover { text-decoration: underline; }
.rep-statut {
  margin: 0 0 2px;
  color: var(--rouge);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .06em;
}

.rep-piece { padding-top: 12px; }
.rep-piece h3 {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  font-weight: normal;
  font-size: 1.55rem;
  letter-spacing: .01em;
  line-height: 1.15;
}
.rep-auteur { margin: 2px 0 6px; font-style: italic; color: #6b5f55; }
.rep-resume { margin: 0; line-height: 1.55; white-space: pre-line; }

/* --- Représentation annulée : contenu éteint + grand bandeau --- */
.rep-annulee .rep-contenu { filter: grayscale(1); opacity: .55; }
.bandeau-annule {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.bandeau-annule span {
  display: block;
  width: 130%;
  padding: 14px 0;
  transform: rotate(-8deg);
  background: var(--rouge);
  color: #fff;
  text-align: center;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: .25em;
  text-transform: uppercase;
  border-top: 4px solid #fff;
  border-bottom: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
/* (le bandeau a pointer-events: none : les liens dessous restent cliquables) */

/* --- Représentations passées --- */
.agenda-passees {
  margin-top: 44px;
  color: var(--creme);
}
.agenda-passees summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--jaune);
}
.agenda-passees ul { list-style: none; margin: 14px 0 0; padding: 0; }
.agenda-passees li {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 246, 213, .12);
  font-size: .95rem;
}
.passee-date { font-weight: 600; }
.passee-lieu { opacity: .7; text-align: right; }
.passee-annulee span:not(.passee-lieu) { text-decoration: line-through; opacity: .6; }

@media (max-width: 700px) {
  .rep-contenu { grid-template-columns: 1fr; }
  .rep-visuel > img,
  .rep-sans-visuel { min-height: 0; aspect-ratio: 4 / 3; }
  .rep-texte { padding: 18px; }
  .agenda-passees li { grid-template-columns: 1fr; gap: 2px; }
  .passee-lieu { text-align: left; }
}

/* --- Infos pratiques (tarifs…) --- */
.rep-infos {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff;
  border-left: 4px solid var(--jaune);
  border-radius: 4px;
}
.rep-infos h4 {
  margin: 0 0 4px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rouge);
}
.rep-infos p { margin: 0; white-space: pre-line; line-height: 1.55; }
.infos-apercu { margin: 4px 0 0 !important; font-size: .85rem; color: #6b5f55; }

/* --- Pièce cliquable dans l'agenda --- */
a.rep-piece {
  display: block;
  margin: 10px -12px 0;
  padding: 10px 12px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: background .15s;
}
a.rep-piece:hover,
a.rep-piece:focus-visible {
  background: #fbe9b0;
  outline: none;
}
a.rep-piece:focus-visible { box-shadow: 0 0 0 2px var(--rouge); }
.rep-lire {
  display: inline-block;
  margin-top: 6px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--rouge);
}
a.rep-piece:hover .rep-lire { text-decoration: underline; }

/* --- Fenêtre « résumé complet » --- */
.fenetre-piece {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--creme);
  color: var(--encre);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.fenetre-piece::backdrop { background: rgba(20, 16, 24, .75); }
.fenetre-contenu {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 28px;
}
.fenetre-image {
  flex: none;
  width: 200px;
  align-self: flex-start;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
/* Image paysage dans la fenêtre : au-dessus du texte, sur toute la largeur */
.fenetre-contenu.format-paysage { flex-direction: column; }
.fenetre-contenu.format-paysage .fenetre-image {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  align-self: center;
  margin-top: 26px;   /* laisse la place à la croix de fermeture */
}
.fenetre-contenu.format-paysage .fenetre-texte h2 { margin-right: 0; }
.fenetre-texte { flex: 1; min-width: 0; }
.fenetre-texte h2 {
  margin: 0 32px 2px 0;
  font-family: "Anton", Impact, sans-serif;
  font-weight: normal;
  font-size: 2rem;
  line-height: 1.15;
}
.fenetre-accroche {
  margin: 10px 0 0;
  font-family: "Dancing Script", cursive;
  font-size: 1.4rem;
  color: var(--rouge);
}
.fenetre-resume { margin: 14px 0 0; line-height: 1.65; white-space: pre-line; }
.fenetre-fermer {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: #6b5f55;
  cursor: pointer;
}
.fenetre-fermer:hover,
.fenetre-fermer:focus-visible { background: #f3dc95; color: var(--encre); outline: none; }

@media (max-width: 600px) {
  .fenetre-contenu { flex-direction: column; padding: 22px 18px; }
  .fenetre-image { width: 60%; align-self: center; }
}

/* --- Associations (admin) : logos montrés en entier --- */
.liste-assos img,
.liste-assos .sans-image { width: 140px; height: 90px; }
/* Logos posés directement sur la carte : la transparence est respectée, et le blanc
   des logos sans transparence se fond dans le crème (multiply). */
.liste-assos img { object-fit: contain; background: transparent; mix-blend-mode: multiply; }

/* --- Association liée à une représentation (agenda) --- */
.rep-asso {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 14px;
  background: #fff;
  border-left: 4px solid var(--rouge);
  border-radius: 4px;
}
/* Taille adaptée à la forme du logo : carré jusqu'à 48 px de haut, allongé jusqu'à 180 px de large */
.rep-asso img {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 48px;
  min-width: 48px;
  object-fit: contain;
  flex: none;
  mix-blend-mode: multiply;
}
.rep-asso p { margin: 0; }
.rep-asso a { color: var(--rouge); text-decoration: none; }
.rep-asso a:hover { text-decoration: underline; }
.formulaire select {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid #d8c584;
  border-radius: 4px;
  background: #fff;
}

/* ================= Associations (public) ================= */
.assos-grille {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}
.asso {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--creme);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  scroll-margin-top: 100px;
}
.asso:target { box-shadow: 0 0 0 4px var(--jaune), 0 14px 34px rgba(0, 0, 0, .35); }
.asso-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 45%, #fffaf0 0, var(--creme) 70%);
  border-right: 1px dashed #e0c878;
  font-size: 3.5rem;
}
.asso-logo img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.asso-texte { padding: 22px 26px; }
.asso-texte h2 {
  margin: 0 0 8px;
  font-family: "Anton", Impact, sans-serif;
  font-weight: normal;
  font-size: 1.7rem;
  line-height: 1.15;
}
.asso-description { margin: 0; line-height: 1.6; white-space: pre-line; }
.asso-reps {
  margin-top: 16px;
  padding: 10px 14px;
  background: #fff;
  border-left: 4px solid var(--jaune);
  border-radius: 4px;
}
.asso-reps h3 {
  margin: 0 0 6px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rouge);
}
.asso-reps ul { margin: 0; padding-left: 18px; }
.asso-reps li { margin: 2px 0; }
.asso-reps a { color: var(--encre); font-weight: 600; }
.asso-site { margin-top: 16px; }

@media (max-width: 700px) {
  .asso { grid-template-columns: 1fr; }
  .asso-logo { padding: 16px; }
  .asso-logo img { max-height: 120px; }
}
/* Aperçu d'un logo dans le formulaire : montré en entier, transparence respectée */
.image-actuelle.image-logo img {
  width: 140px;
  height: 90px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width: 700px) {
  .asso-logo { border-right: 0; border-bottom: 1px dashed #e0c878; }
}

/* --- Admin « La troupe » : formulaire découpé en plusieurs cartes --- */
.formulaire > .carte { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.formulaire > .carte h2 { margin-bottom: 0; }
.image-actuelle.image-photo img { width: 160px; height: 110px; object-fit: cover; }

/* ---------- Accueil : section « La troupe » ---------- */
html { scroll-behavior: smooth; }
.troupe {
  scroll-margin-top: calc(var(--nav-h) + 12px);   /* sous la barre de navigation fixe */
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 88px;
  color: var(--creme);
}
.troupe-entete { text-align: center; margin-bottom: 40px; }
.troupe-surtitre {
  margin: 0;
  font-family: "Dancing Script", cursive;
  font-size: 1.6rem;
  color: var(--jaune);
}
.troupe-entete h2 {
  margin: 4px 0 0;
  font-family: "Anton", Impact, sans-serif;
  font-weight: normal;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.troupe-entete h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 14px auto 0;
  background: var(--rouge);
  border-radius: 2px;
}
.troupe-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.troupe-texte p { margin: 0 0 1.1em; font-size: 1.08rem; line-height: 1.8; }
.troupe-texte p:first-child::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: "Anton", Impact, sans-serif;
  font-size: 3.6rem;
  line-height: .9;
  color: var(--jaune);
}
/* Par défaut (image détourée / fond transparent) : pas de cadre, l'ombre suit la silhouette
   et un halo de projecteur éclaire la troupe sur le fond sombre. */
.troupe-photo {
  display: block;
  width: 100%;
  margin-bottom: 22px;
  padding: 8px 4px 0;
  background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(253, 227, 140, .22), transparent 70%);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55));
}
/* Photo classique (sans transparence, détectée au chargement) : façon tirage posé */
.troupe-photo.photo-opaque {
  padding: 0;
  background: none;
  filter: none;
  border-radius: 8px;
  border: 6px solid var(--creme);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  transform: rotate(1.5deg);
}
.troupe-fiche {
  margin: 0;
  padding: 20px 22px;
  background: var(--creme);
  color: var(--encre);
  border-radius: 8px;
  border-top: 6px solid var(--rouge);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.troupe-fiche div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed #e0c878;
}
.troupe-fiche div:last-child { border-bottom: 0; }
.troupe-fiche dt {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rouge);
  padding-top: 2px;
}
.troupe-fiche dd { margin: 0; text-align: right; font-weight: 600; }
.troupe-rejoindre {
  margin-top: 48px;
  padding: 26px 28px;
  text-align: center;
  background: var(--rouge);
  border-radius: 8px;
  border-bottom: 6px solid var(--rouge-fonce);
}
.troupe-rejoindre h3 {
  margin: 0 0 8px;
  font-family: "Anton", Impact, sans-serif;
  font-weight: normal;
  font-size: 1.7rem;
  text-transform: uppercase;
}
.troupe-rejoindre p { margin: 0; line-height: 1.7; }
.troupe-rejoindre a { color: var(--jaune); font-weight: 700; }

@media (max-width: 800px) {
  .troupe { padding: 56px 18px 64px; }
  .troupe-grille { grid-template-columns: 1fr; gap: 32px; }
  .troupe-photo.photo-opaque { transform: none; }
}

/* --- Admin : vignette d'une image paysage (détectée au chargement) --- */
.liste-pieces img.format-paysage,
.image-actuelle img.format-paysage {
  width: 160px;
  height: 120px;
  object-fit: contain;     /* image entière, sans recadrage */
  background: none;
}

/* ---------- Presse (public) ---------- */
.presse-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.article-presse {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 18px;
  background: var(--creme);
  color: var(--encre);
  text-decoration: none;
  border-radius: 8px;
  border-top: 5px solid var(--rouge);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
  transition: transform .15s, box-shadow .15s;
}
.article-presse:hover,
.article-presse:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  outline: none;
}
.article-presse:focus-visible { box-shadow: 0 0 0 3px var(--jaune), 0 18px 40px rgba(0, 0, 0, .45); }
.article-journal {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--encre);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.journal-le-telegramme { background: #0a3a6b; }
.journal-ouest-france  { background: #c8102e; }
.journal-maville       { background: #e2650b; }
.article-presse h3 {
  margin: 0;
  flex: 1;
  font-family: "Anton", Impact, sans-serif;
  font-weight: normal;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: .01em;
}
.article-pied {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e0c878;
  font-size: .88rem;
  color: #6b5f55;
}
.article-lire { color: var(--rouge); font-weight: 700; white-space: nowrap; }
.article-presse:hover .article-lire { text-decoration: underline; }

/* Admin : liste des articles (sans vignette) */
.liste-presse .meta a { color: var(--rouge); font-weight: 600; }
