/* parttimeathlete.com — la charte de l'app et des reels (applications-web/part-time-athlete/docs/identite-visuelle.md).
   Blanc, noir, jaune en accent ; Archivo condensée 900 en capitales pour les titres ; étiquettes
   inclinées, ombres dures, bordures de 2 px, aucun arrondi, sauf les téléphones, qui dessinent de
   vrais appareils. Téléphone d'abord ; l'ordinateur à partir de 760 px. Pas de style dans les pages :
   la politique de sécurité du site (.htaccess) n'accepte que ce fichier. */

/* Archivo, servie par le site (polices/, licence OFL.txt), pas par Google Fonts : une seule police
   variable, largeur 62 à 125 %, graisse 100 à 900, découpée comme chez Google Fonts. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/polices/archivo-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/polices/archivo-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;
}

:root {
  --noir: #0e0e0e;
  --blanc: #ffffff;
  --jaune: #ffd60a;
  --gris-clair: #f2f2f2;
  --gris: #4a4a4a;
  --gris-pied: #bdbdbd;
}

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

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

body {
  margin: 0;
  background: var(--blanc);
  color: var(--noir);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: var(--noir);
}

a:hover {
  color: var(--gris);
}

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

/* Les titres qui reçoivent le focus à chaque étape de la suppression, pour les lecteurs d'écran. */
[tabindex="-1"]:focus {
  outline: none;
}

.pied :focus-visible,
.encart-noir :focus-visible {
  outline-color: var(--jaune);
}

.cadre {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.evitement {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  background: var(--jaune);
  border: 2px solid var(--noir);
  padding: 10px 14px;
  font-weight: 800;
}

.evitement:focus {
  top: 8px;
}

/* Les titres et les étiquettes */

.titre,
h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: 0.95;
}

.etiquette {
  align-self: flex-start;
  display: inline-block;
  background: var(--noir);
  color: var(--blanc);
  padding: 4px 12px;
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.badge {
  display: inline-block;
  background: var(--jaune);
  border: 2px solid var(--noir);
  padding: 2px 8px;
  font-weight: 900;
  font-stretch: 62%;
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.chiffre {
  font-weight: 900;
  font-stretch: 62%;
  font-size: 88px;
  line-height: 0.8;
  color: var(--jaune);
  -webkit-text-stroke: 2px var(--noir);
  text-shadow: 4px 4px 0 var(--noir);
}

/* Les boutons */

.bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 0 24px;
  border: 2px solid var(--noir);
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.bouton-jaune {
  background: var(--jaune);
  color: var(--noir);
  box-shadow: 4px 4px 0 var(--noir);
}

.bouton-jaune:hover {
  color: var(--noir);
  box-shadow: 2px 2px 0 var(--noir);
}

.bouton-noir {
  background: var(--noir);
  color: var(--blanc);
}

.bouton-noir:hover {
  color: var(--jaune);
}

.bouton-contour {
  min-height: 52px;
  background: var(--blanc);
  color: var(--noir);
}

.bouton:disabled {
  opacity: 0.5;
  cursor: default;
}

/* L'en-tête */

.entete {
  border-bottom: 2px solid var(--noir);
}

.entete .cadre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--noir);
  text-decoration: none;
}

/* L'icône de l'app (traction de Sam, PTA derrière) ; le texte « PTA » reste dans la page, caché. */
.logo-carre {
  display: inline-block;
  flex: none;
  width: 38px;
  height: 38px;
  background: var(--jaune) url("/images/logo.png") center / cover no-repeat;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}

.logo-nom {
  font-weight: 900;
  font-stretch: 62%;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  font-size: 15px;
}

.menu-liens {
  display: none;
}

.menu-liens a {
  padding: 10px 0;
  text-decoration: none;
}

.langues {
  display: flex;
  gap: 4px;
  font-size: 14px;
}

.langues a {
  padding: 10px 6px;
  color: var(--gris);
  text-decoration: none;
}

.langues a[aria-current] {
  color: var(--noir);
  text-decoration: underline;
}

/* Le pied de page */

.pied {
  background: var(--noir);
  color: var(--blanc);
}

.pied .cadre {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 36px;
}

.pied-marque {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pied .logo {
  color: var(--blanc);
}

.pied .logo-carre {
  background-color: var(--jaune);
}

.pied nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
  font-size: 15px;
}

.pied nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--blanc);
}

.pied nav a:hover {
  color: var(--jaune);
}

.pied .copyright {
  margin: 0;
  font-size: 13px;
  color: var(--gris-pied);
}

/* Les téléphones autour des captures. Leur largeur --l règle tout le reste (bords, Dynamic Island,
   caméra, boutons), d'où les calc(). Les seuls arrondis du site. */

.tel {
  --l: 220px;
  position: relative;
  flex: none;
  width: var(--l);
}

.iphone {
  padding: calc(var(--l) * 0.036);
  background: #1d1d1f;
  border-radius: calc(var(--l) * 0.185);
  outline: 1.5px solid #5a5a5e;
}

.iphone img {
  width: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: calc(var(--l) * 0.148);
}

.iphone .ile {
  position: absolute;
  top: calc(var(--l) * 0.072);
  left: 50%;
  width: 30%;
  height: calc(var(--l) * 0.068);
  background: #000000;
  border-radius: calc(var(--l) * 0.05);
  transform: translateX(-50%);
}

.android {
  padding: calc(var(--l) * 0.032);
  background: #202124;
  border-radius: calc(var(--l) * 0.16);
  outline: 1.5px solid #5f6368;
}

.android .ecran {
  overflow: hidden;
  border-radius: calc(var(--l) * 0.125);
  padding-top: calc(var(--l) * 0.073);
  background: var(--blanc);
}

.android .ecran-jaune {
  background: var(--jaune);
}

/* Capture d'iPhone sans sa barre d'état, posée sous une bande de la couleur de l'écran. */
.android .ecran img {
  width: 100%;
  aspect-ratio: 640 / 1294;
  object-fit: cover;
}

/* Vraie capture d'Android, barre d'état comprise. */
.android .ecran-complet {
  padding-top: 0;
}

.android .ecran-complet img {
  aspect-ratio: 1080 / 2400;
}

.android .camera {
  position: absolute;
  top: calc(var(--l) * 0.046);
  left: 50%;
  width: calc(var(--l) * 0.05);
  height: calc(var(--l) * 0.05);
  background: #000000;
  border-radius: 50%;
  transform: translateX(-50%);
}

.tel .b {
  position: absolute;
  width: calc(var(--l) * 0.018);
  min-width: 2px;
  background: #3a3a3c;
}

.android .b {
  background: #3c4043;
}

.tel .g {
  left: calc(var(--l) * -0.018);
  border-radius: 2px 0 0 2px;
}

.tel .d {
  right: calc(var(--l) * -0.018);
  border-radius: 0 2px 2px 0;
}

.iphone .b1 {
  top: 19%;
  height: 5%;
}

.iphone .b2 {
  top: 27%;
  height: 9%;
}

.iphone .b3 {
  top: 38%;
  height: 9%;
}

.iphone .b4 {
  top: 26%;
  height: 13%;
}

.android .b1 {
  top: 21%;
  height: 7%;
}

.android .b2 {
  top: 31%;
  height: 13%;
}

.penche-g {
  transform: rotate(-2deg);
}

.penche-d {
  transform: rotate(2deg);
}

/* L'accueil : le haut */

.une {
  display: grid;
  gap: 20px;
  padding-top: 36px;
  padding-bottom: 28px;
}

.une-texte {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.une h1 {
  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.9;
}

.accroches {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.accroches span {
  display: inline-block;
  padding: 4px 10px;
  font-weight: 900;
  font-stretch: 62%;
  font-size: 20px;
  text-transform: uppercase;
}

.accroche-jaune {
  background: var(--jaune);
  border: 2px solid var(--noir);
  box-shadow: 3px 3px 0 var(--noir);
  transform: rotate(-3deg);
}

.accroche-noire {
  background: var(--noir);
  color: var(--blanc);
  transform: rotate(2deg);
}

.chapeau {
  margin: 0;
  font-size: 17px;
  max-width: 34em;
}

.stores {
  display: flex;
  gap: 10px;
}

.bientot {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 0 12px;
  border: 2px solid var(--noir);
  font-size: 13px;
  color: var(--gris);
}

.bientot strong {
  font-size: 17px;
  color: var(--noir);
}

.tester {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--gris-clair);
}

.tester .badge {
  align-self: flex-start;
  transform: rotate(-3deg);
}

.tester p {
  margin: 0;
}

.duo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding-top: 10px;
}

.duo .tel {
  --l: clamp(150px, 19vw, 250px);
}

.duo .tel + .tel {
  margin-top: calc(var(--l) * 0.18);
}

/* L'accueil : les espaces de l'app (Running sur toute la largeur, sans téléphone) */

.app {
  padding-top: 24px;
  padding-bottom: 8px;
}

.app .cadre {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.app h2 {
  font-size: 30px;
  padding: 6px 12px;
}

.espaces {
  display: grid;
  gap: 36px;
}

.espace {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.espace-tete {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.espace-nom {
  font-weight: 900;
  font-stretch: 62%;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gris);
}

.espace-tete .badge {
  margin-left: auto;
}

.espace h3 {
  font-size: 38px;
}

.espace p {
  margin: 0;
}

.espace .tel {
  align-self: center;
  margin-top: 4px;
}

.espace-large {
  grid-column: 1 / -1;
}

.stats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--gris-clair);
}

.stats .tel {
  --l: 108px;
}

.stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats h3 {
  font-size: 26px;
  line-height: 1;
}

.stats p {
  margin: 0;
  font-size: 15px;
}

/* L'accueil : Sam */

.sam {
  display: grid;
  gap: 16px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.photo {
  position: relative;
  justify-self: start;
  margin: 0;
}

.photo img {
  width: min(100%, 300px);
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border: 2px solid var(--noir);
  box-shadow: 8px 8px 0 var(--noir);
}

.photo figcaption {
  position: absolute;
  left: -6px;
  bottom: 18px;
  font-size: 18px;
}

.sam-texte {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sam h2 {
  margin-top: 8px;
  font-size: 48px;
  line-height: 0.92;
}

.sam p {
  margin: 0;
}

.lien-fort {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}

.sam h3 {
  margin-top: 16px;
  font-size: 30px;
}

.convictions {
  display: grid;
  gap: 14px;
}

.conviction {
  padding: 14px 16px;
  border: 2px solid var(--noir);
  box-shadow: 4px 4px 0 var(--noir);
}

.conviction p {
  margin: 0;
}

.conviction .titre {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.1;
}

.conviction p + p {
  color: var(--gris);
}

.projet h3 {
  font-size: 24px;
  color: var(--gris);
}

.projet p {
  margin-top: 8px;
}

/* Les pages de texte : confidentialité, conditions, aide, suppression */

.page {
  max-width: 760px;
  padding-top: 32px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.page-tete {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page h1 {
  font-size: 52px;
  line-height: 0.92;
  overflow-wrap: break-word;
  hyphens: manual;
}

.page-tete p {
  margin: 0;
  font-size: 17px;
}

.page-tete .date {
  font-size: 14px;
  color: var(--gris);
}

.page section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-margin-top: 16px;
}

.page h2 {
  font-size: 26px;
  line-height: 1.05;
}

.page p,
.page ul {
  margin: 0;
}

.page ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page ul ul {
  margin-top: 4px;
}

.encadre {
  padding: 16px;
  background: var(--gris-clair);
}

.note {
  color: var(--gris);
}

/* L'aide */

.question {
  padding: 16px;
  border: 2px solid var(--noir);
}

.question h2 {
  font-size: 24px;
}

.encart-noir {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px;
  background: var(--noir);
  color: var(--blanc);
  box-shadow: 6px 6px 0 var(--jaune);
}

.encart-noir h2 {
  font-size: 30px;
}

.encart-noir a:not(.bouton) {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--blanc);
}

/* La suppression du compte */

.suppression {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page .etiquette {
  margin-top: 8px;
  font-size: 24px;
}

.etape {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px;
  background: var(--gris-clair);
}

.chiffre.etape-numero {
  font-size: 44px;
  line-height: 0.8;
  text-shadow: 3px 3px 0 var(--noir);
}

.etape label {
  font-weight: 800;
}

.etape input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--noir);
  border-radius: 0;
  background: var(--blanc);
  font: inherit;
  font-size: 17px;
}

.etape input.code {
  font-size: 22px;
  letter-spacing: 6px;
}

.etape .aide-champ {
  font-size: 14px;
  color: var(--gris);
}

.confirmer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--noir);
  box-shadow: 6px 6px 0 var(--noir);
}

.confirmer h2 {
  font-size: 30px;
}

.fait {
  padding: 16px;
  background: var(--jaune);
  border: 2px solid var(--noir);
}

.fait h2 {
  font-size: 30px;
}

.message {
  margin: 0;
  font-weight: 700;
}

.message:empty {
  display: none;
}

[hidden] {
  display: none !important;
}

/* La page des testeurs : iPhone et Android, étape par étape */

.page-tete .badge {
  align-self: flex-start;
  transform: rotate(-3deg);
}

.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Sur ordinateur, les étapes prennent toute la largeur de la page (celles de la suppression
   s'arrêtent à 560 px). */
.etapes .etape {
  max-width: none;
}

/* La page introuvable */

.introuvable h1 {
  font-size: 64px;
}

/* L'ordinateur */

@media (min-width: 760px) {
  body {
    font-size: 17px;
  }

  .cadre {
    padding-left: 32px;
    padding-right: 32px;
  }

  .entete .cadre {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .logo {
    gap: 10px;
  }

  .logo-carre {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .logo-nom {
    font-size: 20px;
  }

  .menu-liens {
    display: flex;
    gap: 20px;
  }

  .pied .cadre {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .pied nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 28px;
  }

  .accroches span {
    font-size: 24px;
    padding: 4px 12px;
  }

  .chapeau {
    font-size: 19px;
  }

  .stores,
  .tester {
    max-width: 560px;
  }

  .app {
    padding-top: 64px;
    padding-bottom: 64px;
    background: var(--gris-clair);
    border-top: 2px solid var(--noir);
    border-bottom: 2px solid var(--noir);
  }

  .app .cadre {
    gap: 40px;
  }

  .app h2 {
    font-size: 40px;
    padding: 6px 14px;
  }

  .espaces {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 32px;
  }

  .espace {
    padding: 24px;
    background: var(--blanc);
    border: 2px solid var(--noir);
    box-shadow: 6px 6px 0 var(--noir);
  }

  .chiffre {
    font-size: 96px;
  }

  .espace h3 {
    font-size: 40px;
  }

  .espace .tel {
    --l: clamp(180px, 17vw, 230px);
    margin-top: 8px;
  }

  .stats {
    padding: 20px 24px;
    gap: 24px;
    background: var(--blanc);
    border: 2px solid var(--noir);
  }

  .stats .tel {
    --l: 116px;
  }

  .stats h3 {
    font-size: 32px;
  }

  .stats p {
    font-size: 17px;
  }

  .sam {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 48px;
    align-items: start;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .photo {
    justify-self: center;
  }

  .photo img {
    width: min(100%, 420px);
    box-shadow: 10px 10px 0 var(--noir);
  }

  .photo figcaption {
    left: -8px;
    bottom: 24px;
    font-size: 22px;
    padding: 6px 12px;
  }

  .sam h2 {
    margin-top: 0;
    font-size: 64px;
    line-height: 0.9;
  }

  .page {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .page h1 {
    font-size: 72px;
  }

  .page h2 {
    font-size: 30px;
  }

  .etape,
  .confirmer,
  .fait {
    max-width: 560px;
  }
}

@media (min-width: 960px) {
  .une {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .une-texte {
    gap: 24px;
  }

  .duo {
    gap: 32px;
    padding: 12px 0 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
