html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  font-family: 'fredoka', sans-serif;
}

      .header {
        background-color:#79bef1;
        width: 100%;
            margin: 0 auto;
            height: 260px;
            
      }

      .heanderint {
        max-width: 950px;
      margin: 0 auto;   
      display: flex;     
      justify-content: space-between;
      align-items: center;
    padding:40px 20px 0px 20px;    
      }

/*  MENU */

.premenu {
    display: flex;
}

.semibold {
    font-weight: 600;
}

.favorismenu {
    width: 24px;
    margin-right: 20px;
}

.sonmenu {
    width: 30px;
    height: 27px;
    .contenu { flex:1 }
}

.mobile0 ul,
.mobile0 li {
  list-style: none;
  font-size: 16px;
  font-weight: 500;
}

.mobile0 li:first-child {
    margin-left: 2px;
}

.mobile0 li:last-child {
    margin-right: 2px;
}

.mobile0 li {
  margin-right: 5px;
  padding: 12px;
}


.mobile0 li:first-child {
  border-radius: 40px;
}

.mobile0 li:hover {
  background-color: #F0F0F0;
  border-radius: 40px;
  padding: 12px;
}


.mobile0 li:first-child:hover {
  background-color: #F0F0F0;
  border-radius: 40px;
  padding: 12px;
}


.has-mega{position:relative }
.menu-link{
  border:0;
  padding: 0;
  background:none;
  font:inherit;
  cursor:pointer;
border-radius:16px;color:#1f2a37
}


/* pont invisible de 20px */
.has-mega .mega::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -20px;
  height: 60px;
}

.mega-grid li {
      padding: 6px 0px 0px 0px;
      font-weight: 400;
       margin-left: 0px;
}

.mega-grid li:first-child {
       margin-left: 0px;
}


.mega-grid li:hover {
  background-color: #ffffff;
  border-radius: 0px;
  padding:6px 0px 0px 0px;
  text-decoration:underline;
  margin-left: 0px;
} 


.mega-grid li:first-child:hover {
 background-color: #ffffff;
  border-radius: 0px;
  padding:6px 0px 0px 0px;
  margin-left: 0px;
}

/* caché par défaut */
.has-mega .mega {
  position: absolute;
  left: -97px;
  top: 100%; 
  width: min(500px,92vw);
  background: #fff;
  border-radius: 40px;
  padding: 1.7rem;
  display:none;       /
  z-index: 50;
  border: 1px solid #79BEF1;
  transform: translateY(19px);
  z-index: 999; 
}

/* ouvre au survol du li, au clavier, ET si on est sur le panneau */
.has-mega:hover .mega,
.has-mega .mega:hover,
.has-mega:focus-within .mega {
  display: block;
}


.mega h3{margin:0px 0px 1px;font-size:18px;font-weight: 600;}
.mega ul{margin:0;padding:0;list-style:none}

.mega-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
  align-items:start;
}

.mega-grid .col-droite{
  display:flex;
  flex-direction:column;
  gap:8px; /* petit espace entre la liste et le bouton */
}

.mega-grid .col-droite .mega-cta{
  margin-top:8px;
  align-self:flex-start; /* ou 'flex-end' si tu le veux à droite */
}

.mega-cta {
  color: white;
  margin-top: 16px;
  padding: 10px 14px;
  background: #79BEF1;
    border-radius: 60px;
  text-decoration: none;
      box-shadow: 0px 4px 0px 0px #C5E3F9;
}

.mega-cta:hover {
  color: white;
  margin-top: 16px;
  padding: 10px 14px;
  background: #79BEF1;
    border-radius: 60px;
  text-decoration: none;
      box-shadow: 0px 6px 0px 0px #C5E3F9;
}




        a {
        color: inherit;
        text-decoration: none;
      }

           .logo {
        width: 150px;
        margin-bottom: 20px;
      }

      .mobile0 {
        display: flex;
        background-color: white;
        padding: 8px;
        border-radius: 40px;
        align-items: center;
      }


      .wave {
  display: block;
  width: 100%;
  height: auto;
}


.mobile-menu{
  display:none;
  border:0;
  background:#fff;
  padding:.6rem 1rem;
  font-weight:600;
  cursor:pointer;
}

.mobile-menu-toggle {
  display: none;
}


.mobile-menu-close img {
  width: 2rem;
}

/* FIN MENU */

/* CONTENU */

.contenu {
    background-color: white;
    margin: 0 auto;
    max-width: 1100px;
    flex: 1;
}

#audio-toggle { cursor: pointer; }


.bannierenuage {
    background-image: url('assets/nuageheadsep.svg');
     background-size: cover; /* Assure que l'image couvre tout le conteneur */
    background-position: center bottom; /* Centre l'image et la place en bas */
    background-repeat: no-repeat; /* Empêche l'image de se répéter */
    width: 100%;
    height: 110px;
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
}

.personnage {
margin-left: 230px;
margin-top: -65px;
height: 180px ;
z-index: 999;

}

.personnage1 {
    padding-left: 520px;
    padding-bottom: 45px;
    width: 130px;
}

.p1 {
     margin: 0 auto;
}

.p1 h1 {
      margin: 0;
    padding-top: 20px;
}

.textepresentation {
  text-align: justify;
  margin-bottom:20px;
}

.menucoloriage {
       padding-bottom: 6px;
    font-family: "Source Sans 3", sans-serif;
    display: flex;
    align-items: center;
}

.button2 {
height: 45px;
padding: 13px;
background-color: #FBC370;
color: white;
font-size:16px ;
font-weight: 600;
border: 2px solid #FBC370;
border-radius: 40px;
font-family: "Source Sans 3", sans-serif;
margin-right: 10px;
display: flex;
align-items: center;
cursor: pointer;
 transition: transform .25s ease-in-out;
}

.button3:hover {
background-color: white;
border: 2px #F5F5F5 solid;
color: black;

}

.button3 {
padding: 13px;
height: 45px;
background-color: #ffffff;
color: black;
font-size:16px ;
font-weight: 600;
border: 2px solid #F5F5F5;
border-radius: 40px;
font-family: "Source Sans 3", sans-serif;
display: flex;
align-items: center;
}

.buttonsponso {
cursor: pointer;
 transition: transform .25s ease-in-out;

}
.buttonsponso:hover {
  transform: scale(1.06);
    transition: transform .20s ease;
}




.gauche{
    display: flex;
    align-items: center;
}

.droite {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.separation {
    align-items: center;
    margin: 0 auto;
    display: flex
;
padding: 20px;
width: 200px;
}

.coloriagesaccueil {
    display: flex;
    flex-direction: row;
 align-items: stretch; 
  
}

.banniereacc {
border: 1px solid #E4E4E4;
  background-color: #F5F5F5;
  border-radius: 40px;
  height: 440px;
  width: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.bangauche {
  display: flex;
    flex-direction: column;
    justify-content: flex-end;
        width: 100%;
        padding: 25px;
  border-radius: 40px;
  max-width: 70%;
      background: #ffffffc9;
}

.bandroite {
      width: 100%;
      display: flex
;
    justify-content: flex-end;
}


.titreban {
    color: #000000;
  font-size: 68px;
  font-weight: 600;
  margin: 0px 0px 7px 0px;

}


.bandesc {
  font-size: 32px;
      margin: 0px 0px 20px 0px;
}


.slide.slide-ban1 {
  background-image: url('assets/halloween-ban.jpg');
  background-size: cover;
  background-position: center;
}

/* --- SLIDER --- */

/* conteneur des slides */
.slides-track {
  display: flex;
  width: 100%;
  height: 100%;
transition: transform 1s cubic-bezier(.55,.08,.25,.95);
}

/* chaque slide prend toute la largeur */
.slide {
  flex: 0 0 100%;
  background-size: cover;
  background-position: center;
  border-radius: 40px; /* garde le style de ta banniere */
  display: flex;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
}

/* bulles */
.dots {
  position: absolute;
    bottom: 30px;
    right: 35px;
  display: flex;
  gap: 8px;
    z-index: 10; 
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #79BEF1; /* ta couleur principale */
}


.themesplus {
    color: #F25A4E;
    background-color: white;
    border: 2px solid #F25A4E;
    font-size: 18px;
    font-weight: 600;
    padding: 15px;
    border-radius: 10px;
      transition: transform .25s ease-in-out;
      width: 170px;
          align-items: center;
    text-align: center;
}

.themesplus:hover {
    color: white;
    background-color:#e98c86 ;
    border: 2px solid #e98c86;
        font-size: 18px;
font-weight: 600;
padding: 15px;
border-radius: 10px;
 transform: scale(1.06);
    transition: transform .25s ease;
cursor: pointer;
}

.populaires {
    height: 18px ;
    margin-right: 5px;
}

.nouvetoile {
    height: 18px;
    margin-right: 5px;
    align-items: center;
    display: flex
;
    justify-content: center;
}

.coeurpop {
    height: 16px;
    margin-right: 5px;
    align-items: center;
    display: flex
;
    justify-content: center;
}

.eventicn {
    height: 19px;
    margin-right: 5px;
    align-items: center;
    display: flex
;
    justify-content: center;
}


.titre {
    margin-top: 5px;
    margin-bottom: 5px;
}

.c1, .c2, .c3 {
    margin-right: 10px;
    cursor: pointer;
     flex: 1;                /* chaque colonne prend la même largeur */
  text-align: center;
    display: flex;
  flex-direction: column;

}

.c1 img, .c2 img, .c3 img {
height: 450px;
width: 100%;
}

.c1 img:hover, .c2 img:hover, .c3 img:hover {
 transform: scale(1.06);
    transition: transform .25s ease;
}

.zoneimagec1{
  flex: 1;              /* occupe toute la hauteur disponible */
  display: flex;
  align-items: center;  /* centre verticalement ton image */
  justify-content: center; /* centre horizontalement */
       background-color: white;
      box-shadow: inset 0 0 0 5px #79BEF1; /* 3px de "bordure intérieure" rouge */
    padding: 20px;
    border-radius: 20px;
    aspect-ratio: 1/1; 
}

.zoneimagec2{
  flex: 1;              /* occupe toute la hauteur disponible */
  display: flex;
  align-items: center;  /* centre verticalement ton image */
  justify-content: center; /* centre horizontalement */
    background-color: #F25A4E;
    border-radius: 20px;
 aspect-ratio: 1/1; 
 padding: 20px;

}

.zoneimagec3{
  flex: 1;              /* occupe toute la hauteur disponible */
  display: flex;
  align-items: center;  /* centre verticalement ton image */
  justify-content: center; /* centre horizontalement */
       background-color: #FFE8A3;
    border-radius: 20px;
    aspect-ratio: 1/1; 
    padding: 20px;
}


h2 {
     font-size: 34px;
    color: #79BEF1;
    font-weight: 600;
    }



.voirplus {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.sponsorise {
      background-color: #f0f0f0;
   margin: 0 auto;
    max-width: 1100px;
    display: flex;
    border-radius: 40px;
    align-items: center;
    justify-content: space-around;
}

.sponsorise img {
    width: 260px;
    height: 100px;
    background-color: grey;
    margin-left:40px;
    margin-top: 20px;
    margin-bottom: 20px;

}

.sponso {
  margin: 10px 0px 0px 0px;
     display: flex;
    align-items: center;
}

.btnadsmobile {
  display: none;
}

.textesponso {
      padding: 10px;
      font-weight: 400;
     
}

.centresponso {
    font-weight: 400;
}

.centresponso p {
   line-height: 10px
}

.sponsorise button {
    background-color: #79BEF1;
    border: none;
    padding: 15px;
    border-radius: 60px;
    color: white;
    font-weight: 600;
  box-shadow: 0px 4px  0px 0px #C5E3F9;


}

.jeux{
    display:flex;
    flex-direction: column;
    align-items: center;
            margin: 0px 15px 0px 15px;
}


.jeux h2 {
    color: black;
    font-weight: 500;
    font-size: 34px;
}

.categoriesjeux {
    display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
     gap: 2rem;
         width: auto;
        margin: 2rem;
    max-width: 1100px;
}

.categoriesjeux div {
    flex: 1; 
      text-align: center;
}

.categoriesjeux {
}



.j1 {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
     background-color: #74D4C3;
             aspect-ratio: 1 / 1;    /* garantit largeur = hauteur */
  border-radius: 50%;
  box-sizing: border-box;

}


.j2 {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    background-color: #F25A4E;
    aspect-ratio: 1 / 1;    /* garantit largeur = hauteur */
  border-radius: 50%;
  box-sizing: border-box;

}

.j2 img, .j3 img, .j1 img  {
    width:70%;
}


.j3 {
     display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
   background-color: #68A4E1;
     aspect-ratio: 1 / 1;    /* garantit largeur = hauteur */
  border-radius: 50%;
  box-sizing: border-box;

}


.categoriesjeux p {
  text-align: center; 
  font-weight: 400;
}


.j1b, .j2b,.j3b {
      transition: transform .25s ease-in-out;

}

.j1b:hover,.j2b:hover,.j3b:hover {
    transform: scale(1.06);
    transition: transform .25s ease;
    cursor: pointer;
}

.zigzag {
  width: 100%;
  margin-top: 20px;
  background-image: url("/assets/stylefooter.svg");
  background-repeat: repeat-x;      /* répète en horizontal */
  background-position: top center;
  height: clamp(10px, 1vw, 10px); /* min 30px, max 80px, sinon 6% de la largeur */

}

.footer{
 
    background-color: #79BEF1;
    position: relative;
    width: 100%;
 display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
      margin-top: auto; 
     z-index: 1;

}

.footer-col-logo img {
  margin-top: 5px;
      margin-bottom: 0px;
}


.footercontent {
    max-width: 1100px;
    width: 100%;
     display: grid;
  grid-template-columns: 20fr 30fr 30fr 20fr;
  gap: 10px;
    align-items: flex-start;
    padding-top: 15px;
     justify-content: space-around;
     margin-bottom: 20px;
}

.footer-col-pages ul {
    margin-top: 10px;
  list-style: none; 

  padding: 0;
  text-align: left;
}

.footer-col-pages, .footer-col-infos {
    margin-left: 20px;
}

.footer li {
  font-weight: 400;
  color: rgb(255, 255, 255);
  margin-bottom: 8px;
  text-align: left;
}

.footer-col-infos ul {
    margin-top: 10px;
  list-style: none; 
  padding: 0;
  text-align: left;
}

.footer h3 {
    color: white;
}

.timivacances {
    height: 170px;
    margin-left: 20px;
    margin-top: 20px;
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  padding: 0.8rem 0;
  font-size: 0.9rem;
  color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.footer-social {
  text-align: center;
  margin: 1rem 0;
}

.footer-social .icon-instagram {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
  list-style: none; 
}

.footer-social .icon-instagram:hover {
  transform: scale(1.2);
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #ffffff;
}


/* PAGE UNIQUE COLORIAGE */


.breadcrumb ol {
  margin: 0; padding: 0;
  list-style: none;
  display: flex; flex-wrap: wrap; gap: .5rem;
  font: 14px/1.3 system-ui, sans-serif;
}

.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li+li::before { /* séparateur */
  content: "›";
  margin: 0 .5rem; opacity: .6;
}

.breadcrumb a {
  color: inherit; text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb [aria-current="page"] { font-weight: 600; }

.breadcrumb {
  padding-top: 3rem;
}

.division {
  display: flex;
  flex-direction: row;
  max-width: 1100px;
  justify-content: flex-start;
    padding-top: 30px;
        gap: 20px;

}

.pi-droite {
  width: 63%;
    min-width: none;
}

.pi-gauche {
  width: 37%;
    min-width: none;

}

.pi-gauche img {
  max-width: 100%;
}

.pi-droite h1 {
  margin-top: 0;
  margin-bottom: 20px;
}

.color-thumb {
    border: 3px solid #f5F5F5;
  border-radius: 20px;
  padding: 10px;
}



/* Cadre image non déformé (ratio 2:3) */
    .thumb{position:relative;width:100%;overflow:hidden;display:flex;align-items:center;justify-content:flex-start}
    .thumb img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
    

.imprimer {
  display: flex;
  align-items: center;
    justify-content: center;

  border-radius: 30px;
  padding:4px 10px 4px 10px;
  color: white;
  background: linear-gradient(270deg, #79BEF1, #FBC370, #F25A4E);
    background-size: 300% 300%;
    transition: transform 0.2s ease;
    width: 40%;
    min-width: 40%;
}

.imprimer:hover {
    transition: transform .25s ease;
    cursor: pointer;
      animation: gradientMove 3s ease infinite;
  transform: scale(1.03); /* petit zoom au hover */
}

.telecharger:hover {
    transform: scale(1.06);
    transition: transform .25s ease;
    cursor: pointer;
}

.telecharger{
  display: flex;
    align-content: center;
    align-items: center;
        border: 1px solid #e9e9e9;
    border-radius: 30px;
    padding: 7px 17px 6px 17px;
        justify-content: center;
        width: 40%;
    min-width: 40%;
}

.pi-button {
      display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.imprimer img {
  height: 30px;
    padding: 7px;
}

@media print {
  /* Tout cacher par défaut */
  body * { display: none !important; }

  /* Ne montrer que la zone d’impression */
  #print-area, #image-a-imprimer {
    display: block !important;
  }

  /* Cadre impression : n’impacte pas l’écran, ni .thumb générique */
  #print-area {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    background: #fff !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #image-a-imprimer {
    max-width: 100% !important;
    max-height: 100vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  @page { size: auto; margin: 0; }
}

.telecharger img {
  height: 23px;
  padding: 7px;
}



.pi-sponso p:first-child {
  font-weight: 600;
}

.coloriagessimilaires {
  display: flex;
  flex-direction:column;
}

.coloriagessimilaires h2 {
      margin-bottom: 20px;
}

.cardsimi {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.menusouscategoriepage{
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}


.cd1, .cd2 {
  height: auto;
 min-width: 170px;
  background-color: #ffffff;
  border-radius: 10px;
  border: 2px solid #e9e9e9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.cd1 img,.cd2 img {
  max-width: 150px;
  max-height: 200px;
    object-fit: contain; /* pas de déformation, letters-box si horizontal/vertical */
      background: #fff;    /* optionnel : fond propre autour de l'image */


}


.cd1 p, .cd2 p{
  margin: 10px;
  width: 9rem;
  text-align: center;
}

.pi-sponso {

  padding: 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  max-width: 1100px;
    width: 600px;
}


  .pi-sponso2 { display:flex; gap:12px; align-items:center; padding:12px; border:1px solid #eee; border-radius:12px; background:#fff;cursor:pointer;max-width: 800px;}
    .pi-sponso2 .imgwrap { width:150px; min-width:150px; overflow:hidden; border-radius:10px; background:#ffffff; display:flex; align-items:center; justify-content:center;padding-right: 20px;
    padding-left: 20px; }
    .pi-sponso2 .imgwrap img { width:100%; height:100%; object-fit:cover; }
    .pi-sponso2 .texte h3 { margin:0 0 6px; font-size:18px; }
    .pi-sponso2 .btn-aff { display:inline-block; padding:12px 15px 12px 15px; border-radius:25px; background:#1e78c2; color:#fff; text-decoration:none; margin-bottom: 10px;}
    .pi-sponso2 .btn-aff:hover { background:#268bdd; }
    .pi-sponso2:hover {opacity:.98;}

    .texte {margin-right: 15px;
    text-align: justify;}

.pi-sponso p {
  margin-top: 10px;
  margin-left: 20px;
  margin-bottom: 10px;
}

.pi-sponso p:first-child {
  margin-top: 0px;

}

.pi-sponso img {
  background-color: white;
  width: 80px;
}


.sponsoads {
  text-align: right;
  font-size: 14px;
  margin: 0px 0px 8px 0px;
}

.home-sponso {
     
    display: flex;
    justify-content: center;
    margin-left: 20px;
    margin-right: 20px;
}


.titrecat {
  font-size: 24px;
  font-weight: 800;
  color: #F9A09A;
}

.pi-categories a {
  padding: 15px 30px 15px 30px;
  color: black;
  background-color: white;
  border: 1px solid #e9e9e9;
  border-radius: 50px;
}




/* PAGE DES CATEGORIES */

.pagecoloriages {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.pagecoloriages h1{
  font-size: 48px;
  font-weight: 500;
      margin: 10px 0px 20px 0px;
}

.top5coloriages {
  display: flex;
  flex-direction: row;
  gap: 25px;
flex-wrap: nowrap; 
overflow: hidden; 
     justify-content: center;
 padding: 5px 5px 0px 5px;
}

.top5colo img {

  width: 100%;
  max-width: 120px;
      min-width: 120px;
  aspect-ratio: 1 / 1;   /* carré */
  object-fit: cover;     /* couvre le cercle */
background-color: rgb(192, 192, 192);
  border-radius: 50%;    /* cercle */
   box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16); /* ombre douce */
}
.top5colo {
 display: flex;
    flex-direction: column;
    align-items: center;
     width: 140px; 
     min-width: none;
}

.top5colo a {
  display: flex
;
    flex-direction: column;
    align-items: center;
}


.top5colo p {
text-align: center; }

/* accessibilité : cache le label visuel */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* barre pilule */
.search-bar{
  display:flex;
  align-items:center;
  max-width: 350px;   
  padding: .75rem 1.1rem;
  border: 2px solid #e9e9e9;
  border-radius: 999px;
  background:#fff;
}

/* champ */
.search-bar input{
  flex:1;
  border:none;
  outline:none;
  font: 16px/1.2 'Source Sans 3', system-ui, sans-serif;
  background:transparent;
}

/* bouton orange à droite */
.btn-search{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.75rem 1.1rem;
  border:none;
  border-radius:999px;
  background:#FBC370;        /* orange de ta charte */
  color:#fff;
  font-weight:500;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
     display: flex;
    max-width: 150px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.btn-search:hover{ opacity: 0.8; }
.btn-search:active{  }


.btn-prenom{
  font-size: 16px;
  font-family:"Fredoka",system-ui,sans-serif;
  font-weight: 500;
  width: 140px;
  padding:.75rem 1.1rem;
}

/* focus visibles */
.search-bar:has(input:focus),
.btn-search:focus{
  outline: 3px solid #79BEF1;
  outline-offset: 2px;
}

/* Le conteneur du menu déroulant */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px); /* juste sous le champ */
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 20px;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  max-height: 320px;
  overflow-y: auto;
  display: none; /* ouvert/fermé via JS */
  z-index: 1000;
}

/* Chaque option de suggestion */
.search-suggestions .suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: 16px/1.2 'Source Sans 3', system-ui, sans-serif;
}

.search-suggestions .suggestion:hover,
.search-suggestions .suggestion:focus {
  background: #f5f5f5;
  outline: none;
}


input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration{
  -webkit-appearance: none;
  appearance: none;
  display: none;
}



.loupeform {
  color: white;
  height: 20px;
}

/* mobile : pleine largeur */
@media (max-width:600px){
  .search-bar{ max-width: 100%; }
}

.categoriesaz h2 {
  font-size: 28px;
  color: black;
 font-weight: 500;
    display: flex
;
    justify-content: center;
}


.cats-select { 
    font-weight: 400;
}

.categoriesaz {
    padding-bottom: 1rem;
}

.card {
    background-color: #F5F5F5;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    border-radius: 20px;
    padding: 20px 20px 0px 20px;
    margin-right: 20px;
        height: 350px;
    justify-content: flex-end;
}

.card p {
    max-width: 200px;
}

.card:last-child {
  margin-right: 0px;
}


.lescartes {
  display: flex;
}

/* PAGE DES COLORIAGES D'UNE CATEGORIE */

.categoriespage {
   display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
}

.categoriespage h1{
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 0;
}

.descriptioncategorie {
      margin: 0px 0px 5px 0px;
          text-align: center;
          max-width: 980px;
}


.btn-back img {
  width: 15px;
  padding-right: 5px;
}

.card2{
  display: flex;
     align-items: center;
    flex-direction: row;
    justify-content: center;
    margin-top: 10px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 40px;
  color: white;
    margin-top: 10px;
   margin-bottom: 20px;
  font-weight: 600;
  text-decoration: none;
   padding: 15px;
  cursor: pointer;

  /* dégradé animé */
  background: linear-gradient(270deg, #79BEF1, #FBC370, #F25A4E);
  background-size: 300% 300%;
  transition: transform 0.2s ease;
}

.btn-back:hover {
  animation: gradientMove 3s ease infinite;
  transform: scale(1.03); /* petit zoom au hover */
}


@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* PAGE CONTACT */ 

.page-contact {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-infos p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FBC370;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button.btn:hover {
  background: #FBC370;
    transform: scale(1.06);
    transition: transform .25s ease;
}


.cats-title{display:flex;align-items:center;gap:.6rem;margin:1rem 0 1rem}
.cats-select{border:1px solid #e5e7eb;background:#fff;border-radius:8px;padding:.35rem .6rem;font:inherit;cursor:pointer}
.theme-sep{height:3px;width:160px;background:#f2a13a;margin:22px 0 8px}
.theme-title{font-size:1.2rem;font-weight:700;margin:0 0 12px}

/* — Page catégories : conserver la même répartition des cartes — */

.categoriesaz .lescartes .card{

  height: auto;          
  display: flex;
  flex-direction: column;
  align-items: center;
justify-content: flex-start;
}

.categoriesaz .lescartes{
  display: flex;
  flex-wrap: wrap;  /* optionnel, si utile */
  gap: 20px;
          justify-content: center;
}

/* Remplace la règle .card img existante par ceci */
.categoriesaz .lescartes .card img{
  width: 200px;       /* largeur forcée (clé pour éviter la barre) */
  height: 300px;      /* même hauteur pour toutes */
  object-fit: contain;
  background: #ffffff;/* ton fond constant */
  display: block;
}






/* (Optionnel) si certaines lignes “poussent” : autoriser le retour à la ligne */
@media (min-width: 0px){
  .categoriesaz .lescartes{
    display: flex;
    flex-wrap: wrap;             /* même répartition en passant à la ligne */
    gap: 20px;                   /* équivaut à tes margins */
  }
}


/* Séparateur thématique : barres gauche/droite + titre centré */
.theme-heading{
  --line-color: #FBC370; /* orange */
  --line-h: 5px;         /* épaisseur de la barre */
  --gap: 1.25rem;        /* espace autour du titre */
  --line-max: 36rem;     /* longueur max de chaque barre */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.35rem;
}

.theme-heading span{
    font-size: 25px;
    padding: 0 .25rem;
    font-weight: 500; }

.theme-heading::before,
.theme-heading::after{
  content:"";
  height: var(--line-h);
  background: var(--line-color);
  border-radius: 4px;
  flex: 1 1 auto;              /* occupe la place dispo */
  max-width: var(--line-max);  /* évite des barres trop longues */
}

.theme-heading::before{ margin-right: var(--gap); }
.theme-heading::after { margin-left:  var(--gap); }

/* mobile : barres plus courtes et plus fines si tu veux */
@media (max-width: 600px){
  .theme-heading{ --line-h: 4px; --line-max: 18rem; }
}


/* 1100 PX RESPONSIVE */

@media only screen and (max-width: 1100px) {
    .contenu {
        margin: 0px 30px 0px 30px;
     }

     .jeux {
      margin: 0px 30px 0px 30px;
     }

     ..home-sponso {
      margin: 0 auto;
     }

     .personnage1 {
      padding-left: 460px;
      padding-bottom: 37px;
     }

.footercontent {
  margin-left: 30px;
  margin-right: 30px;
  width: 90%;
  gap: 0px;
}

    }


    @media only screen and (max-width: 1050px) {
.personnage1 {
  display: none;
}
    }

/*ENTRE 1049 et 850 */

      @media only screen and (max-width: 1049px) {
.personnage1 {
  display: none;
}
    
    .personnage {
    margin-left: -250px;
    margin-top: -120px;
    height: 180px;
    z-index: 999;
}
.footercontent {
      margin-right: 30px;
    margin-left: 30px;
}

.footer {
  display: flex;
}
  .top5coloriages > .top5colo:nth-child(n+6) { display: none; }


  .card {
        margin-right: 0px;
  }
}



/*85PX*/

    @media only screen and (max-width:850px) {

.pi-sponso2 {
    margin-bottom: 0px;
        flex-direction: column;
              
      
}

.titrecat {
      margin-top: 20px;
}


 .mobile0 {
  display: none;
 }

   .mobile-menu-toggle{ 
    display:flex; 
    align-items:center; 
    gap:.5rem;
    border: none;
    font-family: 'fredoka', sans-serif;   
    font-size: 25px;
    appearance: none;             /* supprime le style par défaut */
  -webkit-appearance: none;     /* pour Safari iOS */
  border: none;                 /* enlève la bordure noire */
  background: transparent;      /* fond transparent */
    width: 116px;
   height: 51px;
           margin-bottom: 1px;
  padding: 12px; 
    color: black;
   background-image: url("/assets/menubg.svg");
  background-repeat: no-repeat;   /* pas de répétition */
  background-position: center;    /* centré */
  background-size: cover;         /* rempli toute la zone */
          align-items: center;
          justify-content: center;
      }


      .mobile-menu-toggle:active{ transform: scale(.97) }


   .mobile-menu{
  position:fixed; inset:0; 
  background:#fff;
  z-index:9999;
  display:none;               /* caché par défaut */
  flex-direction:column;
  padding:.6rem 1rem;
  font-weight:600;
   cursor:pointer;
   border: 0px;
     transition: opacity .3s ease, transform .3s ease;

}


.mobile-menu.is-open{ display:flex; }

 .personnage {
  display: none;
}

/* Close (croix) */
.mobile-menu-close{
  align-self:center;
  border:0;
  background:transparent;
        font-size: 31px;
  line-height:1;
  cursor:pointer;
          background-color: #ebebeb;
        padding: 20px;
        border-radius: 50px;
       aspect-ratio: 1 / 1;
        margin: 20px 20px 0px 20px;
      height: 68px;
        width: 68px;
                display: flex;
        align-items: center;
        justify-content: center;
}

/* Liste des liens */
.mobile-menu-list{
  list-style:none; margin:40px 0 0; padding:0;
  display:flex; flex-direction:column; gap:18px;
  font-size:36px; font-weight:500;align-items: center;
}
.mobile-menu-list a{
  text-decoration:none; color:#111;
}
.mobile-menu-list a:hover{ text-decoration:underline; }

/* Optionnel : petite anim d’apparition */
@keyframes slideIn { from {opacity:0; transform:translateY(10px);} to {opacity:1; transform:none;} }
.mobile-menu.is-open{ animation: slideIn .2s ease-out; }


 .top5coloriages > .top5colo:nth-child(n+5) { display: none; }

 .pagecoloriages h1 {
    font-size: 28px;
    font-weight: 500;   
  }
      .footercontent {
grid-template-columns: 8fr 27fr 30fr;
        gap: 18px;
  margin-right: 0px;
  margin-left: 0px;
}

.zigzag {
  margin-top: 20px;
      height: clamp(9px, 1vw, 11px);
}

.footer-col-mascot {
  display: none;
}

.bangauche {
  padding: 20px;
  border-radius: 40px;
  max-width: 70%;

}

.pi-sponso {
  width: 80%;
}

.bannierenuage {
  height: 37px;
}

.header {
  height: 150px;
}

.premenu {
  display: none;
}

.heanderint {
        padding: 15px 20px 3px 20px;
    display: flex;
            flex-direction: row;
;
}

.bandesc {
      font-size: 24px;
text-align: left;
    }

.titreban {
      font-size: 38px;
}

.logo {
  margin-bottom: 0px;
}


.slide {
  padding: 10px;
}

.bandroite {
  display: none;
}

.jeux h2{
      margin-bottom: 0;
              margin-top: 20px;
}

.categoriesjeux {
        width: auto;
        margin: 2rem;
}


.top5coloriages {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 10px;
flex-wrap: nowrap;
overflow: hidden; 
     justify-content: center;
 padding: 5px 5px 0px 5px;
}


.cardsimi {
      gap: 15px;
}


.pi-droite {
  width: 50%;
}

.pi-gauche {
  width: 50%;


}


    }




@media (max-width:750px) {



.pi-gauche {
  width:40%;
}
.pi-droite {width: 60%;}
}


@media (max-width:700px){
  .mega{position:static;width:100%;margin-top:10px}
  .mega-grid{grid-template-columns:1fr}
}

  @media only screen and (max-width:620px) {

.pi-sponso2 .btn-aff {
  display: none;
}

.btnadsmobile {
 display:inline-block; padding:12px 15px 12px 15px; border-radius:25px; background:#1e78c2; color:#fff; text-decoration:none; margin-bottom: 10px;
}
    
    .division{
    display:grid;
    grid-template-areas:
     "h1"   "image"  "btns"  "prenom" "ad" "nav" "sim" "cats";
    gap:0px;
     max-width: 100%;            /* pleine largeur */
    width: 100%;
     grid-template-columns: 1fr; /* une seule colonne */
     padding-top: 15px;
       place-items: center; 
  }
  .pi-gauche, .pi-droite{ display: contents; width: 100%;}
  .color-thumb{ grid-area:image; }
  .pi-button{ grid-area:btns; align-items: center; justify-content: center; display: flex;flex-direction: column; width: 100%;}
  .search-bar{ grid-area:prenom; }
  .pi-sponso{ grid-area:ad; }
  .coloriagessimilaires{ grid-area:sim; align-items: center;  justify-content: center; }
  .pi-categories{ grid-area:cats;display: flex
;
        flex-direction: column;
        align-content: center;
        align-items: center; } 

.breadcrumb {
  padding-top: 1.5rem;
  padding-left: 1rem;
}


.coloriagessimilaires h2 {
margin-top: 10px;

}

.menusouscategoriepage {
  justify-content: center;
  margin-bottom: 20px;
}

.cardsimi {
  gap: 15px;
}

.cd1, .cd2 {
  min-width: 152px;
  
}



  .pi-droite h1{
    text-align: center;
  }


  .btn-prenom {
    width: 110px;
}

  .color-thumb {
       display: flex;
        justify-content: center;
        margin: 0px 10px 20px 10px;
        /* padding: 0; */
        width: fit-content;
      
  }

     .top5coloriages > .top5colo:nth-child(n+4) { display: none; }

     .header
     {
      height: auto;
     }


         .bannierenuage {
        height: 26px;
    }


    
     .imprimer {
             width: 80%;
        min-width: 0;
}

.telecharger{
      width: 76%;
        min-width: 0;
}

    .ajouterprenom {
          display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    margin-bottom: 0px;
    }

 .card 
{height: 370px;}

.j3b {
  display: none;
}

.categoriesjeux {
          margin: 1.5rem;
                  display: grid;
        grid-template-columns: repeat(2, 1fr);
}


  .zigzag {
    margin-top: 0px;
  }


  .footer-col-pages {
    display: none;
  }


.footer-col-mascot {
  display: none;
}



.contenu {
        margin: -2px 20px 0px 20px;

}

    .jeux {
      margin: 0px 15px 0px 15px;
     }


.card p {
  margin-top: 10px;
    margin-bottom: 0px;
    max-width: 110px;
}





.card {
 padding: 0px 20px 0px 20px;
         padding: 20px;
                 display: flex
;
        justify-content: flex-start;
}

.top5colo img {
  min-width: 0;
}

.top5colo {
 display: flex;
    flex-direction: column;
    align-items: center;
     width: 100px; 
}



  .categoriesaz .lescartes {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch; /* les cartes s'étendent sur la même hauteur */
  }

  .categoriesaz .lescartes > a {
    display: block;
  }

  .categoriesaz .lescartes .card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* ✅ Zone image : s’adapte sans forcer le ratio, remplit le vide */
  .categoriesaz .lescartes .card .thumb {
    flex: 1;                  /* occupe la hauteur dispo */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;         /* blanc derrière l’image */
    overflow: hidden;
    min-height: 180px;        /* ajustable : la “hauteur de base” visuelle */
  }

  .categoriesaz .lescartes .card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* garde les proportions, comble le vide blanc */
    display: block;
  }

   .categoriesaz .lescartes .card p {
    margin: 8px 0 0;
    text-align: center;
    min-height: 2.6em; /* 🔑 réserve la place pour 2 lignes de texte max */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  }





@media only screen and (max-width:520px) {
.card{
  height: 235px;
}

.titreban {
  display: none;
}

.bandesc {
  display: none;
}

.bangauche {
  background: none;
}

.jeux h2{
      margin-bottom: 0;
              margin-top: 10px;
                      font-size: 26px;
}


  .color-thumb img  {
    padding: 10px;
  }


.pi-sponso2 .imgwrap { 
min-width: 110px;
    padding-right: 10px;
    padding-left: 10px;
}

    .categoriesaz .lescartes .card img {
        height: 168px;
        object-fit: contain;
        background: #ffffff;
        display: block;
        width: auto;
    }

.sponsoads {
  text-align: right;
    font-size: 14px;
  margin: 0px 0px 0px 0px;
}

.pagecoloriages h1, .pagecoloriages p {
  text-align: center;
}

.telecharger, .telecharger:hover {
  justify-content: center;
}

 

    .categoriesaz h2 {
    font-size: 24px;  }

    .search-bar {
      width:auto;
    }


    .breadcrumb li { display: inline-flex; align-items: center; font-size: 12px; }

    .breadcrumb {
    padding-top: 1rem; }

    .breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex
;
    flex-wrap: wrap;
    gap: .2rem;
    font: 14px / 1.3 system-ui, sans-serif;
}

    .breadcrumb li {
        display: inline-flex
;
        align-items: center;
        font-size: 14px;
    }
}


        .footercontent {
       display: flex;
       
        margin-right: 0px;
        margin-left: 0px;

  }

@media only screen and (max-width:380px) {

.menusouscategoriepage {
  display: flex;
  flex-direction: column;
}
.cardsimi {
display: flex
;
        flex-direction: column;
        }

.descriptioncategorie {
  text-align: justify;
}

   .pagecoloriages p {
        text-align: justify;
    }

    .pagecoloriages h1 {
      text-align: justify;
    }

    .card p {
      text-align: center;
    }
  



.pi-sponso2 {
  display: flex;
  flex-direction: column;
}


.footer-col-infos {
  display: none
}

    .categoriesaz h2 {
        font-size: 24px;
        display: flex;
        flex-direction: column; }

  
.search-bar {
  display: none;
}

}


@media only screen and (max-width:360px) {

.menusouscategoriepage {
  align-items: center;
}

.coloriagessimilaires h2 {
  text-align: center;
}
}


