/* Police douce et arrondie */
body {
    font-family: 'Comic Sans MS', 'Segoe UI', cursive, sans-serif;
    /*background: linear-gradient(180deg, #ffccf9, #f0f8ff);*/
    background: linear-gradient(125deg,
        #e0f7f4,  /* vert menthe pâle */
        #d6e4ff,  /* bleu très pâle */
    #cbe8ff,  /* bleu glacier */
    #c3dafe,  /* bleu lavande pastel */
    #e0cfff,  /* violet très clair */
    #f2ccff  /* touche rose lavande */
);
    color: #405c84;/*#5c4084;*/
    margin: 0;
    padding: 20px;
    text-align: center;
    background-attachment: fixed;
}

/* Arc-en-ciel flottant */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
    #d6e4ff,  /* bleu très pâle */
    #c3dafe,  /* bleu lavande pastel */
    #e0cfff,  /* violet très clair */
    #f2ccff,  /* touche rose lavande */
    #e0f7f4,  /* vert menthe pâle */
    #cbe8ff,  /* bleu glacier */
    #d6e4ff   /* retour au bleu pâle */
        /*#ff9a9e,
        #fad0c4,
        #fbc2eb,
        #a18cd1,
        #84fab0,
        #8fd3f4,
        #ff9a9e*/
    );
    opacity: 0.1;
    z-index: -1;
    animation: rainbowShift 60s linear infinite;
}

@keyframes rainbowShift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 14px;
    opacity: 0.8;
    border-radius: 2px;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}
/*

@keyframes confettiFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(30px) rotate(720deg);
        opacity: 0;
    }
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.confetti-container div {
    font-size: 24px;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    position: absolute;
    animation: confettiFall 4s ease-in forwards;
    user-select: none;
    will-change: transform;
}
*/

/* Titres mignons */
h1, h2, h3 {
    color: #6ca0dc;/*#ff6ec7;*/
    text-shadow: 1px 1px 2px white;
}

/* Lecteur audio */
#audioPlayer, #autoPlayer, #manualPlayer {
    border: 2px solid #f8a5c2;/*Voir?  : #a5d8ff*/
    border-radius: 20px;
    background: #fff0f6;/*#eefaff*/
    padding: 10px;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);/*0 0 15px rgba(100, 180, 255, 0.3)*/
    margin: 20px auto;
    display: block;
   /* width : 75%;*/
}

/* Contrôle de vitesse */
#speedControls {
    margin: 10px auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}



#speedControls button {
    background: #e6f4ff;/*#ffe0f0;/*#e6f4ff;*/
    border: 2px solid #a7ccf2;/*#ffc1e3;*/
    color: #2d78b3;/*#d63384;*/
    font-weight: bold;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#speedControls button:hover {
    background: #d6edff;/*#ffd6ec;/*#d6edff;*/
    transform: scale(1.05);
}

#speedControls button.active-speed {
    background: linear-gradient(to right,  #a0c4ff, #bdb2ff);/*#ff9a9e, #fad0c4);*/
    color: white;
    border-color:#89aaff;/* #ff6ec7;*/
  
    
}

/*#speedControls button.active-speed {
    background-color: #333;
    color: white;
    font-weight: bold;
}*/

/* Sélecteurs (dropdowns) */
select {
    border-radius: 10px;
    padding: 8px;
    background: #fff0fa;/*#e7f7ff;/*#e5f4ff;/*#fff0fa;*/
    border: 2px solid #c0D0f0;/*#c7e0f9;/*#ffc6e2;*/
    color: #306090;/*#a44dab;*/
    font-weight: bold;
}

/* Boutons généraux */
button {
    background:#fbe0ff;/* #e0f3ff;/*#fbe0ff;*/
    border: 2px solid #eabfff;/*#b0d6f5;/*#eabfff;*/
    border-radius: 12px;
    color: #357ab8;/*#973dbd;*/
    font-weight: bold;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #fddaff;/*#fddaff;/*#d0eaff;*/
}

/* Messages et texte */
#currentAutoFile {
    font-style: italic;
    margin-top: 10px;
    color: #3e77a8;/*#a54ec4;*/
}

/*Bouton nuageux*/
.cloud-button {
    display: inline-block;
    margin: 20px auto;
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(145deg, #f0f8ff, #e0f7f4, #f2ccff);
    color: #35669a;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(180, 180, 255, 0.3);
    transition: all 0.3s ease-in-out;
    border: 2px solid #d3e0f5;
    font-family: 'Comic Neue', 'Comic Sans MS','Segoe UI',  cursive, sans-serif;

/*    font-family: 'Comic Sans MS', 'Segoe UI', cursive, sans-serif;'Comic Sans MS', cursive;/*'Comic Neue', cursive;*/
}

.cloud-button:hover {
    background: linear-gradient(145deg, #e0f7f4, #d6e4ff, #e0cfff);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(160, 160, 240, 0.4);
    color: #264d73;
}

.jolie-boite {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.5); /* Fond blanc semi-transparent */
    border: 2px solid rgba(200, 200, 255, 0.5); /* Liseré doux */
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(100, 100, 150, 0.2);
    text-align: left;
    color: #405c84;
    font-size: 1.1rem;
    line-height: 1.6;
    backdrop-filter: blur(3px); /* effet flouté derrière la boîte */
}



/* ---- GOOGLE FONT COMIC NEUE (alternative Comic Sans) ---- */
/*@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');
*/
/* Appliquer la police à tout */



/* TABLETTE : Taille et lisibilité améliorée pour tablette */
@media (max-width: 1024px) {
	body {
    font-family: 'Comic Neue', 'Comic Sans MS','Segoe UI',  cursive, sans-serif;
} 
  html {
    font-size: 120%; /* ≈ 19px */
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  button,
  select {
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
  }

  #speedControls button {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
  }

  #currentAutoFile {
    font-size: 1.1rem;
  }
}

/* TELEPHONE :  Taille encore plus grande pour smartphone */
@media (max-width: 600px) {
	body {    
    font-family: 'Comic Neue', 'Comic Sans MS','Segoe UI',  cursive, sans-serif;
}
  html {
    font-size: 135%; /* ≈ 22px */
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  button,
  select {
    font-size: 1.2rem;
    padding: 0.8rem 1.4rem;
  }

  #speedControls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  #speedControls button {
    font-size: 1.2rem;
    padding: 0.7rem 1rem;
  }

  #currentAutoFile {
    font-size: 1.2rem;
  }
  select {/*Pour éviter que ca sit trop long*/
    max-width: 75%;
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    box-sizing: border-box;
}


}

