/* polices du site, servies localement */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/playfair-display-latin-ext-400-900.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/playfair-display-latin-400-900.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/jost-latin-ext-400-800-i.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/jost-latin-400-800-i.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/jost-latin-ext-400-800.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/jost-latin-400-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --vie-bg: #F2F6F0;
  --vie-surface: #E0EBE4;
  --vie-text: #2B1B10;
  --vie-muted: #5B4636;
  --vie-accent: #8A3D1B;
  --vie-accent2: #2F6F62;
  --vie-on-accent: #FFFFFF;
  --vie-rule: #9DB5A9;
  --vie-radius-media: 2rem;
  --vie-measure: 68ch;
  --vie-gutter: clamp(1.25rem, 5vw, 4rem);
  --vie-serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --vie-sans: "Jost", "Century Gothic", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--vie-bg);
  color: var(--vie-text);
  font-family: var(--vie-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--vie-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--vie-text); }

:focus-visible {
  outline: 3px solid var(--vie-accent2);
  outline-offset: 3px;
}

/* En-tête */
.vie-entete {
  background: var(--vie-bg);
  padding: 1rem var(--vie-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.vie-marque {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--vie-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vie-text);
  text-decoration: none;
}
.vie-marque svg { width: 2.25rem; height: 2.25rem; flex: none; }

.vie-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.vie-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--vie-text);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  background-image: linear-gradient(var(--vie-accent2), var(--vie-accent2));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
.vie-nav a:hover { background-size: 100% 2px; color: var(--vie-text); }

/* Premier écran */
.vie-ouverture {
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--vie-gutter) clamp(2.5rem, 6vw, 5rem);
}

.vie-titre-geant {
  font-family: var(--vie-serif);
  font-weight: 800;
  font-size: clamp(2.5rem, 10.5vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  color: var(--vie-text);
}

.vie-ouverture-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
}

.vie-chapeau {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  max-width: 44ch;
  margin: 0 0 1.75rem;
}

.vie-vignette {
  margin: 0;
  overflow: hidden;
  border-radius: var(--vie-radius-media);
  background: var(--vie-surface);
  max-width: 420px;
}
.vie-vignette svg { display: block; width: 100%; height: auto; }
.vie-vignette figcaption {
  padding: 0.75rem 1.25rem 1rem;
  font-size: 0.95rem;
  color: var(--vie-muted);
}

.vie-reperes {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--vie-surface);
}
.vie-reperes > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0.9rem 1.25rem;
  gap: 0.1rem;
}
.vie-reperes > div + div { border-top: 1px solid var(--vie-rule); }
.vie-reperes dt { font-weight: 600; color: var(--vie-muted); font-size: 0.98rem; }
.vie-reperes dd { margin: 0; font-family: var(--vie-serif); font-size: 1.35rem; font-weight: 700; }

/* Main et sections */
.vie-principal { display: block; }

.vie-section {
  padding: clamp(2.5rem, 6vw, 5rem) var(--vie-gutter);
}
.vie-section--teinte { background: var(--vie-surface); }

.vie-section-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.vie-section h2 {
  font-family: var(--vie-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0;
  color: var(--vie-text);
}

.vie-section h3 {
  font-family: var(--vie-serif);
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}

.vie-texte { min-width: 0; max-width: var(--vie-measure); }
.vie-texte--large { max-width: none; }
.vie-texte > p { margin: 0 0 1.15rem; }
.vie-texte > p:last-child { margin-bottom: 0; }

/* Listes de définitions */
.vie-definitions {
  margin: 1.5rem 0;
  padding: 0;
}
.vie-definitions > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--vie-rule);
}
.vie-definitions > div:last-child { border-bottom: 1px solid var(--vie-rule); }
.vie-definitions dt {
  font-family: var(--vie-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--vie-accent2);
}
.vie-definitions dd { margin: 0; }
.vie-section--teinte .vie-definitions > div { border-color: #8EA89B; }

/* Tableaux */
.vie-tableau-defil {
  overflow-x: auto;
  margin: 1.5rem 0;
  max-width: 100%;
}
.vie-tableau {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: var(--vie-bg);
  font-size: 1rem;
  line-height: 1.5;
}
.vie-tableau caption {
  text-align: left;
  font-weight: 600;
  color: var(--vie-muted);
  padding: 0 0 0.6rem;
}
.vie-tableau th, .vie-tableau td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--vie-rule);
}
.vie-tableau thead th {
  background: var(--vie-accent2);
  color: var(--vie-on-accent);
  font-weight: 600;
  border-bottom: 0;
}
.vie-tableau tbody th { font-weight: 600; color: var(--vie-text); }
.vie-section--teinte .vie-tableau { background: var(--vie-bg); }

/* Encadré */
.vie-encadre {
  margin: 1.75rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--vie-bg);
  border-left: 6px solid var(--vie-accent);
}
.vie-section--teinte .vie-encadre { background: var(--vie-bg); }
.vie-encadre p { margin: 0; }
.vie-encadre strong { font-family: var(--vie-serif); }

/* Deux colonnes droits / devoirs */
.vie-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 3rem;
}
.vie-duo > div { min-width: 0; }
.vie-duo h3 { margin-top: 1rem; }

/* Figure générique */
.vie-figure { margin: 1.5rem 0; }
.vie-figure img { display: block; border-radius: var(--vie-radius-media); }
.vie-figure figcaption { font-size: 0.95rem; color: var(--vie-muted); margin-top: 0.5rem; }

/* Liens de lecture */
.vie-suite { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.vie-suite li {
  padding: 1rem 0;
  border-top: 1px solid var(--vie-rule);
}
.vie-suite li:last-child { border-bottom: 1px solid var(--vie-rule); }
.vie-suite a {
  font-family: var(--vie-serif);
  font-weight: 700;
  font-size: 1.25rem;
}
.vie-suite span { display: block; color: var(--vie-muted); font-size: 1rem; }

/* Questions-réponses */
.vie-reponses { margin: 1.5rem 0 0; }
.vie-reponse {
  padding: 1.25rem 0;
  border-top: 1px solid var(--vie-rule);
}
.vie-reponse:last-child { border-bottom: 1px solid var(--vie-rule); }
.vie-reponse h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.vie-reponse p { margin: 0; }

/* Pages secondaires : texte courant et listes */
.vie-liste { margin: 0 0 1.15rem; padding-left: 1.25rem; }
.vie-liste li { margin-bottom: 0.4rem; }

/* Pied */
.vie-pied {
  background: var(--vie-text);
  color: #F2F6F0;
  padding: 2.5rem var(--vie-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 2rem;
  font-size: 1rem;
}
.vie-pied a { color: #F2F6F0; }
.vie-pied a:hover { color: #FFFFFF; }
.vie-pied :focus-visible { outline-color: #FFFFFF; }
.vie-pied-nom { font-family: var(--vie-serif); font-size: 1.4rem; font-weight: 700; margin: 0; }
.vie-pied p { margin: 0; }
.vie-credits { color: #D3DFD8; font-size: 0.95rem; }

/* Écrans larges */
@media (min-width: 760px) {
  .vie-ouverture-grille { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); }
  .vie-vignette { justify-self: end; width: 100%; }
  .vie-reperes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vie-reperes > div + div { border-top: 0; border-left: 1px solid var(--vie-rule); }
  .vie-definitions > div { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
  .vie-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vie-pied { grid-template-columns: 1fr auto auto; align-items: center; }
}

@media (min-width: 960px) {
  .vie-section-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
  .vie-section-grille--plein { grid-template-columns: minmax(0, 1fr); }
  .vie-section-grille--plein .vie-texte { max-width: none; }
}

@media (max-width: 480px) {
  body { font-size: 1.05rem; }
  .vie-entete { padding-top: 0.75rem; }
}

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

/* licencetas-azartspeles-latvija.html */
.vie-titre-page {
  font-family: var(--vie-serif);
  font-weight: 800;
  font-size: clamp(2rem, 6.4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
  max-width: 22ch;
  color: var(--vie-text);
}
