/* ============================================================
   Le français au Québec — styles (visual overhaul)
   Fonts: Fraunces (headlines) + Bricolage Grotesque (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700&display=swap');

:root {
  --bg: #F0F2F5;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --ink: #0D1B2A;
  --ink-soft: #3a4a5c;
  --muted: #6b7785;
  --accent: #1A3EBF;
  --accent-dark: #15308f;
  --accent-soft: #e7ecf8;
  --border: #e2e6ec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 8px rgba(13, 27, 42, 0.07), 0 8px 32px rgba(13, 27, 42, 0.07);
  --shadow-hover: 0 8px 24px rgba(13, 27, 42, 0.13), 0 20px 56px rgba(13, 27, 42, 0.11);
  --maxw: 1180px;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.14s, box-shadow 0.18s;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 62, 191, 0.28);
}
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  box-shadow: none;
}
.btn-light {
  background: #fff;
  color: var(--accent);
}
.btn-light:hover {
  background: #f0f2ff;
  box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 242, 245, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(226, 230, 236, 0.7);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.15rem;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-fleur {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.logo-text em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.main-nav a.active { color: var(--ink); font-weight: 600; }
.main-nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
  /* Layered atmospheric gradient — no flat solid */
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(26, 62, 191, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(13, 27, 42, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(26, 62, 191, 0.05) 0%, transparent 60%),
    linear-gradient(160deg, #eceef3 0%, #F0F2F5 40%, #eaecf2 100%);
}

/* Subtle geometric dot pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(13, 27, 42, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 50%, black 20%, transparent 80%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
  border: 1px solid rgba(26, 62, 191, 0.15);
}
.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  margin-bottom: 22px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.accent { color: var(--accent); }
.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 34px;
  line-height: 1.7;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-points li {
  font-size: 0.88rem;
  color: var(--muted);
  position: relative;
  padding-left: 18px;
  font-weight: 500;
}
.hero-points li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.hero-visual .featured-card {
  box-shadow: var(--shadow-hover);
}

/* ---------- Video cards ---------- */
.video-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 1px solid rgba(226, 230, 236, 0.6);
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0D1B2A;
  overflow: hidden;
}
.video-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-thumb .thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D1B2A, #1A3EBF);
  color: #fff;
  font-size: 2.4rem;
}
.video-meta {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.video-title {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
}
.badge-a1 { background: #2e7d32; }
.badge-a2 { background: #1565c0; }
.badge-b1 { background: #ef6c00; }
.badge-b2 { background: #6a1b9a; }
.badge-c1 { background: #c62828; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 48px;
  font-weight: 400;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 16px;
}
.section-head .section-sub { margin-bottom: 0; }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 230, 236, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.feature-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(26, 62, 191, 0.12);
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.feature-card p { margin: 0; font-size: 0.97rem; line-height: 1.65; }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.quote-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  position: relative;
}
.quote-card::before {
  content: '\201C';
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--accent-soft);
  position: absolute;
  top: 12px;
  left: 28px;
  line-height: 1;
  pointer-events: none;
}
.quote-card blockquote {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 1.18rem;
  color: var(--ink);
  font-style: italic;
  line-height: 1.55;
  font-weight: 400;
  padding-top: 24px;
}
.quote-card cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #0D1B2A 0%, #0f2240 50%, #0D1B2A 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(26, 62, 191, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.cta-band p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.cta-band .btn-light {
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  width: 100%;
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ============================================================
   LIBRARY PAGE
   ============================================================ */
.page-head {
  padding: 72px 0 40px;
}
.page-head h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-head p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.7;
}

.filter-bar {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  box-shadow: var(--shadow);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.filter-search {
  flex: 1;
  min-width: 180px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--ink);
}
.filter-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.result-count {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 500;
}
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state h3 { color: var(--ink); }

/* Library grid — more breathing room */
#libraryGrid {
  gap: 32px;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-wrap {
  padding: 80px 0 96px;
}

/* Page-level heading for pricing */
.pricing-wrap > .container > h1,
.pricing-wrap > .container > .pricing-head h1 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 20px;
  overflow: visible;
  /* Premium glow treatment */
  box-shadow:
    0 0 0 1px rgba(26, 62, 191, 0.18),
    0 8px 32px rgba(26, 62, 191, 0.14),
    0 32px 80px rgba(13, 27, 42, 0.14),
    0 0 80px rgba(26, 62, 191, 0.08);
  position: relative;
}

/* Glowing border ring */
.pricing-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg,
    rgba(26, 62, 191, 0.5) 0%,
    rgba(13, 27, 42, 0.2) 40%,
    rgba(26, 62, 191, 0.4) 100%
  );
  z-index: -1;
  pointer-events: none;
}

.pricing-card-top {
  background: linear-gradient(145deg, #0f2240 0%, #0D1B2A 60%, #111e35 100%);
  color: #fff;
  padding: 44px 40px 36px;
  text-align: center;
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow inside card top */
.pricing-card-top::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 240px;
  background: radial-gradient(ellipse, rgba(26, 62, 191, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-card-top h2 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pricing-card-top .plan-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.price {
  font-family: var(--font-head);
  font-size: 3.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 1;
  letter-spacing: -0.03em;
}
.price small {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0;
}
.price-note {
  font-family: var(--font-body);
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.pricing-body { padding: 40px 40px 36px; }
.pricing-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.pricing-body li {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pricing-body li:last-child { border-bottom: none; }
.pricing-body li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-faq {
  max-width: 760px;
  margin: 80px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.faq-item p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  padding: 80px 0 48px;
}
.about-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.about-hero .lede { max-width: 680px; }
.prose {
  max-width: 720px;
  font-size: 1.06rem;
  line-height: 1.75;
}
.prose h2 {
  font-family: var(--font-head);
  font-size: 1.65rem;
  margin-top: 52px;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.prose p { margin-bottom: 1.2em; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0;
}
.value-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 230, 236, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.value-card p { margin: 0; font-size: 0.94rem; line-height: 1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav .btn { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .pricing-card-top { padding: 36px 28px 28px; }
  .pricing-body { padding: 32px 28px 28px; }
}

@media (max-width: 520px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .container { padding: 0 20px; }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); }
}
