body {
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:var(--gris-clair);
  color:var(--texte);
}

/* ===== EN-TÊTE ===== */
.entete-cfpmr {
  background:linear-gradient(135deg,var(--bleu-principal),var(--bleu-secondaire));
  color:#fff;
  border-bottom:6px solid var(--jaune-cfpmr);
  padding:1.5rem 1rem;
}
.entete-contenu {
  max-width:1100px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:1rem;
}
.logo-cfp {
  height:70px;
  background:#fff;
  padding:.4rem;
  border-radius:6px;
}

@media (max-width:600px) {
  .entete-contenu {
    flex-direction: column;
    gap: 1rem;
  }

  .entete-partenaire {
    margin-left: 0;
  }
}

/* ===== CONTENU ===== */
main {
  max-width:1100px;
  margin:auto;
  padding:2rem 1rem;
}
.jeux {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.5rem;
}

.jeu {
  background:#fff;
  border-radius:8px;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
  display:flex;
  flex-direction:column;

/* ✅ Animation fluide */
  transition: 
    transform .25s ease, 
    box-shadow .25s ease;

  position: relative
}


.icones-types {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.icone-type {
  background: var(--jaune-cfpmr);
  color: #003e7e;
  font-size: 1.1rem;
  padding: .35rem .45rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* 📱 Cellulaire – coin haut gauche */
.badge-cellulaire-corner {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--jaune-cfpmr);
  color: #003e7e;
  font-size: 1.1rem;
  padding: .35rem .45rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  z-index: 3;
}


.badge-cellulaire-corner:hover::after {
  content: " Cellulaire requis";
  white-space: nowrap;
  margin-left: .3rem;
  font-size: .75rem;
}


.jeu:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 10px 24px rgba(0,0,0,.18), 
    0 0 0 2px rgba(242,195,0,.6);
}

.jeu img {
  width:100%;
  height:220px;
  object-fit:contain;
  background:#fafafa;
}


.meta-jeu {
  margin: .4rem 0 .6rem;
  font-size: .85rem;
  font-weight: 600;
  color: #003e7e;
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

.meta-jeu span {
  background: #f4f6f8;
  padding: .25rem .55rem;
  border-radius: 12px;
}

.contenu-jeu {
  padding:1rem;
  display:flex;
  flex-direction:column;
  flex:1;
}
.contenu-jeu h3 {
  margin-top:0;
  border-left:4px solid var(--jaune-cfpmr);
  padding-left:.5rem;
}
.liens {
  margin-top:auto;
}
.liens a {
  display:inline-block;
  margin-top:.5rem;
  margin-right:.4rem;
  padding:.45rem .9rem;
  background:var(--bleu-secondaire);
  color:#fff;
  border-radius:20px;
  text-decoration:none;
  font-size:.85rem;
  font-weight:600;
}
.liens a:hover {
  background:var(--jaune-cfpmr);
  color:#003e7e;
}

/* ===== FOOTER ===== */
footer {
  background:var(--bleu-principal);
  color:#fff;
  text-align:center;
  padding:1rem;
  border-top:4px solid var(--jaune-cfpmr);
}

/* ===== Crédits du créateur – Footer ===== */

.footer-credits {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.25);
  font-size: .8rem;
  line-height: 1.4;
  color: #e6ecf3;
}

.footer-credits strong {
  color: var(--jaune-cfpmr);
}

.reference-boutique {
  margin-top:.4rem;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:.6rem;
  flex-wrap:wrap;
}
.reference-boutique img {
  height:34px;
  background:#fff;
  padding:.25rem;
  border-radius:4px;
}
footer a {
  color:var(--jaune-cfpmr);
  font-weight:600;
  text-decoration:none;
}
footer a:hover {text-decoration:underline;}

.badge-cellulaire {
  display: inline-block;
  margin: .3rem 0 .5rem;
  padding: .25rem .6rem;
  font-size: .75rem;
  font-weight: 700;
  background: var(--jaune-cfpmr);
  color: #003e7e;
  border-radius: 12px;
}

.intro-responsabilite {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border-left: 6px solid var(--jaune-cfpmr);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-radius: 6px;
}

.intro-responsabilite h2 {
  margin-top: 0;
  color: var(--bleu-principal);
  font-size: 1.1rem;
}

.intro-responsabilite p {
  margin: .5rem 0 0;
  line-height: 1.5;
}


.memo-jeux {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border-left: 6px solid var(--jaune-cfpmr);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-radius: 6px;

}
/*
.memo-jeux h2 {
  margin-top: 0;
  color: var(--bleu-principal);
  font-size: 1.1rem;
}
*/
.memo-jeux h2 {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 3px solid var(--jaune-cfpmr);
}


/* ===== Memo-jeux repliable sans JavaScript ===== */

.memo-jeux summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--bleu-principal);
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Enlever la flèche native */
.memo-jeux summary::-webkit-details-marker {
  display: none;
}

/* Icône personnalisée */
.memo-jeux summary::before {
  content: "▾";
  font-size: 1.2rem;
  transition: transform .2s ease;
  color: var(--jaune-cfpmr);
}

/* Icône quand fermé */
.memo-jeux:not([open]) summary::before {
  transform: rotate(-90deg);
}

/* Espacement du contenu */
.memo-jeux > *:not(summary) {
  margin-top: .6rem;
}

/* ===== LÉGENDE DES JEUX ===== */
.legende-jeux {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border-left: 6px solid var(--bleu-secondaire);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-radius: 6px;
}

.legende-jeux h2 {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--bleu-principal);
}

.legende-liste {
  list-style: none;
  padding: 0;
  margin: .8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
}

.legende-liste li {
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--texte);
}

.icone-legende {
  background: var(--jaune-cfpmr);
  color: #003e7e;
  border-radius: 50%;
  padding: .25rem .45rem;
  font-size: 1rem;
}


/* ===== EN-TÊTE – PARTENAIRE ===== */
.entete-gauche {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.entete-partenaire {
  margin-left: auto;
  text-align: center;
}

.partenaire-texte {
  display: block;
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #e6ecf3;
  margin-bottom: .2rem;
}

.logo-partenaire {
  height: 70px;
  background: #ffffff;
  padding: .35rem;
  border-radius: 6px;
}

/* ===== EN-TÊTE – MENU ===== */

/* Barre de menu jaune */
.menu-principal {
  background-color: #f2c200; /* jaune */
  border-top: 3px solid #e0b000;
  border-bottom: 3px solid #e0b000;
}

/* Menu horizontal */
.menu-principal ul {
  display: flex;
  justify-content: flex-start; /* gauche → droite */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Espacement entre les items */
.menu-principal li {
  margin-right: 10px;
}

/* Liens */
.menu-principal a {
  display: block;
  padding: 12px 20px;
  color: #000; /* texte noir */
  text-decoration: none;
  font-weight: bold;
}

/* Hover */
.menu-principal a:hover {
  background-color: #000;
  color: #fff;
}
