/*
Theme Name: Arcanum
Theme URI: https://example.com/arcanum
Author: Votre Association de Magie
Description: Thème élégant et premium pour association de magie. CPT : Réunions, Conférences, Ateliers, Repas d'été, Galerie. Support ACF, menu avancé, page d'accueil personnalisée.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arcanum
Tags: magic, association, custom-post-types, acf, dark, premium, elegant
*/

/* ─────────────────────────────────────────────────────────────
   ARCANUM — Design System
   Palette : Noir profond · Or vénitien · Ivoire · Bordeaux accent
   Typo    : Bodoni Moda (display) · EB Garamond (body) · DM Sans (UI)
───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,600;0,700;1,400;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --header-h: 70px; /* hauteur du header fixe */
  /* Couleurs */
  --ink:           #09090e;
  --ink-2:         #0f0f17;
  --ink-card:      #13131c;
  --ink-raised:    #1a1a26;

  --gold:          #c8a45a;
  --gold-bright:   #e8c97e;
  --gold-dim:      #7a5e28;
  --gold-glow:     rgba(200,164,90,.18);

  --ivory:         #f0ead8;
  --ivory-dim:     #c8c0a8;
  --ivory-muted:   #7a7060;

  --bordeaux:      #7a1f3a;
  --bordeaux-glow: rgba(122,31,58,.25);

  --border:        rgba(200,164,90,.16);
  --border-hover:  rgba(200,164,90,.45);

  /* Typographie */
  --f-display: 'Bodoni Moda', 'Georgia', serif;
  --f-body:    'EB Garamond', 'Georgia', serif;
  --f-ui:      'DM Sans', sans-serif;

  /* Espacements */
  --max-w:   1320px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 9vw, 9rem);

  /* Effets */
  --radius:       6px;
  --radius-lg:    14px;
  --shadow-card:  0 12px 48px rgba(0,0,0,.55);
  --shadow-gold:  0 0 36px var(--gold-glow);
  --transition:   .32s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Grain de fond */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ── Typographie ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ivory);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }

strong { font-weight: 600; }
em { font-style: italic; }

blockquote {
  position: relative;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  border-left: 2px solid var(--gold);
  background: var(--ink-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.15em;
  color: var(--ivory-dim);
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: .35em; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section-pad { padding-block: var(--section); }
.section-pad--sm { padding-block: calc(var(--section) * .6); }

/* ── Ornements typographiques ──────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--f-ui);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: block;
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}
.eyebrow--left::before { display: none; }

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}
.section-header .eyebrow { margin-bottom: .75rem; }
.section-header h2 { margin-bottom: .8rem; }
.section-header p {
  color: var(--ivory-muted);
  max-width: 52ch;
  margin-inline: auto;
  font-size: 1.1em;
}

.ornament {
  text-align: center;
  color: var(--gold);
  opacity: .35;
  letter-spacing: .6rem;
  font-size: 1rem;
  margin-block: .5rem;
}

/* ── Boutons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72em 1.9em;
  font-family: var(--f-ui);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 50%, var(--gold-bright) 100%);
  color: var(--ink);
}
.btn-gold:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,164,90,.38);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: var(--gold-glow);
  color: var(--gold-bright);
  border-color: var(--gold);
}
.btn-sm { padding: .55em 1.3em; font-size: .7rem; }

/* ── Header ─────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Le backdrop-filter sur l'élément lui-même casserait position:fixed
   des enfants (#main-nav). On l'applique sur un pseudo-élément à la place. */
#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
}
#site-header.is-scrolled::before {
  background: rgba(9,9,14,.93);
  backdrop-filter: blur(14px) saturate(1.4);
}
#site-header.is-scrolled {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ivory);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { color: var(--ivory); }
.logo-short { display: none; }
@media (max-width: 800px) {
  .logo-full  { display: none; }
  .logo-short { display: inline; }
}
.logo-star {
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  display: block;
  animation: star-pulse 4s ease-in-out infinite;
}
@keyframes star-pulse {
  0%,100% { opacity: 1; text-shadow: none; }
  50%      { opacity: .8; text-shadow: 0 0 12px var(--gold); }
}

/* Nav principale */
/* Menu burger universel — panneau latéral gauche */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: auto;
  width: min(420px, 100vw);
  background: rgba(9,9,14,.98);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow-y: auto;
  padding: 5rem 0 2rem;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
#main-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

#primary-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: center;
}

#primary-menu > li { position: relative; }

#primary-menu > li > a {
  display: block;
  padding: 1rem 2rem;
  font-family: var(--f-ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color var(--transition);
  border-bottom: 1px solid rgba(200,164,90,.08);
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a {
  color: var(--gold);
}

/* ── Sous-menu accordéon (universel) ─────────────────── */
#primary-menu > li { position: static; }

#primary-menu .sub-menu {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  background: rgba(200,164,90,.04);
  list-style: none;
  padding: 0 !important;
  margin: 0;
  min-width: 0 !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
#primary-menu > li.is-open > .sub-menu { max-height: 600px; }
#primary-menu .sub-menu::before { display: none !important; }
#primary-menu .sub-menu li { border-bottom: 1px solid rgba(200,164,90,.06); }
#primary-menu .sub-menu li:last-child { border-bottom: none; }
#primary-menu .sub-menu li a {
  display: block;
  padding: .85rem 2.5rem;
  font-family: var(--f-ui);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ivory);
  opacity: .75;
  transition: color var(--transition), opacity var(--transition), padding var(--transition);
}
#primary-menu .sub-menu li a:hover {
  color: var(--gold);
  opacity: 1;
  padding-left: 3rem;
}

/* Lien parent + bouton toggle côte à côte */
#primary-menu > li.menu-item-has-children {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(200,164,90,.08);
}
#primary-menu > li.menu-item-has-children > a {
  flex: 1;
  text-align: center;
  border-bottom: none; /* la bordure est sur le li */
  padding-right: 0;
}
#primary-menu > li.menu-item-has-children > a::after { display: none; }

/* Bouton + avec animation rotation */
.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-left: 1px solid rgba(200,164,90,.15);
  cursor: pointer;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: background var(--transition);
  padding: 0;
}
.submenu-toggle:hover { background: rgba(200,164,90,.08); }
.submenu-toggle span {
  display: block;
  transition: transform .3s ease;
  transform: rotate(0deg);
}
/* Quand ouvert : rotation 45° transforme le + en × */
li.is-open > .submenu-toggle span {
  transform: rotate(45deg);
}

/* Le sous-menu prend toute la largeur */
#primary-menu > li.menu-item-has-children > .sub-menu {
  flex-basis: 100%;
}

.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* Bouton déconnexion */
.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(200,164,90,.25);
  color: var(--ivory-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-logout:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}
/* Tous les boutons header-actions restent visibles sauf ajout explicite */

/* Toggle mobile */
.nav-toggle {
  display: flex; /* visible partout */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1000;
}
.nav-toggle > span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: all var(--transition);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────── */
/* Respect prefers-reduced-motion — pause la vidéo */
@media (prefers-reduced-motion: reduce) {
  .hero video { display: none; }
}
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h); /* compense le header fixed */
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(.28) saturate(.8);
  transform: scale(1.06);
  transition: transform 10s ease;
  will-change: transform;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 40% 60%, rgba(122,31,58,.22) 0%, transparent 65%),
    linear-gradient(160deg, rgba(9,9,14,.15) 0%, rgba(9,9,14,.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-content .eyebrow { margin-bottom: 1.5rem; }

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 40px rgba(0,0,0,.4);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  display: block;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(240,234,216,.7);
  max-width: 48ch;
  margin-bottom: 2.5rem;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-ui);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  animation: float 2.5s ease-in-out infinite;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold), var(--shadow-card);
  transform: translateY(-5px);
}

.card-thumb {
  overflow: hidden;
  aspect-ratio: 16/10;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}
.card:hover .card-thumb img { transform: scale(1.06); }

.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card-excerpt { color: var(--ivory-muted); font-size: .95rem; line-height: 1.7; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-family: var(--f-ui);
  font-size: .72rem;
  color: var(--ivory-muted);
}
.card-footer a.btn-sm { margin-left: auto; }

/* ── Grilles ────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px,100%),1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px,100%),1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px,100%),1fr)); gap: 1.5rem; }

/* ── Card Vie du Club (CPT générique) ───────────────────── */
.cpt-card-date {
  display: flex;
  align-items: stretch;
}
.cpt-date-block {
  background: linear-gradient(160deg, var(--gold-dim), var(--gold));
  color: var(--ink);
  min-width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem .75rem;
  flex-shrink: 0;
}
.cpt-date-block .day {
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}
.cpt-date-block .month {
  font-family: var(--f-ui);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .2rem;
}
.cpt-date-body { padding: 1.1rem 1.3rem; flex: 1; }
.cpt-date-body h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.cpt-date-meta {
  font-family: var(--f-ui);
  font-size: .72rem;
  color: var(--ivory-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  margin-top: .5rem;
}

/* ── Galerie Grid ───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px,100%),1fr));
  gap: .75rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,9,14,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 1.5rem;
  color: var(--gold);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── Page contenu pleine largeur (sans sidebar) ─────────── */
.page-content-full {
  max-width: 780px;
  margin: 0 auto;
}
.page-content-full .entry-content {
  max-width: none;
}
/* Réduire le padding-top sur les pages de contenu classiques
   pour éviter l'accumulation avec le margin-top du premier h2 */
/* Padding-top réduit et uniforme sur toutes les pages de contenu */
.container.section-pad:has(.page-content-full),
.single .container.section-pad,
.page:not(.home) .container.section-pad {
  padding-top: calc(var(--section) * .45);
}
/* Annuler le margin-top du premier h2 dans entry-content */
.page-content-full .entry-content > h2:first-child,
.page-content-full .entry-content > *:first-child h2:first-child {
  margin-top: 0;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  font-family: var(--f-ui);
  font-size: .73rem;
  color: var(--ivory-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--ivory-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: .4; }
.breadcrumb span[aria-current] { color: var(--gold); }

/* ── Page Hero (pages internes) ─────────────────────────── */
.page-hero {
  padding-top: calc(5rem + var(--header-h));
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(122,31,58,.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .eyebrow { margin-bottom: .75rem; }
.page-hero h1 { margin-bottom: .75rem; }
.page-hero .page-hero-lead {
  font-size: 1.1em;
  color: var(--ivory-muted);
  max-width: 55ch;
}

/* ── Article / Entry content ────────────────────────────── */
.entry-header { margin-bottom: 3rem; }
.entry-header .eyebrow { margin-bottom: .75rem; }
.entry-header h1 { margin-bottom: 1rem; }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-family: var(--f-ui);
  font-size: .75rem;
  color: var(--ivory-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.entry-content { max-width: 68ch; }
/* Dans les CR : pas de limite de largeur */
.cr-wysiwyg.entry-content,
.cr-wysiwyg { max-width: none; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { margin-top: 1.5em; }
.entry-content h3 { margin-top: 2em; }
.entry-content img { border-radius: var(--radius); margin-block: 2rem; }
.entry-content figure { margin-block: 2rem; }
.entry-content figcaption {
  font-size: .82rem;
  color: var(--ivory-muted);
  text-align: center;
  margin-top: .6rem;
  font-style: italic;
}

/* ── Formulaire de contact ──────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-grid .form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label {
  font-family: var(--f-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--ink-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 1rem;
  padding: .75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-family: var(--f-ui);
  font-size: .8rem;
  color: var(--ivory-muted);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: .1rem;
  accent-color: var(--gold);
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 4rem;
  font-family: var(--f-ui);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .8rem;
  color: var(--ivory-muted);
  transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Sidebar ────────────────────────────────────────────── */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
.sidebar { position: sticky; top: 110px; }
.widget + .widget { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.widget-title {
  font-family: var(--f-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* ── Tag / Catégorie pill ───────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag-pill {
  display: inline-block;
  padding: .3em .85em;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--f-ui);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ivory-muted);
  transition: all var(--transition);
}
.tag-pill:hover { border-color: var(--gold); color: var(--gold); }

/* ── Section teaser Vie du club ─────────────────────────── */
.vie-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.vie-tabs::-webkit-scrollbar { display: none; }
.vie-tab {
  flex-shrink: 0;
  padding: .75rem 1.5rem;
  font-family: var(--f-ui);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.vie-tab:hover { color: var(--gold); }
.vie-tab.is-active { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Footer ─────────────────────────────────────────────── */
#site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--border);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-block: 5rem 3.5rem;
}
.footer-brand .site-logo { margin-bottom: 1.1rem; }
.footer-brand p { color: var(--ivory-muted); font-size: .95rem; line-height: 1.85; max-width: 26ch; }

.footer-social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--ivory-muted);
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

.footer-col h4 {
  font-family: var(--f-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { color: var(--ivory-muted); font-size: .9rem; transition: all var(--transition); }
.footer-col ul li a:hover { color: var(--ivory); padding-left: .25rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-family: var(--f-ui);
  font-size: .72rem;
  color: var(--ivory-muted);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  /* header-actions au-dessus du nav overlay */
  .header-actions {
    position: relative;
    z-index: 1000;
  }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeUp .65s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .36s; }
.delay-4 { animation-delay: .52s; }

/* ── Accessibilité ──────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Classes WP natives ─────────────────────────────────── */
.alignleft  { float: left;  margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left:  1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin-inline: auto; margin-bottom: 1em; }
.wp-caption-text { font-size: .82rem; color: var(--ivory-muted); text-align: center; margin-top: .5rem; font-style: italic; }
.sticky { /* WP sticky posts — à styler selon besoin */ }

/* ══════════════════════════════════════════════════════════
   AGENDA — Calendrier mensuel
══════════════════════════════════════════════════════════ */

/* ── Barre de contrôles ─────────────────────────────────── */
.agenda-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.agenda-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.agenda-month-title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--ivory);
  min-width: 220px;
  text-align: center;
  margin: 0;
}

.agenda-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ivory-muted);
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.agenda-nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.agenda-filters {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.agenda-type-filter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.tag-pill.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

/* ── Structure calendrier ───────────────────────────────── */
.agenda-calendar {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3.5rem;
}

/* En-têtes jours de semaine */
.agenda-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--ink-raised);
  border-bottom: 1px solid var(--border);
}

.agenda-weekday {
  padding: .75rem .5rem;
  text-align: center;
  font-family: var(--f-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Grille des jours */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--border);
}

/* Cellule jour */
.agenda-cell {
  min-height: 110px;
  padding: .6rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  position: relative;
  transition: background var(--transition);
  cursor: default;
}

.agenda-cell--has-events {
  cursor: pointer;
}
.agenda-cell--has-events:hover {
  background: rgba(200,164,90,.04);
}

.agenda-cell--empty {
  background: rgba(0,0,0,.12);
  min-height: 110px;
}

.agenda-cell--today .agenda-day-number {
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Numéro du jour */
.agenda-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--f-ui);
  font-size: .78rem;
  font-weight: 500;
  color: var(--ivory-muted);
  margin-bottom: .35rem;
  line-height: 1;
}

/* Événements dans la cellule */
.agenda-events-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.agenda-event-pill {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  padding: .25rem .45rem;
  border-radius: 3px;
  font-family: var(--f-ui);
  font-size: .65rem;
  line-height: 1.3;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
  overflow: hidden;
}
.agenda-event-pill:hover {
  opacity: .85;
  transform: translateX(2px);
}

.agenda-event-time {
  flex-shrink: 0;
  font-weight: 700;
  opacity: .8;
}

.agenda-event-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* ── Section liste sous le calendrier ───────────────────── */
.agenda-list-section {
  margin-top: 1rem;
}

.agenda-list-title {
  margin-bottom: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .agenda-controls { flex-direction: column; align-items: flex-start; }
  .agenda-month-title { min-width: 0; font-size: 1.3rem; }
  .agenda-cell { min-height: 70px; padding: .4rem; }
  .agenda-event-time { display: none; }
  .agenda-event-pill { padding: .2rem .3rem; }
}

@media (max-width: 520px) {
  .agenda-cell { min-height: 50px; padding: .3rem; }
  .agenda-event-name { display: none; }
  /* Afficher juste un point coloré sur mobile */
  .agenda-event-pill::before {
    content: '●';
    font-size: .55rem;
    display: block;
  }
  .agenda-event-pill {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
  }
}

/* ══════════════════════════════════════════════════════════
   ESPACE MEMBRES
══════════════════════════════════════════════════════════ */

/* Badge membre connecté dans le header */
.membre-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45em 1em;
  font-family: var(--f-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.membre-badge:hover {
  color: var(--ivory);
  border-color: var(--border-hover);
  background: var(--gold-glow);
}

/* Cadenas sur les contenus protégés (archive) */
.card-members-lock {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(9,9,14,.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .65rem;
  font-family: var(--f-ui);
  font-size: .62rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .1em;
  backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════════════════════════
   PAGE D'ACCUEIL — Sections spécifiques
══════════════════════════════════════════════════════════ */

/* ── Section Histoire ───────────────────────────────────── */
.home-histoire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.home-timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2.5rem;
}
.home-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: .4rem;
  bottom: .4rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.home-tl-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.home-tl-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: .45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.home-tl-year {
  font-family: var(--f-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--gold);
  margin-bottom: .2rem;
}
.home-tl-text {
  color: var(--ivory-muted);
  font-size: .92rem;
  line-height: 1.7;
}

.home-histoire-visual {
  position: relative;
  padding-bottom: 1.5rem; /* espace pour le badge */
}
.home-histoire-frame {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.home-histoire-caption {
  margin-top: 1rem;
  font-family: var(--f-ui);
  font-size: .72rem;
  color: var(--ivory-muted);
  text-align: center;
  font-style: italic;
}





/* ── Chiffres clés ──────────────────────────────────────── */
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.home-stat-card {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1rem;
  transition: all var(--transition);
}
.home-stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(200,164,90,.08);
  transform: translateY(-3px);
}
.home-stat-number {
  display: block;
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.home-stat-label {
  display: block;
  font-family: var(--f-ui);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  margin-top: .5rem;
}
.home-stat-desc {
  font-size: .82rem;
  color: var(--ivory-muted);
  margin-top: .4rem;
  opacity: .7;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-histoire-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .home-histoire-visual {
    order: 2;
    max-width: 320px;
    margin: 0 auto;
  }
  .home-histoire-badge {
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
  }
  .home-stats-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}

/* ══════════════════════════════════════════════════════════
   PAGE MEMBRES
══════════════════════════════════════════════════════════ */

.membres-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.membres-count {
  font-family: var(--f-ui);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}
.membres-count span {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-right: .4rem;
  vertical-align: middle;
}
.membres-admin-note {
  font-size: .78rem;
  color: var(--ivory-muted);
  opacity: .6;
  font-style: italic;
}

/* Grille */
.membres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Carte membre */
.membre-card {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.membre-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(200,164,90,.08);
  transform: translateY(-3px);
}
.membre-card--non-a-jour {
  opacity: .5;
}

/* Photo */
.membre-card-photo {
  position: relative;
  aspect-ratio: 1;
  background: var(--ink-2);
  overflow: hidden;
}
.membre-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.membre-card:hover .membre-card-photo img {
  transform: scale(1.05);
}
.membre-card-initiales {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .3;
  letter-spacing: .05em;
}
.membre-card-badge-nok {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 22px;
  height: 22px;
  background: #c0392b;
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Infos */
.membre-card-infos {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}
.membre-card-magicien {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.2;
}
.membre-card-nom {
  font-family: var(--f-ui);
  font-size: .75rem;
  color: var(--ivory-muted);
  letter-spacing: .06em;
}
.membre-card-role {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,164,90,.3);
  border-radius: 3px;
  padding: .15rem .5rem;
  margin-top: .2rem;
  align-self: flex-start;
}
.membre-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .3rem;
}
.membre-card-specs .tag-pill {
  font-size: .6rem;
  padding: .15rem .5rem;
}
.membre-card-bio {
  font-size: .82rem;
  color: var(--ivory-muted);
  line-height: 1.6;
  margin-top: .3rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.membre-card-links {
  display: flex;
  gap: .6rem;
  margin-top: auto;
  padding-top: .75rem;
}
.membre-card-links a {
  font-size: 1.1rem;
  text-decoration: none;
  opacity: .6;
  transition: opacity var(--transition);
}
.membre-card-links a:hover { opacity: 1; }

@media (max-width: 480px) {
  .membres-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ══════════════════════════════════════════════════════════
   LISTE MEMBRES
══════════════════════════════════════════════════════════ */
.membres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.membres-grid--bureau {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Card membre */
.card-membre {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.card-membre:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(200,164,90,.08);
}

/* Avatar */
.card-membre-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-2);
}
.card-membre-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-membre-initiales {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .6;
}

/* Corps */
.card-membre-body { width: 100%; }

.card-membre-nom-magicien {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ivory);
  margin: 0;
  line-height: 1.2;
}
.card-membre-nom-reel {
  font-family: var(--f-ui);
  font-size: .72rem;
  color: var(--ivory-muted);
  margin: .2rem 0 0;
  letter-spacing: .05em;
}
.card-membre-role {
  display: inline-block;
  margin-top: .4rem;
  font-family: var(--f-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid rgba(200,164,90,.25);
  border-radius: 20px;
  padding: .15rem .7rem;
}
.card-membre-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  justify-content: center;
  margin-top: .6rem;
}
.card-membre-specs .tag-pill {
  font-size: .6rem;
  padding: .1rem .5rem;
}
.card-membre-socials {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: .6rem;
}
.card-membre-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: .75rem;
  color: var(--ivory-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.card-membre-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 600px) {
  .membres-grid,
  .membres-grid--bureau {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════════════════════════
   COMPTE RENDU DE RÉUNION
══════════════════════════════════════════════════════════ */

/* Hero deux colonnes */
.cr-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}
.cr-hero-right {
  border-left: 1px solid rgba(200,164,90,.2);
  padding-left: 2rem;
  min-width: 260px;
  max-width: 340px;
}
.cr-avantpropos-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.cr-avantpropos-lines li {
  font-family: var(--f-ui);
  font-size: .8rem;
  color: var(--ivory);
  opacity: .85;
  line-height: 1.5;
}
.cr-avantpropos-lines li::before {
  content: '✦ ';
  color: var(--gold);
  opacity: .6;
  font-size: .65rem;
}
@media (max-width: 768px) {
  .cr-hero-inner { grid-template-columns: 1fr; }
  .cr-hero-right { border-left: none; border-top: 1px solid rgba(200,164,90,.2); padding-left: 0; padding-top: 1.5rem; min-width: 0; max-width: none; }
}

/* Hero meta */
.cr-hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  font-family: var(--f-ui);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--ivory-muted);
}
.cr-hero-meta span::before { content: '✦ '; color: var(--gold); opacity: .5; }

/* Fond blanc pour les pages compte rendu */
body.single-reunion {
  background: #fff;
}
/* Page-hero reste sombre */
body.single-reunion .page-hero {
  background: var(--ink);
  color: var(--ivory);
}
body.single-reunion .page-hero h1,
body.single-reunion .page-hero .eyebrow,
body.single-reunion .page-hero .cr-hero-meta { color: inherit; }
body.single-reunion .container.section-pad {
  background: #fff;
  color: #1a1a1a;
  border-radius: 0;
  max-width: none;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}
body.single-reunion .cr-layout {
  max-width: 1200px;
  margin: 0 auto;
}
body.single-reunion .cr-section-title { color: #1a1a1a; border-color: rgba(0,0,0,.1); }
body.single-reunion .cr-section-title em { color: #a07c2a; }
body.single-reunion .entry-content,
body.single-reunion .cr-avantpropos-row dd,
body.single-reunion .cr-prochaine-date,
body.single-reunion .cr-prochaine-lieu { color: #1a1a1a; }
body.single-reunion .cr-avantpropos-row dt { color: #666; }
body.single-reunion .cr-presence-table td { color: #333; border-color: rgba(0,0,0,.08); }
body.single-reunion .cr-presence-table th { color: #a07c2a; border-color: rgba(0,0,0,.15); }
body.single-reunion .cr-presence-table tr.cr-present td { color: #1a1a1a; font-weight: 500; }
body.single-reunion .cr-presence-table tr.cr-present { background: rgba(160,124,42,.07); }
body.single-reunion .cr-presence-table tr.cr-absent td { color: #999; }
body.single-reunion .cr-check { color: #a07c2a; font-weight: 700; }
body.single-reunion .cr-section { border-color: rgba(0,0,0,.1); }
body.single-reunion .entry-content .wp-block-heading,
body.single-reunion .entry-content h1,
body.single-reunion .entry-content h2,
body.single-reunion .entry-content h3,
body.single-reunion .entry-content h4 { color: #1a1a1a; }
body.single-reunion .cr-presence-total { color: #555; border-color: rgba(0,0,0,.1); }
body.single-reunion .cr-toc { background: #f5f5f0; border-color: rgba(0,0,0,.1); }
body.single-reunion .cr-toc-list li a { color: #444; }
body.single-reunion .cr-toc-list li a:hover { background: rgba(160,124,42,.08); color: #a07c2a; }
body.single-reunion .cr-toc-num { background: #fff; border-color: rgba(0,0,0,.15); color: #a07c2a; }
body.single-reunion .cr-prochaine-card { background: #f5f5f0; border-color: rgba(0,0,0,.1); }

/* Layout principal : sidebar + contenu */
.cr-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
  padding-top: 3rem;
}

/* ── Table des matières ──────────────────────────────── */
.cr-toc {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
  max-height: calc(100vh - var(--header-h) - 4rem);
  overflow-y: auto;
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.cr-toc-title {
  font-family: var(--f-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.cr-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  counter-reset: toc;
}
.cr-toc-list li a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .5rem .6rem;
  border-radius: 6px;
  font-family: var(--f-ui);
  font-size: .75rem;
  color: var(--ivory-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: all var(--transition);
}
.cr-toc-list li a:hover {
  background: var(--gold-glow);
  color: var(--gold);
}
.cr-toc-num {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

/* ── Sections ────────────────────────────────────────── */
.cr-section {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.cr-section:last-child { border-bottom: none; }
/* Quand accordéon fermé : pas de double border */
.cr-section--accordion:has(.cr-accordion-body[hidden]) {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.cr-section-title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem); /* aligné sur h2 global */
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(200,164,90,.15);
}
.cr-section-title em {
  color: var(--gold);
  font-style: normal;
}
/* Hiérarchie des titres dans le wysiwyg du CR : sous le cr-section-title */
.cr-wysiwyg h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: 2rem; }
.cr-wysiwyg h3 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); margin-top: 1.5rem; }
.cr-wysiwyg h4 { font-size: 1rem; margin-top: 1.2rem; font-weight: 700; }
body.single-reunion .cr-wysiwyg h2,
body.single-reunion .cr-wysiwyg h3,
body.single-reunion .cr-wysiwyg h4 { color: #1a1a1a; }

/* ── Avant-propos ────────────────────────────────────── */
.cr-avantpropos {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.cr-avantpropos-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: .9rem;
}
.cr-avantpropos-row dt {
  flex-shrink: 0;
  width: 220px;
  font-family: var(--f-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}
.cr-avantpropos-row dd {
  color: var(--ivory);
  margin: 0;
}

/* ── Accordéon ──────────────────────────────────────── */
.cr-accordion-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .75rem;
  user-select: none;
}
.cr-accordion-trigger:hover { color: var(--gold); }
body.single-reunion .cr-accordion-trigger:hover { color: #a07c2a; }
.cr-accordion-icon {
  margin-left: auto;
  font-size: clamp(1.9rem, 3.5vw, 3rem); /* aligné sur le titre */
  font-weight: 300;
  line-height: 1;
  transition: transform .3s ease;
  color: var(--gold);
}
body.single-reunion .cr-accordion-icon { color: #a07c2a; }
.cr-accordion-trigger[aria-expanded="true"] .cr-accordion-icon { transform: rotate(45deg); }
.cr-accordion-count {
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.5vw, 1.4rem); /* proportionnel au titre */
  font-weight: 400;
  font-style: italic;
  color: var(--ivory-muted);
  letter-spacing: .02em;
}
body.single-reunion .cr-accordion-count { color: #888; }
.cr-accordion-body { transition: none; }
.cr-accordion-body[hidden] { display: none; }
.cr-accordion-body:not([hidden]) {
  display: block;
  animation: accordionOpen .25s ease;
}
@keyframes accordionOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Fiche de présence ───────────────────────────────── */
.cr-presence-table-wrap { overflow-x: auto; }
.cr-presence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.cr-presence-table th {
  font-family: var(--f-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: .6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cr-presence-table td {
  padding: .55rem 1rem;
  border-bottom: 1px solid rgba(200,164,90,.06);
  color: var(--ivory-muted);
}
.cr-presence-table tr.cr-present td { color: var(--ivory); }
.cr-presence-table tr.cr-absent td  { opacity: .5; }
.cr-presence-col-check { text-align: center; width: 80px; }
.cr-check { color: var(--gold); font-size: .9rem; }
.cr-presence-total {
  padding: .75rem 1rem;
  font-family: var(--f-ui);
  font-size: .75rem;
  color: var(--ivory-muted);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ── Scène ouverte (notice accès) ────────────────────── */
.cr-section-notice {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: var(--ivory-muted);
}
.cr-lock-icon { font-size: 1.1rem; }

/* ── Petit pot ───────────────────────────────────────── */
.cr-petit-pot-photo {
  margin: 1.5rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cr-petit-pot-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Prochaine réunion ───────────────────────────────── */
.cr-prochaine-card {
  background: var(--ink-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: inline-flex;
  flex-direction: column;
  gap: .5rem;
}
.cr-prochaine-date,
.cr-prochaine-lieu {
  font-family: var(--f-ui);
  font-size: .9rem;
  color: var(--ivory);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .cr-layout {
    grid-template-columns: 1fr;
  }
  .cr-toc {
    position: static;
    order: -1;
  }
  .cr-avantpropos-row dt { width: 160px; }
}
@media (max-width: 600px) {
  .cr-avantpropos-row { flex-direction: column; gap: .1rem; }
  .cr-avantpropos-row dt { width: auto; }
}

/* ══════════════════════════════════════════════════════════
   BARRE PDF
══════════════════════════════════════════════════════════ */
.cr-pdf-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.cr-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  border-color: rgba(200,164,90,.4) !important;
  font-size: .72rem;
  padding: .45rem 1rem;
}
.cr-pdf-btn:hover { border-color: var(--gold) !important; }

/* ══════════════════════════════════════════════════════════
   IMPRESSION / EXPORT PDF
   Reproduit le rendu du document PDF original
══════════════════════════════════════════════════════════ */
@media print {

  /* ── Reset général ─────────────────────────────────── */
  *,
  *::before,
  *::after {
    color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: #fff !important;
    color: #1a1a1a !important;
    font-family: Georgia, serif;
    font-size: 11pt;
    line-height: 1.7;
  }

  /* ── Éléments masqués à l'impression ──────────────── */
  #site-header,
  #main-nav,
  .cr-toc,
  .cr-pdf-bar,
  .breadcrumb,
  #site-footer,
  .nav-toggle,
  .header-actions,
  .btn,
  .cr-accordion-icon,
  .cr-accordion-count {
    display: none !important;
    position: static !important; /* évite que le fixed s'imprime */
    visibility: hidden !important;
  }

  /* ── Page hero → page de titre ─────────────────────── */
  .page-hero {
    background: #fff !important;
    color: #1a1a1a !important;
    padding: 3cm 2cm 1cm !important;
    page-break-after: always;
    text-align: center;
    border: none !important;
  }
  .page-hero h1 {
    font-size: 24pt !important;
    color: #1a1a1a !important;
    margin-bottom: .5cm;
  }
  .page-hero .eyebrow { color: #888 !important; }
  .cr-hero-inner {
    display: block !important;
    text-align: center;
  }
  .cr-hero-right {
    border: none !important;
    padding: 0 !important;
    margin-top: .5cm;
    max-width: none !important;
  }
  .cr-avantpropos-lines li {
    color: #444 !important;
    font-size: 10pt;
  }
  .cr-avantpropos-lines li::before { content: '' !important; }
  .cr-hero-meta { justify-content: center; color: #666 !important; }

  /* ── Layout : masquer sidebar, contenu pleine largeur ── */
  .cr-layout {
    display: block !important;
  }
  .cr-content {
    width: 100% !important;
  }

  /* ── Sections ──────────────────────────────────────── */
  .container.section-pad {
    padding: .5cm 2cm !important;
    max-width: none !important;
  }
  .cr-section {
    page-break-inside: avoid;
    border-bottom: 1px solid #ddd !important;
    padding-bottom: .5cm !important;
    margin-bottom: .5cm !important;
  }
  .cr-section-title {
    font-size: 16pt !important;
    color: #1a1a1a !important;
    border-bottom-color: #ccc !important;
  }
  .cr-section-title em { color: #333 !important; }

  /* ── Accordéon : forcer l'ouverture ───────────────── */
  .cr-accordion-body[hidden] {
    display: block !important;
  }

  /* ── Avant-propos ──────────────────────────────────── */
  .cr-avantpropos { gap: .15cm !important; }
  .cr-avantpropos-row { flex-direction: row !important; }
  .cr-avantpropos-row dt { color: #666 !important; width: 5cm !important; }
  .cr-avantpropos-row dd { color: #1a1a1a !important; }

  /* ── Fiche de présence ─────────────────────────────── */
  .cr-presence-table { font-size: 9pt !important; }
  .cr-presence-table th { color: #333 !important; background: #f5f5f5 !important; }
  .cr-presence-table tr.cr-present { background: #f9f6ee !important; }
  .cr-presence-table tr.cr-present td { color: #1a1a1a !important; font-weight: 600 !important; }
  .cr-presence-table tr.cr-absent td { color: #999 !important; }
  .cr-check { color: #a07c2a !important; }
  .cr-presence-total { color: #555 !important; }

  /* ── Contenu éditeur ───────────────────────────────── */
  .cr-wysiwyg {
    max-width: none !important;
    font-size: 10.5pt;
    color: #1a1a1a !important;
  }
  .cr-wysiwyg h2 { font-size: 13pt !important; color: #1a1a1a !important; page-break-after: avoid; }
  .cr-wysiwyg h3 { font-size: 11pt !important; color: #333 !important; page-break-after: avoid; }
  .cr-wysiwyg h4 { font-size: 10pt !important; color: #333 !important; page-break-after: avoid; }
  .cr-wysiwyg img { max-width: 100% !important; page-break-inside: avoid; }

  /* ── Petit pot ─────────────────────────────────────── */
  .cr-petit-pot-photo { page-break-inside: avoid; max-width: 12cm !important; }

  /* ── Prochaine réunion ─────────────────────────────── */
  .cr-prochaine-card {
    border: 1px solid #ddd !important;
    background: #f9f9f9 !important;
    page-break-inside: avoid;
  }
  .cr-prochaine-date,
  .cr-prochaine-lieu { color: #1a1a1a !important; }

  /* ── Liens ─────────────────────────────────────────── */
  a { color: #1a1a1a !important; text-decoration: none !important; }
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 8pt;
    color: #888;
  }
  /* Pas d'URL pour les liens de navigation internes */
  a[href^="#"]::after { content: '' !important; }

}

/* ══════════════════════════════════════════════════════════
   LITE YOUTUBE — Façade lazy-load
══════════════════════════════════════════════════════════ */
lite-youtube {
  display: block;
  position: relative;
  background-color: #000;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  /* Dégradé subtil pour lisibilité du bouton */
  background-image: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.3));
  container-type: inline-size;
}

/* Pseudo-élément pour assombrir légèrement la miniature */
lite-youtube::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.4) 100%);
  z-index: 0;
  transition: background .2s ease;
}
lite-youtube:hover::before {
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.6) 100%);
}

/* Bouton play */
.lyt-playbtn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.lyt-playbtn svg {
  width: 68px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: transform .2s ease, filter .2s ease;
}
lite-youtube:hover .lyt-playbtn svg {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.7));
}

/* État activé (iframe chargée) */
lite-youtube.lyt-activated {
  cursor: default;
}
lite-youtube.lyt-activated iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Masquer à l'impression — afficher un lien à la place */
@media print {
  lite-youtube { display: none !important; }
  lite-youtube + .lyt-print-link { display: block !important; }
}
.lyt-print-link { display: none; }
