/* ====== Latin Modern (auto-hébergée) ======
Placez les .woff2 dans assets/fonts/ (noms ci-dessous).
Vous pouvez convertir les .otf en .woff2 avec woff2_compress.
*/
@font-face {
  font-family: "Latin Modern";
  src: url("fonts/lmroman-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Latin Modern";
  src: url("fonts/lmroman-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Latin Modern";
  src: url("fonts/lmroman-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Latin Modern";
  src: url("fonts/lmroman-bolditalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
/* Optionnel : monospace */
@font-face {
  font-family: "Latin Modern Mono";
  src: url("fonts/lmmono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #0f1320;
  --bg-alt:#121729;
  --text: #e8ecf1;
  --muted:#a8b3c2;
  --brand:#6ea8fe;
  --card:#151b2f;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: "Latin Modern", "Times New Roman", Times, serif;
  line-height:1.7;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{width:min(1100px, 92vw); margin-inline:auto}

.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(17,21,38,.75);
  backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:12px 0}
.brand{font-weight:800; text-decoration:none; color:var(--text); letter-spacing:.2px}
.site-header nav a{color:var(--muted); text-decoration:none; margin-left:18px; font-weight:600}
.site-header nav a:hover{color:var(--text)}

.hero{padding:84px 0 64px}
.hero-inner{ text-align:center}
.hero h1{font-size: clamp(32px, 5vw, 54px); line-height:1.05; margin:0 0 8px}
.hero p{color:var(--muted); margin:0 0 22px}
.cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}

.btn{
  display:inline-block; padding:12px 18px; border-radius:12px;
  background: var(--brand); color:#0b1020; text-decoration:none; font-weight:800;
  box-shadow: var(--shadow);
}
.btn:hover{filter:brightness(1.05)}
.btn.ghost{background:transparent; color:var(--text); border:1px solid rgba(255,255,255,.22); box-shadow:none}
.btn.small{padding:8px 12px; border-radius:10px; font-weight:700}

.section{padding:48px 0}
.section.alt{background: rgba(255,255,255,.02)}
.section-title{font-size:24px; margin:0 0 18px}

.grid{
  display:grid; gap:18px;
  grid-template-columns: repeat(12, 1fr);
}
.card{
  grid-column: span 12; padding:18px; border-radius:16px; background: var(--card); box-shadow: var(--shadow);
}
.card h3{margin:6px 0 6px}
.card p{color:var(--muted); margin:0 0 12px}
.card .actions{display:flex; gap:10px; flex-wrap:wrap}

@media(min-width:700px){
  .card{grid-column: span 6}
}
@media(min-width:980px){
  .card{grid-column: span 4}
}

.list{margin:0; padding-left:18px}
.list li{margin:6px 0}
.list a{color:var(--brand); text-decoration:none}
.list a:hover{text-decoration:underline}

.site-footer{border-top:1px solid rgba(255,255,255,.08); padding:24px 0; color:var(--muted)}

code, pre, kbd, samp{
  font-family: "Latin Modern Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* === Liens harmonisés (Visité = Normal) === */
:root {
  --link-color:  #7dd3fc;  /* Cyan clair (base et visité) */
  --link-hover:  #bfe6ff;  /* Plus clair (au survol) */
}

/* 1. État de base ET Visité */
a,
a:visited,
.site-header nav a,
.site-header nav a:visited,
.list a,
.list a:visited,
.grid .card a,
.grid .card a:visited {
  color: var(--link-color) !important;
  text-decoration: none !important; /* Pas de soulignement par défaut */
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

/* 2. État Survol et Actif */
a:hover,
a:active,
.site-header nav a:hover,
.list a:hover,
.grid .card a:hover {
  color: var(--link-hover) !important;
  text-decoration: none !important; /* <--- CORRECTION ICI (était underline) */
}

/* Accessibilité (Focus clavier) */
a:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Titres cliquables */
.card h3 a,
.section-title a,
.card h3 a:visited,
.section-title a:visited {
  color: var(--link-color) !important;
  text-decoration: none !important;
}

.card h3 a:hover,
.section-title a:hover {
  color: var(--link-hover) !important;
  text-decoration: none !important; /* <--- CORRECTION ICI AUSSI */
}

/* Grille 2 colonnes dans la section Colles */
.colles-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(260px,1fr);
  gap:2rem;
  align-items:start;
}
@media (max-width: 900px){
  .colles-grid{ grid-template-columns:1fr; }
}

/* Tableau calendrier compact sur fond sombre */
.table-calendar{
  width:100%;
  border-collapse:collapse;
  font-size:.95rem;
  line-height:1.2;
}
.table-calendar th,
.table-calendar td{
  border:1px solid rgba(255,255,255,.12);
  padding:.45rem .6rem;
}
.table-calendar thead th{
  position:sticky; top:0;
  background:rgba(255,255,255,.06);
  backdrop-filter:saturate(120%) blur(2px);
}
.table-calendar td.date{ white-space:nowrap; }
.table-calendar td.week{
  text-align:center;
  font-variant-numeric:tabular-nums;
}

