/* CMFI Toronto GTA — feuille de style du site public */
:root {
  --ink: #16202E;
  --ink-2: #3D4654;
  --muted: #5A6372;
  --navy: #1F3A5F;
  --navy-deep: #0F2440;
  --navy-soft: #2A3A52;
  --gold: #E0A93B;
  --gold-soft: #FBF1DC;
  --gold-ink: #8A5A00;
  --cream: #F7F6F2;
  --line: #E4E2DA;
  --white: #FFFFFF;
  --radius: 20px;
  --max: 1240px;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; }
.section--dark .kicker, .section--navy .kicker, .hero .kicker { color: #F2D9A6; }
.h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.02em; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.7; max-width: 780px; }
.section--dark .lead, .section--navy .lead, .hero .lead { color: #C9D2DE; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 40px; }
.row > * { flex: 1 1 420px; min-width: 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { color: var(--ink); background: #EBB850; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { color: var(--white); background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid #C9C5B8; font-weight: 600; }
.btn--ghost-light { background: transparent; color: var(--white); border: 1px solid #5B6F8C; font-weight: 600; }
.btn--ghost-light:hover { color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.chip--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tag { display: inline-flex; align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #E8EDF4; color: var(--navy); }
.tag--gold { background: var(--gold-soft); color: var(--gold-ink); }

/* En-tête */
.topbar { background: var(--navy-deep); color: #E8EDF4; font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #E8EDF4; text-decoration: none; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.lang-switch { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--gold); color: var(--ink) !important; font-weight: 700; font-size: 13px; }
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.header__logo img { height: 54px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 0; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--gold); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--ink); color: var(--white); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header .container { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; order: 3; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid #F0EEE7; font-size: 17px; font-family: var(--font-head); font-weight: 700; }
  .header__give { display: none; }
  .header__logo img { height: 46px; }
}

/* Hero */
.hero { background: var(--ink); color: var(--white); }
.hero .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.hero__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 22px; }
.hero__media { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.hero__media img { width: 100%; height: 320px; object-fit: cover; border-radius: 24px; }
.badge { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--navy-soft); color: #F2D9A6; font-size: 14px; font-weight: 600; }
.next-service { background: var(--white); color: var(--ink); border-radius: 20px; padding: 18px 22px; display: flex; gap: 16px; align-items: center; }
.date-box { flex: 0 0 60px; height: 64px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; line-height: 1.1; }
.date-box small { font-size: 12px; }
.date-box strong { font-size: 20px; }
.page-hero { padding: 64px 0 32px; }
.page-hero--dark { background: var(--ink); color: var(--white); padding: 72px 0; }

/* Cartes */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card--dark { background: var(--ink); color: var(--white); border: 0; }
.card--dark p { color: #C9D2DE; }
.card--soft { background: var(--cream); border: 0; }
.card--gold { background: var(--gold-soft); border: 0; color: #6B4700; }
.card p { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.card--dark p, .card--gold p { color: inherit; }
.card__media { margin: -26px -26px 6px; height: 170px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: #E9E6DC; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.num { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; }
.verse { font-family: var(--font-head); font-size: 20px; line-height: 1.55; font-weight: 600; }
.verse-ref { font-size: 15px; font-weight: 600; color: var(--muted); }
.section--dark .verse-ref, .page-hero--dark .verse-ref { color: #F2D9A6; }
.stat { border-left: 3px solid var(--gold); padding-left: 16px; display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-head); font-size: 36px; font-weight: 800; }
.stat span { font-size: 14px; color: #C9D2DE; }
.list-dot { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.list-dot li { position: relative; padding-left: 20px; }
.list-dot li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 999px; background: var(--gold); }

/* Horaires */
.schedule { background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.schedule__row { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; padding: 18px 24px; border-bottom: 1px solid #F0EEE7; }
.schedule__row:last-child { border-bottom: 0; }
.schedule__day { flex: 0 0 170px; font-family: var(--font-head); font-weight: 800; color: var(--navy); text-transform: uppercase; font-size: 15px; letter-spacing: .04em; }
.schedule__time { flex: 0 0 90px; font-weight: 700; }
.schedule__title { flex: 1 1 240px; font-weight: 600; font-size: 16px; }
.sched-cards .card { background: var(--cream); }
.sched-cards .card__top { display: flex; justify-content: space-between; align-items: center; }
.sched-cards .day { font-family: var(--font-head); font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.sched-cards .time { padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 14px; }

/* Événements */
.event { display: flex; gap: 16px; align-items: flex-start; }
.event .date-box { flex-basis: 64px; height: 76px; }
.event .date-box em { font-style: normal; font-size: 11px; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 14px; }
.form__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 46px; border: 1px solid #C9C5B8; border-radius: 12px; padding: 0 14px; font-size: 16px; font-family: inherit; background: var(--white); color: var(--ink); }
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(224,169,59,.45); border-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 14px; padding: 16px 18px; font-weight: 600; }
.notice--ok { background: #E3F1EA; color: #1C5B3A; }
.notice--err { background: #FBE9E7; color: #A3261B; }

/* Parcours */
.lessons { display: flex; flex-direction: column; gap: 8px; }
.lesson { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.lesson summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px; cursor: pointer; font-weight: 700; list-style: none; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson[open] summary { background: var(--navy); color: var(--white); border-radius: 16px 16px 0 0; }
.lesson__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.lesson__label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Blogue */
.post { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.post summary { cursor: pointer; list-style: none; display: block; }
.post summary::-webkit-details-marker { display: none; }
.post__cover { height: 130px; padding: 18px; display: flex; align-items: flex-end; color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1.2; }
.post__meta { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.post__cat { font-size: 12px; font-weight: 700; color: var(--gold-ink); text-transform: uppercase; letter-spacing: .05em; }
.post__teaser { font-size: 14px; color: var(--ink-2); }
.post__body { padding: 0 18px 22px; white-space: pre-line; font-size: 15px; line-height: 1.75; color: #2A3442; border-top: 1px solid var(--line); padding-top: 16px; }
.post[open] .post__teaser { display: none; }
.cat-nt { background: #1F3A5F; } .cat-ar { background: #7A4A12; } .cat-kj { background: #2F5D50; }

/* TV */
.tv { background: #0B1830; color: var(--white); }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #13254A; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.video { background: transparent; border: 0; padding: 0; color: var(--white); text-align: left; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 10px; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--navy-soft); }
.video span { font-size: 15px; font-weight: 600; line-height: 1.4; }
.live-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 16px 20px; border-radius: 16px; background: #13254A; border: 1px solid var(--navy-soft); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #A3261B; font-size: 12px; font-weight: 700; color: var(--white); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--white); }

/* Radio */
.radio-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy-deep); color: var(--white); border-top: 1px solid var(--navy-soft); }
.radio-bar .container { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.radio-btn { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 999px; border: 0; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.radio-info { display: flex; flex-direction: column; min-width: 0; }
.radio-info strong { font-family: var(--font-head); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.radio-info span { font-size: 15px; color: #E8EDF4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-link { margin-left: auto; color: #F2D9A6; font-weight: 600; font-size: 14px; white-space: nowrap; }
.radio-spacer { height: 76px; }
@media (max-width: 640px) { .radio-link { display: none; } .radio-bar .container { min-height: 66px; gap: 10px; } .radio-spacer { height: 66px; } }

/* Pied de page */
.footer { background: var(--navy-deep); color: #C9D2DE; }
.footer .container { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 32px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer__cols > div { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer a { color: #C9D2DE; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer h3 { font-size: 16px; color: var(--white); margin-bottom: 4px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 56px; height: 56px; border-radius: 12px; background: var(--white); padding: 4px; }
.footer__bottom { border-top: 1px solid var(--navy-soft); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }

/* Utilitaires */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-32 { margin-top: 32px; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Ajustements mobile */
@media (max-width: 640px) {
  .topbar__info span, .topbar__info a[href^="mailto"] { display: none; }
  .topbar .container { flex-wrap: nowrap; }
  .radio-info .live-dot { display: none; }
  .radio-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero .container { padding-top: 48px; padding-bottom: 56px; gap: 32px; }
  .section { padding: 64px 0; }
}
