/* =========================================================
   CAAP - Nord-du-Québec (Jamésie) — design system
   ========================================================= */
:root {
  --color-primary: #0345bf;
  --color-primary-light: #3071ff;
  --color-primary-dark: #1b4984;
  --color-navy: #16325c;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fb;
  --color-text: #212529;
  --color-text-muted: #6c757d;
  --color-border: #e5e9ef;
  --font-heading: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Open Sans', -apple-system, sans-serif;
  --font-accent: 'Playball', cursive;
  --radius: 10px;
  --shadow: 0 8px 26px rgba(3, 69, 191, 0.10);
  --shadow-lg: 0 20px 50px rgba(3, 69, 191, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; margin: 0 0 .55em; color: var(--color-navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; color: var(--color-primary); font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
.accent-script { font-family: var(--font-accent); font-size: 1.6em; font-weight: 400; color: var(--color-primary); line-height: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .95rem; font-family: var(--font-heading); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 20px rgba(3,69,191,.32); }
.btn-primary:hover { background: #0339a0; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-outline-primary { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline-primary:hover { background: var(--color-primary); color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== Top bar ===== */
.top-bar { background: var(--color-navy); color: rgba(255,255,255,.9); font-size: .82rem; }
.top-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 22px; padding-top: 8px; padding-bottom: 8px; }
.top-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.top-bar a:hover { color: #cfe0ff; }
.top-bar svg { width: 14px; height: 14px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 64px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a { text-decoration: none; font-weight: 700; font-family: var(--font-heading); color: var(--color-navy); font-size: .88rem; position: relative; padding: 8px 0; }
.main-nav > a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--color-primary); transition: right .2s ease; }
.main-nav > a:hover::after, .main-nav > a.active::after { right: 0; }
.main-nav > a.active { color: var(--color-primary); }
.has-sub { position: relative; }
.sub-nav { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: var(--shadow-lg); border-radius: 8px; padding: 8px; min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.has-sub:hover .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-nav a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--color-text); font-size: .88rem; font-weight: 600; }
.sub-nav a:hover { background: var(--color-bg-alt); color: var(--color-primary); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; color: var(--color-navy); }

.mobile-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(22,50,92,.55); opacity: 0; transition: opacity .25s ease; }
.mobile-drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 82vw); background: #fff; padding: 28px 24px; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
body.menu-open .mobile-drawer { visibility: visible; }
body.menu-open .mobile-drawer .backdrop { opacity: 1; }
body.menu-open .mobile-drawer .panel { transform: translateX(0); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.mobile-drawer nav a { text-decoration: none; font-weight: 700; font-family: var(--font-heading); font-size: 1.02rem; color: var(--color-navy); padding: 8px 0; }
.mobile-drawer nav a.sub-link { font-size: .9rem; font-weight: 600; color: var(--color-text-muted); padding-left: 14px; }
.mobile-drawer .close-drawer { align-self: flex-end; background: none; border: none; cursor: pointer; }
.mobile-drawer .close-drawer svg { width: 24px; height: 24px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 90px 0 100px; color: #fff; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11,30,58,.88) 0%, rgba(3,69,191,.72) 55%, rgba(3,69,191,.5) 100%); }
.hero .container { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow { color: #a9c6ff; }
.hero h1 { color: #fff; margin-bottom: .4em; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.hero p { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 58ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Page hero (interior pages, no photo) */
.page-hero { background: linear-gradient(120deg, var(--color-navy), var(--color-primary)); color: #fff; padding: 64px 0 54px; }
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero p { color: rgba(255,255,255,.85); margin: 0; max-width: 65ch; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.breadcrumb a { color: #fff; text-decoration: none; font-weight: 700; }

/* Stat strip */
.stat-strip { background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 40px; padding-bottom: 40px; text-align: center; }
.stat-item .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--color-primary); box-shadow: var(--shadow); margin-bottom: 12px; }
.stat-item .icon-wrap svg { width: 24px; height: 24px; }
.stat-item .num { display: block; font-family: var(--font-heading); font-size: 2.1rem; font-weight: 800; color: var(--color-navy); }
.stat-item .label { font-size: .85rem; color: var(--color-text-muted); font-weight: 600; }
@media (max-width: 700px) { .stat-strip .container { grid-template-columns: repeat(2, 1fr); } }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-header.left { margin-left: 0; text-align: left; }

/* Intro split */
.intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.intro-split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
@media (max-width: 900px) { .intro-split { grid-template-columns: 1fr; } }
.intro-split.reverse { direction: rtl; }
.intro-split.reverse > * { direction: ltr; }

/* Value / info cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.value-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.value-card .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(3,69,191,.09); color: var(--color-primary); margin-bottom: 16px; }
.value-card .icon-wrap svg { width: 24px; height: 24px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p, .value-card ul { color: var(--color-text-muted); font-size: .95rem; margin: 0; }
.value-card ul { padding-left: 18px; }

/* Service link cards (Nos services) */
.service-link-card { display: block; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 34px 28px; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.service-link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-link-card .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--color-primary); color: #fff; margin-bottom: 18px; }
.service-link-card .icon-wrap svg { width: 26px; height: 26px; }
.service-link-card h3 { color: var(--color-navy); margin-bottom: 8px; }
.service-link-card p { color: var(--color-text-muted); margin: 0; font-size: .93rem; }
.service-link-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--color-primary); font-weight: 700; font-size: .88rem; }

/* Process steps */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step-card { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border-top: 4px solid var(--color-primary); }
.step-card .step-num { font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; color: rgba(3,69,191,.15); line-height: 1; margin-bottom: 8px; }
.step-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.step-card ul { margin: 0; padding-left: 18px; color: var(--color-text-muted); font-size: .92rem; }

/* Testimonials */
.testimonial-carousel { max-width: 760px; margin: 0 auto; position: relative; min-height: 180px; }
.testimonial-quote { display: none; text-align: center; }
.testimonial-quote.active { display: block; }
.testimonial-quote .quote-icon { font-family: var(--font-heading); font-size: 3.2rem; color: var(--color-primary); line-height: 1; margin-bottom: 6px; opacity: .3; }
.testimonial-quote p.msg { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 500; color: var(--color-navy); font-style: italic; }
.testimonial-quote p.name { color: var(--color-text-muted); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.testimonial-nav { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testimonial-nav button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--color-border); cursor: pointer; padding: 0; }
.testimonial-nav button.active { background: var(--color-primary); }

/* Document / publication cards */
.doc-filter { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }
.doc-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.doc-card img { width: 100%; height: 230px; object-fit: contain; background: var(--color-bg-alt); padding: 18px; }
.doc-card .doc-body { padding: 18px 20px 24px; }
.doc-card .doc-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-primary); font-weight: 700; margin-bottom: 6px; display: block; }
.doc-card h3 { font-size: 1rem; margin-bottom: 14px; }

/* Contact CTA (no form) */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-feature { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); text-align: center; }
.contact-feature .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--color-primary); color: #fff; margin-bottom: 16px; }
.contact-feature .icon-wrap svg { width: 24px; height: 24px; }
.contact-feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.contact-feature a, .contact-feature p { color: var(--color-text-muted); text-decoration: none; margin: 0; }
.contact-feature a { color: var(--color-primary); font-weight: 700; }
.map-embed { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Team / board photo blocks */
.photo-block { text-align: center; }
.photo-block img { border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: 0 auto; }
.video-embed-wrap { max-width: 860px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/9; }
.video-embed-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Article-style content blocks (Entre nous) */
.story-block { border-bottom: 1px solid var(--color-border); padding: 46px 0; }
.story-block:last-child { border-bottom: none; }
.story-block h2 { margin-bottom: 14px; }

/* External list (Autres CAAP) */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.link-list li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 14px 18px; text-decoration: none; color: var(--color-navy); font-weight: 700; font-size: .92rem; transition: border-color .2s, color .2s; }
.link-list li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.link-list li a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-primary); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--color-navy), var(--color-primary)); color: #fff; border-radius: var(--radius); padding: 46px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Tables (member lists, etc.) */
table.simple-table { width: 100%; border-collapse: collapse; }
table.simple-table th, table.simple-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-border); }
table.simple-table th { font-family: var(--font-heading); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); }

/* Footer */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,.78); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-family: var(--font-heading); font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 16px; }
.footer-brand img { height: 60px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.65); max-width: 36ch; font-size: .92rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.8); font-weight: 600; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a, .footer-contact span { text-decoration: none; color: rgba(255,255,255,.8); font-weight: 600; display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.footer-contact svg { width: 16px; height: 16px; color: #a9c6ff; flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background-color .2s; }
.footer-social a:hover { background: var(--color-primary); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.8); text-decoration: none; }

/* Responsive */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .top-bar .container { justify-content: center; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  .section { padding: 54px 0; }
  .hero { padding: 66px 0 70px; }
}
