/* ==========================================================================
   Foka — feuille de style unique du site fokapp.app
   Aucun framework, aucun build, aucun JavaScript. Une seule feuille pour les
   trois pages. Palette et police reprises de l'app (kit d'identité « 04 Focus »).
   ========================================================================== */

/* Baloo 2, hébergée sur fokapp.app : aucune requête à un tiers. Fichier variable,
   sous-ensemble latin, axe de graisse 500 à 800, le même que servait Google Fonts.
   Nom versionné (-v1) : vercel.json le met en cache un an ; un fichier modifié
   prend un nouveau nom. Licence : fonts/OFL.txt. */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/baloo2-latin-v1.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 {
  --fond:        #0d1411;  /* fond de l'app */
  --surface:     #151d18;  /* cartes et blocs */
  --bordure:     #23302a;
  --teal:        #4ecdc4;  /* accent principal */
  --teal-clair:  #7dd3db;  /* liens survolés, accents secondaires */
  --or:          #feca57;  /* réservé aux mises en avant rares */
  --texte:       #ffffff;
  --texte-doux:  #8892b0;  /* 6,1:1 sur le fond — lisible */
  --largeur:     52rem;
  --rayon:       14px;
}

/* Le site est sombre par défaut. Sur un appareil réglé en clair, on ne bascule
   pas tout : on éclaircit juste ce qu'il faut pour rester lisible au soleil. */
@media (prefers-color-scheme: light) {
  :root {
    --fond:       #f4f7f5;
    --surface:    #ffffff;
    --bordure:    #dde5e0;
    --teal:       #0f8279;  /* 4,9:1 sur blanc — la teinte de l'app serait trop pâle */
    --teal-clair: #0b6b63;
    --or:         #8a6200;
    --texte:      #0d1411;
    --texte-doux: #4d5a67;
  }
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Baloo 2 est la police de l'app : elle ne sert QUE aux titres. Si la police
   ne se charge pas, la pile système prend le relais sans casser la mise en page. */
h1, h2, h3, .marque {
  font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 7vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); margin-top: 2.4rem; }
h3 { font-size: 1.15rem; margin-top: 1.8rem; }

p, ul, ol { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover,
a:focus-visible { color: var(--teal-clair); }

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

strong { color: var(--texte); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

/* ---------- ossature ---------- */

.enveloppe {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 20px;
}

.saut-contenu {
  position: absolute;
  left: -9999px;
}
.saut-contenu:focus {
  left: 20px;
  top: 12px;
  z-index: 10;
  position: fixed;
  background: var(--teal);
  color: #0d1411;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

/* ---------- en-tête ---------- */

.entete {
  border-bottom: 1px solid var(--bordure);
  padding: 14px 0;
}
.entete .enveloppe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.entete .marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  color: var(--texte);
  text-decoration: none;
  margin: 0;
  margin-right: auto;
}
.entete .marque img {
  width: 34px;
  height: 34px;
  display: block;
}
.entete nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.95rem;
}
.entete nav a { color: var(--texte-doux); text-decoration: none; }
.entete nav a:hover,
.entete nav a:focus-visible,
.entete nav a[aria-current='page'] { color: var(--teal); }

/* ---------- accueil ---------- */

.hero {
  text-align: center;
  padding: clamp(2.5rem, 9vw, 4.5rem) 0 2rem;
}
.hero img.logo {
  width: clamp(112px, 30vw, 160px);
  height: auto;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 0.3rem; }
.hero .accroche {
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  color: var(--texte-doux);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.cta {
  display: inline-block;
  background: var(--teal);
  color: #0d1411;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--teal);
}
.cta:hover,
.cta:focus-visible {
  background: var(--teal-clair);
  border-color: var(--teal-clair);
  color: #0d1411;
}
@media (prefers-color-scheme: light) {
  .cta, .cta:hover, .cta:focus-visible { color: #ffffff; }
}

.sous-cta {
  font-size: 0.9rem;
  color: var(--texte-doux);
  margin-top: 0.9rem;
}

.etiquette {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--or);
  border: 1px solid var(--or);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin-bottom: 1rem;
}

/* ---------- les trois points ---------- */

.points {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 1rem 0 3rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .points { grid-template-columns: repeat(3, 1fr); }
}
.points li {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 20px;
  margin: 0;
}
.points h2 {
  font-size: 1.1rem;
  margin: 0 0 0.45rem;
  color: var(--teal);
}
.points p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--texte-doux);
}

/* ---------- pages de texte ---------- */

.contenu { padding: 2.2rem 0 1rem; }
.contenu .maj {
  color: var(--texte-doux);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.encart {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-left: 3px solid var(--teal);
  border-radius: var(--rayon);
  padding: 16px 18px;
  margin: 1.6rem 0;
}
.encart :last-child { margin-bottom: 0; }

.tableau-defilant {
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--bordure);
  vertical-align: top;
}
th { color: var(--teal); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- pied de page ---------- */

.pied {
  border-top: 1px solid var(--bordure);
  margin-top: 3rem;
  padding: 1.8rem 0 2.6rem;
  color: var(--texte-doux);
  font-size: 0.92rem;
}
.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 0.8rem;
}
.pied p { margin-bottom: 0.4rem; }
