/* Identité visuelle MiMi : fond nuit, cuivre chaud, lecture confortable.
   Le site reprend la palette de l'application pour que le passage de l'une à
   l'autre ne surprenne pas. */

:root {
  --nuit: #0f0f13;
  --nuit-clair: #17171d;
  --carte: #1c1c23;
  --bordure: #2a2a33;
  --cuivre: #d9a183;
  --cuivre-sombre: #b97f5e;
  --or: #eacb84;
  --texte: #f2efec;
  --texte-doux: #a09a95;
  --largeur: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--nuit);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cuivre); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ En-tête */

header {
  border-bottom: 1px solid var(--bordure);
  background: rgba(15, 15, 19, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.barre {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--texte);
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo:hover { text-decoration: none; }

.pastille {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--or), var(--cuivre));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.barre nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.barre nav a { color: var(--texte-doux); }
.barre nav a:hover { color: var(--cuivre); }

/* -------------------------------------------------------------------- Corps */

main { max-width: var(--largeur); margin: 0 auto; padding: 48px 20px 80px; }

h1 {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--bordure);
}

h2:first-of-type { border-top: none; padding-top: 0; }

h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: var(--cuivre); }

p, ul, ol { margin-bottom: 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 7px; }

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

strong { color: #fff; font-weight: 600; }

/* ------------------------------------------------------------------- Blocs */

.encart {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0;
}

.encart.cuivre {
  background: rgba(217, 161, 131, 0.09);
  border-color: rgba(217, 161, 131, 0.3);
}

.encart.alerte {
  background: rgba(234, 203, 132, 0.08);
  border-color: rgba(234, 203, 132, 0.35);
}

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

.a-completer {
  background: rgba(255, 92, 92, 0.12);
  border: 1px dashed rgba(255, 120, 120, 0.5);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 14px;
  color: #ffb3b3;
  font-weight: 600;
}

/* ------------------------------------------------------------------ Accueil */

.hero { text-align: center; padding: 30px 0 10px; }
.hero .pastille-grande {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--or), var(--cuivre));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(217, 161, 131, 0.28);
}
.hero p { color: var(--texte-doux); font-size: 18px; max-width: 520px; margin: 0 auto 8px; }

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

.tuile {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.tuile:hover {
  border-color: var(--cuivre);
  transform: translateY(-2px);
  text-decoration: none;
}
.tuile h3 { margin: 0 0 6px; color: var(--texte); font-size: 16px; }
.tuile p { color: var(--texte-doux); font-size: 14px; margin: 0; }

/* -------------------------------------------------------------- Pied de page */

footer {
  border-top: 1px solid var(--bordure);
  padding: 32px 20px 48px;
  color: var(--texte-doux);
  font-size: 14px;
}
.pied { max-width: var(--largeur); margin: 0 auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.pied nav a { color: var(--texte-doux); }

table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bordure); vertical-align: top; }
th { color: var(--cuivre); font-weight: 600; }

@media (max-width: 560px) {
  h1 { font-size: 27px; }
  main { padding: 32px 18px 60px; }
  .barre { flex-direction: column; align-items: flex-start; gap: 10px; }
}
