/* Feuille de style commune des pages légales publiques de Suklu Academy.
   Servie telle quelle par Firebase Hosting (fichier statique, avant les
   réécritures). Couleurs de l'application : #4CAF50 (primaire) et #087F23. */

:root {
  color-scheme: light;
  --vert: #4CAF50;
  --vert-fonce: #087F23;
  --texte: #1c261c;
  --texte-secondaire: #4f5e4f;
  --fond: #ffffff;
  --fond-doux: #f3faf3;
  --bordure: #d5e6d5;
  --alerte-fond: #fff7e6;
  --alerte-bordure: #e0a800;
}

/* Reset léger */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

/* Bandeau d'en-tête */
.bandeau {
  background: linear-gradient(135deg, #4CAF50 0%, #087F23 100%);
  color: #ffffff;
  padding: 18px 16px;
}

.bandeau__contenu {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.bandeau__marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.3px;
}

.bandeau__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.bandeau__logo svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.bandeau__nav {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.bandeau__nav a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bandeau__nav a:hover,
.bandeau__nav a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Corps de page */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

h1,
h2,
h3 {
  color: var(--vert-fonce);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 1.85rem;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--bordure);
}

h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--vert);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

a:hover,
a:focus-visible {
  color: var(--vert-fonce);
}

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

strong {
  font-weight: 700;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--fond-doux);
  padding: 1px 5px;
  border-radius: 4px;
}

.meta {
  color: var(--texte-secondaire);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.chapo {
  font-size: 1.05rem;
  color: var(--texte-secondaire);
}

/* Encadrés */
.encadre {
  background: var(--fond-doux);
  border-left: 4px solid var(--vert);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
}

.encadre--alerte {
  background: var(--alerte-fond);
  border-left-color: var(--alerte-bordure);
}

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

/* Sommaire */
.sommaire {
  background: var(--fond-doux);
  border: 1px solid var(--bordure);
  border-radius: 8px;
  padding: 14px 16px 14px 36px;
  margin: 20px 0 8px;
  columns: 2;
  column-gap: 24px;
}

.sommaire li {
  break-inside: avoid;
  margin-bottom: 4px;
}

/* Étapes numérotées */
.etapes {
  list-style: none;
  padding-left: 0;
  counter-reset: etape;
}

.etapes > li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  counter-increment: etape;
}

.etapes > li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vert-fonce);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tableaux */
.tableau {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.95rem;
}

caption {
  text-align: left;
  font-weight: 700;
  color: var(--vert-fonce);
  padding: 10px 12px 4px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bordure);
}

thead th {
  background: var(--fond-doux);
  color: var(--vert-fonce);
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Pied de page */
footer {
  border-top: 1px solid var(--bordure);
  background: var(--fond-doux);
  color: var(--texte-secondaire);
  font-size: 0.9rem;
  padding: 24px 16px 32px;
}

footer .pied__contenu {
  max-width: 760px;
  margin: 0 auto;
}

footer p {
  margin: 0 0 8px;
}

/* Petites largeurs */
@media (max-width: 560px) {
  h1 {
    font-size: 1.55rem;
  }

  .sommaire {
    columns: 1;
  }

  .bandeau__marque {
    font-size: 1.2rem;
  }
}

/* Impression */
@media print {
  .bandeau {
    background: none;
    color: #000000;
    border-bottom: 2px solid #000000;
  }

  .bandeau__marque,
  .bandeau__nav a {
    color: #000000;
  }

  .bandeau__nav {
    display: none;
  }

  a {
    color: #000000;
  }

  table {
    min-width: 0;
  }
}
