
/* --------------------------------------------------
   BASE (premium minimaliste)
-------------------------------------------------- */

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: #222;
  background: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Liens */
a {
  color: #1a5fad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Titres */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Paragraphes */
p {
  margin-bottom: 15px;
}

/* --------------------------------------------------
   HEADER ET LOGO
-------------------------------------------------- */

header {
  text-align: center;
  padding: 20px 16px;
}

/* Logo Les Petits Pourquoi */
.site-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 18px;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: auto;
  height: 100px;
  max-width: 90%;
  object-fit: contain;
}

/* Navigation */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}

nav a {
  color: #333;
}

nav a:hover {
  color: #000;
}

/* --------------------------------------------------
   CONTENU PRINCIPAL
-------------------------------------------------- */

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding-bottom: 40px;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------
   ASTUCE FUTÉE
-------------------------------------------------- */

.astuce-futee {
  margin-top: 40px;
  padding: 20px;
  border-left: 4px solid #1a5fad;
  background: #f7f9fc;
  border-radius: 6px;
}

.astuce-futee h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #1a5fad;
}

.astuce-futee p {
  margin: 0;
  color: #333;
}

/* --------------------------------------------------
   LIENS INTERNES
-------------------------------------------------- */

.liens-internes {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.liens-internes h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #222;
}

.liens-internes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.liens-internes li {
  margin: 6px 0;
}

.liens-internes a {
  color: #1a5fad;
}

.liens-internes a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   ADAPTATION MOBILE
-------------------------------------------------- */

@media (max-width: 768px) {
  main {
    font-size: 1.02em;
    line-height: 1.55;
  }

  nav {
    gap: 10px 14px;
  }
}

@media (max-width: 600px) {
  .site-logo img {
    height: 76px;
  }

  header {
    padding: 16px 10px;
  }
}


/* --------------------------------------------------
   CORRECTIONS AFFICHAGE MOBILE
-------------------------------------------------- */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

body {
  transform: none;
}

header {
  width: 100%;
  padding: 16px 12px;
}

.site-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
}

.site-logo img {
  display: block;
  width: auto;
  height: 110px;
  max-width: 90%;
  object-fit: contain;
}

nav {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

main {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
}

@media (max-width: 600px) {
  .site-logo img {
    height: 90px;
  }

  main {
    padding: 0 16px;
    font-size: 1rem;
  }

  nav {
    gap: 10px 14px;
  }
}
