/* ==========================================================================
   EFMEB — École Francophone de Musique Ecclésiastique Byzantine
   Stylesheet — Byzantine palette inspired by the EFMEB seal
   ========================================================================== */

:root {
  /* Palette — drawn from the logo: deep navy + pale sky + parchment + Byzantine gold */
  --ink:        #14213d;
  --navy:       #1a2a5e;
  --navy-deep:  #0f1a3d;
  --navy-soft:  #2b3d78;
  --mist:       #d8e2f2;
  --mist-soft:  #ecf1fa;
  --parchment:  #faf6ec;
  --linen:      #f3ebd6;
  --gold:       #c9a45a;
  --gold-deep:  #a8862d;
  --gold-soft:  #e7d6a6;
  --text:       #1c2541;
  --muted:      #5a6478;
  --line:       rgba(26, 42, 94, 0.12);
  --line-strong:rgba(26, 42, 94, 0.22);
  --white:      #ffffff;
  --shadow-sm:  0 2px 10px rgba(20, 33, 61, 0.06);
  --shadow-md:  0 10px 30px rgba(20, 33, 61, 0.10);
  --shadow-lg:  0 24px 60px rgba(20, 33, 61, 0.14);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --font-accent:  'Cinzel', 'Trajan Pro', 'Cormorant Garamond', serif;
  --font-body:    'Lora', Georgia, 'Times New Roman', serif;
  --font-ui:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container:  1200px;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;

  /* Motion */
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-deep); }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--gold-soft); color: var(--navy-deep); }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; font-family: var(--font-ui); font-weight: 600; letter-spacing: .02em; }

p {
  margin: 0 0 1em;
  color: var(--text);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-justify: inter-word;
}
p.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: #2c3a5e;
  line-height: 1.75;
}

/* Keep paragraphs centered in heroes, section heads, quotes, and CTA blocks */
.page-hero p,
.section-head p,
.quote p,
[style*="text-align:center"] p,
[style*="text-align: center"] p {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}

.eyebrow::before,
.eyebrow::after {
  content: '✦';
  margin: 0 .55em;
  color: var(--gold);
  font-size: .85em;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: clamp(70px, 9vw, 130px) 0;
  position: relative;
}

.section--alt {
  background: var(--mist-soft);
}

.section--dark {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,164,90,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(43,61,120,.55), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
  color: var(--mist);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(236, 241, 250, .85); }
.section--dark .eyebrow { color: var(--gold-soft); }
.section--dark .eyebrow::before,
.section--dark .eyebrow::after { color: var(--gold); }

.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .3s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(26, 42, 94, .28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 42, 94, .38);
  color: var(--gold-soft);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(168, 134, 45, .28);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(168, 134, 45, .4); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.section--dark .btn--ghost {
  color: var(--mist);
  border-color: rgba(231, 214, 166, .35);
}
.section--dark .btn--ghost:hover { color: var(--white); border-color: var(--gold); }

.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Ornament — Byzantine cross divider
   -------------------------------------------------------------------------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 1.4rem auto 1.6rem;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 0 1 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.ornament svg { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 246, 236, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 246, 236, .94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  color: var(--navy-deep);
}
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { line-height: 1.05; }
.brand-text strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand-text span {
  font-family: var(--font-accent);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--font-ui);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 4px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--navy-deep); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--navy-deep); font-weight: 600; }

/* Social icons in the header */
.nav-social-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.nav-links .nav-social-row a {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--navy);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.nav-links .nav-social-row a::after { display: none; }
.nav-links .nav-social-row a:hover,
.nav-links .nav-social-row a:focus-visible {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-1px);
  outline: none;
}
.nav-links .nav-social-row svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.nav-toggle span {
  display: block; position: relative;
  width: 20px; height: 2px;
  background: currentColor;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 100%; height: 2px; background: currentColor;
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 28px 28px;
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }

  .nav-social-row {
    border-left: 0;
    margin-left: 0;
    padding: 18px 4px 4px;
    gap: 12px;
    justify-content: flex-start;
  }
  .nav-links .nav-social-row a { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0 clamp(80px, 10vw, 140px);
  background:
    radial-gradient(1100px 600px at 110% -10%, rgba(201,164,90,.18), transparent 55%),
    radial-gradient(900px 500px at -10% 110%, rgba(216,226,242,.7), transparent 55%),
    linear-gradient(180deg, #fbf8ef 0%, #f6efdc 100%);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c9a45a' stroke-width='.6' opacity='.18'%3E%3Cpath d='M60 8v104M8 60h104'/%3E%3Ccircle cx='60' cy='60' r='28'/%3E%3Ccircle cx='60' cy='60' r='42'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: .35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

.hero h1 {
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero h1 .accent {
  display: block;
  font-style: italic;
  color: var(--gold-deep);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.2rem;
}
@media (max-width: 920px) { .hero-actions { justify-content: center; } }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
}
.hero-art img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(26, 42, 94, .25));
}
.hero-art::before,
.hero-art::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: .3;
}
.hero-art::after {
  inset: 8%;
  border-style: dashed;
  opacity: .25;
}

/* Page hero (smaller, used on inner pages) */
.page-hero {
  padding: clamp(110px, 14vw, 160px) 0 clamp(60px, 7vw, 90px);
  text-align: center;
  background:
    radial-gradient(900px 500px at 50% -20%, rgba(201,164,90,.18), transparent 55%),
    linear-gradient(180deg, #fbf8ef 0%, #f6efdc 100%);
}
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 164, 90, .35);
}

.card h3 { color: var(--navy-deep); margin-bottom: .35rem; }
.card p { color: var(--muted); }

/* Pillar (about page) */
.pillar { text-align: center; }
.pillar .icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mist), #fff);
  color: var(--navy);
  border: 1px solid var(--line);
}
.pillar .icon svg { width: 30px; height: 30px; }

/* Level (services page) */
.level {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 38px 34px;
  background: linear-gradient(180deg, #fff, #fdfaf2);
  border-top: 4px solid var(--gold);
}
.level-num {
  font-family: var(--font-accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.level h3 { margin: 0; font-size: 1.55rem; }
.level ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: .96rem;
}
.level ul li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
}
.level ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.level-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.level-price .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy-deep);
  font-weight: 600;
}
.level-price .unit {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.level--featured {
  border-top-width: 6px;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.level--soon {
  background: linear-gradient(180deg, #f8f4e6, #f1e9d2);
  border-top-color: var(--gold-deep);
}
.badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(201, 164, 90, .14);
  padding: 6px 12px;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Quote / Stats
   -------------------------------------------------------------------------- */
.quote {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.45;
  color: var(--white);
}
.quote blockquote::before { content: '“'; display: block; font-size: 4rem; color: var(--gold); line-height: .6; margin-bottom: .2em; }
.quote cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: var(--font-accent);
  font-size: .8rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  text-align: center;
}
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat .label {
  margin-top: 10px;
  font-family: var(--font-accent);
  font-size: .78rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist);
}

/* --------------------------------------------------------------------------
   Contact / Form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { display: grid; gap: 22px; margin: 32px 0 0; padding: 0; list-style: none; }
.info-list li {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-list .info-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mist), #fff);
  color: var(--navy);
  border: 1px solid var(--line);
}
.info-list .info-icon svg { width: 20px; height: 20px; }
.info-list h4 {
  margin: 0 0 .2em;
  font-size: .78rem;
  font-family: var(--font-accent);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.info-list p { margin: 0; color: var(--text); }
.info-list a { color: var(--text); }
.info-list a:hover { color: var(--gold-deep); }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label {
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-family: var(--font-body);
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--parchment);
  color: var(--text);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 164, 90, .15);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  display: none;
}
.form-status.is-success { display: block; background: #e9f3ea; color: #1f6f3b; border: 1px solid #b8d8be; }
.form-status.is-error   { display: block; background: #fbecea; color: #8a3027; border: 1px solid #efc5be; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(201,164,90,.12), transparent 60%),
    var(--navy-deep);
  color: rgba(236, 241, 250, .8);
  padding: 80px 0 28px;
  font-size: .94rem;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-accent);
  font-size: .78rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.site-footer a { color: rgba(236, 241, 250, .8); }
.site-footer a:hover { color: var(--gold-soft); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p {
  margin-top: 14px;
  max-width: 340px;
  line-height: 1.65;
  color: var(--mist);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.socials a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(231, 214, 166, .28);
  color: var(--gold-soft);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.socials a:hover,
.socials a:focus-visible {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  transform: translateY(-2px);
  outline: none;
}
.socials svg { width: 18px; height: 18px; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text span { color: var(--gold-soft); }

.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(236, 241, 250, .12);
  font-size: .84rem;
  color: rgba(236, 241, 250, .6);
}

/* --------------------------------------------------------------------------
   Team / Équipe
   -------------------------------------------------------------------------- */
.member {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(36px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.member + .member { margin-top: 28px; }
.member--featured {
  background:
    radial-gradient(600px 300px at 110% -10%, rgba(201,164,90,.12), transparent 55%),
    linear-gradient(180deg, #fff, #fdfaf2);
  border-color: rgba(201, 164, 90, .35);
}
.member--featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep), var(--gold));
}

@media (max-width: 760px) {
  .member { grid-template-columns: 1fr; text-align: center; }
  .member-cols { text-align: left; }
}

.member-id { display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 3px solid var(--white);
  box-shadow:
    0 0 0 2px var(--gold),
    0 14px 30px rgba(26, 42, 94, .25);
  margin-bottom: 18px;
}
.avatar--featured {
  width: 156px;
  height: 156px;
  font-size: 3rem;
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 0 8px rgba(201, 164, 90, .15),
    0 18px 40px rgba(26, 42, 94, .28);
}

/* Portrait silhouette inside avatar — keeps the blue sphere intact */
.avatar--portrait {
  padding: 0;
  overflow: hidden;
}
.avatar--portrait img {
  display: block;
  width: 68%;
  height: auto;
  pointer-events: none;
}

.member-id h3 {
  margin: 0 0 .3em;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--navy-deep);
}
.member-role {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(201, 164, 90, .12);
  padding: 6px 14px;
  border-radius: 999px;
}

.member-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
}
@media (max-width: 560px) { .member-cols { grid-template-columns: 1fr; } }

.member-section h4 {
  font-family: var(--font-accent);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-section h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.timeline {
  position: relative;
  padding-left: 22px;
  margin: 0;
  list-style: none;
  border-left: 1px solid var(--line-strong);
}
.timeline li {
  position: relative;
  padding: 2px 0 22px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 90, .15);
}
.timeline .t-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.3;
}
.timeline .t-date {
  display: inline-block;
  margin: 4px 0 6px;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold-deep);
  text-transform: uppercase;
}
.timeline .t-place {
  display: block;
  font-style: italic;
  color: var(--muted);
  font-size: .96rem;
}
.timeline .t-extra {
  margin: 10px 0 0;
  padding: 12px 14px;
  background: var(--linen);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-size: .92rem;
  color: var(--text);
}
.timeline .t-extra em { color: var(--navy-deep); font-style: italic; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Small phones (≤ 480px) — tighter spacing & sizing
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  html { scroll-padding-top: 72px; }
  body { font-size: 16px; }

  .container { padding: 0 20px; }

  .nav { height: 72px; gap: 12px; }
  .nav-links { inset: 72px 0 auto 0; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.15rem; }
  .brand-text span { font-size: .56rem; letter-spacing: .22em; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 44px; }

  .card { padding: 28px 22px; }
  .level { padding: 30px 24px; }
  .member { padding: 28px 22px; }
  .form { padding: 24px 20px; }
  .info-list li { padding: 18px 18px; gap: 14px; }
  .info-list .info-icon { flex: 0 0 40px; width: 40px; height: 40px; }

  .btn { padding: 12px 22px; font-size: .85rem; }

  .hero { padding: 70px 0 60px; }
  .hero-art { max-width: 260px; }

  .page-hero { padding: 96px 0 56px; }

  .footer-grid { gap: 36px; }
  .site-footer { padding: 64px 0 24px; }
  .footer-bottom { font-size: .78rem; }
}

/* --------------------------------------------------------------------------
   Large screens (≥ 1600px) — slightly more breathing room
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  :root { --container: 1280px; }
}
