/* ══════════════════════════════════════════════
   GLEMF — Grande Loge Écossaise Mixte Francophone
   Stylesheet — Bleu Roi · Or · Nuit · Tradition
══════════════════════════════════════════════ */

/* ── TOKENS — MODE SOMBRE (défaut) ── */
:root {
  --rouge:       #1A3A8B;
  --rouge-deep:  #102660;
  --rouge-light: #2A52B5;
  --or:          #C9A84C;
  --or-light:    #E0C46C;
  --or-pale:     #F0E0A0;
  --noir:        #162035;
  --noir-soft:   #1e2d45;
  --ardoise:     #28395a;
  --creme:       #EEF2FA;
  --creme-deep:  #D8E0F0;
  --text-main:   #111828;
  --text-light:  #EEF2FA;
  --text-muted:  #5A6A8A;

  --font-display: 'Cinzel', Georgia, serif;
  --font-body:    'Crimson Text', Georgia, serif;

  --radius:      4px;
  --transition:  0.3s ease;
  --shadow:      0 4px 24px rgba(14, 19, 32, 0.22);
  --shadow-lg:   0 8px 48px rgba(14, 19, 32, 0.35);
}

/* ── MODE CLAIR ── */
body.light-mode {
  --noir:        #F0F4FF;
  --noir-soft:   #E4EAF8;
  --ardoise:     #C8D4EC;
  --creme:       #1A2A5E;
  --creme-deep:  #243570;
  --text-main:   #EEF2FA;
  --text-light:  #1A2A5E;
  --text-muted:  #4A5A8A;
  --shadow:      0 4px 24px rgba(26, 58, 139, 0.14);
  --shadow-lg:   0 8px 48px rgba(26, 58, 139, 0.22);
  background: #F0F4FF;
  color: #1A2A5E;
}
body.light-mode .dark-section {
  background: #E4EAF8;
}
body.light-mode .dark-section .section-title,
body.light-mode .dark-section p,
body.light-mode .dark-section li { color: #1A2A5E; }
body.light-mode .section-eyebrow { color: var(--rouge); }
body.light-mode .section-eyebrow.light { color: var(--rouge); }
body.light-mode .section-title { color: #1A2A5E; }
body.light-mode .section-lead { color: #4A5A8A; }
body.light-mode #navbar {
  background: rgba(240, 244, 255, 0.97);
  border-bottom-color: rgba(26, 58, 139, 0.2);
}
body.light-mode .nav-links a { color: #1A2A5E; }
body.light-mode .nav-logo { color: var(--rouge); }
body.light-mode .hero { background: linear-gradient(135deg, #E4EAF8, #C8D4EC); }
body.light-mode .hero-title { color: #1A2A5E; }
body.light-mode .hero-eyebrow { color: var(--rouge); }
body.light-mode .hero-subtitle { color: var(--rouge); }
body.light-mode .hero-desc  { color: #243570; }
body.light-mode .btn-outline { color: var(--rouge); border-color: var(--rouge); }
body.light-mode .btn-outline:hover { background: var(--rouge); color: #fff; }
body.light-mode .gm-word { background: #E4EAF8; }
body.light-mode .gm-text blockquote { color: #243570; border-left-color: var(--rouge); }
body.light-mode .gm-signature { color: var(--rouge); }
body.light-mode .tl-content h4 { color: var(--rouge); }
body.light-mode .tl-content p { color: #243570; }
body.light-mode .infobox-card { background: rgba(26,58,139,.06); border-color: rgba(26,58,139,.2); }
body.light-mode .infobox-card h3 { color: var(--rouge); border-bottom-color: rgba(26,58,139,.2); }
body.light-mode .grade-item strong,
body.light-mode .distinction-item strong { color: #1A2A5E; }
body.light-mode .grade-item p,
body.light-mode .distinction-item p { color: #4A5A8A; }
body.light-mode .grade-num { color: var(--rouge); }
body.light-mode .faq-item { background: rgba(26,58,139,.04); border-color: rgba(26,58,139,.15); }
body.light-mode .faq-item summary { color: #1A2A5E; }
body.light-mode .faq-item summary::after { color: var(--rouge); }
body.light-mode .faq-item p { color: #243570; border-top-color: rgba(26,58,139,.1); }
body.light-mode .etape-num { border-color: var(--rouge); color: var(--rouge); }
body.light-mode .etape-text h4 { color: var(--rouge); }
body.light-mode .etape-text p { color: #243570; }
body.light-mode .etape { border-bottom-color: rgba(26,58,139,.1); }
body.light-mode .actualites { background: #E8EEF8; }
body.light-mode .actu-card { background: #fff; border-color: #C8D4EC; }
body.light-mode .actu-tag { color: var(--rouge); background: rgba(26,58,139,.08); }
body.light-mode .actu-content h3 { color: #1A2A5E; }
body.light-mode .actu-content p { color: #4A5A8A; }
body.light-mode .actu-date { color: var(--rouge); }
body.light-mode .actu-cta { background: #E4EAF8; color: #1A2A5E; }
body.light-mode .fond-card { background: rgba(26,58,139,.06); border-color: rgba(26,58,139,.2); }
body.light-mode .fond-card h3 { color: var(--rouge); }
body.light-mode .fond-card p { color: #243570; }
body.light-mode .fond-list li { color: #243570; }
body.light-mode .contact-section { background: #F0F4FF; }
body.light-mode .form-group label { color: #1A2A5E; }
body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea { background: #fff; border-color: #C8D4EC; color: #1A2A5E; }
body.light-mode .radio-label,
body.light-mode .check-label { color: #243570; }
body.light-mode .loge-card { border-color: rgba(26,58,139,.15); background: #fff; }
body.light-mode .loge-info h4 { color: #1A2A5E; }
body.light-mode .loge-info p { color: #4A5A8A; }
body.light-mode .loge-contact-cta { background: #E4EAF8; color: #1A2A5E; }
body.light-mode .map-legend { background: #E4EAF8; color: var(--rouge); }
body.light-mode .site-footer { background: #E4EAF8; }
body.light-mode .footer-brand .footer-subtitle { color: rgba(26,42,94,.4); }
body.light-mode .footer-col h4 { color: var(--rouge); }
body.light-mode .footer-col a { color: #4A5A8A; }
body.light-mode .footer-bottom p { color: #8899BB; }
body.light-mode .footer-motto { color: rgba(26,58,139,.4) !important; }
/* ── Forced global light mode text fixes ── */
/* Any element with hardcoded creme/white color in dark sections */
body.light-mode .dark-section *:not(.btn):not(.gold-rule):not(.hero-emblem):not(svg):not(path):not(line):not(circle):not(text):not(.section-eyebrow) {
  color: inherit;
}
body.light-mode .fond-card,
body.light-mode .timeline-item,
body.light-mode .infobox-card { color: #243570; }
/* Overrides for any remaining hardcoded rgba(245,240,232 or #EEF2FA colors */
body.light-mode { --creme: #1A2A5E; --creme-deep: #243570; --text-main: #EEF2FA; }
/* Revert body background and text */
body.light-mode { background:#F0F4FF !important; color:#1A2A5E !important; }
/* Hardcoded dark backgrounds override */
body.light-mode .hero-bg-pattern { opacity:0.3; }
body.light-mode .loges-section { background:#F0F4FF; }
body.light-mode .loges-section .section-title,
body.light-mode .loges-section .section-lead { color:#1A2A5E; }
/* Contact aside cards */
body.light-mode .aside-card { background:#E4EAF8; border-color:rgba(26,58,139,.15); }
body.light-mode .aside-card h3 { color:var(--rouge); }
body.light-mode .contact-item strong { color:#1A2A5E; }
body.light-mode .contact-item a,
body.light-mode .contact-item p { color:#4A5A8A; }
body.light-mode .useful-links a { color:#4A5A8A; }
body.light-mode .decors-card p { color:#4A5A8A; }
/* Loges section public */
body.light-mode .loges-map .map-placeholder { background:#E4EAF8; }
/* Entree section */
body.light-mode .entree { background:#E4EAF8; }
body.light-mode .sub-title { color:var(--rouge); }
/* Ticker text for timeline connector */
body.light-mode .timeline-item::before { background:linear-gradient(to bottom, var(--rouge), transparent); }
body.light-mode .tl-dot { background:var(--rouge); border-color:var(--or); }



/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--creme);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0.04em;
}
h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 0.6rem;
}
.section-eyebrow.light { color: var(--or); }
.section-title { color: var(--noir); }
.section-title.light { color: var(--creme); }
.section-lead {
  max-width: 680px;
  margin: 1.2rem auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.gold-rule {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  margin: 1rem 0 2rem;
  width: 80px;
}
.gold-rule.centered { margin: 1rem auto 2rem; }

/* ── CONTAINER ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── SECTIONS ── */
section { padding: 5rem 0; }
.dark-section { background: var(--noir); }
.dark-section .section-title { color: var(--creme); }
.dark-section p, .dark-section li { color: var(--creme-deep); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold {
  background: var(--or);
  color: var(--noir);
  border-color: var(--or);
}
.btn-gold:hover {
  background: var(--or-light);
  border-color: var(--or-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--or);
  border-color: var(--or);
}
.btn-outline:hover {
  background: var(--or);
  color: var(--noir);
}
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.72rem; }
.btn-full { width: 100%; text-align: center; }
.link-gold {
  color: var(--or);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}
.link-gold:hover { color: var(--or-light); }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14, 19, 32, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  transition: all var(--transition);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--or);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}
.logo-compass { width: 38px; height: 38px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--creme-deep);
  transition: color var(--transition);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--or); border-bottom-color: var(--or); }
.btn-members {
  background: var(--rouge) !important;
  color: var(--creme) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--rouge-light) !important;
}
.btn-members:hover {
  background: var(--rouge-light) !important;
  border-bottom-color: transparent !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--or);
  transition: all 0.3s;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--noir);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(26, 58, 139, 0.12) 0%, transparent 70%),
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 40px,
      rgba(201, 168, 76, 0.025) 40px,
      rgba(201, 168, 76, 0.025) 41px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 40px,
      rgba(201, 168, 76, 0.025) 40px,
      rgba(201, 168, 76, 0.025) 41px
    );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  max-width: 800px;
  animation: heroFadeIn 1.2s ease forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-emblem {
  margin: 0 auto 2.5rem;
  width: 180px; height: 180px;
  animation: emblemSpin 60s linear infinite;
}
@keyframes emblemSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.emblem-svg { width: 100%; height: 100%; }
.compass-arm {
  transform-origin: 0 -38px;
  animation: compassOpen 2s ease-out forwards;
}
.compass-arm:first-of-type { animation-delay: 0.3s; }
.compass-arm:last-of-type  { animation-delay: 0.5s; }
@keyframes compassOpen {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--creme);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--or);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem auto;
  max-width: 300px;
}
.hero-divider span:not(.diamond) {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or));
}
.hero-divider span.diamond { color: var(--or); font-size: 0.7rem; }
.hero-divider span:last-child {
  background: linear-gradient(90deg, var(--or), transparent);
}
.hero-desc {
  color: var(--creme-deep);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  opacity: 0.85;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--or);
  font-size: 1.2rem;
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════
   MOT DU GRAND MAÎTRE
══════════════════════════════════════ */
.gm-word {
  background: var(--creme-deep);
  border-top: 3px solid var(--rouge);
}
.gm-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.gm-photo-placeholder {
  width: 220px;
  height: 260px;
  background: var(--noir-soft);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--or);
  flex-shrink: 0;
}
.gm-photo-placeholder svg { width: 100%; height: 100%; }
.gm-text blockquote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  font-style: italic;
  border-left: 3px solid var(--rouge);
  padding-left: 1.5rem;
  margin: 1.2rem 0;
}
.gm-text blockquote p + p { margin-top: 0.8rem; }
.gm-signature {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--rouge);
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════
   FONDEMENTS
══════════════════════════════════════ */
.fondements { text-align: center; }
.fondements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}
.fond-card {
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}
.fond-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(245, 240, 232, 0.09);
  transform: translateY(-3px);
}
.fond-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.2rem;
}
.fond-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--or);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.fond-card p { color: var(--creme-deep); font-size: 0.95rem; }
.fond-list {
  color: var(--creme-deep);
  font-size: 0.95rem;
}
.fond-list li {
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}
.fond-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  font-size: 0.4rem;
  color: var(--or);
  top: 0.55rem;
}

/* ══════════════════════════════════════
   LOGES
══════════════════════════════════════ */
.loges-section { text-align: center; background: var(--creme); }
.loges-map { margin: 0 auto 2.5rem; max-width: 820px; }
.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--or);
}
.world-map-svg { width: 100%; height: auto; display: block; }
.map-legend {
  background: var(--noir);
  color: var(--or);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.6rem 1rem;
  text-align: center;
}
.loges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.loge-card {
  border: 1px solid var(--creme-deep);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.loge-card:hover { border-color: var(--or); box-shadow: var(--shadow); }
.loge-banner {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: white;
  letter-spacing: 0.2em;
}
.loge-info { padding: 1rem 1.2rem; }
.loge-info h4 { font-size: 0.95rem; color: var(--text-main); margin-bottom: 0.3rem; }
.loge-info p { font-size: 0.85rem; color: var(--text-muted); }
.loge-contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.2rem;
  background: var(--noir);
  color: var(--creme-deep);
  font-size: 0.9rem;
  text-align: center;
  gap: 1rem;
}

/* ══════════════════════════════════════
   HISTOIRE
══════════════════════════════════════ */
.histoire { text-align: center; }
.histoire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  text-align: left;
}

/* Timeline */
.histoire-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex;
  gap: 1.2rem;
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px; top: 24px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--or), transparent);
}
.tl-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--rouge);
  border: 2px solid var(--or);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.tl-content h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--or);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.tl-content p { font-size: 0.95rem; }

/* Infoboxes */
.histoire-infobox { display: flex; flex-direction: column; gap: 1.5rem; }
.infobox-card {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.infobox-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--or);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  padding-bottom: 0.7rem;
}
.grades-list { display: flex; flex-direction: column; gap: 1rem; }
.grade-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.grade-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--or);
  min-width: 32px;
  line-height: 1;
  margin-top: 0.2rem;
}
.grade-item strong { display: block; color: var(--creme); margin-bottom: 0.2rem; }
.grade-item p { font-size: 0.9rem; }

.distinction-list { display: flex; flex-direction: column; gap: 1rem; }
.distinction-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.dist-icon { color: var(--rouge); font-size: 0.7rem; margin-top: 0.4rem; flex-shrink: 0; }
.distinction-item strong { display: block; color: var(--creme); margin-bottom: 0.2rem; }
.distinction-item p { font-size: 0.9rem; }

/* ══════════════════════════════════════
   ACTUALITÉS
══════════════════════════════════════ */
.actualites { background: var(--creme-deep); text-align: center; }
.actu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  text-align: left;
}
.actu-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--creme-deep);
  transition: all var(--transition);
}
.actu-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--or); }
.actu-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; }
.actu-img-placeholder { background: var(--noir-soft); }
.actu-img-placeholder.small { height: 160px; }
.actu-img-placeholder svg { width: 100%; height: 100%; display: block; }
.actu-content { padding: 1.5rem; }
.actu-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rouge);
  background: rgba(26, 58, 139, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0;
}
.actu-content h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.actu-content p { font-size: 0.92rem; color: var(--text-muted); }
.actu-date {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--or);
  margin-top: 0;
}
.actu-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--noir);
  border-radius: var(--radius);
  color: var(--creme-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.actu-cta p { font-size: 1rem; }

/* ══════════════════════════════════════
   REJOINDRE / ENTRÉE
══════════════════════════════════════ */
.entree { text-align: center; }
.entree-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  text-align: left;
  margin-top: 2rem;
}
.sub-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.5rem;
}
.sub-title.light { color: var(--or); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(245, 240, 232, 0.04);
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--creme);
  padding: 1rem 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-item summary::after {
  content: '+';
  color: var(--or);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: rgba(201, 168, 76, 0.08); }
.faq-item p {
  padding: 0.8rem 1.2rem 1.2rem;
  font-size: 0.92rem;
  color: var(--creme-deep);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

/* Étapes */
.etapes-list { display: flex; flex-direction: column; gap: 0; }
.etape {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  align-items: flex-start;
}
.etape:last-child { border-bottom: none; }
.etape-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--rouge);
  min-width: 36px;
  height: 36px;
  width: 36px;
  border: 2px solid var(--rouge);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}
.etape-num.gold {
  border-color: var(--or);
  color: var(--or);
  font-size: 1rem;
}
.etape-text h4 { color: var(--or); font-size: 0.95rem; margin-bottom: 0.3rem; }
.etape-text p { font-size: 0.92rem; color: var(--creme-deep); }
.etape-final .etape-text h4 { color: var(--or-light); font-size: 1rem; }

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-section { text-align: center; background: var(--creme); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  text-align: left;
  margin-top: 1rem;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: white;
  border: 1.5px solid var(--creme-deep);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(26, 58, 139, 0.08);
}
.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; }
.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.3rem;
}
.radio-label, .check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  cursor: pointer;
}
.radio-label input, .check-label input { accent-color: var(--rouge); cursor: pointer; }
.form-check { margin-top: 0.5rem; }
.form-success {
  background: rgba(76, 139, 26, 0.1);
  border: 1px solid rgba(76, 139, 26, 0.4);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: #2a5e10;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-align: center;
}

/* Aside */
.contact-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.aside-card {
  background: var(--noir);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(201, 168, 76, 0.15);
}
.aside-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--or);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.contact-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.ci-icon {
  color: var(--or);
  font-size: 1.1rem;
  min-width: 20px;
  margin-top: 0.1rem;
}
.contact-item strong { display: block; color: var(--creme); font-size: 0.85rem; margin-bottom: 0.2rem; }
.contact-item a { color: var(--or); font-size: 0.88rem; }
.contact-item p { color: var(--creme-deep); font-size: 0.88rem; }
.useful-links li { padding: 0.4rem 0; border-bottom: 1px solid rgba(201, 168, 76, 0.1); }
.useful-links li:last-child { border-bottom: none; }
.useful-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--creme-deep);
  transition: color var(--transition);
}
.useful-links a:hover { color: var(--or); }
.decors-card p { color: var(--creme-deep); font-size: 0.88rem; margin-bottom: 1rem; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--noir);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-logo { width: 48px; height: 48px; flex-shrink: 0; }
.footer-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--or);
  letter-spacing: 0.15em;
}
.footer-subtitle {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1rem;
}
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.5);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--or); }
.footer-bottom {
  padding: 1.2rem 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.3);
  margin: 0.2rem 0;
}
.footer-motto { color: rgba(201, 168, 76, 0.4) !important; font-style: italic; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .fondements-grid { grid-template-columns: repeat(2, 1fr); }
  .histoire-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { flex-direction: row; flex-wrap: wrap; }
  .aside-card { flex: 1 1 280px; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(14, 19, 32, 0.98); padding: 1.5rem; gap: 0.5rem; border-top: 1px solid rgba(201, 168, 76, 0.2); }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.85rem; padding: 0.6rem 0; }
  .nav-toggle { display: flex; }
  .gm-inner { grid-template-columns: 1fr; }
  .gm-photo-placeholder { width: 150px; height: 180px; }
  .fondements-grid { grid-template-columns: 1fr; }
  .loges-grid { grid-template-columns: 1fr 1fr; }
  .loges-grid .loge-contact-cta { grid-column: 1 / -1; }
  .actu-grid { grid-template-columns: 1fr; }
  .actu-card.featured { grid-column: 1; grid-template-columns: 1fr; }
  .entree-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .radio-group, .checkbox-group { flex-direction: column; }
  .actu-cta { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .loges-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── FOCUS / ACCESSIBILITY ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, details summary:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, .hero-content, .hero-emblem, .hero-scroll { animation: none !important; transition: none !important; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE & TABLET
══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .container { padding: 0 1.2rem; }
  .hero-content { padding: 6rem 1.5rem 3rem; }
  .hero-title { font-size: clamp(1.8rem, 6vw, 3rem); }
  .hero-buttons { flex-wrap: wrap; gap: .7rem; }
  .gm-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .gm-portrait { width: 100px; height: 100px; }
  .fondements-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .timeline { padding-left: 1rem; }
  .loges-grid, #publicLogesGrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; }
  .actu-grid { grid-template-columns: 1fr !important; }
  .actu-card.featured { grid-column: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* Mobile */
@media (max-width: 600px) {
  /* Navbar */
  #navbar { padding: 0 1rem; height: 56px; }
  .nav-logo { font-size: .82rem; }
  .nav-links { display: none; } /* Hide desktop links on very small */
  .nav-cta { font-size: .72rem; padding: .4rem .8rem; }

  /* Hero */
  .hero-content { padding: 4.5rem 1rem 2.5rem; }
  .hero-title { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .hero-lead { font-size: .95rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; }
  .hero-scroll { display: none; }

  /* Sections */
  .section-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .section-lead { font-size: .9rem; }

  /* Fondements */
  .fondements-grid { grid-template-columns: 1fr; }

  /* History */
  .timeline { padding-left: 0; }
  .timeline-item { padding-left: 1rem; }
  .tl-dot { left: -4px; }
  .grades-grid { grid-template-columns: 1fr; }
  .distinctions-grid { grid-template-columns: 1fr; }
  .rites-grid { grid-template-columns: 1fr; }
  .infobox-grid { grid-template-columns: 1fr; }

  /* Loges */
  #publicLogesGrid { grid-template-columns: 1fr !important; }
  .loges-map, #logesMap { height: 260px !important; }

  /* Entrée / Join */
  .etapes-list { padding: 0; }
  .etape { flex-direction: column; gap: .5rem; }
  .etape-num { width: 36px; height: 36px; font-size: .85rem; flex-shrink: 0; }

  /* Contact */
  .contact-form .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  /* Loges & actualités grid */
  .loges-grid { grid-template-columns: 1fr !important; }
  .actu-grid { grid-template-columns: 1fr !important; }
}
