/* Kesesa — les pages publiques : confidentialité, suppression du compte, aide, conditions, 404.
   Elles chargent d'abord style.css (couleurs, polices, en-tête, pied de page, boutons), puis cette
   feuille, qui ne sert qu'à elles. Chaque page a la couleur d'un thème (--c, posée sur <body>). */

body {
  --c: #17396a;
}

/* Aller au contenu, pour le clavier. */
.evitement {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--jaune);
  color: var(--encre);
  font: 700 15px/1 var(--corps);
  text-decoration: none;
}
.evitement:focus {
  top: 12px;
}

/* ——— La tête de la page ——— */

.tete-page {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--trait);
  background:
    radial-gradient(
      60% 120% at 88% 0%,
      color-mix(in srgb, var(--c) 70%, transparent),
      transparent 72%
    ),
    radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--c) 22%, transparent), transparent),
    var(--fond);
}
.tete-page .cadre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 80px);
}
.tete-page .cadre > div > * {
  animation: monter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.tete-page .cadre > div > :nth-child(2) {
  animation-delay: 90ms;
}
.tete-page .cadre > div > :nth-child(3) {
  animation-delay: 180ms;
}
.tete-page .cadre > div > :nth-child(4) {
  animation-delay: 270ms;
}
.tete-page h1 {
  max-width: 15ch;
  margin: 0 0 20px;
  font: 800 clamp(42px, 6.4vw, 84px) / 0.96 var(--titre);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.chapo {
  max-width: 46ch;
  margin: 0 0 26px;
  color: var(--texte-2);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}
.chapo strong {
  color: var(--texte);
}
.date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--texte-2);
  font: 600 14px/1 var(--corps);
}
.date::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jaune);
}
/* The logo, a fan of fiches, floats on the right of the title. */
.logo-flottant {
  width: clamp(120px, 15vw, 200px);
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  animation: flotte 6s ease-in-out infinite;
}

/* ——— En bref : les promesses de la page, en grands chiffres ——— */

.en-bref {
  border-bottom: 1px solid var(--trait);
}
.en-bref ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: clamp(40px, 5vw, 64px) 0;
  list-style: none;
}
.en-bref li {
  padding-top: 20px;
  border-top: 1px solid var(--trait);
}
.en-bref b {
  display: block;
  margin-bottom: 12px;
  color: var(--jaune);
  font: 800 clamp(40px, 4.6vw, 64px) / 0.9 var(--titre);
  letter-spacing: -0.045em;
}
.en-bref strong {
  display: block;
  margin-bottom: 6px;
  font: 800 19px/1.2 var(--titre);
  letter-spacing: -0.015em;
}
.en-bref span {
  display: block;
  color: var(--texte-2);
  font-size: 15px;
  line-height: 1.45;
}

/* ——— Le corps : un sommaire à gauche, le texte à droite ——— */

.corps-page {
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px);
}
.corps-page.avec-sommaire .cadre {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}
.sommaire {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 20px 18px;
  border: 1px solid var(--trait);
  border-radius: 20px;
  background: var(--surface);
  scrollbar-width: thin;
}
.sommaire p {
  margin: 0 0 12px;
  color: var(--jaune);
  font: 800 12px/1 var(--corps);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sommaire ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sommaire;
}
.sommaire li {
  counter-increment: sommaire;
}
.sommaire a {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  color: var(--texte-2);
  font: 600 14px/1.35 var(--corps);
  text-decoration: none;
}
.sommaire a::before {
  content: counter(sommaire, decimal-leading-zero);
  flex: none;
  width: 2ch;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}
.sommaire a:hover {
  color: var(--texte);
}

/* Le texte à lire. */
.texte {
  max-width: 72ch;
  counter-reset: section;
}
.texte > section {
  margin-bottom: clamp(44px, 5vw, 64px);
  scroll-margin-top: 92px;
}
.texte > section:last-child {
  margin-bottom: 0;
}
.texte > section > h2 {
  margin: 0 0 16px;
  font: 800 clamp(26px, 2.8vw, 34px) / 1.08 var(--titre);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.texte.numerote > section > h2::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--jaune);
  font: 800 13px/1 var(--corps);
  letter-spacing: 0.12em;
}
.texte h3 {
  margin: 26px 0 10px;
  font: 800 20px/1.2 var(--titre);
  letter-spacing: -0.015em;
}
.texte p,
.texte li {
  color: var(--texte-2);
}
.texte p {
  margin: 0 0 14px;
}
.texte strong {
  color: var(--texte);
  font-weight: 700;
}
.texte a,
.chapo a,
.fiche-aide a,
.facon a,
.bilan a {
  color: var(--jaune);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.texte a:hover,
.chapo a:hover,
.fiche-aide a:hover,
.facon a:hover,
.bilan a:hover {
  text-decoration-thickness: 2px;
}
.texte ul {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.texte ul > li {
  position: relative;
  padding-left: 22px;
}
.texte ul > li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jaune);
}
.texte ul ul {
  margin: 12px 0 0;
}
.texte ul ul > li::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--jaune);
}

/* Les mentions légales, et les autres encadrés. */
.encadre {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--trait);
  border-radius: 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%),
    var(--surface);
}
.encadre > h2 {
  margin-top: 0;
}
.encadre ul {
  gap: 8px;
  margin-bottom: 0;
}

/* Un chemin dans l'app : Réglages › Mon compte › Supprimer mon compte. */
.chemin {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
  padding: 0;
  list-style: none;
}
.chemin li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--texte);
  font: 700 14px/1 var(--corps);
}
.chemin li span {
  padding: 8px 12px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  background: var(--surface-2);
}
.chemin li + li::before {
  content: '›';
  color: var(--jaune);
  font-size: 18px;
  font-weight: 800;
}
.chemin li:last-child span {
  border-color: color-mix(in srgb, var(--jaune) 55%, transparent);
  color: var(--jaune);
}

/* ——— Supprimer son compte : les façons de le faire ——— */

/* Two ways in the app on the left, the longer one without the app on the right. */
.facons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: facon;
}
.facon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--trait);
  border-radius: 24px;
  background: var(--surface);
  counter-increment: facon;
}
.facon h2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font: 800 22px/1.15 var(--titre);
  letter-spacing: -0.02em;
}
.facon h2::before {
  content: counter(facon);
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--jaune);
  color: var(--encre);
  font: 800 16px/1 var(--corps);
}
.facon p {
  margin: 0;
  color: var(--texte-2);
}
.facon .note {
  font-size: 15px;
}
.facon .bouton {
  margin-top: auto;
  padding: 14px 20px;
  font-size: 16px;
}
.facon.sans-app {
  grid-row: span 2;
  border-color: color-mix(in srgb, var(--jaune) 40%, var(--trait));
}

.fin-page {
  margin-top: clamp(40px, 5vw, 56px);
}

.etiquette {
  margin: clamp(48px, 6vw, 72px) 0 18px;
  color: var(--jaune);
  font: 800 13px/1.4 var(--corps);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bilan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bilan > section {
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--trait);
  border-radius: 24px;
  background: var(--surface);
}
.bilan h2 {
  margin: 0 0 16px;
  font: 800 24px/1.1 var(--titre);
  letter-spacing: -0.02em;
}
.bilan ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bilan li {
  position: relative;
  padding-left: 30px;
  color: var(--texte-2);
}
.bilan li strong {
  color: var(--texte);
}
.bilan li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font: 800 12px/1 var(--corps);
}
.bilan .efface li::before {
  content: '✓';
  background: #2f8f5b;
  color: #fff;
}
.bilan .reste li::before {
  content: '!';
  background: var(--jaune);
  color: var(--encre);
}

/* ——— L'aide : chaque question est une petite fiche ——— */

.questions-aide {
  columns: 2 360px;
  column-gap: 16px;
}
.fiche-aide {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--trait);
  border-radius: 24px;
  background: var(--surface);
  break-inside: avoid;
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fiche-aide:hover {
  transform: translateY(-3px);
}
.fiche-aide h2 {
  margin: 0;
  padding: 22px 24px 20px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--c) 88%, white),
    var(--c) 45%,
    color-mix(in srgb, var(--c) 72%, black)
  );
  font: 800 clamp(21px, 2vw, 25px) / 1.12 var(--titre);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.fiche-aide h2 small {
  display: block;
  margin-bottom: 10px;
  font: 800 11px/1 var(--corps);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.82;
}
.fiche-aide .reponse {
  display: grid;
  gap: 12px;
  padding: 20px 24px 24px;
  color: var(--texte-2);
}
.fiche-aide .reponse p {
  margin: 0;
}
.fiche-aide strong {
  color: var(--texte);
}

/* Pas trouvé ? Le contact, comme la fin de la page d'accueil. */
.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--trait);
  background:
    radial-gradient(
      60% 70% at 50% 100%,
      color-mix(in srgb, var(--violet) 18%, transparent),
      transparent
    ),
    var(--fond);
  text-align: center;
}
.contact img {
  width: clamp(80px, 10vw, 112px);
  height: auto;
  margin: 0 auto 24px;
  animation: flotte 6s ease-in-out infinite;
}
.contact h2 {
  margin: 0;
  font: 800 clamp(40px, 6vw, 80px) / 0.95 var(--titre);
  letter-spacing: -0.04em;
}
.contact p {
  max-width: 44ch;
  margin: 18px auto 30px;
  color: var(--texte-2);
  font-size: clamp(17px, 1.6vw, 20px);
}
.contact .actions {
  justify-content: center;
}

/* ——— La page introuvable ——— */

.introuvable {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 68px - 90px);
  padding-block: 64px;
  text-align: center;
  background: radial-gradient(
    50% 60% at 50% 40%,
    color-mix(in srgb, var(--c) 45%, transparent),
    transparent
  );
}
.introuvable img {
  width: clamp(110px, 16vw, 170px);
  height: auto;
  margin: 0 auto 28px;
  animation: flotte 6s ease-in-out infinite;
}
.introuvable h1 {
  margin: 0 0 14px;
  font: 800 clamp(40px, 7vw, 88px) / 0.95 var(--titre);
  letter-spacing: -0.04em;
}
.introuvable p {
  max-width: 40ch;
  margin: 0 auto 8px;
  color: var(--texte-2);
  font-size: clamp(17px, 1.6vw, 20px);
}
.introuvable .actions {
  justify-content: center;
  margin-top: 28px;
}
.introuvable .en {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--trait);
}
.introuvable .en h2 {
  margin: 0 0 8px;
  font: 800 26px/1.1 var(--titre);
  letter-spacing: -0.02em;
}
.introuvable .en a {
  color: var(--jaune);
}

/* The footer of these pages has more links: they wrap. */
.pied nav {
  flex-wrap: wrap;
  gap: 10px 20px;
}
.pied a[aria-current='page'] {
  color: var(--texte);
}

/* ——— Petits écrans ——— */

@media (max-width: 980px) {
  .corps-page.avec-sommaire .cadre {
    grid-template-columns: minmax(0, 1fr);
  }
  .sommaire {
    position: static;
    max-height: none;
  }
  .sommaire ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .en-bref ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facons,
  .bilan {
    grid-template-columns: minmax(0, 1fr);
  }
  .facons {
    grid-auto-flow: row;
  }
  .facon.sans-app {
    grid-row: auto;
  }
}
@media (max-width: 720px) {
  .tete-page .cadre {
    grid-template-columns: minmax(0, 1fr);
  }
  .logo-flottant {
    display: none;
  }
}
@media (max-width: 560px) {
  .tete-page h1 {
    font-size: clamp(38px, 11vw, 52px);
  }
  .sommaire a {
    font-size: 13px;
  }
  .en-bref ul {
    gap: 24px 16px;
  }
  .en-bref span {
    font-size: 14px;
  }
  .questions-aide {
    columns: 1;
  }
}
