:root {
    --custom-orange: #f57d0c;
    --custom-background: #333;
}

body {
    font-family: 'Raleway', sans-serif;
    justify-content: center;
    align-items: center;
    margin: 0;
    background-color: white;
    text-align: center;
    width:70%;
    margin-left:auto;
    margin-right:auto;
}



h1{
    color:var(--custom-background);
    font-size: 30px;
}


header{
    background-color: var(--custom-background);
    width:100%;
    padding:14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}





/* Exemple d'ajout d'une variante légère si nécessaire */

@font-face {
    font-family: 'Gotham';
    src: url('fonts/Gotham-font-family/Gotham/Gotham-Medium.otf') format('opentype');
    font-style: normal;
    font-weight: normal;
}


header a#Nom_site {
    display: inline-block; /* Permet d’appliquer les transformations */
    text-align: center;
    text-decoration: none;
    color:var(--custom-orange);

    font-family:'Gotham', sans-serif;

    font-weight: 450;
    font-size: 1.2em;

    line-height: 0.9; /* Réduit l'interligne à 1 fois la taille de la police */
}

/*
header a#Nom_site:hover{
    transform: scale(1.1); 
	transition: .1s ease-in-out;
}
*/



  
footer{
    /* background-color: var(--custom-orange); */
    padding-top: 10px;

    margin-top: 10px;
    margin-bottom: 20px;

    border-top: solid .2px rgb(233, 233, 233);


    width:100%;
}

footer a{
    color:grey;
    text-decoration: none;

}

footer a:hover{
    color:black;
    text-decoration: none;

}




.genre-titre {
    display: flex;  
    justify-content: center;  /* Centre horizontalement */
    gap: 10px;  /* Espace entre les éléments */
    text-align: center;  /* Centre le texte dans les éléments */
    flex-wrap: wrap;  /* Permet aux éléments de se déplacer sur plusieurs lignes si nécessaire */
}





select, input{
    border: 2px solid var(--custom-orange);
    border-radius: 5px;
    background: white;
    box-shadow: 0 1px 3px -2px #9098A9;

    font-size: 1em;
}

select{
    cursor: pointer;
}

select:focus , input:focus{
    outline: none;
    border-color: var(--custom-orange);
    box-shadow: 0 0 0 2px rgba(var(--custom-orange),.2);   
}


/* TAGS MOTS CLES */

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */

}

.tag {
    background-color: var(--custom-orange);
    color: var(--custom-background);
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
}

.tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

#tags-div{
    margin-top:10px;
    align-items: center;
}




/*-----------------------------------------------------------------*/
/* Centrage de la grille principale */
.image-grid {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;


    margin:auto;



    grid-gap: 10px;

    max-width:100%;
    width:800px;

    box-sizing: border-box;
    padding:10px;


    margin-bottom: 20px;
}

/* Style pour la première ligne qui prend 5 cases */
.first-row {
    display: block; 

    box-sizing: border-box;

    /* grid-template-columns: repeat(5, 1fr); */
    gap: 10px;
    text-align: center;
    align-items: left;
    width: 100%;
    
    color: var(--custom-background);  
    background-color : rgb(230, 230, 230);
    
    /*
    color: var(--custom-background);  
    background-color : white;
    
    box-sizing: border-box;
    border:3px solid transparent;
    border-image:linear-gradient(to right, #1FA2FF 0%, #12D8FA  51%, #1FA2FF  100%) 3;
    */

    font-weight: bold;  
    font-size: 1.5em;

    padding-top: 10px;            /* Espacement intérieur */
    padding-bottom: 10px;            /* Espacement intérieur */

}

.first-row p {
    margin-bottom:0em;
    margin-top: 0em;
} 



/* Style pour les lignes d'images */
.image-row {
    display: grid;
    grid-template-columns:  repeat(5,1fr); /* 1 texte et 4 images */
    gap: 1.5%;
    width: 100%;
    justify-content: center;
}

/* Centrage du texte dans la première colonne de chaque ligne */
.text-grid {
    
    display: flex;
    box-sizing: border-box;

    align-items: center;
    justify-content: center;
    
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;

    
    color: var(--custom-background);  
    background-color : rgb(230, 230, 230);
    
    /*
    box-sizing: border-box;
    border:3px solid transparent;
    border-image:linear-gradient(to right, #1FA2FF 0%, #12D8FA  51%, #1FA2FF  100%) 3;
    
    

    background-image: linear-gradient(to right, #1FA2FF 0%, #12D8FA  51%, #1FA2FF  100%);
    color:white;
    */

    aspect-ratio: 1 / 1;
    width:100%
}

/* Styles pour chaque conteneur d'image */
.image-container {
    position: relative;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;

    max-width:146.64px;
    max-height:146.64px;
}


/* Rendre les images carrées */
.image-container img {
    aspect-ratio: 1 / 1;

    width: 100%;
    height: 100%;
    
    object-fit: cover;
}

.image-container img:hover{
    filter: brightness(90%);
    cursor: pointer;
}

.image-container .overlay {
    position: absolute;
    left: 6.5px ;
    right: 6.5px ;
    bottom: 6.5px ;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5); /* Couleur semi-transparente */
    color: #fff; /* Couleur du texte */
    font-size: 1em;
    opacity: 0; /* Rend la superposition invisible par défaut */
    transition: opacity 0.3s ease; /* Animation de transition */
}



/*-----------------------------------------------------------------*/


.scenario_div{
    width: 100%; /* 90% de la largeur de l'écran */

    
    box-sizing: border-box;
    /*
    border: 2px solid transparent;
    border-image: linear-gradient(to right, #1FA2FF 0%, #12D8FA  51%, #1FA2FF  100%) 2;
    */

    /*  margin:10px 50px 20px 10px; */ /* Top Bottom Right Left */
    
    /*
    border-radius: 15px; 
    border: solid 5px var(--custom-orange);
    */

    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /*  Ombre légère pour un effet de profondeur */
    
    color: var(--custom-background) ; /* Couleur de fond de la div */
    background-color:#FCFCFD;          /* Couleur du texte */

    margin-bottom: 20px;
    margin-top:20px;

    padding: 20px; /* Ajoute un peu d'espace intérieur */
    padding-top:5px;

}




/* CSS */

/*
.button {


  align-items: center;
  appearance: none;
  background-color: #FCFCFD;
  border-radius: 4px;
  border-width: 0;
  margin-left:10px;
  box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #36395A;
  cursor: pointer;
  display: inline-flex;
  font-family: "JetBrains Mono",monospace;
  height: 48px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 30px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  font-size: 18px;
}

.button:hover {
  box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  transform: translateY(-2px);
}

*/





.button {
    will-change: box-shadow,transform;

    cursor: pointer;


    align-items: center;
    background-image: linear-gradient(to right, #1FA2FF 0%, #12D8FA  51%, #1FA2FF  100%);


    position: relative;
    text-align: center;

    transition: .5s;

    background-size: 200% auto;
    color: white; 
    box-shadow: 0 0 20px #eee; 
    border-radius: 10px;


    display: inline-flex;
    height: 48px;
    justify-content: center;
    list-style: none;
    overflow: hidden;
    padding: 20px;


    position: relative;
    text-align: left;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;

    font-size: 18px;

    border-width: 0;

}



.button:hover {
   transition: .5s;
   background-position: right center; /* change the direction of the change here */
   color: #fff;
   text-decoration: none;

 }
 

.button.button:disabled {
    transition: 0s;
    background:  #ccc;
    background-position: right center; /* change the direction of the change here */
    color: #666;
    text-decoration: none;
    cursor: not-allowed
}
  
  
/*
.button:focus {
    box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

*/

.button:active {
  box-shadow: #D6D6E7 0 3px 7px inset;
  transform: translateY(2px);
}



/* Style du champ de texte caché */
#linkToCopy {
    position: absolute;
    left: -9999px;
}

/* Message après copie */
#message {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    color: green;
}



#prix_current{
    padding:5px;
    border-radius: 40px / 50%; 
    color:white;
    display:inline-block;
    font-size: 20px;
    width:100px;
    text-align: center;
    align-items: center;
    color:var(--custom-background);
    font-weight:bold;

    margin-top:10px;
    margin-bottom:10px;
}

.prix_current_ok{
    background-color: rgb(37, 229, 3);
}
.prix_current_not{
    background-color: var(--custom-orange);
}

.row-button{
    display : flex;
    flex-wrap: wrap;  /* Permet aux éléments de se déplacer sur plusieurs lignes si nécessaire */

    align-items: center;
    text-align:center;
    justify-content: center;

    margin-bottom:20px;
    margin-top:20px;

    gap:5px;

}

.row-button button{
    margin : 5px;
}

#btn-scenar{
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;

    align-items: center;
    margin-bottom:20px;

    gap:10px;
}


#input-mot_cle{
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
}

#input-mot_cle small{
    color:grey;
    font-size: 8px;
}

#copy-message {

    position: absolute;

    top:90px;

    background-color: #4CAF50; /* Vert pour indiquer succès */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.5s ease-in-out;
}


#txt_indic {
    
    font-family: 'Arial', sans-serif; /* Choisir une police moderne et lisible */
    font-size: 16px; /* Taille de police confortable */
    
    color: #333; /* Couleur sombre pour un bon contraste */
    line-height: 1.6; /* Espace entre les lignes pour améliorer la lisibilité */
    text-align: center; /* Centrer le texte pour qu'il soit plus visible */
    padding: 10px 20px; /* Ajouter de l'espace interne pour un meilleur rendu */
    border-radius: 8px; /* Coins arrondis pour un effet doux */
    background-color: #f9f9f9; /* Fond clair pour une bonne visibilité */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère pour faire ressortir le texte */
    transition: transform 0.2s ease-in-out, background-color 0.3s ease; /* Animation douce */
}



.photos-acteurs{
    width:100%;


    display: block;      /* Utilise Flexbox */
    /*flex-wrap: wrap;     Permet aux images de passer à la ligne si nécessaire */
    
    /*
    border-top: solid .5px transparent;
    border-image: linear-gradient(to right, #1FA2FF 0%, #12D8FA  51%, #1FA2FF  100%) .5;
    */

}

.photos-acteurs img{
    aspect-ratio:  1 / 1;
    width:85px;
    border-radius: 50%;
    
    /*
    border:3px solid var(--custom-orange);
    border-image:linear-gradient(to right, #1FA2FF 0%, #12D8FA  51%, #1FA2FF  100%) 2;
    */
    
    margin-right: 10px; /* Pour espacer l'image du texte */
    object-fit: cover; /* Gère le recadrage pour remplir correctement */

}

.acteur_row{
    /*width:100%;*/
    display: flex;
    align-items: center; /* Centre verticalement l'image avec le texte */
    margin-top: 10px; /* Espace entre les lignes d'acteurs */

    box-sizing: border-box;

    border-top: solid .2px rgb(233, 233, 233);

    padding-top: 10px;

}

.role_acteur{
    /*max-width: calc(100% - 120px);  Ajuste la largeur max du texte pour ne pas chevaucher */
    display: block;
    flex-wrap: wrap; 

    word-wrap: break-word; /* Casse les mots trop longs automatiquement */
    overflow-wrap: break-word; /* Casse les mots pour le texte en conformité avec les normes récentes */
    flex: 1; /* Permet de s'étendre dans le conteneur */

}

.role_acteur p {
    margin: 0;
    padding: 0;
    font-size: 14px; /* Taille de police ajustée pour le texte */
    line-height: 1.5; /* Espace entre les lignes */

    word-break: break-word; /* Gère les mots longs */

}


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

    /* Insérez vos propriétés CSS ici, avec vos sélecteurs*/
    body{
        width:100%
    }    
    

}

@media screen and (min-width: 1000px) {


    /* Affiche la superposition au survol */
    .image-container:hover .overlay { 
        opacity: 1; 
    }

}