/* Tawzi3 — site public (tawzi3.app). Jetons repris de la maquette Figma. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --vert: #0E5135;
  --profond: #06301E;
  --menthe: #5EA687;
  --menthe-pale: #E7F2EC;
  --orange: #FF6A13;
  --orange-fonce: #C94C04;
  --texte: #17211C;
  --texte-doux: #55615A;
  --fond: #F5F7F6;
  --carte: #FFFFFF;
  --bord: #DFE6E2;
  --rayon: 14px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}

a { color: var(--vert); text-underline-offset: 2px; }
a:hover { color: var(--orange-fonce); }
img { max-width: 100%; height: auto; }

.lien-evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: #fff; padding: 8px 12px; z-index: 10;
}
.lien-evitement:focus { left: 16px; top: 8px; }

.conteneur { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.conteneur.etroit { max-width: 780px; }

/* En-tête */
.entete { background: var(--profond); color: #fff; }
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.marque { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.marque:hover { color: #fff; }
.marque img { width: 38px; height: 30px; display: block; }
.marque span { font-family: "Figtree", "Inter", sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; }
.nav a { color: #D5E7DD; text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .langue { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.nav .langue:hover { text-decoration: none; border-color: var(--orange); }

/* Héros (accueil) */
.heros { background: var(--profond); color: #fff; padding: 40px 0 64px; overflow: hidden; }
.heros .conteneur { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.heros h1 {
  font-family: "Figtree", "Inter", sans-serif; font-weight: 800;
  font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px;
}
.heros h1 em { font-style: normal; color: var(--orange); }
.heros p { color: #CFE3D8; font-size: 18px; max-width: 560px; margin: 0 0 28px; }
.heros .icone { width: 168px; height: 168px; border-radius: 38px; box-shadow: 0 24px 60px rgba(0,0,0,.35); justify-self: center; }
@media (min-width: 760px) {
  .heros { padding: 64px 0 88px; }
  .heros .conteneur { grid-template-columns: 1.5fr 1fr; }
  .heros .icone { width: 220px; height: 220px; border-radius: 50px; }
}

.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton {
  display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--orange); color: #fff; border: 2px solid var(--orange);
}
.bouton:hover { background: var(--orange-fonce); border-color: var(--orange-fonce); color: #fff; }
.bouton.secondaire { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.bouton.secondaire:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(24px, 4vw, 30px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--profond); }
.section .chapeau { color: var(--texte-doux); margin: 0 0 28px; max-width: 640px; }

.grille { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grille.quatre { grid-template-columns: repeat(4, 1fr); } }

.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; }
.carte h3 { margin: 12px 0 6px; font-size: 18px; color: var(--profond); }
.carte p { margin: 0; color: var(--texte-doux); font-size: 15px; }
.pastille {
  width: 40px; height: 40px; border-radius: 10px; background: var(--menthe-pale); color: var(--vert);
  display: grid; place-items: center;
}
.pastille svg { width: 22px; height: 22px; }

.bandeau { background: var(--menthe-pale); }
.liens-utiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .liens-utiles { grid-template-columns: repeat(3, 1fr); } }
.liens-utiles a {
  display: block; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 18px 20px; text-decoration: none; color: var(--texte); height: 100%;
}
.liens-utiles a:hover { border-color: var(--menthe); }
.liens-utiles strong { display: block; color: var(--vert); margin-bottom: 4px; }
.liens-utiles span { color: var(--texte-doux); font-size: 15px; }

/* Pages de texte (confidentialité, support, suppression) */
.titre-page { background: var(--profond); color: #fff; padding: 36px 0 40px; }
.titre-page h1 { font-family: "Figtree", "Inter", sans-serif; font-weight: 800; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
.titre-page p { margin: 0; color: #CFE3D8; }

.texte { padding: 36px 0 64px; }
.texte h2 { font-size: 22px; line-height: 1.3; color: var(--profond); margin: 40px 0 10px; padding-top: 8px; }
.texte h3 { font-size: 17px; color: var(--vert); margin: 24px 0 6px; }
.texte p, .texte li { color: var(--texte); }
.texte ul, .texte ol { padding-left: 22px; }
.texte li { margin: 4px 0; }
.texte .resume {
  background: var(--carte); border: 1px solid var(--bord); border-left: 4px solid var(--orange);
  border-radius: 10px; padding: 16px 20px; margin: 0 0 8px;
}
.texte .resume ul { margin: 8px 0 0; }
.texte .note { background: var(--menthe-pale); border-radius: 10px; padding: 14px 18px; }

.sommaire { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 14px 20px; margin: 24px 0 0; }
.sommaire ol { margin: 6px 0 0; columns: 1; }
@media (min-width: 640px) { .sommaire ol { columns: 2; column-gap: 32px; } }

.tableau { width: 100%; overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--bord); }
th { background: var(--menthe-pale); color: var(--profond); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

details { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 0 18px; margin: 10px 0; }
details[open] { padding-bottom: 6px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--profond); }
summary:hover { color: var(--vert); }

.etapes { counter-reset: etape; list-style: none; padding-left: 0 !important; }
.etapes > li { counter-increment: etape; position: relative; padding-left: 44px; margin: 14px 0; }
.etapes > li::before {
  content: counter(etape); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}

/* Pied de page */
.pied { background: var(--profond); color: #B9D3C5; font-size: 14px; padding: 28px 0; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.pied a { color: #fff; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pied p { margin: 0; }
.texte .resume p { margin: 6px 0 0; }

/* Tableaux empilés sur téléphone : une carte par ligne, l'en-tête devient l'étiquette. */
@media (max-width: 639px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  table { border: 0; background: transparent; }
  tr { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; margin: 0 0 10px; padding: 6px 0; }
  td { border: 0; padding: 6px 14px; }
  td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--vert); }
}
