/*
 * Feuille de style du site public 7daypost.com.
 *
 * Aucune ressource externe : ni police distante, ni CDN. Le site doit s'ouvrir
 * entierement depuis l'hebergement mutualise, y compris pour un examinateur
 * TikTok derriere un reseau restreint.
 */

:root {
  --encre: #0f172a;
  --texte: #334155;
  --doux: #64748b;
  --trait: #e2e8f0;
  --fond: #ffffff;
  --fond-doux: #f8fafc;
  --accent: #2563eb;
  --accent-fonce: #1d4ed8;
  --largeur: 1080px;
}

* {
  box-sizing: border-box;
}

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

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

/* ── En-tete ────────────────────────────────────────────────────────────── */

header.principal {
  border-bottom: 1px solid var(--trait);
  background: var(--fond);
}

header.principal .contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--encre);
  text-decoration: none;
  font-size: 18px;
}

.marque .puce {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

/*
 * Navigation TOUJOURS visible, jamais repliee derriere un bouton.
 * Les liens vers la politique de confidentialite et les CGU doivent etre
 * atteignables sans ouvrir de menu : c'est une exigence explicite de la revue
 * d'application TikTok, et un motif de rejet documente.
 */
nav.principale {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

nav.principale a {
  color: var(--texte);
  text-decoration: none;
  font-size: 15px;
}

nav.principale a:hover {
  color: var(--accent);
  text-decoration: underline;
}

nav.principale a[aria-current='page'] {
  color: var(--encre);
  font-weight: 600;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.heros {
  padding: 72px 0 56px;
  background: var(--fond-doux);
  border-bottom: 1px solid var(--trait);
}

.heros h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  color: var(--encre);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.heros p.accroche {
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 62ch;
  margin: 0 0 28px;
}

section {
  padding: 56px 0;
}

section + section {
  border-top: 1px solid var(--trait);
}

h2 {
  font-size: clamp(21px, 3vw, 27px);
  color: var(--encre);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
  color: var(--encre);
  margin: 0 0 6px;
}

p {
  margin: 0 0 16px;
}

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

a:hover {
  color: var(--accent-fonce);
}

.grille {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 32px;
}

.carte {
  border: 1px solid var(--trait);
  border-radius: 12px;
  padding: 22px;
  background: var(--fond);
}

.carte p:last-child {
  margin-bottom: 0;
}

ol.etapes {
  counter-reset: etape;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

ol.etapes li {
  counter-increment: etape;
  padding-left: 44px;
  position: relative;
}

ol.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.encadre {
  border-left: 3px solid var(--accent);
  background: var(--fond-doux);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.encadre p:last-child {
  margin-bottom: 0;
}

/* ── Pages de texte legal ───────────────────────────────────────────────── */

.legal {
  max-width: 76ch;
  padding-top: 48px;
  padding-bottom: 64px;
}

.legal h1 {
  font-size: clamp(26px, 4vw, 34px);
  color: var(--encre);
  margin: 0 0 8px;
}

.legal .maj {
  color: var(--doux);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 20px;
  margin-top: 38px;
}

.legal ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal li {
  margin-bottom: 8px;
}

.aremplir {
  background: #fef3c7;
  border: 1px dashed #d97706;
  color: #78350f;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.94em;
}

/* ── Pied de page ───────────────────────────────────────────────────────── */

footer.principal {
  border-top: 1px solid var(--trait);
  background: var(--fond-doux);
  padding: 36px 0;
  font-size: 14px;
  color: var(--doux);
}

footer.principal .liens {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

footer.principal a {
  color: var(--texte);
  text-decoration: none;
}

footer.principal a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .heros {
    padding: 48px 0 40px;
  }
  section {
    padding: 40px 0;
  }
}
