/* Pirouette & Compagnie – feuille de style commune */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #ff7a1a; --orange-fonce: #c95a08;
  --vert: #6cc36c; --vert-fonce: #3f9a3f;
  --rouge: #ff4d5e; --texte: #4a3b2f; --doux: #6b5a4c;
  --creme: #fff8e8;
}
body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Baloo 2", system-ui, sans-serif;
  background: linear-gradient(160deg, #fff4d6 0%, #ffe0ec 50%, #d9f3ff 100%) fixed;
  min-height: 100vh; color: var(--texte); line-height: 1.5;
  display: flex; flex-direction: column;
}
a { color: var(--orange-fonce); }

/* En-tête */
.entete { background: #ffffffcc; backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 5; }
.entete .interieur { max-width: 1000px; margin: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--orange); font-size: 1.35rem; font-weight: bold; }
.logo .mascottes { font-size: 1.6rem; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--texte); padding: 8px 14px; border-radius: 999px; font-size: 1rem; }
nav a:hover, nav a.actif { background: var(--orange); color: #fff; }

main { flex: 1; width: 100%; max-width: 1000px; margin: auto; padding: 20px 16px 30px; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--orange); text-shadow: 2px 2px 0 #fff; text-align: center; }
h2 { color: var(--orange-fonce); margin: 26px 0 10px; font-size: clamp(1.3rem, 4vw, 1.8rem); }
h3 { margin: 18px 0 6px; }
p, li { font-size: 1.05rem; }
.intro { text-align: center; color: var(--doux); font-size: clamp(1rem, 3vw, 1.25rem); max-width: 700px; margin: 8px auto 20px; }

/* Cartes de contenu */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 20px 0; }
.tuile { background: #fff; border-radius: 22px; padding: 22px; text-align: center; text-decoration: none; color: var(--texte);
  box-shadow: 0 5px 0 rgba(0,0,0,.08); transition: transform .15s; display: block; }
.tuile:hover { transform: translateY(-4px) rotate(-1deg); }
.tuile .emoji { font-size: 3.4rem; display: block; }
.tuile h3 { color: var(--orange); margin: 8px 0 4px; }
.bloc { background: #ffffffdd; border-radius: 22px; padding: 22px 26px; margin: 18px 0; box-shadow: 0 4px 0 rgba(0,0,0,.05); }
.bloc ul { padding-left: 22px; }
.bouton { display: inline-block; text-decoration: none; border: none; border-radius: 999px; padding: 12px 24px; font: inherit; font-size: 1.15rem;
  background: var(--vert); color: #fff; cursor: pointer; box-shadow: 0 4px 0 var(--vert-fonce); }
.bouton:active { transform: translateY(2px); }

/* Mascottes */
.mascottes-grille { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 16px 0; }
.mascotte { background: #fff; border-radius: 50%; width: 130px; height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 5px 0 rgba(0,0,0,.08); animation: flotte 3s ease-in-out infinite; }
.mascotte:nth-child(2) { animation-delay: .5s; } .mascotte:nth-child(3) { animation-delay: 1s; }
.mascotte span { font-size: 3.2rem; } .mascotte b { font-size: .95rem; }
@keyframes flotte { 50% { transform: translateY(-8px); } }

/* Comptines */
.comptine { background: #fff; border-radius: 22px; padding: 20px 24px; margin: 16px 0; box-shadow: 0 4px 0 rgba(0,0,0,.06); }
.comptine h2 { margin-top: 0; }
.comptine .paroles { white-space: pre-line; font-size: 1.15rem; }
.comptine .astuce { margin-top: 10px; color: var(--doux); font-size: .95rem; }

/* Pubs : toujours bien séparées des jeux */
.pub { width: 100%; max-width: 728px; min-height: 90px; margin: 30px auto; text-align: center; }
.pub small { display: block; font-size: .7rem; color: #9a8b7d; margin-bottom: 4px; font-family: system-ui, sans-serif; }

/* Pied de page */
footer { background: #ffffffaa; padding: 18px 16px; text-align: center; font-size: .9rem; color: var(--doux); font-family: system-ui, sans-serif; }
footer a { margin: 0 8px; color: var(--doux); }
.installer { display: none; margin: 12px auto 0; }

/* Pages texte (légales) */
.texte { font-family: system-ui, sans-serif; }
.texte h2 { font-family: inherit; }

@media (max-width: 480px) {
  .mascotte { width: 100px; height: 100px; } .mascotte span { font-size: 2.5rem; }
  .entete { position: static; }
  nav a { padding: 6px 10px; }
}
