/* =========================================================
   SMCC – Chapitre de Montréal · One pager
   ========================================================= */

/* ---------- Polices (auto-hébergées) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Varela Round"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/varela-round-latin-400-normal.woff2") format("woff2"); }

:root {
  --gray: #54585a;
  --gray-footer: #666666;
  --navy: #004773;
  --blue: #2ca9e0;
  --blue-soft: #afe4f9;
  --blue-pale: #dbf3fc;
  --lime: #c0d200;
  --lime-pale: #f4f7d6;
  --lime-track: #d5e092;
  --green: #2cb34c;
  --green-dark: #23963e;
  --cyan: #9febff;
  --white: #ffffff;

  --font-title: "Montserrat", "Arial Black", Arial, sans-serif;
  --font-body: "Varela Round", "Nunito", "Segoe UI", Arial, sans-serif;

  --container: 1210px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
  --section-y: clamp(48px, 6vw, 80px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 4px, 18px);
  line-height: 1.45;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Titres & filets ---------- */
.title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(22px, 1.6vw + 8px, 28px);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--navy);
}
.title--white { color: var(--white); }
.title--sm { font-weight: 700; font-size: clamp(18px, 1vw + 8px, 21px); }
.title--hero { font-size: clamp(24px, 2.2vw + 6px, 34px); color: var(--white); }

.rule {
  display: block;
  width: 80px;
  height: 2px;
  margin: 18px 0 22px;
  background: var(--navy);
}
.rule--white { background: var(--white); }
.rule--wide { width: 170px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 47px;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}


.btn--fushia { background: var(--blue); color: var(--white); }
.btn--fushia:hover { background: #278fbc; }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); }
.btn--outline {
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 14px;
  _padding-inline: 20px;
}
.btn--outline:hover { background: rgba(159, 235, 255, .12); }
.btn--outline img { width: 24px; height: auto; }
.btn--lg { min-width: min(100%, 306px); min-height: 53px; }

/* ---------- En-tête ---------- */
.site-header { background: var(--gray); color: var(--white); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  min-height: 170px;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}
.brand__logo { width: clamp(210px, 18vw, 270px); }
.brand__chapter {
  margin-left: 22px;
  padding: 6px 0 6px 22px;
  border-left: 1px solid rgba(255, 255, 255, .85);
  font-size: clamp(16px, 1.2vw + 4px, 21px);
  white-space: nowrap;
}
.site-header__actions { display: flex; gap: 13px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Héro ---------- */
/* Comme la maquette : voile noir léger (30 %) sur toute la photo,
   puis une bande noire translucide qui contient le texte et la vidéo. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(560px, 58vw, 810px);
  background:
    linear-gradient(rgba(15, 15, 15, .3), rgba(15, 15, 15, .3)),
    url("../assets/images/header.jpg") center 30% / cover no-repeat;
  color: var(--white);
}
.hero__band { background: rgba(15, 15, 15, .43); }
.hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-block: 40px 37px;
}
.hero__text { max-width: 720px; padding-bottom: 36px; }
.hero__text p { max-width: 640px; }

.video-card {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 422px);
  padding: 0;
  border: 3px solid var(--white);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.video-card img { width: 100%; aspect-ratio: 416 / 329; object-fit: cover; }
.video-card__bar {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--green);
  color: var(--white);
  transition: background-color .2s ease;
}
.video-card:hover .video-card__bar { background: var(--green-dark); }
.video-card__play { width: 24px; height: 24px; flex: 0 0 auto; transition: transform .2s ease; }
.video-card:hover .video-card__play { transform: scale(1.15); }
.video-card__name { display: block; font-size: 18px; line-height: 1.2; }
.video-card__role { display: block; font-size: 14px; line-height: 1.3; }

/* ---------- Mission (bleu) ---------- */
.mission { background: var(--blue); padding-block: 36px var(--section-y); color: var(--white); }
.mission__intro {
  display: grid;
  grid-template-columns: minmax(0, 494fr) minmax(0, 675fr);
  gap: 40px;
  align-items: start;
}
.mission__photo { width: 100%; border-radius: 8px; aspect-ratio: 494 / 324; object-fit: cover; }
.mission__text p + p { margin-top: 10px; }

.quebec {
  margin-top: clamp(40px, 5vw, 60px);
  padding: clamp(24px, 3vw, 32px);
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--navy);
}
.quebec__lead {
  max-width: 1130px;
  margin: 0 auto 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(16px, .6vw + 11px, 18px);
  text-align: center;
}
.quebec__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}
.quebec__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 14px 18px;
  border-radius: 6px;
  background: var(--white);
  text-align: center;
  font-size: 15px;
  line-height: 1.15;
}
.quebec__card img { height: 56px; width: auto; }

/* ---------- Réseau (lime) ---------- */
.network { background: var(--lime); padding-block: 20px 62px; }
.network__card { border-radius: var(--radius); overflow: hidden; background: var(--white); }
.network__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 346px);
  gap: 40px;
  align-items: center;
  padding: 20px 18px 20px clamp(20px, 3.5vw, 42px);
}
.network__text p { max-width: 760px; }
.network__photo { width: 100%; aspect-ratio: 346 / 234; object-fit: cover; border-radius: 6px; }

.network__stats { background: var(--lime-pale); padding: 30px clamp(16px, 3vw, 40px) 20px; }
.network__subtitle {
  margin-bottom: 30px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(16px, 1vw + 8px, 21px);
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
}
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--navy); }
.stat p { min-height: 3.6em; display: flex; align-items: center; line-height: 1.3; max-width: 170px; }

.donut { position: relative; width: clamp(110px, 10.5vw, 142px); aspect-ratio: 1; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 17; }
.donut__track { stroke: var(--lime-track); }
.donut__value {
  stroke: var(--navy);
  stroke-dasharray: 0 999;
  transition: stroke-dasharray 1.4s cubic-bezier(.22, .8, .3, 1);
}
.donut__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(28px, 2.2vw + 6px, 38px);
  letter-spacing: -.02em;
}

/* ---------- Avantages (blanc) ---------- */
.benefits { padding-block: 30px var(--section-y); background: var(--white); }
.benefits__intro { max-width: 1170px; }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
  margin-top: 46px;
  text-align: center;
  font-size: 15px;
  line-height: 1.2;
}
.benefits__grid li { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.benefits__grid li p { max-width: 190px; }
.benefits__grid img { height: 66px; width: auto; }

.awards {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 40px;
  margin-top: 56px;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}
.awards .rule { margin-bottom: 0; }
.awards__text p + p { margin-top: 1.3em; }

/* ---------- Galerie + CTA (bleu pâle) ---------- */
.closing { background: var(--blue-soft); padding-block: 62px 70px; }
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 522fr) minmax(0, 660fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.gallery__main { grid-row: 1 / span 2; aspect-ratio: 522 / 487; }
.gallery__row { display: grid; gap: 22px; min-height: 0; }
.gallery__row--a { grid-template-columns: minmax(0, 409fr) minmax(0, 228fr); }
.gallery__row--b { grid-template-columns: minmax(0, 228fr) minmax(0, 409fr); }

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 56px;
}
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 30px 34px 34px;
  border-radius: 8px;
  background: var(--blue-pale);
}
.title--cta { max-width: 480px; font-size: clamp(22px, 1.4vw + 8px, 28px); line-height: 1.25; }
.cta-card p { font-size: 17px; max-width: 490px; }
.cta-card .btn { margin-top: auto; }

.socials { display: flex; flex-wrap: wrap; gap: 18px; margin-top: auto; }
.socials a { display: block; border-radius: 50%; transition: transform .2s ease; }
.socials a:hover { transform: translateY(-3px); }
.socials img { width: 54px; height: 54px; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--gray-footer);
  color: var(--white);
  text-align: center;
  padding: 26px var(--gutter);
}
.site-footer a { color: inherit; }
.site-footer a:hover { text-decoration-thickness: 2px; }

/* ---------- Modale vidéo ---------- */
.video-modal {
  width: fit-content;
  max-width: 92vw;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #000;
  overflow: visible;
}
.video-modal::backdrop { background: rgba(0, 20, 35, .85); }
.video-modal video {
  display: block;
  width: min(92vw, calc(82vh * 9 / 16));
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  background: #000;
}
.video-modal__close {
  position: absolute;
  top: -48px; right: 0;
  width: 40px; height: 40px;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.video-modal__close svg { width: 100%; height: 100%; }
.video-modal[open] { animation: modal-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }


.member-click {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.member-click:hover,
.member-click:focus-visible {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--cyan);
}
/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .br-lg { display: none; }

  .quebec__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .quebec__card { grid-column: span 2; }
  .quebec__card:nth-child(4) { grid-column: 2 / span 2; }
  .quebec__card:nth-child(5) { grid-column: 4 / span 2; }

  .benefits__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 40px; }
  .benefits__grid li { grid-column: span 2; }
  .benefits__grid li:nth-child(4) { grid-column: 2 / span 2; }
  .benefits__grid li:nth-child(5) { grid-column: 4 / span 2; }
}

@media (max-width: 960px) {
  .site-header__inner { flex-direction: column; min-height: 0; padding-block: 24px; }
  .hero { min-height: 0; padding-top: clamp(180px, 38vw, 300px); }
  .hero__inner { flex-direction: column; align-items: flex-start; padding-block: 32px; }
  .hero__text { padding-bottom: 0; }
  .video-card { width: min(100%, 460px); }

  .mission__intro { grid-template-columns: 1fr; }
  .mission__photo { max-width: 620px; }

  .network__top { grid-template-columns: 1fr; padding: 28px 24px; }
  .network__photo { max-width: 520px; }

  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 30px; }
  .stat { grid-column: span 2; }
  .stat:nth-child(4) { grid-column: 2 / span 2; border-left: 0; }
  .stat:nth-child(5) { grid-column: 4 / span 2; }

  .awards { grid-template-columns: 1fr; gap: 22px; }

  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery__main { grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery__row img { aspect-ratio: 1; }
  .gallery__row--a, .gallery__row--b { grid-template-columns: 1fr 1fr; }

  .quebec__grid,
  .benefits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quebec__card,
  .quebec__card:nth-child(4),
  .quebec__card:nth-child(5),
  .benefits__grid li,
  .benefits__grid li:nth-child(4),
  .benefits__grid li:nth-child(5) { grid-column: auto; }
  .quebec__card:last-child,
  .benefits__grid li:last-child { grid-column: 1 / -1; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat:nth-child(4), .stat:nth-child(5) { grid-column: auto; border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--navy); }
  .stat:last-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .brand { flex-direction: column; gap: 10px; }
  .brand__chapter { margin: 0; padding: 0; border: 0; }
  .site-header__actions { width: 100%; flex-direction: column; gap: 12px; }
  .site-header__actions .btn { width: 100%; }
  .cta-card { padding: 26px 22px; }
  .cta-card .btn { width: 100%; }
  .video-card__name { font-size: 16px; }
  .video-card__role { font-size: 12.5px; }
  .socials { gap: 12px; }
  .socials img { width: 48px; height: 48px; }
}

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