/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --navy:       #1a2744;
  --navy-dark:  #111b33;
  --gold:       #dcc56d;
  --gold-light: #edd98a;
  --bg:         #faf9f7;
  --surface:    #ffffff;
  --border:     #e2ddd5;
  --text:       #1a1a1a;
  --muted:      #6b7280;
  --success:    #16a34a;
  --error:      #dc2626;
  --warning:    #d97706;
  --info:       #0284c7;
  --radius:     6px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.10);
  --max-w:      1100px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-brand {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.nav-logo { font-size: 1.3rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Dropdown utilisateur */
.nav-user {
  position: relative;
}
.nav-user > span {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  cursor: pointer;
  padding: .25rem .5rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
}
/* Pont invisible qui comble le vide entre le bouton et le menu
   pour que la souris reste dans la zone de survol */
.nav-user::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: .6rem;
}
.nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  z-index: 300;
}
.nav-dropdown a {
  display: block;
  padding: .6rem 1rem;
  color: var(--text);
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--bg); color: var(--gold); }
.nav-user:hover .nav-dropdown { display: block; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); font-weight: 600; }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-outline-gold { background: transparent; color: var(--gold-light); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy-dark); }
.btn-warning { background: var(--warning); color: white; border-color: var(--warning); }
.btn-danger { background: var(--error); color: white; border-color: var(--error); }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-sm { padding: .35rem .75rem; font-size: .82rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Flash messages ────────────────────────────────────────────── */
.flash-container {
  max-width: var(--max-w);
  margin: 1rem auto 0;
  padding: 0 2rem;
}
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: .5rem;
  font-size: .9rem;
}
.flash-error   { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.flash-info    { background: #f0f9ff; color: var(--info); border: 1px solid #bae6fd; }
.flash-warning { background: #fffbeb; color: var(--warning); border: 1px solid #fde68a; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: inherit; opacity: .7; }

/* ── Layout ────────────────────────────────────────────────────── */
main { flex: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow { max-width: 720px; }

.section { padding: 3.5rem 0; }
.section-dark { background: var(--navy); color: white; }
.section-dark h2, .section-dark h3 { color: var(--gold); }
.section-dark p { color: rgba(255,255,255,.8); }
.section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: -.01em; }

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: white;
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(220,197,109,.15) 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-symbol { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; line-height: 1; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: white;
}
.hero-sub {
  margin-top: .75rem;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero .btn { margin-top: 2rem; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card-accent { border-left: 3px solid var(--gold); }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Tools grid (homepage) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.tool-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(220,197,109,.25);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.tool-icon { font-size: 2rem; margin-bottom: .75rem; }
.tool-card h3 { color: var(--gold); margin-bottom: .5rem; }
.tool-card .btn { margin-top: 1rem; }

/* ── Page header ───────────────────────────────────────────────── */
.page-header {
  background: var(--navy);
  color: white;
  padding: 2rem 0;
}
.page-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-header h1 { color: white; font-size: 1.75rem; letter-spacing: -.02em; flex: 1; }
.page-header-sub { color: rgba(255,255,255,.65); font-size: .9rem; width: 100%; margin-top: -.25rem; }
.breadcrumb { color: var(--gold); font-size: .85rem; white-space: nowrap; }

/* ── Members layout ────────────────────────────────────────────── */
.members-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.members-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.sidebar-nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar-nav a {
  display: block;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text);
  transition: background .12s;
}
.sidebar-nav a:hover { background: var(--bg); color: var(--navy); }

.card-quiz { text-align: center; background: var(--navy); color: white; border: none; }
.quiz-icon { font-size: 2rem; margin-bottom: .5rem; }
.card-quiz h3 { color: var(--gold); margin-bottom: .5rem; }
.card-quiz p { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 1rem; }

/* ── Document list ─────────────────────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: .5rem; }
.doc-list-full { margin-top: 1rem; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
  color: var(--text);
}
.doc-item:hover { border-color: var(--gold); box-shadow: var(--shadow); color: var(--text); }
.doc-icon { font-size: 1.5rem; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-title { font-weight: 600; font-size: .95rem; }
.doc-meta { font-size: .82rem; color: var(--muted); margin-top: .2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.doc-arrow { color: var(--muted); font-size: 1.3rem; }
.doc-actions { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Filters ───────────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-group { display: flex; flex-direction: column; gap: .3rem; }
.filter-group label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.filter-group select {
  padding: .45rem .65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  background: var(--bg);
}

/* ── Auth ──────────────────────────────────────────────────────── */
.auth-container {
  display: flex;
  justify-content: center;
  padding: 5rem 1rem;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-symbol { font-size: 2rem; color: var(--gold); }
.auth-header h2 { margin-top: .5rem; font-size: 1.5rem; }
.auth-header p { color: var(--muted); font-size: .9rem; }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .375rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(220,197,109,.15);
}
.form-group input[disabled] { opacity: .6; cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.form-help { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.hint { color: var(--muted); font-weight: 400; }
.form-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.form-check input { width: auto; }
.auth-forgot {
  text-align: center;
  margin-top: 1rem;
  font-size: .85rem;
}
.auth-forgot a { color: var(--muted); }
.auth-forgot a:hover { color: var(--gold); }
.checkbox-group { display: flex; flex-direction: column; gap: .5rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  cursor: pointer;
}
.checkbox-label input { width: auto; }

/* ── Tables ────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.table th {
  text-align: left;
  padding: .65rem 1rem;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}
.table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg); }
.row-inactive td { opacity: .55; }
.actions { display: flex; gap: .4rem; align-items: center; }

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}
.badge-success { background: #f0fdf4; color: var(--success); border-color: #bbf7d0; }
.badge-muted { background: var(--bg); color: var(--muted); }
.badge-role { border: none; }
.badge-apprenti   { background: #eff6ff; color: #1d4ed8; }
.badge-compagnon  { background: #f0fdf4; color: #15803d; }
.badge-maitre     { background: #fefce8; color: #a16207; }
.badge-commission { background: #fdf4ff; color: #7e22ce; }
.badge-secretaire { background: #fff7ed; color: #c2410c; }
.badge-venerable  { background: #fff1f2; color: #be123c; }
.badge-admin      { background: #002155; color: #dcc56d; }

/* ── Stats ─────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat-value { font-size: 2.25rem; font-weight: 800; color: var(--navy); }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: .25rem; text-transform: uppercase; letter-spacing: .04em; }

/* ── Admin menu ────────────────────────────────────────────────── */
.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.admin-menu-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.admin-menu-card:hover { border-color: var(--gold); box-shadow: var(--shadow); color: var(--text); }
.admin-menu-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.admin-menu-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.admin-menu-card p { font-size: .82rem; color: var(--muted); }

/* ── Convocations ──────────────────────────────────────────────── */
.conv-list { display: flex; flex-direction: column; gap: .75rem; }
.conv-item { padding: .75rem; background: var(--bg); border-radius: var(--radius); }
.conv-sujet { font-weight: 600; font-size: .9rem; }
.conv-meta { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ── Info list ─────────────────────────────────────────────────── */
.info-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; font-size: .9rem; }
.info-list dt { font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ── Rich text ─────────────────────────────────────────────────── */
.rich-text { line-height: 1.8; }
.lead { font-size: 1.05rem; color: var(--muted); }

/* ── Empty state ───────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ── Error pages ───────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 6rem 2rem;
}
.error-code { font-size: 6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.error-page h1 { font-size: 2rem; margin: 1rem 0; }
.error-page p { color: var(--muted); margin-bottom: 2rem; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.5);
  padding: 2rem;
  text-align: center;
  font-size: .85rem;
}
.footer-brand { color: var(--gold); font-weight: 700; font-size: 1rem; }
.footer-sub { margin-top: .25rem; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .members-grid { grid-template-columns: 1fr; }
  .section-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy-dark); padding: 1rem; gap: .75rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav { position: relative; }
  .form-row { grid-template-columns: 1fr; }
  .page-header .container { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 1rem; }
  .flash-container { padding: 0 1rem; }
}



/* ═══════════════════════════════════════════════════════════════
   PARTIE PUBLIQUE — UI/UX PRO MAX · OLED DARK · CORMORANT
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens publics — palette extraite du logo (logo4.png) ── */
:root {
  /* Bleus — tirés directement du logo */
  --pub-bg:        #001137;   /* bleu nuit    27% du logo */
  --pub-surface:   #002155;   /* bleu marine  48% du logo */
  --pub-surface2:  #082d61;   /* bleu profond zones d'ombre */
  --pub-royal:     #003f8d;   /* bleu royal   accent */
  --pub-bright:    #055ba3;   /* bleu vif     reflets serpent */

  /* Or — extrait du logo */
  --pub-gold:      #dcc56d;   /* or principal lettres & fleur */
  --pub-gold-l:    #edd98a;   /* or clair     hover, highlights */
  --pub-gold-d:    #9d8c49;   /* or sombre    ombres */

  /* Bordures recalculées sur le nouvel or */
  --pub-border:    rgba(220,197,109,.18);
  --pub-border2:   rgba(220,197,109,.08);

  /* Texte */
  --pub-text:      #f0ede6;
  --pub-muted:     rgba(240,237,230,.55);

  /* Typo & misc */
  --pub-serif:     'Cormorant', Georgia, serif;
  --pub-sans:      'Montserrat', sans-serif;
  --pub-body:      'Inter', sans-serif;
  --pub-ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --pub-max:       1100px;
}

/* ── Thème sombre global ─────────────────────────────────────── */
body.public-dark {
  background: var(--pub-bg);
  color: var(--pub-text);
  font-family: var(--pub-body);
}

body.public-dark a:not(.pub-btn):not(.btn-pub-gold) { color: var(--pub-gold); }
body.public-dark a:not(.pub-btn):not(.btn-pub-gold):hover { color: var(--pub-gold-l); }

/* Nav transparente + verre */
body.public-dark .nav {
  background: rgba(5,5,8,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pub-border);
}
body.public-dark .nav-brand { font-family: var(--pub-serif); font-weight: 600; letter-spacing: .04em; }

/* Footer public */
.pub-footer {
  background: var(--pub-surface);
  border-top: 1px solid var(--pub-border);
  color: var(--pub-muted);
  font-family: var(--pub-body);
  font-size: .85rem;
}
.pub-footer .footer-inner { text-align: center; padding: 2.5rem 2rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.pub-footer .footer-symbol { color: var(--pub-gold); font-size: 1.2rem; opacity: .6; }
.pub-footer .footer-brand  { color: var(--pub-text); font-family: var(--pub-serif); font-size: 1rem; font-weight: 500; letter-spacing: .05em; }
.pub-footer .footer-sub    { color: var(--pub-muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.pub-footer .footer-nav    { display: flex; gap: 1.5rem; margin-top: .4rem; }
.pub-footer .footer-nav a  { color: var(--pub-muted); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; transition: color .2s; }
.pub-footer .footer-nav a:hover { color: var(--pub-gold); }

/* ── Conteneur et grille ─────────────────────────────────────── */
.pub-container {
  max-width: var(--pub-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Blobs ambiants ──────────────────────────────────────────── */
.pub-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}
.pub-blob-1 {
  width: 500px; height: 500px;
  top: -80px; left: -120px;
  background: radial-gradient(circle, rgba(220,197,109,.10) 0%, transparent 70%);
  animation: blob-drift-1 18s ease-in-out infinite;
}
.pub-blob-2 {
  width: 400px; height: 400px;
  bottom: 80px; right: -80px;
  background: radial-gradient(circle, rgba(220,197,109,.07) 0%, transparent 70%);
  animation: blob-drift-2 22s ease-in-out infinite;
}
.pub-blob-3 {
  width: 300px; height: 300px;
  top: 50%; left: 55%;
  background: radial-gradient(circle, rgba(100,80,180,.06) 0%, transparent 70%);
  animation: blob-drift-3 15s ease-in-out infinite;
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(40px,-30px) scale(1.08); }
  66%       { transform: translate(-20px,20px) scale(.95); }
}
@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  40%       { transform: translate(-30px,25px) scale(1.06); }
  70%       { transform: translate(20px,-15px) scale(.97); }
}
@keyframes blob-drift-3 {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  50%       { transform: translate(-50%,-50%) scale(1.15) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pub-blob { animation: none; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.pub-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--pub-bg);
}

.pub-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7rem 2rem 5rem;
  max-width: 680px;
  width: 100%;
}

/* Hexagramme SVG */
.pub-hexagram-wrap {
  margin: 0 auto 2rem;
  width: 80px; height: 80px;
  color: var(--pub-gold);
  opacity: .55;
}
.pub-hexagram-svg { width: 100%; height: 100%; }

/* Eyebrow */
.pub-hero-eyebrow {
  font-family: var(--pub-sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pub-gold);
  margin-bottom: 1.2rem;
  opacity: .85;
}

/* Titre hero */
.pub-hero-title {
  font-family: var(--pub-serif);
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--pub-text);
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
}
.pub-hero-title em {
  font-style: italic;
  color: var(--pub-gold);
  font-weight: 300;
}

/* Sous-titre */
.pub-hero-sub {
  font-family: var(--pub-body);
  font-size: 1.05rem;
  color: var(--pub-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* Règle ornementale */
.pub-hero-rule {
  width: 48px; height: 1px;
  background: var(--pub-gold);
  opacity: .4;
  margin: 0 auto 2.5rem;
}

/* Boutons */
.pub-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  font-family: var(--pub-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .25s var(--pub-ease);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.pub-btn-gold {
  background: var(--pub-gold);
  color: #080808;
  border: 1px solid var(--pub-gold);
}
.pub-btn-gold:hover {
  background: var(--pub-gold-l);
  border-color: var(--pub-gold-l);
  color: #080808;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220,197,109,.30);
}
.pub-btn-ghost {
  background: transparent;
  color: var(--pub-text);
  border: 1px solid rgba(240,237,230,.25);
}
.pub-btn-ghost:hover {
  border-color: rgba(220,197,109,.5);
  color: var(--pub-gold);
  transform: translateY(-1px);
}

/* Scroll indicator */
.pub-hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--pub-gold);
  opacity: .4;
}
.pub-scroll-dot {
  animation: scroll-drop 2.2s ease-in-out infinite;
}
@keyframes scroll-drop {
  0%   { cy: 9; opacity: 1; }
  80%  { cy: 17; opacity: 0; }
  100% { cy: 9; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pub-scroll-dot { animation: none; }
}

/* ── Devise ──────────────────────────────────────────────────── */
.pub-devise {
  padding: 1.5rem 0;
  background: var(--pub-surface);
  border-top: 1px solid var(--pub-border);
  border-bottom: 1px solid var(--pub-border);
}
.pub-devise .pub-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}
.pub-devise-text {
  font-family: var(--pub-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pub-gold);
  white-space: nowrap;
}
.pub-devise-rule {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--pub-border);
}

/* ── Sections ────────────────────────────────────────────────── */
.pub-section {
  padding: 7rem 0;
}
.pub-section-alt {
  background: var(--pub-surface);
  border-top: 1px solid var(--pub-border2);
  border-bottom: 1px solid var(--pub-border2);
}

/* Eyebrow générique */
.pub-eyebrow {
  font-family: var(--pub-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pub-gold);
  margin-bottom: .8rem;
  opacity: .9;
}
.pub-eyebrow-center { text-align: center; }

/* Titres de section */
.pub-section-h {
  font-family: var(--pub-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--pub-text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
}
.pub-section-h-center { text-align: center; }

/* Corps de texte */
.pub-body-text {
  font-family: var(--pub-body);
  font-size: 1rem;
  color: var(--pub-muted);
  line-height: 1.8;
}
.pub-body-text p + p { margin-top: 1rem; }

/* ── Grille présentation ─────────────────────────────────────── */
.pub-grid-pres {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

/* Logo de la loge */
.pub-pres-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.pub-logo-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  /* Halo or du logo */
  box-shadow:
    0 0 0 1px rgba(220,197,109,.18),
    0 0 40px rgba(220,197,109,.10),
    0 0 80px rgba(10,20,60,.6);
  transition: box-shadow .4s ease;
}
.pub-logo-wrap:hover {
  box-shadow:
    0 0 0 1px rgba(220,197,109,.35),
    0 0 60px rgba(220,197,109,.18),
    0 0 100px rgba(10,20,60,.7);
}
.pub-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.pub-pres-content { display: flex; flex-direction: column; gap: 0; }

/* ── Section Rejoindre ───────────────────────────────────────── */
.pub-join { display: flex; flex-direction: column; gap: 3.5rem; align-items: center; text-align: center; }
.pub-join-header { max-width: 640px; }
.pub-join-intro { max-width: 600px; margin: 0 auto; }

/* Étapes */
.pub-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 860px;
}
.pub-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2.5rem 1.5rem;
  background: var(--pub-bg);
  border: 1px solid var(--pub-border);
  border-radius: 4px;
  transition: border-color .3s var(--pub-ease), box-shadow .3s var(--pub-ease);
}
.pub-step:hover {
  border-color: rgba(220,197,109,.35);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.pub-step-num {
  font-family: var(--pub-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--pub-gold);
  opacity: .7;
  line-height: 1;
}
.pub-step-body { text-align: center; }
.pub-step-body h3 {
  font-family: var(--pub-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--pub-text);
  margin-bottom: .5rem;
  letter-spacing: .03em;
}
.pub-step-body p {
  font-family: var(--pub-body);
  font-size: .88rem;
  color: var(--pub-muted);
  line-height: 1.7;
}
.pub-join-cta { margin-top: 1rem; }

/* ── Citation ────────────────────────────────────────────────── */
.pub-quote-section {
  padding: 6rem 0;
  background: var(--pub-bg);
}
.pub-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.pub-quote-mark { color: var(--pub-gold); opacity: .4; }
.pub-quote blockquote p {
  font-family: var(--pub-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  color: var(--pub-text);
  line-height: 1.6;
  letter-spacing: .02em;
}

/* ── Page header (contact) ───────────────────────────────────── */
.pub-page-header {
  padding: 7rem 0 4rem;
  text-align: center;
  background: var(--pub-bg);
  position: relative;
}
.pub-section-tag {
  font-family: var(--pub-sans);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pub-gold);
  margin-bottom: .8rem;
  opacity: .85;
}
.pub-section-tag-center { text-align: center; }
.pub-page-title {
  font-family: var(--pub-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--pub-text);
  letter-spacing: .04em;
  margin-bottom: 1rem;
}
.pub-hero-divider {
  color: var(--pub-gold);
  font-size: .8rem;
  letter-spacing: .4rem;
  opacity: .5;
}

/* ── Contact ─────────────────────────────────────────────────── */
.pub-section-contact { padding: 4rem 0 7rem; }
.pub-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.pub-contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.pub-section-title {
  font-family: var(--pub-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--pub-text);
  letter-spacing: .03em;
  margin-bottom: .5rem;
}
.pub-rich-text {
  font-family: var(--pub-body);
  font-size: 1rem;
  color: var(--pub-muted);
  line-height: 1.8;
}
.pub-rich-text p + p { margin-top: .9rem; }
.pub-contact-email {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 1.25rem;
  background: var(--pub-surface2);
  border: 1px solid var(--pub-border);
  border-radius: 4px;
}
.pub-contact-email-label {
  font-family: var(--pub-sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pub-muted);
}
.pub-contact-email a {
  font-family: var(--pub-body);
  font-size: .95rem;
  color: var(--pub-gold);
  word-break: break-all;
}
.pub-contact-note {
  font-family: var(--pub-body);
  font-size: .85rem;
  color: var(--pub-muted);
  font-style: italic;
  opacity: .8;
}

/* ── Formulaire public ───────────────────────────────────────── */
.pub-contact-form-wrap {
  background: var(--pub-surface);
  border: 1px solid var(--pub-border);
  border-radius: 6px;
  padding: 2.5rem;
}
.pub-form { display: flex; flex-direction: column; gap: 1.5rem; }
.pub-form-group { display: flex; flex-direction: column; gap: .5rem; }
.pub-form-group label {
  font-family: var(--pub-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pub-muted);
}
.pub-form-group input,
.pub-form-group textarea {
  font-family: var(--pub-body);
  font-size: .95rem;
  color: var(--pub-text);
  background: var(--pub-bg);
  border: 1px solid rgba(240,237,230,.12);
  border-radius: 4px;
  padding: .75rem 1rem;
  width: 100%;
  min-height: 44px;
  transition: border-color .2s var(--pub-ease), box-shadow .2s var(--pub-ease);
  resize: vertical;
}
.pub-form-group input::placeholder,
.pub-form-group textarea::placeholder { color: rgba(240,237,230,.25); }
.pub-form-group input:focus,
.pub-form-group textarea:focus {
  outline: none;
  border-color: rgba(220,197,109,.5);
  box-shadow: 0 0 0 3px rgba(220,197,109,.10);
}

/* Bouton pleine largeur formulaire */
.btn-pub-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  font-family: var(--pub-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--pub-gold);
  color: #080808;
  border: 1px solid var(--pub-gold);
  border-radius: 2px;
  min-height: 44px;
  cursor: pointer;
  transition: all .25s var(--pub-ease);
  text-decoration: none;
}
.btn-pub-gold:hover {
  background: var(--pub-gold-l);
  border-color: var(--pub-gold-l);
  color: #080808;
  box-shadow: 0 6px 20px rgba(220,197,109,.25);
}
.btn-pub-full { width: 100%; }

/* ── Focus rings (accessibilité) ─────────────────────────────── */
.pub-btn:focus-visible,
.btn-pub-gold:focus-visible {
  outline: 2px solid var(--pub-gold);
  outline-offset: 3px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pub-grid-pres { grid-template-columns: 1fr; gap: 2rem; }
  .pub-pres-visual { order: -1; }
  .pub-logo-wrap { width: 180px; height: 180px; }
  .pub-steps { grid-template-columns: 1fr; max-width: 440px; }
  .pub-contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 600px) {
  .pub-container { padding: 0 1.25rem; }
  .pub-section { padding: 4.5rem 0; }
  .pub-hero-inner { padding: 6rem 1.25rem 4rem; }
  .pub-hero-actions { flex-direction: column; align-items: center; }
  .pub-btn { width: 100%; justify-content: center; }
  .pub-contact-form-wrap { padding: 1.5rem; }
  .pub-devise .pub-container { flex-direction: column; gap: .5rem; }
  .pub-devise-rule { display: none; }
}
