* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: #808080;
}

img {
  max-width: 100%;
}

h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: black;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 2px;
  word-spacing: 10px;
}

h2 {
  font-size: 30px;
  font-weight: bold;
  text-transform: uppercase;
}

h3 {
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 500;
}

/* Un sous-titre respire moins qu'un titre, mais il respire. */
h4 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 500;
}

strong {
  color: black;
  font-weight: 600;
}

/* CONTAINER */

.o-container {
  position: relative;
  max-width: 600px;
  padding: 0 20px;
  margin: auto;
}

.o-container--medium {
  max-width: 800px;
}

.o-container--large {
  max-width: 1200px;
}

/* REVEAL ZONE */

.o-reveal-zone {
  position: relative;
  padding: 0 50px;
  margin: 50px -50px;

  transition: height 1s;
}

/*
.o-reveal-zone {
  display: none;
}

.o-reveal-zone--unlock {
  display: block;
}
*/

.o-reveal-zone--hidden {
  height: 60px;
  cursor: pointer;
  overflow: hidden;
  transition: none;
}

.o-reveal-zone::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-image: linear-gradient(
    135deg,
    rgba(215, 227, 243, 0) 25%,
    rgba(215, 227, 243, 1) 25%,
    rgba(215, 227, 243, 1) 50%,
    rgba(215, 227, 243, 0) 50%,
    rgba(215, 227, 243, 0) 75%,
    rgba(215, 227, 243, 1) 75%,
    rgba(215, 227, 243, 1) 100%
  );
  background-size: 56.57px 56.57px;

  color: black;
  text-align: center;

  opacity: 0.5;
  transition: opacity 1s;
  pointer-events: none;
}

.o-reveal-zone--hidden::after {
  content: 'Cliquez ici pour afficher la solution';
  opacity: 1;
  transition: none;
}

.o-reveal-zone--hidden.o-reveal-zone--clue::after {
  content: 'Cliquez ici pour afficher une aide';
}

.o-reveal-zone--hidden.o-reveal-zone--ideas::after {
  content: 'Cliquez ici pour afficher des réponses';
}

.o-reveal-zone > * {
  opacity: 1;
  transition: opacity 1s 1s;
}

.o-reveal-zone--hidden > * {
  opacity: 0;
  transition: none;
}

.o-reveal-zone > div {
  border: 1px solid transparent;
}

.o-reveal-zone > div::before {
  content: '';
  display: block;
  margin-bottom: 50px;
}

.o-reveal-zone > div::after {
  content: '';
  display: block;
  margin-top: 50px;
}

@media (max-width: 660px) {
  .o-reveal-zone {
    padding: 0 20px;
    margin: 50px -20px;
  }
}

/* FIGURE */

.o-figure {
  position: relative;
  margin: 50px 0;
  padding: 20px;
  background: white;
  border: 1px solid var(--brand-dark);
}

.o-figure > img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.o-figure__caption {
  display: block;
  font-size: 12px;
  text-align: center;
  color: #666666;
}

.o-figure__download {
  position: absolute;
  right: 15px;
  bottom: 0;

  transform: translateY(50%);
}

.o-figure__button {
  margin: 0 5px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--brand-dark);

  font-size: 12px;
  color: white;
  text-decoration: none;

  opacity: 0;
  transition: opacity 1s;
}

.o-figure:hover .o-figure__button,
.o-figure__button:focus {
  opacity: 1;
}

.o-figure__button:hover,
.o-figure__button:focus {
  background: var(--brand);
}

/* LIGHTBOX
   Certains arbres sont trop grands pour rester lisibles à la taille de la
   page. Un clic les ouvre en plein écran, un second les affiche à leur
   taille réelle et permet alors de se déplacer dedans. */

.o-figure > img {
  cursor: zoom-in;
}

/* Dans une zone repliée, le clic sert d'abord à révéler la solution. */
.o-reveal-zone--hidden .o-figure > img {
  cursor: pointer;
}

.c-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  overflow: auto;

  background: rgba(0, 26, 58, 0.92);
  cursor: zoom-out;
}

.c-lightbox[hidden] {
  display: none;
}

.c-lightbox__image {
  max-width: 100%;
  max-height: 100%;

  padding: 10px;
  background: white;
  cursor: zoom-in;
}

.c-lightbox--zoomed {
  justify-content: flex-start;
  align-items: flex-start;
}

.c-lightbox--zoomed .c-lightbox__image {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.c-lightbox__close {
  position: fixed;
  top: 12px;
  right: 16px;

  width: 40px;
  height: 40px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;

  font-size: 24px;
  line-height: 1;
  color: white;
  cursor: pointer;
}

.c-lightbox__close:hover,
.c-lightbox__close:focus {
  background: white;
  color: var(--brand-dark);
}

/* Un appel à l'action dans le corps d'une page. */
.o-button {
  display: block;
  width: fit-content;
  margin: 40px auto;
  padding: 16px 32px;
  border: 0;
  cursor: pointer;
  font-family: inherit;

  background: var(--brand-dark);
  border-radius: 6px;

  color: white;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;

  transition: background 0.3s;
}

.o-button:hover,
.o-button:focus {
  background: var(--brand);
}

/* Un schéma dessiné à la main dans la page, qui suit la largeur disponible
   plutôt qu'une taille fixe. */
.o-schema {
  display: block;
  width: 100%;
  height: auto;
}

/* CODE
   Aucun style jusqu'ici : les rares extraits vivaient dans une figure. Un
   cours de HTML en est fait, il leur fallait leur place. */

code {
  font-family: Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  margin: 30px 0;
  padding: 16px 20px;

  border-left: 4px solid var(--brand-dark);
  background: var(--brand-tint);
}

pre code {
  font-size: 14px;
  line-height: 1.7;
}

/* INSPECTEUR
   Le mode « sous le capot » : l'élément survolé s'entoure d'un trait et
   s'annonce sous le curseur. */

.c-inspecteur {
  position: fixed;
  z-index: 100;
  /* L'étiquette ne doit jamais devenir la cible du survol. */
  pointer-events: none;

  padding: 4px 8px;
  border-radius: 4px;
  background: var(--brand-dark);

  color: white;
  font-family: Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
}

.o-inspecteur-cible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

body.is-inspecting,
body.is-inspecting * {
  cursor: crosshair;
}

/* INSTRUCTION */

.o-instruction {
  padding: 0 20px;
  margin: 20px 0;
  border: 1px solid currentColor;
  background: var(--brand-pale);
  color: var(--brand-deep);
}

.o-instruction p {
  margin: 0;
}

.o-instruction--teacher {
  background: var(--accent-pale);
  color: var(--accent-dark);
}

.o-instruction::before {
  content: '';
  display: block;
  margin-bottom: 20px;
}

.o-instruction::after {
  content: '';
  display: block;
  margin-top: 20px;
}

.o-instruction__title {
  font-weight: 600;
  text-transform: uppercase;
}

/* ANSWER
   Composants de copie. Ils n'ont de sens que sur un sujet imprimé : des
   lignes pour rédiger, des cases à cocher, et une zone à dessiner. */

.o-answer {
  margin: 20px 0 30px;
}

.o-answer__line {
  height: 32px;
  border-bottom: 1px solid var(--brand-rule);
}

.o-choices {
  margin: 15px 0 25px;
  padding: 0;
  list-style: none;
}

.o-choices li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 34px;
}

.o-choices li::before {
  content: '';
  position: absolute;
  top: 0.15em;
  left: 0;

  width: 18px;
  height: 18px;
  border: 1px solid var(--brand-deep);
  background: white;
}

.o-draw {
  margin: 20px 0;
  min-height: 320px;
  border: 1px dashed var(--brand-dash);
}

/* Une question et sa zone de réponse forment un tout : à l'impression elles
   ne doivent jamais se retrouver de part et d'autre d'une coupure de page. */
.o-question {
  margin-bottom: 30px;
}

/* TOP BAR */

.c-top-bar {
  padding: 20px 0;
}

.c-top-bar__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.c-top-bar__title {
  flex: none;
  margin: 0;

  color: black;
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 900;
  white-space: nowrap;
}

.c-top-bar__title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: inherit;
  font: inherit;
  text-decoration: none;
}

/* Hauteur des deux lignes réunies, exprimée dans l'em du titre : 1.05 pour le
   nom, plus 13/24 × 1.05 pour l'auteur. « align-self: stretch » ne convient
   pas, le logo garderait sa taille intrinsèque et dicterait la hauteur. */
.c-top-bar__logo {
  flex: none;
  height: 1.62em;
  aspect-ratio: 1;
}

.c-top-bar__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.c-top-bar__names {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.c-top-bar__author {
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
}

.c-top-bar__title a:hover,
.c-top-bar__title a:focus {
  color: var(--brand);
}

.c-top-bar__baseline {
  max-width: 400px;
  text-align: right;
  line-height: 1.3;
}

.c-top-bar__baseline strong {
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .c-top-bar__content {
    flex-direction: column;
  }

  .c-top-bar__title,
  .c-top-bar__baseline {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .c-top-bar__baseline {
    margin-top: 20px;
  }
}

/* SECTION */

.c-section {
}

/* Le temps que coûte une section, annoncé avant son titre. */
.c-section__eyebrow {
  margin: 0 0 10px;
  /* Pas de capitales : « 1h30 » s'écrirait « 1H30 ». */
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
}

.c-section__content::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: 50px;
}

.c-section__content::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 50px;
}

.c-section--odd {
  background: #f2f3f7;
}

/* Même traitement que la boîte d'un document : pas de couleur, un trait. */
.c-section--document {
  border-bottom: 1px solid black;
}

.c-section--blue {
  background-color: var(--brand);
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    transparent 10%,
    transparent 90%,
    rgba(0, 0, 0, 0.1)
  );
  color: white;
}

.c-section--yellow {
  background-color: var(--accent);
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    transparent 10%,
    transparent 90%,
    rgba(0, 0, 0, 0.1)
  );
  color: white;
}

.c-section__title {
  margin-bottom: 50px;
  text-align: center;
}

/* Ce que la section apporte, sous son titre. */
.c-section__intro {
  max-width: 780px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Sur une bande colorée, l'annonce se pose en blanc adouci plutôt qu'en
   couleur de marque, qui s'y perdrait. */
.c-section__eyebrow--sur-fond {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.c-section--document .c-section__eyebrow--sur-fond {
  color: #666666;
}

/* Le titre d'une leçon, quelle que soit la bande qui le porte. */
.c-section--yellow .c-section__title,
.c-section--blue .c-section__title,
.c-section--document .c-section__title {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  font-weight: 900;
}

.c-section--yellow .c-section__title,
.c-section--blue .c-section__title {
  color: white;
}

/* Un document n'a pas de fond coloré : son titre s'écrit en noir. */
.c-section--document .c-section__title {
  color: black;
}

/* Le titre porte 50px de marge basse : on la réduit quand un bouton le suit,
   pour que les deux se lisent comme un même bloc. */
.c-section__title--with-meta {
  margin-bottom: 20px;
}

/* Les pastilles de l'en-tête d'une leçon, sur la bande colorée. */
.c-section__tags {
  margin: 0 0 20px;
  text-align: center;
}

.c-section__action {
  margin: 0;
  text-align: center;
}

.c-section__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border: 1px solid currentColor;
  border-radius: 5px;

  color: white;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;

  transition: all 0.5s;
}

/* L'icône suit la couleur du bouton, qui s'inverse au survol, et sa taille
   suit celle du texte. */
.c-section__icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

.c-section__button + .c-section__button {
  margin-left: 12px;
}

.c-section__button:hover,
.c-section__button:focus {
  background-color: white;
  color: var(--brand-dark);
}

/* BOX LIST */

.c-box-list {
  display: grid;
  /* Les colonnes ne s'étirent pas : à deux leçons, la ligne resterait sinon
     écartelée aux deux bords, et l'on croirait qu'il en manque une. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
  justify-content: center;
  grid-gap: 20px;
  align-items: stretch;

  margin: 0;
  padding: 0;
  list-style: none;
}

.c-box-list__item {
  height: 100%;
}

/* BOX LIST */

.c-box {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: var(--accent);

  font-family: 'Playfair Display', Georgia, serif;
  color: black;
  text-decoration: none;

  box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s;
}

.c-box:any-link:hover,
.c-box:focus {
  transform: translate(0, -20px);
}

@media (max-width: 700px) {
  .c-box:any-link:hover,
  .c-box:focus {
    transform: translate(0, 0);
  }
}

.c-box--blue {
  background: var(--brand);
}

.c-box--yellow {
  background: var(--accent);
}

/* Un document n'est pas une leçon : il ne se lit pas, il s'ouvre. Sa boîte
   sort donc de la palette et se contente d'un trait. */
.c-box--document {
  background: transparent;
  border: 1px solid black;
  box-shadow: none;
}

.c-box--document .c-box__title {
  color: black;
}

.c-box--document .c-box__action {
  background: transparent;
  border-top: 1px solid black;
}

.c-box__top {
  display: flex;
  flex-direction: column;
  flex: auto;
  padding: 20px 30px;
}

.c-box__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 20px;

  color: #fff;
  text-align: center;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

/* La nature d'une leçon, dessinée à la taille du texte qui la nomme. */
.o-icon {
  flex: none;
  width: 0.8em;
  height: 0.8em;
  vertical-align: -0.08em;
}

/* Posée au-dessus d'un titre plutôt qu'avant lui, l'icône a la place de se
   faire voir. */
.o-icon--big {
  width: 1.4em;
  height: 1.4em;
}

/* Le titre d'une leçon porte son icône au-dessus, comme la carte d'où l'on
   vient. Le sélecteur vise l'élément : la même classe habille aussi, sur
   l'accueil, la boîte qui contient un titre de section et son texte. */
h1.c-section__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.c-box__description {
  margin: 10px 0;
}

.c-box__details {
  margin-top: auto;
  padding-top: 20px;
  line-height: 42px;
}

.o-tag {
  display: inline-block;
  vertical-align: bottom;
  height: 38px;
  line-height: 38px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.1);

  color: black;
  font-size: 14px;
  font-family: sans-serif;
  text-align: center;
}

/* Une leçon pas encore publiée, signalée sur la page des brouillons. */
.o-tag--statut {
  background: black;
  color: white;
  font-weight: 600;
}

.o-tag img {
  display: inline-block;
  vertical-align: sub;
  width: 16px;
  margin-right: 2px;
}

.c-box__action {
  position: relative;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.1);
}

.c-box__button {
  display: inline-block;
  padding: 5px 20px;
  /* « Commencer les exercices » passe à la ligne dans une carte de 300px :
     centré, cela reste une étiquette et pas un accident. */
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 5px;

  color: rgba(0, 0, 0, 0.8);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;

  transition: all 0.5s;
}

.c-box:hover .c-box__button,
.c-box:focus .c-box__button {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.c-box__duration {
  position: absolute;
  right: 20px;
  top: 20px;

  color: white;
  font-family: sans-serif;
}

/* BOTTOM NAV */

.c-bottom-nav {
  position: relative;
  z-index: 10;
  margin: 50px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-bottom-nav__previous {
  margin-right: auto;
}

.c-bottom-nav__next {
  margin-left: auto;
}

/* FOOTER
   Copie du footer de tzi.fr (src/styles/components/site-footer.scss).
   Trois écarts assumés : le fond reprend les bleus du cours, les « rem » sont
   convertis en pixels (la racine vaut 20px là-bas et 16px ici, tout rendait
   20 % plus petit), et la typographie héritée est remise à celle de tzi.fr,
   le corps du cours étant en 300 et en interligne 1.75.
   ⚠️ Toute retouche ici doit être reportée là-bas, et réciproquement. */
@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  src: local('Bungee'), local('Bungee-Regular'),
    url(/_assets/font/bungee.woff2) format('woff2');
}

.c-site-footer {
  padding: 48px 0 24px;
  background:
    linear-gradient(180deg, var(--brand-veil) 0, transparent 120px),
    linear-gradient(135deg, var(--brand-deep) 0, var(--brand-dark) 100%);
  color: white;
  font-weight: 400;
  line-height: 1.5;
}

/* Le conteneur du cours est plus étroit et moins margé que celui de tzi.fr :
   on reprend les mesures de l'original pour que le footer cadre pareil. */
.c-site-footer > .o-container {
  max-width: 1280px;
  padding: 0 40px;
}

/* Le corps du cours donne une marge haute aux paragraphes, pas celui de
   tzi.fr. Sans ça le footer gagne 24px en tête, et « Expert CSS », qui est un
   paragraphe, descend de 20px sous les titres des autres colonnes. */
.c-site-footer p {
  margin-top: 0;
}

.c-site-footer__grid {
  display: grid;
  align-items: start;
  gap: 32px;
}

@media (min-width: 720px) {
  .c-site-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (min-width: 960px) {
  .c-site-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.c-site-footer__column {
  min-width: 0;
}

.c-site-footer__column--intro {
  max-width: 560px;
}

.c-site-footer__eyebrow {
  margin-bottom: 15px;
  color: var(--brand-light);
  font-family: 'Bungee', cursive;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
}

.c-site-footer__eyebrow--main {
  color: white;
  font-size: 24px;
}

.c-site-footer__lead {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.c-site-footer__lead a:not([class]) {
  color: white;
  text-decoration: none;
}

.c-site-footer__lead a:hover:not([class]),
.c-site-footer__lead a:focus:not([class]) {
  color: var(--brand-light);
  text-decoration: underline;
}

/* h2 du cours impose capitales, interlettrage et espacement des mots : le
   titre de colonne s'en détache pour rendre comme sur tzi.fr. */
.c-site-footer__title {
  margin: 0 0 20px;
  color: var(--brand-light);
  font-family: 'Bungee', cursive;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
  word-spacing: 0;
  text-transform: none;
}

.c-site-footer__list {
  margin: 0;
  padding: 0;

  list-style: none;
  font-size: 16px;
  line-height: 1;
}

.c-site-footer__list li + li {
  margin-top: 8px;
}

.c-site-footer__list a,
.c-site-footer__meta a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-bottom-color 0.3s;
}

.c-site-footer__list a:hover,
.c-site-footer__list a:focus,
.c-site-footer__meta a:hover,
.c-site-footer__meta a:focus {
  color: var(--brand-light);
  border-bottom-color: currentColor;
}

.c-site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.c-site-footer__small {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.5;
}

/* PRINT */

@media print {
  .c-top-bar,
  .c-bottom-nav,
  .c-site-footer {
    display: none;
  }

  .c-section {
    color: black;
    background: none;
  }
  .c-section .c-section__title {
    color: black;
    margin-bottom: 20px;
  }
  /* Le chapeau : pourquoi lire ce cours, et ce qu'il représente. */
.c-chapeau {
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 1.6;
  color: black;
}

.c-chapeau__chiffres {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666666;
}

.c-section__content::before {
    margin-bottom: 20px;
  }
  .c-section__content::after {
    margin-top: 20px;
  }

  .o-instruction {
    color: black;
    background: none;
    page-break-inside: avoid;
    page-break-after: always;
  }

  .o-instruction--no-page-break {
    page-break-after: initial;
  }

  .c-section__action,
  .c-lightbox {
    display: none !important;
  }

  .o-container {
    max-width: none;
  }

  /* Sujets d'examen : de quoi écrire et dessiner sur le papier. */
  .o-answer__line {
    height: 0.95cm;
  }

  /* La zone de tracé occupe seule sa page : autant la remplir. */
  .o-draw {
    min-height: 12cm;
    page-break-inside: avoid;
  }

  .o-question {
    page-break-inside: avoid;
    margin-bottom: 18px;
  }

  /* Un peu plus dense sur le papier : sans cela une question bascule seule
     sur la page suivante et le sujet gagne une page pour rien. */
  .o-choices {
    margin: 10px 0 15px;
  }

  .o-choices li {
    margin-bottom: 7px;
  }

  .u-new-page {
    page-break-before: always;
  }

  h1,
  h2,
  h3,
  h4 {
    margin-top: 20px;
    margin-bottom: 20px;
    page-break-after: avoid;
  }

  /* SOLUTIONS
     À l'écran, le JS replie toutes les zones (o-reveal-zone--hidden) et fige une
     hauteur inline au clic. Sur papier il n'y a pas de clic possible : on déplie
     tout, y compris les zones que personne n'a ouvertes. Le !important est requis
     pour passer devant la hauteur inline posée par le script. */
  .o-reveal-zone,
  .o-reveal-zone--hidden {
    height: auto !important;
    overflow: visible;
    page-break-inside: avoid;

    padding: 0 15px;
    margin: 20px 0;
    border-left: 3px solid var(--brand-dark);
  }

  .o-reveal-zone > *,
  .o-reveal-zone--hidden > * {
    opacity: 1 !important;
  }

  /* Le fond hachuré et l'invite « Cliquez ici… » n'ont aucun sens imprimés. */
  .o-reveal-zone::after,
  .o-reveal-zone--hidden::after,
  .o-reveal-zone--hidden.o-reveal-zone--clue::after,
  .o-reveal-zone--hidden.o-reveal-zone--ideas::after {
    content: none;
  }

  /* On garde malgré tout un repère : le lecteur doit voir d'un coup d'œil
     qu'il s'agit d'une solution et non de la suite de l'énoncé. */
  .o-reveal-zone::before {
    content: 'Solution';
    display: block;
    margin-bottom: 10px;

    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-dark);
  }

  .o-reveal-zone--clue::before {
    content: 'Aide';
  }

  .o-reveal-zone--ideas::before {
    content: 'Réponses';
  }

  /* Les deux cales de 50px servent au dépliage animé, inutiles sur papier. */
  .o-reveal-zone > div::before {
    margin-bottom: 10px;
  }

  .o-reveal-zone > div::after {
    margin-top: 10px;
  }

  /* FIGURES */

  .o-figure {
    page-break-inside: avoid;
  }

  /* Boutons PNG / XML / « Agrandir et modifier » ajoutés par le JS. */
  .o-figure__download {
    display: none;
  }

  /* LIENS
     Un lien externe imprimé sans son URL n'est pas suivable. */
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 11px;
    color: #666666;
    word-break: break-all;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }
}
