/* ═══════════════════════════════════════════════
   TACT — TéléApprentissage Communautaire et Transformatif
   Refonte 2026 · Université Laval
   ═══════════════════════════════════════════════ */

:root {
  --navy:  #0e2236;
  --navy2: #162d45;
  --teal:  #1a8fb0;
  --vert:  #a8ffd0;
  --vert2: #6ee8aa;
  --texte: #1a2e3a;
  --gris:  #f4f7fa;
  --ombre: 0 4px 24px rgba(14,34,54,.13);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.65; color: var(--texte); background: #fff; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: #16788f; }
img { max-width: 100%; height: auto; display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ══ NAVIGATION ══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(14,34,54,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex; align-items: center; gap: .8rem;
  padding: .4rem 3rem; max-width: 1400px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.nav-brand img { height: 32px; width: auto; border-radius: 4px; mix-blend-mode: screen; }
.nav-brand-text strong { display: block; font-size: .92rem; font-weight: 800; color: var(--vert); letter-spacing: .5px; }
.nav-brand-text span { display: block; font-size: .68rem; color: rgba(200,255,225,.95); letter-spacing: .1px; }
.nav-links { display: flex; list-style: none; gap: 0; margin-left: auto; }
.nav-links a {
  display: block; padding: .3rem .5rem; border-radius: 5px;
  font-size: .76rem; font-weight: 600; color: #dde8f5;
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav-links a:hover { background: rgba(168,255,208,.15); color: var(--vert); }

/* ══ HERO ══ */
.hero {
  position: relative; height: 65vh; min-height: 420px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
  margin-top: 0;
}

/* Diaporama saisons */
.saison {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease;
  animation: saisons 30s infinite;
}
.saison-ete       { background-image: url('/sites/default/files/ete.jpg'); animation-delay: 0s; }
.saison-automne   { background-image: url('/sites/default/files/automne.jpg'); animation-delay: 6s; }
.saison-hiver     { background-image: url('/sites/default/files/hiver.jpg'); animation-delay: 12s; }
.saison-printemps { background-image: url('/sites/default/files/printemps.jpg'); animation-delay: 18s; }
.saison-mer       { background-image: url('/sites/default/files/reseau.jpg'); background-size: 55%; background-position: center; animation-delay: 24s; }

@keyframes saisons {
  0%   { opacity: 1; }
  20%  { opacity: 1; }
  23%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,34,54,0) 0%,
    rgba(14,34,54,0) 50%,
    rgba(14,34,54,.55) 80%,
    rgba(14,34,54,.85) 100%
  );
}

.hero-content {
  position: relative; z-index: 10;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 2rem 4rem;
}

.hero-saison-tag {
  display: inline-block; margin-bottom: 1rem;
  font-size: .68rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--vert2);
  border: 1px solid rgba(110,232,170,.4);
  padding: .3rem .8rem; border-radius: 20px;
  opacity: 0; animation: saisons 30s infinite;
}
.tag-ete        { animation-delay: 0s; }
.tag-automne    { animation-delay: 6s; }
.tag-hiver      { animation-delay: 12s; }
.tag-printemps  { animation-delay: 18s; }
.tag-mer        { animation-delay: 24s; }

.hero-sous-titre {
  font-size: clamp(.9rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.82); font-style: italic;
  margin-bottom: 2rem; max-width: 680px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.hero-badges { display: flex; gap: .8rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(14,34,54,.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px; padding: .45rem 1.1rem;
  font-size: .84rem; color: #fff;
  font-weight: 500;
}

/* ══ BANDE CHIFFRES ══ */
.bande {
  background: var(--vert);
  padding: 1.6rem 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.bande-item { text-align: center; }
.bande-chiffre { font-size: 2rem; font-weight: 900; color: var(--navy); line-height: 1; }
.bande-label { font-size: .75rem; font-weight: 600; color: rgba(14,34,54,.65); text-transform: uppercase; letter-spacing: 1px; }
.bande-sep { width: 1px; height: 40px; background: rgba(14,34,54,.2); }

/* ══ ACTUALITÉS ══ */
.section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label { font-size: .7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: .6rem; }
.section-titre { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 2.5rem; }

.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
}
.news-card {
  background: var(--gris); border-radius: var(--radius);
  padding: 2rem; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border-bottom: 3px solid var(--vert2);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.news-card.featured { background: var(--navy); border-bottom-color: var(--vert2); }
.news-card.featured h2 { color: var(--vert); font-size: 1.3rem; }
.news-card.featured .news-meta { color: rgba(168,255,208,.5); }
.news-card.featured p { color: rgba(255,255,255,.75); }
.news-card.featured .read-more { color: var(--vert2); border-bottom-color: var(--vert2); }
.news-card h2 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.news-card h2 a { color: inherit; }
.news-card h2 a:hover { color: var(--teal); }
.news-meta { font-size: .75rem; color: #7a90a8; margin-bottom: .8rem; }
.news-card p { font-size: .92rem; line-height: 1.65; }
.read-more {
  display: inline-block; margin-top: 1.2rem;
  font-size: .82rem; font-weight: 700; color: var(--teal);
  border-bottom: 2px solid var(--vert2); padding-bottom: 1px;
}

/* Pagination */
.tact-pager { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.tact-pager a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px;
  font-size: .88rem; font-weight: 700;
  background: var(--gris); color: var(--navy);
  transition: background .2s, color .2s;
}
.tact-pager a:hover { background: var(--teal); color: #fff; }

/* ══ AXES DE RECHERCHE ══ */
.axes { background: var(--navy); padding: 5rem 2rem; }
.axes-inner { max-width: 1200px; margin: 0 auto; }
.axes .section-label { color: var(--vert2); }
.axes .section-titre { color: var(--vert); margin-bottom: 2.5rem; }
.axes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.axe-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(168,255,208,.12);
  border-radius: var(--radius); padding: 1.6rem;
  transition: background .2s, border-color .2s;
}
.axe-card:hover { background: rgba(168,255,208,.08); border-color: rgba(168,255,208,.3); }
.axe-num { font-size: 2rem; font-weight: 900; color: rgba(168,255,208,.2); line-height: 1; margin-bottom: .6rem; }
.axe-card h4 { font-size: .98rem; font-weight: 700; color: var(--vert); margin-bottom: .5rem; }
.axe-card p { font-size: .86rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ══ PARTENAIRES ══ */
.partenaires { padding: 4rem 2rem; background: var(--gris); }
.partenaires-inner { max-width: 1200px; margin: 0 auto; }
.partenaires-liste { display: flex; flex-wrap: wrap; gap: .8rem; }
.partenaire-lien {
  display: inline-block;
  background: #fff; border: 1px solid #dde8f5;
  border-radius: 8px; padding: .55rem 1.2rem;
  font-size: .88rem; font-weight: 600; color: var(--navy);
  transition: background .2s, border-color .2s, color .2s;
}
.partenaire-lien:hover { background: var(--navy); color: var(--vert); border-color: var(--navy); }

/* ══ PAGE DE CONTENU ══ */
.tact-page-hero {
  background: linear-gradient(to right, var(--navy) 0%, var(--navy2) 100%);
  padding: 5rem 2rem 2.5rem;
}
.tact-page-hero h1 {
  max-width: 820px; margin: 0 auto;
  font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800;
  color: var(--vert); text-align: center;
}
.tact-page-content { max-width: 820px; margin: 3rem auto; padding: 0 2rem 4rem; }
.tact-page-content h1, .tact-page-content h2 { color: var(--navy); margin: 1.5rem 0 .6rem; }
.tact-page-content h3 { color: var(--teal); margin: 1.2rem 0 .4rem; }
.tact-page-content p { margin-bottom: 1rem; }
.tact-page-content ul, .tact-page-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.tact-page-content li { margin-bottom: .3rem; }
.tact-page-content img { border-radius: var(--radius); margin: 1rem 0; }

/* ══ FOOTER ══ */
.tact-footer {
  background: var(--navy); color: rgba(168,255,208,.6);
  padding: 3rem 2rem; text-align: center;
  font-size: .85rem; line-height: 2;
}
.tact-footer strong { color: var(--vert); font-size: 1rem; }
.tact-footer a { color: var(--vert2); }
.tact-footer a:hover { color: var(--vert); }
.footer-since { display: block; margin-top: .5rem; font-size: .65rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(168,255,208,.25); }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .axes-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .bande-sep { display: none; }
}
@media (max-width: 580px) {
  .axes-grid { grid-template-columns: 1fr; }
}
