/* Site vitrine de www.vadecarta.fr (ADR 037, CDC technique § 8.3) : la page
   du jeu, la page des territoires et les textes juridiques (confidentialité,
   conditions, suppression du compte), en français et en anglais. Une feuille
   pour toutes les pages. Thème sombre propre à la vitrine : un seul accent
   jaune, titres en Outfit très gras, grandes cartes aux coins arrondis. Les
   écrans reproduisent ceux de l'application, sur leur fond clair. Outfit,
   Lora et Dancing Script (SIL OFL 1.1, polices/OFL.txt) sont servies par le
   site. Les animations s'arrêtent si le système le demande. */

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/polices/outfit-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/polices/outfit-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/polices/outfit-latin-800.woff2") format("woff2");
}

@font-face {
  font-family: Lora;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/polices/lora-latin-400-italique.woff2") format("woff2");
}

@font-face {
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/polices/dancing-script-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/polices/dancing-script-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --fond: #161514;
  --surface: #222020;
  --texte: #f7f5f0;
  --texte-doux: #bdb7ad;
  --jaune: #f6c64e;
  --jaune-sombre: #1c1608;
  /* Les sections claires : un blanc cassé tiré du jaune. */
  --creme: #fdf8ec;
  --filet: rgb(255 255 255 / 0.1);
  --rayon: 1.75rem;
  --ombre: 0 2px 4px rgb(0 0 0 / 0.25), 0 18px 40px rgb(0 0 0 / 0.35);
  --police: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Lora, Georgia, serif;
  --main: "Dancing Script", cursive;
  /* Les écrans de l'application, en thème clair. */
  --app-fond: #fffefa;
  --app-texte: #161514;
  --app-doux: #5c574f;
  --app-filet: #efe8d8;
  --app-sable: #f3eee2;
  --app-anthracite: #4a4640;
  --sepia: #8b6a44;
  --carte-fond: #2e2a26;
  --carte-texte: #f3eee2;
  --carte-doux: #e2c99f;
  --encre: #24425f;
  --cachet: #1f3d5a;
  /* Couleur d'exemple d'un territoire, sur son parcours. */
  --territoire: #2f5d50;
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--jaune);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.accent {
  color: var(--jaune);
}

p {
  margin: 0 0 1em;
}

.enveloppe {
  width: min(76rem, 100% - 2rem);
  margin-inline: auto;
}

.evitement {
  position: absolute;
  left: -100vw;
}

.evitement:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--jaune);
  color: var(--jaune-sombre);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

/* En-tête : le logo, puis les deux pages en encadrés, chacune nommée par
   son public, puis la connexion et la langue en pastilles. Encadrés et
   pastilles partagent le même trait ; ce qui est actif ou ouvert prend le
   jaune. Sur un téléphone, les encadrés passent sur leur propre ligne, côte
   à côte, et les pastilles restent à droite du logo. */

.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-block: 1.5rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--texte);
  text-decoration: none;
}

/* Le nom : « Vade » en graisse normale, « Carta » en gras. */
.vade {
  font-weight: 400;
}

.marque svg {
  width: 2.6rem;
  height: auto;
}

.menu {
  display: flex;
  gap: 0.75rem;
}

.menu a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 13.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 1rem;
  border: 1.5px solid rgb(255 255 255 / 0.14);
  color: var(--texte);
  line-height: 1.3;
  text-decoration: none;
}

.menu a:hover {
  border-color: rgb(255 255 255 / 0.32);
}

.menu b {
  font-weight: 600;
}

.menu span {
  font-size: 0.82rem;
  color: var(--texte-doux);
}

.menu a[aria-current="page"] {
  border-color: var(--jaune);
  background: rgb(246 198 78 / 0.1);
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Les pastilles : connexion et langue, même hauteur, même trait que les
   encadrés du menu. */
.langue,
.connexion summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: var(--texte);
  border: 1.5px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.langue:hover,
.connexion summary:hover {
  border-color: rgb(255 255 255 / 0.32);
  background: var(--surface);
}

/* Connexion : un menu déroulant sans script (details), vers l'espace
   joueur et vers le back-office des territoires partenaires. */
.connexion {
  position: relative;
}

.connexion summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.connexion summary::-webkit-details-marker {
  display: none;
}

/* Le chevron, qui se retourne à l'ouverture. */
.connexion summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin: -0.2rem 0 0 0.1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease, margin 0.15s ease;
}

.connexion[open] summary {
  border-color: var(--jaune);
  background: rgb(246 198 78 / 0.1);
}

.connexion[open] summary::after {
  margin-top: 0.2rem;
  transform: rotate(-135deg);
}

.connexion summary:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
}

.connexion ul {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  width: max-content;
  min-width: 16rem;
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--surface);
  border: 1.5px solid rgb(255 255 255 / 0.14);
  border-radius: 1rem;
  box-shadow: var(--ombre);
}

.connexion li a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.7rem;
  color: var(--texte);
  line-height: 1.3;
  text-decoration: none;
}

.connexion li a:hover {
  background: rgb(246 198 78 / 0.1);
}

.connexion li a:focus-visible {
  outline-offset: -3px;
  border-radius: 0.7rem;
}

.connexion li b {
  font-weight: 600;
}

.connexion li span {
  font-size: 0.82rem;
  color: var(--texte-doux);
}

/* La langue s'écrit en toutes lettres, et en code sur un téléphone. */
.langue-code {
  display: none;
}

@media (max-width: 30rem) {
  .entete {
    column-gap: 0.6rem;
  }

  .marque {
    gap: 0.5rem;
    font-size: 1.35rem;
  }

  .marque svg {
    width: 2.2rem;
  }

  .actions {
    gap: 0.3rem;
    margin-left: auto;
  }

  .langue,
  .connexion summary {
    min-height: 2.4rem;
    padding: 0 0.75rem;
    font-size: 0.9rem;
  }

  .langue-nom {
    display: none;
  }

  .langue-code {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .connexion summary::after {
    transition: none;
  }
}

/* Les encadrés passent sur leur ligne dès que logo, encadrés et pastilles
   ne tiennent plus côte à côte. */
@media (max-width: 62rem) {
  .menu {
    order: 1;
    width: 100%;
  }

  .menu a {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Ouverture */

.ouverture {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.ouverture.portrait {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}

.surtitre {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: 1.25rem;
}

.chapeau {
  font-size: 1.25rem;
  color: var(--texte-doux);
  max-width: 36rem;
}

.bientot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2.25rem;
}

.cachet-bientot {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--jaune-sombre);
  background: var(--jaune);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
}

.cachet-bientot::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--jaune-sombre);
}

.bientot p {
  margin: 0;
  color: var(--texte-doux);
}

/* Le bouton d'appel : écrire à Vade Carta. */
.appel {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--jaune-sombre);
  background: var(--jaune);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
}

.appel:hover {
  background: #f8d272;
}

.appel svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Les téléphones */

.maquette,
.maquette-portrait {
  margin: 0;
}

.maquette figcaption,
.maquette-portrait figcaption,
.face figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--texte-doux);
  text-align: center;
}

.maquette-portrait {
  width: min(100%, 22rem);
  justify-self: center;
}

.telephone {
  background: #050505;
  border: 1px solid #3a3735;
  border-radius: clamp(1.4rem, 4vw, 2.4rem);
  padding: clamp(0.4rem, 1.2vw, 0.7rem);
  box-shadow: var(--ombre), 0 0 0 1px rgb(0 0 0 / 0.6);
}

.telephone.portrait {
  border-radius: clamp(2rem, 9vw, 2.8rem);
  padding: 0.6rem;
}

/* Visée (D3) : la caméra remplit l'écran, la carte postale s'y superpose sur
   toute la hauteur. Les deux images partagent la géométrie de leur
   recadrage : seules les proportions de l'écran la tiennent. Les commandes
   sont celles de l'application, à l'échelle d'un écran de 800 points. */

.ecran {
  position: relative;
  aspect-ratio: 1846 / 972;
  overflow: hidden;
  border-radius: clamp(1rem, 3vw, 1.8rem);
  container-type: inline-size;
  background: #000;
}

.ecran .camera {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecran .ancienne {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  opacity: 0.5;
  animation: fondu 9s ease-in-out infinite;
}

@keyframes fondu {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.12;
  }
}

.visee {
  position: absolute;
  inset: 0;
  color: var(--app-texte);
  font-size: 1.875cqw;
  font-weight: 600;
  line-height: 1.2;
}

.visee svg {
  width: 2.75cqw;
  height: 2.75cqw;
}

.visee-rond {
  position: absolute;
  top: 1.5cqw;
  width: 6cqw;
  height: 6cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0.25cqw solid var(--app-texte);
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}

.visee-quitter {
  left: 1.75cqw;
}

.visee-contraste {
  right: 2.75cqw;
}

.visee-zoom {
  position: absolute;
  right: 12.5cqw;
  top: 12%;
  bottom: 12%;
  width: 6.5cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5cqw;
  padding: 1.25cqw 0;
  border-radius: 3.25cqw;
  border: 0.25cqw solid var(--app-texte);
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}

.visee-zoom .rail {
  position: relative;
  flex: 1;
  width: 0.5cqw;
  border-radius: 1cqw;
  background: #d9d3c7;
}

.visee-zoom .rail::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.25cqw;
  height: 2.25cqw;
  border-radius: 50%;
  background: #e0a82e;
  transform: translate(-50%, 50%);
}

.visee-curseur {
  position: absolute;
  left: 1.75cqw;
  right: 21.5cqw;
  bottom: 1.75cqw;
  min-height: 6.5cqw;
  display: flex;
  align-items: center;
  gap: 1.25cqw;
  padding: 0 2cqw;
  border-radius: 3.5cqw;
  border: 0.25cqw solid var(--app-texte);
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}

.visee-curseur .rail {
  position: relative;
  flex: 1;
  height: 0.5cqw;
  border-radius: 1cqw;
  background: #d9d3c7;
}

.visee-curseur .rail::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.25cqw;
  height: 2.25cqw;
  border-radius: 50%;
  background: #e0a82e;
  transform: translate(-50%, -50%);
  animation: glisse 9s ease-in-out infinite;
}

@keyframes glisse {
  0%,
  100% {
    left: 8%;
  }
  50% {
    left: 92%;
  }
}

.visee-declencheur {
  position: absolute;
  right: 0.875cqw;
  top: 50%;
  width: 9.75cqw;
  height: 9.75cqw;
  border-radius: 50%;
  border: 0.625cqw solid #fff;
  background: var(--jaune);
  box-shadow:
    0 0 0 0.375cqw var(--app-texte),
    0 4px 14px rgb(0 0 0 / 0.35);
  transform: translateY(-50%);
}

/* Écrans en portrait, sur une largeur de 360 points : 1 point vaut
   100 / 360 cqw. Les vignettes montrent les cartes postales entières. */

.ecran-portrait {
  position: relative;
  aspect-ratio: 360 / 800;
  overflow: hidden;
  border-radius: 2.2rem;
  container-type: inline-size;
  background: var(--app-fond);
  color: var(--app-texte);
  line-height: 1.3;
}

/* Une taille en cqw se rapporte au conteneur parent : elle se pose sur les
   enfants de l'écran, et non sur l'écran lui-même. */
.ecran-portrait > * {
  font-size: 4.44cqw;
}

.ecran-portrait svg {
  flex-shrink: 0;
}

/* Le menu du bas, à cinq onglets. */
.app-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22.22cqw;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 2.78cqw 0.56cqw 3.89cqw;
  background: #fff;
  border-top: 1px solid var(--app-filet);
}

.app-onglet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.11cqw;
  font-size: 3.33cqw;
  font-weight: 500;
  color: var(--app-doux);
  white-space: nowrap;
}

.app-onglet .pilule {
  position: relative;
  width: 14.44cqw;
  height: 8.89cqw;
  display: grid;
  place-items: center;
  border-radius: 4.44cqw;
}

.app-onglet svg {
  width: 6.11cqw;
  height: 6.11cqw;
}

.app-onglet.actif {
  color: var(--app-texte);
  font-weight: 600;
}

.app-onglet.actif .pilule {
  background: var(--app-anthracite);
  color: #fff;
}

/* Une pastille jaune : du courrier est arrivé. */
.app-onglet.courrier .pilule::after {
  content: "";
  position: absolute;
  top: 0.83cqw;
  right: 3.33cqw;
  width: 2.5cqw;
  height: 2.5cqw;
  border-radius: 50%;
  background: var(--jaune);
  border: 0.42cqw solid #fff;
}

/* Composants communs aux écrans */

.app-bascule {
  display: flex;
  gap: 0.56cqw;
  padding: 0.56cqw;
  background: var(--app-sable);
  border-radius: 3.33cqw;
}

.app-bascule span {
  min-width: 12.22cqw;
  height: 11.11cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.67cqw;
  border-radius: 2.78cqw;
  color: var(--app-anthracite);
}

.app-bascule svg {
  width: 5cqw;
  height: 5cqw;
}

.app-bascule .actif {
  padding: 0 3.33cqw 0 2.78cqw;
  background: #fff;
  box-shadow: 0 1px 3px rgb(22 21 20 / 0.14);
  color: var(--app-texte);
  font-size: 3.61cqw;
  font-weight: 600;
  white-space: nowrap;
}

.app-bouton {
  min-height: 14.44cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--jaune);
  color: var(--jaune-sombre);
  font-size: 4.44cqw;
  font-weight: 600;
}

.app-bouton.second {
  min-height: 13.33cqw;
  background: none;
  color: var(--app-texte);
  font-size: 4.17cqw;
}

.app-etiquette {
  font-size: 3.33cqw;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sepia);
}

/* Une carte de la collection en petit : le papier sombre, la carte postale,
   son nom et le timbre de sa classe. */
.app-mini {
  display: flex;
  flex-direction: column;
  gap: 1.11cqw;
  aspect-ratio: 300 / 419;
  padding: 1.11cqw;
  border-radius: 2.5cqw;
  background: var(--carte-fond);
  color: var(--carte-texte);
  box-shadow:
    0 1px 2px rgb(22 21 20 / 0.1),
    0 4px 10px rgb(22 21 20 / 0.08);
}

.app-mini img {
  width: 100%;
  aspect-ratio: 1.558;
  object-fit: contain;
  border-radius: 1.39cqw;
  background: #3a3631;
}

.app-mini .nom {
  flex-grow: 1;
  padding: 0 0.56cqw;
  font-size: 3.06cqw;
  font-weight: 600;
  line-height: 1.2;
}

.app-mini .timbre-classe {
  align-self: flex-end;
}

/* Le timbre de la classe de rareté : son sigle, sa couleur, sa dentelure. */
.timbre-classe {
  position: relative;
  width: 6.67cqw;
  height: 8.06cqw;
  display: grid;
  place-items: center;
  background: var(--classe);
  outline: 0.56cqw dotted #fff;
  outline-offset: -0.42cqw;
  color: var(--app-texte);
  font-size: 3.06cqw;
  font-weight: 800;
  line-height: 1;
}

.timbre-classe::before {
  content: "";
  position: absolute;
  inset: 0.83cqw;
  border: 1px solid rgb(22 21 20 / 0.55);
}

.timbre-classe span {
  position: relative;
  padding: 1px 3px;
  border-radius: 2px;
  background: var(--classe);
}

.classe-c {
  --classe: #e6e2da;
}

.classe-pc {
  --classe: #cde6c7;
}

.classe-r {
  --classe: #c7dcf3;
}

/* Carte du jeu (B1) : le plan dessiné, la recherche, la fiche du repère. */

.ecran-portrait .plan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.app-haut {
  position: absolute;
  top: 3.33cqw;
  left: 3.33cqw;
  right: 3.33cqw;
  display: flex;
  gap: 2.22cqw;
}

.app-recherche {
  flex: 1;
  min-height: 13.89cqw;
  display: flex;
  align-items: center;
  gap: 2.78cqw;
  padding: 0 4.44cqw;
  border-radius: 999px;
  background: #fff;
  color: var(--app-doux);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.14);
}

.app-recherche svg {
  width: 5.56cqw;
  height: 5.56cqw;
}

.app-rond {
  width: 13.89cqw;
  height: 13.89cqw;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}

.app-rond svg {
  width: 6.11cqw;
  height: 6.11cqw;
}

.app-carte .app-bascule {
  position: absolute;
  left: 3.33cqw;
  top: 20cqw;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}

.app-fiche {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22.22cqw;
  display: flex;
  flex-direction: column;
  gap: 3.33cqw;
  padding: 2.78cqw 4.44cqw 4.44cqw;
  border-radius: 7.78cqw 7.78cqw 0 0;
  background: #fff;
  box-shadow: 0 -6px 24px rgb(0 0 0 / 0.12);
}

.app-fiche .poignee {
  align-self: center;
  width: 11.11cqw;
  height: 1.39cqw;
  border-radius: 1cqw;
  background: #dad4c8;
}

.app-fiche .titre {
  display: block;
  font-size: 6.67cqw;
  font-weight: 800;
  line-height: 1.15;
}

.app-fiche .guichet {
  padding-top: 2.78cqw;
  border-top: 1px solid #f1ebdd;
  font-size: 3.89cqw;
  font-weight: 600;
}

.app-frise {
  display: flex;
  gap: 2.22cqw;
}

.app-vignette {
  width: 32.78cqw;
  display: flex;
  flex-direction: column;
  gap: 1.11cqw;
  padding: 1.67cqw;
  border-radius: 3.33cqw;
  border: 0.42cqw solid #e9e1cf;
  font-size: 3.33cqw;
  color: var(--app-doux);
}

.app-vignette img {
  width: 100%;
  aspect-ratio: 103 / 66;
  object-fit: contain;
  border-radius: 1.67cqw;
  background: var(--app-sable);
}

.app-vignette.choisie {
  border: 0.69cqw solid var(--app-anthracite);
  color: var(--app-texte);
  font-weight: 600;
}

.app-encart {
  display: flex;
  flex-direction: column;
  gap: 1.11cqw;
  padding: 2.5cqw 3.33cqw;
  border-radius: 3.33cqw;
  background: var(--creme);
  font-size: 3.89cqw;
  line-height: 1.35;
}

.app-encart .mesures {
  font-weight: 600;
}

.app-encart .mesures span {
  color: var(--app-doux);
  font-weight: 500;
}

/* Collection, album par lieu */

.app-collection {
  display: flex;
  flex-direction: column;
  gap: 3.33cqw;
  padding: 6.11cqw 4.44cqw 0;
}

.app-h1 {
  font-size: 8.33cqw;
  font-weight: 800;
  line-height: 1.1;
}

.app-compte {
  margin-top: -2.22cqw;
  font-size: 3.89cqw;
  color: var(--app-doux);
}

.app-rubriques {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -4.44cqw;
  padding: 0 2.22cqw;
  border-bottom: 1px solid var(--app-filet);
}

.app-rubriques span {
  min-height: 12.22cqw;
  display: grid;
  place-items: center;
  font-size: 4.17cqw;
  font-weight: 500;
  color: var(--app-doux);
}

.app-rubriques .actif {
  font-weight: 600;
  color: var(--app-texte);
  box-shadow: inset 0 -0.83cqw 0 var(--app-texte);
}

.app-rangee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.78cqw;
  font-size: 3.61cqw;
  color: var(--app-doux);
}

.app-groupe {
  display: flex;
  flex-direction: column;
  gap: 2.22cqw;
}

.app-groupe-titre {
  font-size: 4.72cqw;
  font-weight: 800;
}

.app-groupe-titre span {
  margin-left: 1.11cqw;
  font-size: 3.61cqw;
  font-weight: 500;
  color: var(--app-doux);
}

.app-classeur {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.22cqw;
  padding: 2.78cqw;
  border-radius: 5cqw;
  border: 1px solid #efe6d2;
  background: var(--creme);
}

/* Les cases vides finissent la ligne, au trait pointillé. */
.app-vide {
  aspect-ratio: 300 / 419;
  border-radius: 2.5cqw;
  border: 0.56cqw dashed #d9c9a4;
}

/* Étape d'un parcours (J3) : le bandeau aux couleurs du territoire, la carte
   retirée, et le fil des correspondances qu'il a écrites. */

.app-parcours {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.app-bandeau {
  display: flex;
  align-items: center;
  gap: 1.11cqw;
  padding: 8cqw 4.44cqw 3.33cqw 1.67cqw;
  background: var(--territoire);
  color: #fff;
}

.app-bandeau svg {
  width: 6.67cqw;
  height: 6.67cqw;
  margin: 0 1.67cqw;
}

.app-bandeau .etape {
  display: block;
  font-size: 3.33cqw;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-bandeau .titre {
  display: block;
  font-size: 5cqw;
  font-weight: 800;
}

.app-parcours-corps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3.33cqw;
  padding: 3.89cqw 4.44cqw 4.44cqw;
}

.app-progression {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.67cqw;
}

.app-progression span {
  height: 1.67cqw;
  border-radius: 1cqw;
  background: var(--app-anthracite);
}

.app-progression .a-venir {
  background: none;
  border: 0.42cqw dashed #d9c9a4;
}

.app-retiree {
  display: flex;
  align-items: center;
  gap: 3.33cqw;
  padding: 2.22cqw;
  border-radius: 3.89cqw;
  border: 1px solid var(--app-filet);
  background: #fff;
}

.app-retiree .app-mini {
  width: 17.78cqw;
  flex-shrink: 0;
}

.app-retiree .textes {
  display: flex;
  flex-direction: column;
  gap: 0.83cqw;
  font-size: 3.61cqw;
}

.app-retiree b {
  font-size: 4.17cqw;
  font-weight: 600;
}

.app-retiree .doux {
  color: var(--app-doux);
}

.app-lettre {
  display: flex;
  flex-direction: column;
  gap: 1.11cqw;
  padding: 2.78cqw 3.89cqw;
  border-radius: 3.89cqw;
  border: 1px solid var(--app-filet);
  background: #fff;
}

.app-lettre.courante {
  border: 0.56cqw solid var(--app-anthracite);
}

.app-lettre .mot {
  margin: 0;
  font-family: var(--main);
  font-weight: 500;
  font-size: 5cqw;
  line-height: 1.2;
  color: var(--encre);
}

.app-lettre .signe {
  align-self: flex-end;
  font-family: var(--main);
  font-weight: 600;
  font-size: 5cqw;
  line-height: 1;
  color: var(--encre);
}

.app-note {
  margin: 0;
  font-size: 3.61cqw;
  line-height: 1.4;
  color: var(--app-doux);
}

.app-parcours-pied {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.56cqw;
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section.pale {
  --texte: #161514;
  --texte-doux: #5c574f;
  --surface: #ffffff;
  --filet: rgb(0 0 0 / 0.1);
  background: var(--creme);
  color: var(--texte);
}

.pale .gestes li,
.pale .principes li {
  border: 1px solid #f0e6cc;
}

.intro {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.intro p {
  color: var(--texte-doux);
  font-size: 1.15rem;
}

/* Les trois gestes */

.gestes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: geste;
}

.gestes li {
  counter-increment: geste;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--surface);
  border-radius: var(--rayon);
}

.gestes li::before {
  content: counter(geste, decimal-leading-zero);
  display: block;
  margin-bottom: 2.5rem;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--jaune);
}

.gestes p {
  margin: 0;
  color: var(--texte-doux);
}

/* La carte à collectionner : recto et verso, chacune sur une largeur de
   300 points (1 point vaut 100 / 300 cqw). */

.vitrine-carte {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--surface);
  border-radius: calc(var(--rayon) * 1.4);
}

.carte-double {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 20rem));
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: start;
}

.face {
  margin: 0;
}

.support {
  container-type: inline-size;
}

.recto,
.verso {
  aspect-ratio: 300 / 419;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ombre);
}

.recto {
  gap: 4cqw;
  padding: 4cqw;
  border-radius: 4.67cqw;
  background: var(--carte-fond);
  color: var(--carte-texte);
  transform: rotate(-1.5deg);
}

.verso {
  gap: 2.67cqw;
  padding: 4.67cqw 4.67cqw 4cqw;
  border-radius: 5.33cqw;
  background: #fff;
  color: var(--app-texte);
  transform: rotate(1.2deg);
}

/* Le recto : l'avant et l'après sous un même rideau. */
.diptyque {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 276 / 177;
  overflow: hidden;
  border-radius: 2.67cqw;
  background: var(--fond);
}

.diptyque img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diptyque .avant {
  clip-path: inset(0 50% 0 0);
  animation: rideau 10s ease-in-out infinite;
}

.diptyque .partage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  animation: partage 10s ease-in-out infinite;
}

.diptyque .partage::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10cqw;
  height: 10cqw;
  border-radius: 50%;
  background: var(--jaune);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
  transform: translate(-50%, -50%);
}

@keyframes rideau {
  0%,
  100% {
    clip-path: inset(0 72% 0 0);
  }
  50% {
    clip-path: inset(0 28% 0 0);
  }
}

@keyframes partage {
  0%,
  100% {
    left: 28%;
  }
  50% {
    left: 72%;
  }
}

.recto-textes {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2cqw;
  padding: 0.67cqw 0.67cqw 0;
}

.recto-lieu {
  font-size: 8.67cqw;
  font-weight: 800;
  line-height: 1.05;
}

.recto .legende {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 5.67cqw;
  line-height: 1.3;
}

.recto-date {
  font-size: 4.33cqw;
  color: var(--carte-doux);
}

.recto-pied {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3.33cqw;
  padding-top: 3.33cqw;
  border-top: 1px dashed rgb(243 238 226 / 0.3);
}

.recto-createur {
  display: flex;
  flex-direction: column;
  gap: 0.67cqw;
  font-size: 5.33cqw;
  font-weight: 800;
}

.recto-createur span {
  font-size: 3.67cqw;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--carte-doux);
}

.recto .timbre-classe {
  width: 20cqw;
  height: 24.4cqw;
  flex-shrink: 0;
  outline-width: 1.33cqw;
  outline-offset: -1.17cqw;
  background-image: radial-gradient(rgb(22 21 20 / 0.32) 0.37cqw, transparent 0.5cqw);
  background-size: 2cqw 2cqw;
  font-size: 11cqw;
  transform: rotate(-3deg);
}

.recto .timbre-classe::before {
  inset: 2cqw;
}

/* Le verso : le courrier de la carte postale et sa correspondance. */
.verso .app-etiquette {
  font-size: 3.67cqw;
}

.verso .legende {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 5.67cqw;
  line-height: 1.3;
}

/* La traduction de la légende, dessous, dans la langue de la page. */
.verso .traduction {
  margin: -1.33cqw 0 0;
  font-size: 4cqw;
  line-height: 1.3;
  color: var(--app-doux);
}

.notice {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.33cqw 3.33cqw;
  font-size: 4.33cqw;
  line-height: 1.3;
}

.notice dt {
  color: var(--sepia);
}

.notice dd {
  margin: 0;
}

.verso .separateur {
  margin: 2cqw 0 0.67cqw;
  border-top: 1px dashed #e2d8c3;
}

.verso .correspondance {
  padding-bottom: 1.33cqw;
  border-bottom: 1px solid #e9e1cf;
}

.formule,
.signature {
  margin: 0;
  font-family: var(--main);
  font-size: 8.67cqw;
  line-height: 1.25;
  color: var(--encre);
}

.formule {
  font-weight: 500;
}

.signature {
  align-self: flex-end;
  font-weight: 600;
}

.cachets {
  position: relative;
  height: 24cqw;
  margin-top: auto;
}

.cachet {
  position: absolute;
  right: 7.33cqw;
  top: -2.67cqw;
  z-index: 1;
  width: 24cqw;
  height: 24cqw;
  color: var(--cachet);
  transform: rotate(-12deg);
}

.timbre {
  position: absolute;
  right: 0;
  top: 0;
  width: 12.67cqw;
  height: 15.33cqw;
  display: grid;
  place-items: center;
  background: var(--app-sable);
  outline: 0.83cqw dotted #fff;
  outline-offset: -0.67cqw;
}

.timbre svg {
  width: 8.67cqw;
  height: 10.67cqw;
}

/* Principes */

.principes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.25rem;
}

.principes li {
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--rayon);
}

.principes h3::before {
  content: "";
  display: block;
  width: 2rem;
  height: 0.3rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  background: var(--jaune);
}

.principes p {
  margin: 0;
  color: var(--texte-doux);
}

/* Encadrés à icône : l'icône remplace le trait jaune du titre. */
.principes.avec-icones h3::before {
  content: none;
}

.icone {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--fond);
  color: var(--jaune);
}

.icone svg {
  width: 2rem;
  height: 2rem;
}

/* Une section qui prolonge la précédente, sur le même fond. */
.section.suite {
  padding-top: 0;
}

/* Écrans en portrait à côté du texte : la carte du jeu à droite des trois
   gestes, la collection à gauche des principes. */

.sortie,
.terrain {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.sortie {
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}

.sortie .gestes {
  grid-template-columns: minmax(0, 1fr);
}

/* Empilées, les étapes portent leur numéro à gauche. */
.sortie .gestes li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.75rem;
  align-items: start;
}

.sortie .gestes li::before {
  grid-row: span 2;
  margin: 0;
  min-width: 2.2ch;
}

.terrain {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}

.terrain .principes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.terrain .principes li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Fonds publics : les cartes postales en noir et blanc, sur papier. */

.fonds {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.fonds p {
  color: var(--texte-doux);
  font-size: 1.1rem;
}

.pile {
  position: relative;
  padding: 1rem 0 2rem;
}

.pile figure {
  margin: 0;
  background: #fffdf7;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--ombre);
}

.pile img {
  border-radius: 0.25rem;
}

.pile figure:first-child {
  width: 82%;
  transform: rotate(-4deg);
}

.pile figure:last-child {
  width: 78%;
  margin: 0.5rem 0 0 auto;
  position: relative;
  transform: rotate(3deg);
}

.pile figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: #5a4a39;
  padding: 0.4rem 0.2rem 0;
}

/* Territoires : une grande carte sur la photographie actuelle d'Annecy, et
   jamais sur une carte postale, qui ne se recadre ni ne s'assombrit. Le
   dégradé tient le contraste du texte sur toute l'image. */

.territoires {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 26rem;
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: calc(var(--rayon) * 1.4);
  background:
    linear-gradient(90deg, rgb(16 15 14 / 0.94) 0%, rgb(16 15 14 / 0.82) 55%, rgb(16 15 14 / 0.45) 100%),
    url("/images/annecy-2020.webp") center / cover;
}

.territoires .intro {
  margin: 0;
}

.territoires p {
  color: var(--texte);
}

/* Page des territoires (maquette « Vade Carta — vitrine, page Territoires »).
   Chaque bande a sa mise en page : photo haute, chiffres, cartes de mairies
   numérisées, bande verte des parcours, frise, tableau de bord, sceaux,
   étapes, appel final sur une photo. */

.surtitre.jaune {
  color: var(--jaune);
}

.surtitre.sepia {
  color: var(--sepia);
}

.boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.appel.second {
  background: none;
  border: 1.5px solid rgb(247 245 240 / 0.4);
  color: var(--texte);
}

.appel.second:hover {
  border-color: var(--texte);
}

.ouverture.photo {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.ouverture.photo h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  line-height: 1.04;
}

.photo-haute {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 2rem;
  box-shadow: var(--ombre);
}

.texte p {
  color: var(--texte-doux);
  font-size: 1.15rem;
}

.preuve,
.deux-colonnes {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.preuve {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.deux-colonnes {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.deux-colonnes.large-gauche {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.chiffres {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chiffres div {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid #f0e6cc;
}

.chiffres dt {
  font-size: 0.95rem;
  color: var(--texte-doux);
}

.chiffres dd {
  order: -1;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.chiffres .fort {
  background: var(--fond);
  border-color: var(--fond);
  color: #f7f5f0;
}

.chiffres .fort dt {
  color: #bdb7ad;
}

.chiffres .fort dd {
  color: var(--jaune);
}

/* Deux cartes postales numérisées, posées à plat comme des scans. */
.scans {
  position: relative;
  padding-bottom: 11rem;
}

.scans figure {
  margin: 0;
  padding: 0.75rem 0.75rem 0.6rem;
  border-radius: 0.6rem;
  background: #fffdf7;
  box-shadow: var(--ombre);
}

.scans figure:first-child {
  width: 78%;
  transform: rotate(-2.5deg);
}

.scans figure:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60%;
  transform: rotate(2.5deg);
}

.scans img {
  width: 100%;
  border-radius: 0.2rem;
}

.scans figcaption {
  padding: 0.5rem 0.1rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #5a4a39;
}

.etapes {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  counter-reset: etape;
}

.etapes li {
  counter-increment: etape;
  position: relative;
  padding-left: 3rem;
}

.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -0.2rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--jaune);
}

.etapes b {
  font-weight: 600;
}

.texte .plus {
  margin: 0;
  padding: 1.1rem 1.4rem;
  border-radius: 1.1rem;
  border: 1.5px dashed rgb(246 198 78 / 0.55);
  font-size: 1rem;
  color: #e4dfd6;
}

/* Les parcours, sur la couleur d'exemple d'un territoire. */
.section.verte {
  --texte-doux: #dbe7e2;
  background: var(--territoire);
}

.intro.centre {
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}

.trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.trio .maquette-portrait {
  width: 100%;
}

.usage {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.usage img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 34% 50%;
  border-radius: 1.5rem;
}

.usage img.groupe {
  object-position: 50% 62%;
}

.usage figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--texte-doux);
}

.usage b {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--texte);
}

.puces {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.puces li {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  font-size: 0.95rem;
}

/* Les rencontres : une grande photo, puis la frise avant, pendant, après. */
.tete-deux {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: 3rem;
}

.tete-deux h2 {
  margin: 0;
}

.tete-deux p {
  margin: 0;
  font-size: 1.15rem;
  color: var(--texte-doux);
}

.bandeau {
  width: 100%;
  height: clamp(15rem, 34vw, 27.5rem);
  object-fit: cover;
  object-position: 50% 70%;
  border-radius: 2rem;
}

.frise {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  color: var(--texte-doux);
}

.frise li {
  padding-top: 1.25rem;
  border-top: 4px solid var(--texte);
}

.frise li:nth-child(2) {
  border-color: var(--jaune);
}

.frise li:nth-child(3) {
  border-color: var(--territoire);
}

.frise b {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--texte);
}

/* Le tableau de bord de l'espace en ligne, aux couleurs du back-office, avec
   des données d'exemple. */
.tableau-de-bord {
  overflow: hidden;
  border-radius: 1.1rem;
  background: #f4f4f2;
  color: #1f2328;
  box-shadow: var(--ombre);
  font-size: 0.82rem;
  line-height: 1.4;
}

.barre-navigateur {
  display: flex;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: #2a2a2a;
}

.barre-navigateur span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5a5a5a;
}

.tdb {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  min-height: 23rem;
}

.tdb-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 0.9rem;
  background: #383e42;
  color: #e6e8ea;
}

.tdb-menu .actif {
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.12);
}

.tdb-corps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.tdb-tete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
}

.tdb-tete span {
  font-size: 0.75rem;
  color: #6b7075;
}

.tdb-chiffres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.tdb-chiffres span,
.tdb-barres,
.tdb-liste {
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e3e0;
}

.tdb-chiffres span {
  padding: 0.6rem 0.75rem;
  font-size: 0.7rem;
  color: #6b7075;
}

.tdb-chiffres b {
  display: block;
  font-size: 1.35rem;
  color: #1f2328;
}

.tdb-barres {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 7.5rem;
  padding: 0.75rem;
}

.tdb-barres span {
  flex: 1;
  height: 22%;
  border-radius: 3px 3px 0 0;
  background: #1f4e6e;
}

.tdb-barres span:nth-child(2) {
  height: 26%;
}

.tdb-barres span:nth-child(3) {
  height: 38%;
}

.tdb-barres span:nth-child(4) {
  height: 52%;
}

.tdb-barres span:nth-child(5) {
  height: 64%;
}

.tdb-barres span:nth-child(6) {
  height: 80%;
}

.tdb-barres span:nth-child(7) {
  height: 100%;
}

.tdb-barres span:nth-child(8) {
  height: 94%;
}

.tdb-barres span:nth-child(9) {
  height: 70%;
}

.tdb-barres span:nth-child(10) {
  height: 48%;
}

.tdb-barres span:nth-child(11) {
  height: 30%;
}

.tdb-barres span:nth-child(12) {
  height: 24%;
}

.tdb-liste span {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #ecece9;
}

.tdb-liste span:last-child {
  border-bottom: 0;
}

.coches {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coches li {
  position: relative;
  padding-left: 2rem;
}

/* La coche, dessinée par deux côtés d'un rectangle tourné. */
.coches li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.3rem;
  width: 0.45rem;
  height: 0.8rem;
  border-right: 3px solid var(--jaune);
  border-bottom: 3px solid var(--jaune);
  transform: rotate(45deg);
}

.texte .discret {
  font-size: 0.95rem;
}

.titre-moyen {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  margin-bottom: 2.5rem;
}

.sceaux,
.demarrer {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.sceaux {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sceaux li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid #f0e6cc;
  color: #3e3a35;
}

.sceau {
  align-self: flex-start;
  margin-bottom: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--fond);
  color: var(--jaune);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sceaux b,
.demarrer b {
  font-weight: 600;
  color: var(--texte);
}

.demarrer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: demarrer;
}

.demarrer li {
  counter-increment: demarrer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1.75rem;
  border-radius: 1.75rem;
  background: var(--surface);
  color: var(--texte-doux);
}

.demarrer li::before {
  content: counter(demarrer, decimal-leading-zero);
  margin-bottom: 0.5rem;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--jaune);
}

.demarrer b {
  font-size: 1.35rem;
}

/* L'appel final, sur la photo d'une place de village. Le voile tient le
   contraste du texte sur toute l'image. */
.appel-final {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28rem;
  padding: 3rem 2rem;
  border-radius: 2.25rem;
  text-align: center;
  background:
    linear-gradient(rgb(16 15 14 / 0.62), rgb(16 15 14 / 0.62)),
    url("/images/place-village.webp") center / cover;
}

.appel-final > div {
  max-width: 41rem;
}

.appel-final h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

.appel-final p {
  font-size: 1.2rem;
  color: #f1ede6;
  margin-bottom: 1.75rem;
}

@media (max-width: 56rem) {
  .ouverture.photo,
  .preuve,
  .deux-colonnes,
  .deux-colonnes.large-gauche,
  .tete-deux,
  .trio,
  .frise,
  .demarrer {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-haute {
    max-width: 26rem;
    justify-self: center;
  }

  .trio .maquette-portrait {
    max-width: 20rem;
    justify-self: center;
  }

  .sceaux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .sceaux {
    grid-template-columns: minmax(0, 1fr);
  }

  .scans {
    padding-bottom: 0;
  }

  .scans figure:first-child,
  .scans figure:last-child {
    position: static;
    width: 88%;
  }

  .scans figure:last-child {
    margin: -1.5rem 0 0 auto;
  }

  .chiffres div {
    padding: 1.25rem;
  }

  .tdb {
    grid-template-columns: minmax(0, 1fr);
  }

  .tdb-menu {
    display: none;
  }
}

/* Pied */

.pied {
  padding-block: 3rem 4rem;
  font-size: 0.9rem;
  color: var(--texte-doux);
  border-top: 1px solid var(--filet);
}

.pied .contact {
  margin: 0 0 2.5rem;
  font-size: 1rem;
}

.credits {
  margin: 0;
  padding-left: 1.1rem;
}

.credits li {
  margin-bottom: 0.4rem;
}

@media (max-width: 56rem) {
  .ouverture,
  .ouverture.portrait,
  .fonds,
  .sortie,
  .terrain{
    grid-template-columns: minmax(0, 1fr);
  }

  .gestes {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Le texte prend toute la largeur : le voile aussi. */
  .territoires {
    background:
      linear-gradient(rgb(16 15 14 / 0.86), rgb(16 15 14 / 0.86)),
      url("/images/annecy-2020.webp") center / cover;
  }
}

@media (max-width: 40rem) {
  .terrain .principes {
    grid-template-columns: minmax(0, 1fr);
  }

  .carte-double {
    grid-template-columns: minmax(0, 20rem);
  }

  .recto,
  .verso {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecran .ancienne,
  .visee-curseur .rail::after,
  .diptyque .avant,
  .diptyque .partage {
    animation: none;
  }
}

/* Textes juridiques : politique de confidentialité, conditions d'utilisation,
   suppression du compte (#103). Une colonne de lecture ; un tableau large
   défile dans son cadre, jamais la page. */

.juridique {
  padding-block: 2.5rem 4rem;
}

.juridique > * {
  max-width: 46rem;
}

.juridique h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

.juridique h2 {
  font-size: 1.6rem;
  margin-top: 2.75rem;
}

.juridique h3 {
  margin-top: 1.75rem;
}

.juridique .date {
  color: var(--texte-doux);
}

.juridique ul,
.juridique ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.juridique li {
  margin-bottom: 0.5rem;
}

.juridique .encadre {
  background: var(--surface);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem 0.5rem;
  margin-block: 1.5rem;
}

.juridique .tableau {
  overflow-x: auto;
  margin-block: 1rem 1.5rem;
}

.juridique table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.juridique th,
.juridique td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--filet);
}

.juridique th {
  color: var(--texte);
  font-weight: 600;
}

.liens-du-pied {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  font-size: 1rem;
}
