@media screen and (min-width: 769px) {
    .message {
        position: absolute;
        display: flex !important;
        flex-direction: column;
        gap: 50px;
        background: rgb(0,189,159);
        background: linear-gradient(9deg, rgba(0,189,159,1) 36%, rgba(224,255,250,1) 100%);
        height: 100vh;
        width: 100vw;
        z-index: 500;
        justify-content: center;
        align-items: center;
        color: white;
        text-align: center;
    }

    body {
        overflow: hidden;
    }
}

@font-face {
    font-family: 'Raleway';
    src: local('Raleway-Regular'), url('Raleway-Regular.woff2') format('woff2'),
         url('Raleway-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Raleway Bold';
    src: local('Raleway-Bold'), url('Raleway-Bold.woff2') format('woff2'),
         url('Raleway-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
  }
  
  body {
    font-family: 'Raleway', sans-serif;
  }

* {
    margin: 0;
    padding: 0;
}

a:link 
{ 
 text-decoration:none; 
} 

/* bloquer les selections de texte */
body  {
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
}

.message {
    display: none;
}

#page {
    height: 100vh;
    width: 100vw;
    z-index: 50;
}

header {
    position: fixed;
    top: 0;
    z-index: 300;
    width: 100vw;
    height: 100px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header_contenu {
    position: fixed;
    top: 0;
    z-index: 300;
    width: 100vw;
    height: 100px;
    background-color: #00bd9f;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    border-radius: 0 0 0px 50px;
    color: white;
}

.header_boutons {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

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

.header_bouton img {
    width: 25px;
}

.choix_grp_musculaire {
    display: none;
}

#site_et_contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.bouton {
    width: 45%;
    max-width: 200px;
    text-align: center;
    padding: 12px 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0043a2 0%, #003380 100%);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 67, 162, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bouton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 67, 162, 0.3);
    background: linear-gradient(135deg, #005bc4 0%, #0043a2 100%);
}

footer {
    z-index: 300;
    position: fixed;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100vw;
    height: 70px;
    bottom: 0;
    background-color: #00bd9f;
    color: white;
    border-radius: 0 50px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 189, 159, 0.15);
}

footer .boutons_accueil {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

footer .boutons_conseils {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

footer .boutons_infos {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

footer img {
    width: 25px;
}

/* page d'index */
.choix_structures {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
    overflow: hidden;
}

.choix_structures a {
    width: 100%;
    display: flex;
    justify-content: center;
}

.choix_structures img {
    width: 80%;
    max-width: 420px;
    border: none;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 189, 159, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.choix_structures img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 189, 159, 0.2);
}

#centre-accueil {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

#centre-accueil > div:first-child p {
    font-size: 1.1em;
    color: #555;
    font-weight: 500;
    margin-bottom: 10px;
}

#atterrissage img {
    width: 70%;
    max-width: 400px;
    animation: arriveeDeDroite 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes arriveeDeDroite {
    0% {
        transform: translateX(-100vw);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Ci-dessous tout ce qui est lié aux vignettes */

#vignettes_exercices {
    background-color: #1b407900;
    position: relative;
    top: 100px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 100px;
}

.vignette_exercice {
    display: flex;
    border-radius: 15px;
    padding: 5px;
    flex-direction: column;
    justify-content: space-around;
    width: 43%;
    height: 300px;
    /* box-shadow: inset 16px 16px 35px #f0f0f0, inset -16px -16px 35px #ffffff; */

    border-radius: 25px;
    background: #ffffff;
    box-shadow:  5px 5px 24px #cfcfcf,
                 -5px -5px 24px #ffffff;

}

.vignette_titre_difficulte_loupe {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.vignette_titre_difficulte {
    width: 80%;
}

.vignette_titre {
    font-size: 0.9em;
    text-align: center;
}

.vignette_loupe_image {
    width: 20px;
}

.vignette_image img {
    width: 100%;
    border-radius: 15px;
}

/* Structure du menu */
#bouton {
    top: 5px;
    right: 25px;
    height: 54px;
    width: 54px;
    background-color: white;
    border-radius: 10px;
    z-index: 200;
    position: fixed;
    border-color: #00bd9f;
    border-style: solid;
}

#langue {
    padding: 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: rgb(255, 255, 255);
}
/* Fin de la structure du menu */

/* Exercices */

#exercices {
    position: absolute;
    padding-top: 30%;
    padding-bottom: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 20;
    width: 100vw;
    background-color: #dbdbdb;
}

.exercice {
    position: relative;
    border-radius: 25px;
    width: 92%;
    height: 90vh;
    background-color: white;
    box-shadow:  10px 10px 22px #585858,
             -10px -10px 22px #ffffff;
}

/* Détail de chaque item des exercices */
.titre {
    text-align: center;
    font-size: 2em;
    margin-top: 10px;
}
.muscles {   
    text-align: center;
    font-size: 1.2em;
    margin-top: 5px;    
}
#difficulte {    
    display: flex;
    justify-content: center;
    margin-top: 5px;
}
#etoile {
    width: 15%;
}

.zoom_etoile {
    width: 25px;
}

.description {
    width: 90%;
    margin-left: 5%;
    position: absolute;
    bottom: 15px;
}

#filtres {
    padding: 20px;
    top: 20%;
    left: 10%;
    position: fixed;
    display: none;
    width: 80%;
    height: 60%;
    background-color: #ffffff;
    z-index: 1000;
    opacity: 0.95;
    border-radius: 15px;
    overflow: scroll;
    box-shadow: 0 0 0 200px rgb(255 255 255 / 50%);
    border: 1px solid #c1c1c1;
    font-size: small;
    overflow-x: hidden;
}

.filtres_agres_niveaux {
    display: flex;
    flex-direction: column;
    height: 50%;
    margin: 0 0 -15px 0;
    justify-content: space-around;
}

.filtres_agres_fit {
    margin-top: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#filtres h2 {
    text-align: center;
    margin-top: 20px;
}

.filtres_bouton {
    padding: 2px 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
    background-color: #00bd9f;
}

.filtres_bouton_valider {
    width: fit-content;
    margin: 0 auto 20px;
}

hr {
    margin: 10px;
}

.difficultes {
    position: relative;
    left: 159px;
    display: flex;
    gap: 7px;
}

#conseils {
    overflow: scroll;
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    width: 80%;
    height: 60%;
    padding: 20px 15px 0 15px;
    background-color: #ffffff;
    z-index: 1000;
    opacity: 0.95;
    top: 20%;
    left: 10%;
    border-radius: 15px;
    box-shadow: 0 0 0 200px rgb(255 255 255 / 50%);
    border: 1px solid #c1c1c1;
    font-size: small;
}

.validerConseils{
    margin-bottom: 20px;
    width: 20px;
}

#infosLegales {
    overflow: scroll;
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    width: 80%;
    height: 60%;
    padding: 20px 15px 0 15px;
    background-color: #ffffff;
    z-index: 1000;
    opacity: 0.95;
    top: 20%;
    left: 10%;
    border-radius: 15px;
    box-shadow: 0 0 0 200px rgb(255 255 255 / 50%);
    border: 1px solid #c1c1c1;
    font-size: small;
}

.validerInformations {
    width: 20px;
    padding-bottom: 25px;
}

#zoom_exercice {
    display: block;
    position: fixed;
    top: -100vh;
    height: 100vh;
    width: 100vw;
    z-index: 5000;
    background-color: rgb(255, 255, 255);
    transition: top 0.7s ease-in-out;
}

.description-zoom {
    font-size: small;
    overflow: hidden;
    height: 100px;
  }
  
  .description-zoom p {
    animation: scroll 10s linear infinite; /* Ajustez la durée selon vos besoins */
  }
  
  @keyframes scroll {
    from {
      transform: translateY(0%);
    }
    to {
      transform: translateY(-100%);
    }
  }

.zoom_titre {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 90%;
    height: 7%;
    font-family: "Raleway", sans-serif;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    color: #858585;
    font-weight: bold;
    font-size: x-large;
    margin-top: 30px;
    border: 1px solid lightgrey;
}

.zoom_titre p {
    margin: 0;
}

.zoom_muscles_etoiles {
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 10%;
    width: 100%;
    height: 10%;
}

.zoom_muscles {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 50%;
    text-align: center;
}

.zoom_etoiles {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 50%;
}

.zoom_fleche {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 95%;
    height: 5%;
    width: 100%;
}

.zoom_fleche img{
    height: 90%;
}

/* Formulaire de contact */

#contacts {
    position: relative;
    display: none;
    z-index: 2;
    margin: 0;
    padding: 0;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: #00bd9f;
}

.cadre_contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 80%;
    height: 80%;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

.cadre_contacts p {
    text-align: center;
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo img {
    width: 70%;
}

.reseaux {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-bottom: 25px;
}

.reseau img {
    width: 25px;
}

/* Formulaire test */

.formulaire {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2px 20px 2px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.formulaire h2 {
    margin-bottom: 8px;
    font-size: 1em;
    text-align: center;
}

.fermetureContacts {
    margin-top: 15px;
}

.fermeture {
    width: 15px;
    position: absolute;
    right: 20px;
    top: 10px;
}

.formulaire-group {
    margin-bottom: 5px;
}

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

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.formulaire textarea {
    height: 150px;
}

.formulaire button {
    padding: 2px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.formulaire button:hover {
    background-color: #0056b3;
}

#messageEnvoye {
    display: none;
    text-align: center;
    background: linear-gradient(135deg, #00bd9f 0%, #00a389 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 189, 159, 0.2);
    font-weight: 500;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateY(-10px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
}

/* choix difficulté */

.radio-input {
    display: flex;
    scale: 0.15;
    transform: rotate(180deg);
    position: relative;
    margin-top: -50px;
    left: -12px;
  }
  
  .star {
    margin: 1em;
    appearance: none;
    --color: rgb(210, 210, 210);
    border-left: 6.4721359549996em solid transparent;
    border-right: 6.4721359549996em solid transparent;
    border-bottom: 4em solid var(--color);
    transform: rotate(0deg);
    cursor: pointer;
  }
  
  .star:before {
    content: "";
    border-left: 6.4721359549996em solid transparent;
    border-right: 6.4721359549996em solid transparent;
    border-top: 4em solid var(--color);
    position: absolute;
    left: -6.4721359549996em;
    transform: rotate(108deg);
  }
  
  .star:after {
    content: "";
    border-left: 6.4721359549996em solid transparent;
    border-right: 6.4721359549996em solid transparent;
    border-top: 4em solid var(--color);
    position: absolute;
    left: -6.4721359549996em;
    transform: rotate(253deg);
  }
  
  .radio-input > .star:hover ~ .star,
  .radio-input > .star:hover,
  .radio-input > .star:checked ~ .star,
  .radio-input > .star:checked {
    --color: rgb(255, 0, 0);
  }
  
  .radio-input > .star:checked ~ .star,
  .radio-input > .star:checked {
    animation: grow 0.5s linear forwards;
    transition: transform 0.3s;
  }
  
  @keyframes grow {
    50% {
      scale: 2;
    }
  }


  /* Exercices - Slider des trois images */

.swiper {
    height: 100%;
    width: 90%;
    border-radius: 25px;
}

.swiper-pagination-progressbar-fill {
    background-color: #00bd9f !important;
    height: 10px !important;
    border-radius: 0 0 25px 0;
}

.swiper-slide img {
    height: 100%;
}

.zoom-description {
    height: 100%;
    overflow: hidden;
  }

  .zoom-description p {
    text-align: center;
    font-size: small;
    animation: scroll 7s linear infinite;
  }

  @keyframes scroll {
    from {
      transform: translateY(50%);
    }
    to {
      transform: translateY(10%);
    }
  }

  /* Bouton d'installation de l'application */
  #installBtn {
    position: fixed;
    top: 89%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #0043a2;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    z-index: 1000;
    width: 45%;
    text-align: center;
    padding: 5px;
  }
  
  #closeBtn {
    margin-left: 10px;
    color: rgb(255, 255, 255);
  }

/* Bouton installer l'application - Design moderne */
#ajout_ecran_accueil {
    background: linear-gradient(135deg, #00bd9f 0%, #00a389 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 16px 32px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 189, 159, 0.25);
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#ajout_ecran_accueil::before {
    content: "📲";
    font-size: 1.2em;
}

#ajout_ecran_accueil:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 189, 159, 0.35);
    background: linear-gradient(135deg, #00d4b0 0%, #00bd9f 100%);
}

#ajout_ecran_accueil:active {
    transform: translateY(-1px);
}

/* Responsive - Ajustements pour petits écrans */
@media screen and (max-width: 400px) {
    #centre-accueil {
        gap: 20px;
    }
    
    #ajout_ecran_accueil {
        padding: 14px 28px;
        font-size: 0.95em;
    }
    
    .choix_structures img {
        width: 85%;
    }
}

/* Responsive - Ajustements pour grands écrans */
@media screen and (min-width: 768px) {
    #centre-accueil {
        max-width: 600px;
    }
    
    .choix_structures img {
        max-width: 500px;
    }
}

/* ── Sélecteur langue accueil compact ─────────────────────── */
.accueil_langue_select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 12px;
}

.accueil_langue_label {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.03em;
}

.drapeau {
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.drapeau:hover {
    transform: scale(1.15);
}

.accueil_langue_choix {
    display: none;
    gap: 6px;
    align-items: center;
}

.accueil_langue_choix.ouvert {
    display: flex;
}