/* Portail d'impression — Cégep de Victoriaville
   Feuille commune à index.html (choix du service) et non-disponible.html
   (accès réservé). Couleurs et polices : marque/tokens.css et marque/polices.css */

@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 200 700;
  font-display: swap; src: url('Oswald-latin.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: 'Oswald'; font-style: normal; font-weight: 200 700;
  font-display: swap; src: url('Oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 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: 'Libre Franklin'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url('LibreFranklin-latin.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: 'Libre Franklin'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url('LibreFranklin-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 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;
}

:root {
  --cv-lime:          #ccdb00;
  --cv-fond:          #f6f6f6;
  --cv-surface:       #ffffff;
  --cv-bordure:       #d0d0d0;
  --cv-texte:         #110304;
  --cv-texte-attenue: #636466;
  --cv-lien:          #2b8132;
  --cv-lien-survol:   #266829;
  --cv-focus:         #502283;
  /* Bloc d'action plein. Le blanc sur #2b8132 donne 4,90:1, sur #266829
     6,78:1 : les deux états passent AA en texte de taille normale. */
  --cv-action-fond:        #2b8132;
  --cv-action-fond-survol: #266829;
  --cv-action-texte:       #ffffff;
  --cv-police-titre: 'Oswald', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --cv-police-texte: 'Libre Franklin', 'Open Sans', -apple-system,
                     BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cv-fond:          #140c0d;
    --cv-surface:       #1c1416;
    --cv-bordure:       #3d3334;
    --cv-texte:         #f7fbf7;
    --cv-texte-attenue: #b3b3b3;
    --cv-lien:          #a4d1a8;
    --cv-lien-survol:   #ccdb00;
    --cv-focus:         #ccdb00;
    /* Le vert plein s'inverse : fond clair, texte foncé. 11,8:1 et 13,2:1. */
    --cv-action-fond:        #a4d1a8;
    --cv-action-fond-survol: #ccdb00;
    --cv-action-texte:       #110304;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; padding: 1.5rem; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--cv-fond); color: var(--cv-texte);
  font-family: var(--cv-police-texte); font-size: 1rem; line-height: 1.6;
}

.carte {
  width: 100%; max-width: 36rem;
  background: var(--cv-surface);
  border: 1px solid var(--cv-bordure);
  border-top: 6px solid var(--cv-lime);   /* lime : décoratif, jamais du texte */
  border-radius: 2px; overflow: hidden;
}

/* La signature n'existe qu'en version pour fond pâle : plage blanche même
   en thème sombre. Si le PNG manque, la plage reste simplement vide. */
.marque {
  background: #ffffff; padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--cv-bordure);
}
.signature {
  width: 180px; height: 76px;
  background: url('cegep-victoriaville-logo.png') no-repeat left center;
  background-size: contain;
}

.contenu { padding: 2rem; }

h1 {
  margin: 0 0 1.25rem;
  font-family: var(--cv-police-titre); font-weight: 300;
  font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em;
  text-transform: uppercase; text-wrap: balance;
}
h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--cv-police-titre); font-weight: 300;
  font-size: 1.125rem; line-height: 1.2; letter-spacing: -0.02em;
  text-transform: uppercase;
}

p  { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.25rem; }
li { margin-bottom: 0.75rem; }
li:last-child { margin-bottom: 0; }

.note {
  margin: 2rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid var(--cv-bordure);
  color: var(--cv-texte-attenue); font-size: 0.875rem;
}

a { color: var(--cv-lien); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--cv-lien-survol); }

:focus-visible { outline: 3px solid var(--cv-focus); outline-offset: 2px; }

@media (max-width: 30rem) {
  .marque  { padding: 1.25rem; }
  .contenu { padding: 1.5rem 1.25rem; }
  h1 { font-size: 1.5rem; }
}

/* ------------------------------------------------------------------ */
/* Page de choix du service (index.html)                               */
/* ------------------------------------------------------------------ */

.carte--choix { max-width: 48rem; }

.intro {
  margin: 0 0 2rem;
  color: var(--cv-texte-attenue);
  text-wrap: pretty;
}

.choix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choix > li { margin: 0; display: flex; }

/* La tuile entière est le lien : pas de « cliquez ici », la cible fait
   toute la surface. Le bloc vert à l'intérieur est décoratif — un span,
   pas un second élément cliquable. */
.tuile {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.5rem;
  background: var(--cv-fond);
  border: 1px solid var(--cv-bordure);
  border-radius: 2px;
  color: inherit;
  text-decoration: none;
}

.tuile:hover { border-color: var(--cv-action-fond); }

.tuile-titre {
  font-family: var(--cv-police-titre);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.tuile-desc {
  margin: 0.75rem 0 1.5rem;
  color: var(--cv-texte-attenue);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

.tuile-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.75rem 1rem;
  background: var(--cv-action-fond);
  color: var(--cv-action-texte);
  border-radius: 2px;
  font-family: var(--cv-police-titre);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tuile:hover .tuile-action { background: var(--cv-action-fond-survol); }

.tuile-fleche { flex: none; font-size: 1.15em; line-height: 1; }

@media (prefers-reduced-motion: no-preference) {
  .tuile, .tuile-action { transition: border-color 120ms, background-color 120ms; }
}

@media (max-width: 30rem) {
  .tuile { padding: 1.25rem; }
}
