/* ==========================================================================
   MOGY DANS' CLUB — Feuille de style principale
   Aucune dépendance externe (pas de Google Fonts → conforme RGPD)
   ========================================================================== */

:root {
  --bordeaux: #6b1d2a;
  --bordeaux-fonce: #4a121d;
  --or: #b8893b;
  --or-clair: #e6cf9f;
  --ivoire: #faf6ef;
  --creme: #f3ebdd;
  --encre: #231a1c;
  --gris: #6d6264;
  --blanc: #ffffff;
  --ombre: 0 10px 30px rgba(35, 26, 28, .12);
  --rayon: 14px;
  --largeur: 1140px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--ivoire);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); }
a:hover { color: var(--or); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--bordeaux-fonce); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { left: 16px; top: 16px; z-index: 100; background: var(--blanc); padding: 8px 12px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 137, 59, .3);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bordeaux-fonce); }
.logo img { height: 48px; width: auto; }
.logo-texte { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.logo-texte small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--or); }

.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; color: var(--encre); font-size: .95rem; font-weight: 500;
}
.menu a:hover { background: var(--creme); color: var(--bordeaux); }
.menu a[aria-current="page"] { background: var(--bordeaux); color: var(--blanc); }

.bouton-menu {
  display: none; background: none; border: 1px solid var(--bordeaux); color: var(--bordeaux);
  border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer;
}

@media (max-width: 1080px) {
  .bouton-menu { display: block; }
  .menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: var(--ivoire); padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(184, 137, 59, .3); box-shadow: var(--ombre);
  }
  .menu.ouvert { display: flex; }
  .menu a { padding: 12px 16px; }
}

/* ---------- Bandeau (hero) ---------- */
.bandeau {
  position: relative; color: var(--blanc);
  background-color: var(--bordeaux-fonce);
  background-image: linear-gradient(120deg, rgba(74, 18, 29, .88), rgba(107, 29, 42, .55)), var(--image-bandeau, none);
  background-size: cover; background-position: center;
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 110px);
}
.bandeau h1 { color: var(--blanc); margin-bottom: .3em; }
.bandeau .surtitre { font-size: .85rem; letter-spacing: .25em; text-transform: uppercase; color: var(--or-clair); font-weight: 600; margin-bottom: 1em; }
.bandeau .chapo { font-size: 1.2rem; max-width: 640px; color: rgba(255, 255, 255, .92); }
.bandeau-petit { padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 70px); }

.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bouton {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform .15s, background .15s;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
}
.bouton:hover { transform: translateY(-2px); }
.bouton-or { background: var(--or); color: var(--blanc); }
.bouton-or:hover { background: #a37631; color: var(--blanc); }
.bouton-contour { border-color: rgba(255, 255, 255, .8); color: var(--blanc); }
.bouton-contour:hover { background: rgba(255, 255, 255, .12); color: var(--blanc); }
.bouton-bordeaux { background: var(--bordeaux); color: var(--blanc); }
.bouton-bordeaux:hover { background: var(--bordeaux-fonce); color: var(--blanc); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-creme { background: var(--creme); }
.section-titre { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-titre .filet { width: 60px; height: 3px; background: var(--or); margin: 0 auto 18px; border-radius: 2px; }
.intro { font-size: 1.15rem; color: var(--gris); }

.grille { display: grid; gap: 24px; }
.grille-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grille-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.carte {
  background: var(--blanc); border-radius: var(--rayon); padding: 28px;
  box-shadow: var(--ombre); border-top: 4px solid var(--or);
}
.carte h3 { margin-bottom: .4em; }
.carte-icone { font-size: 2rem; margin-bottom: 8px; }

/* Encadré « portes ouvertes » */
.encadre {
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 32px; margin-top: -60px; position: relative; z-index: 2;
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.encadre h2 { font-size: 1.5rem; }
.pastille {
  display: inline-block; background: var(--creme); color: var(--bordeaux);
  font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 10px;
}
.mise-en-avant { font-weight: 700; color: var(--bordeaux); }

/* Citation / signature */
.signature { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--bordeaux); }

/* ---------- Danses ---------- */
.famille { margin-bottom: 64px; }
.famille > p { max-width: 780px; }
.danse {
  background: var(--blanc); border-radius: var(--rayon); padding: 24px 26px;
  box-shadow: var(--ombre); position: relative; overflow: hidden;
}
.danse::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--or); }
.danse h3 { font-size: 1.45rem; }
.danse dl { margin: 0; display: grid; gap: 8px; }
.danse dt { font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.danse dd { margin: 0 0 4px; }

/* ---------- Professeurs ---------- */
.prof { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
@media (max-width: 800px) { .prof { grid-template-columns: 1fr; } }
.prof-photo img { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; }
.titres { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.titres li { padding-left: 30px; position: relative; }
.titres li::before { content: "★"; position: absolute; left: 0; color: var(--or); }

/* ---------- Horaires ---------- */
.lieu { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.lieu-entete { background: var(--bordeaux); color: var(--blanc); padding: 22px 26px; }
.lieu-entete h3 { color: var(--blanc); margin: 0; }
.lieu-entete p { margin: 4px 0 0; color: var(--or-clair); }
.lieu-corps { padding: 8px 26px 24px; }
.jour { font-family: var(--serif); font-size: 1.25rem; color: var(--bordeaux); margin: 20px 0 8px; }
table.planning { width: 100%; border-collapse: collapse; }
table.planning td { padding: 10px 0; border-bottom: 1px solid var(--creme); vertical-align: top; }
table.planning td:last-child { text-align: right; white-space: nowrap; font-weight: 600; color: var(--bordeaux-fonce); }
.nouveau { background: var(--or); color: var(--blanc); font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

.liste-dates { list-style: none; padding: 0; margin: 0; }
.liste-dates li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--creme); }
.liste-dates li span:last-child { color: var(--gris); text-align: right; }
.a-completer { font-style: italic; color: var(--gris); }

.evenement { display: flex; gap: 18px; align-items: flex-start; }
.evenement-date {
  flex: 0 0 72px; text-align: center; background: var(--bordeaux); color: var(--blanc);
  border-radius: 12px; padding: 10px 6px; font-family: var(--serif); line-height: 1.1;
}
.evenement-date strong { display: block; font-size: 1.8rem; }
.evenement-date span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Galerie photos ---------- */
.galerie { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.galerie a { display: block; border-radius: 10px; overflow: hidden; background: var(--creme); aspect-ratio: 4 / 3; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.galerie a:hover img { transform: scale(1.05); }
.legende { color: var(--gris); font-style: italic; margin-top: 10px; }
.album { margin-bottom: 56px; }

/* Image absente : on affiche un motif discret plutôt qu'une icône cassée */
img.image-absente { visibility: hidden; }
.image-absente-parent {
  background: repeating-linear-gradient(45deg, var(--creme), var(--creme) 10px, #efe4d2 10px, #efe4d2 20px) !important;
}

/* Visionneuse */
.visionneuse {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 12, 14, .92);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.visionneuse.ouverte { display: flex; }
.visionneuse img { max-height: 88vh; max-width: 92vw; border-radius: 8px; }
.visionneuse button {
  position: absolute; background: rgba(255, 255, 255, .12); color: var(--blanc);
  border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer;
}
.visionneuse .fermer { top: 18px; right: 18px; }
.visionneuse .prec { left: 18px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Vidéos ---------- */
.video { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.video-cadre { position: relative; aspect-ratio: 16 / 9; background: var(--encre); }
.video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lancer {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  background-size: cover; background-position: center; color: var(--blanc);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  font: inherit; font-size: .85rem;
}
.video-lancer::before { content: ""; position: absolute; inset: 0; background: rgba(35, 26, 28, .35); }
.video-lancer span { position: relative; }
.video-lancer .play {
  width: 68px; height: 68px; border-radius: 50%; background: var(--bordeaux);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.video h3 { padding: 18px 22px; margin: 0; font-size: 1.2rem; }

/* ---------- Contact ---------- */
.formulaire { display: grid; gap: 18px; }
.formulaire label { font-weight: 600; display: block; margin-bottom: 6px; }
.formulaire input, .formulaire textarea, .formulaire select {
  width: 100%; padding: 12px 14px; border: 1px solid #d9ccb6; border-radius: 10px;
  font: inherit; background: var(--blanc);
}
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus {
  outline: 2px solid var(--or); border-color: var(--or);
}
.formulaire textarea { min-height: 150px; resize: vertical; }
.champ-piege { position: absolute; left: -9999px; }
.message-retour { padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.message-retour.ok { background: #e7f4ea; color: #1f5f2e; }
.message-retour.erreur { background: #fbe9e9; color: #8a1f1f; }
.coordonnees { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.coordonnees li { display: flex; gap: 14px; align-items: flex-start; }
.coordonnees .ico { font-size: 1.4rem; line-height: 1; }
.carte-plan iframe { width: 100%; height: 280px; border: 0; border-radius: var(--rayon); }

/* ---------- Bandeau d'appel ---------- */
.appel {
  background: linear-gradient(120deg, var(--bordeaux-fonce), var(--bordeaux));
  color: var(--blanc); text-align: center; padding: 64px 0;
}
.appel h2 { color: var(--blanc); }
.appel p { color: rgba(255, 255, 255, .9); max-width: 640px; margin-inline: auto; }
.appel .boutons { justify-content: center; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: rgba(255, 255, 255, .78); padding: 56px 0 24px; font-size: .95rem; }
.pied h4 { color: var(--or-clair); font-family: var(--sans); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }
.pied a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.pied a:hover { color: var(--or-clair); }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pied-bas { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.ffd img { background: var(--blanc); border-radius: 8px; padding: 6px; max-width: 140px; margin-top: 10px; }

/* ---------- Divers ---------- */
.centre { text-align: center; }
.mt { margin-top: 32px; }
.image-arrondie { border-radius: var(--rayon); box-shadow: var(--ombre); }
.bloc-texte { max-width: 780px; margin-inline: auto; }

@media print {
  .entete, .pied, .appel, .bouton-menu, .boutons { display: none !important; }
  .bandeau { background: none !important; color: #000; padding: 0; }
  .bandeau h1 { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- Mariage ---------- */

.galerie.petites { grid-template-columns: repeat(auto-fit, 100px); justify-content: center; gap: 10px; }
.galerie.petites a { aspect-ratio: 1 / 1; border-radius: 8px; }

.etapes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: etape; }
.etape { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 28px 24px 24px; counter-increment: etape; border-top: 4px solid var(--or); }
.etape::before {
  content: counter(etape); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--bordeaux); color: var(--blanc);
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 14px;
}
.etape h3 { margin-bottom: .4em; }
.etape p { margin: 0; }



