/**
 * Reset
 */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/**
 * Eléments génériques
 */

body {
    width: 100%;
    height: 100%;
    --color-primary: #1e0b9f;
    --color-secondary: #140541;
    --color-tertiary: #ffeee6;    
}

/* Mise en forme des titres */
h1 {
    margin: 10px;
    font-size: 60px;
    font-weight: 900;
    color: var(--color-primary);
}

 h2 {
    margin: 10px;
    font-size: 30px;
    font-weight: 600;
    color: var(--color-secondary);
}

h3 {
    margin: 10px;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-secondary);
}

/* Mise en forme des formulaires */
 input[type='radio'] {
    filter: grayscale(1); /* Grayscale passe le bouton en niveau de gris */
}


 input[type='text'],
input[type='email'] {
    width: 100%;
    margin-right: 10px;
    padding: 5px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    font-size: 17px;
    color: var(--color-primary);
}

input[type='text']::placeholder,
input[type='email']::placeholder {
    color: var(--color-secondary);
    opacity: 50%;
}

button {
    padding: 5px;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--color-secondary);
    background-color: white;
}

button:hover {
    color: var(--color-primary);
    background-color: var(--color-tertiary);
    cursor: pointer;
}


button:focus {
    background-color: var(--color-tertiary);
    border: 3px solid var(--color-primary);
    padding: 2px;
    
}

/**
 * Eléments principaux
 */
 body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif; 
}

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

main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 50%;
    min-width: 200px;
    margin-bottom: 50px;
    padding: 50px;
    text-align: center;
    color: white;
    font-size: 17px;
    font-weight: 500;
    border-radius: 30px;
    background-color: var(--color-secondary);
}

footer {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 30px;
    font-weight: 600;
    font-size: 17px;
    color: white;
    background-color: var(--color-secondary);
} 

/**
 * Mise en forme des éléments de la zone principale
 */

/* Zone d'options */
 .optionSource {
    margin: 20px;
}

.optionSource input[type='radio']:not(:first-child) {
    margin-left: 20px;
}

/* Zone ou sera affiché le texte (mot ou phrase) à afficher */
.zoneProposition { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 10px 0 10px 0;
    padding: 20px;
    border-radius: 20px;
    background-color: white;
    font-size: 30px;
    font-weight: 600;
    color: var(--color-primary);
} 

/* Zone de saisie */
.zoneSaisie {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 30px; 
    margin-top: 20px;
    gap: 20px;
}

/* Eléments du formulaire de saisie */
 .zoneSaisie input[type='text'] {
    width: 80%;
    height: 60px;
}

.zoneSaisie button {
    width: 20%;
}
.zoneSaisie button:hover {
    transition: width 0.3s ease-in-out;
    background-color: var(--color-primary);
    color: white;
    scale: 1.1;
}
.optionSource input[type='radio'] {
    width: 30px;
    height: 30px;
}   

.optionSource label {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-tertiary);
    margin-top: 15px;
}
.zoneScore {
    font-size: 20px;
}

.zonePartage {
    padding-top: 20px;
} 
.zonePartage button {
    width: 100px;
    background-color: var(--color-tertiary);
    color: var(--color-primary);
    height: 35px;

}
.zonePartage button:hover {
    background-color: var(--color-primary);
    color: white;  
    transform: scale(1.1); 
}

/**
  * Gestion des popups
  */

 .popupBackground {
    display: none;
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: rgba(255, 255, 255, 0.5);
}

.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 300px;
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 17px;
    font-weight: 500;
    background-color: #0b064a;
    border-radius: 50px;
    z-index: 1;
    margin-top: auto;
}



.active {
    display: flex !important
}

.popup p {
    width: 100%;
    margin-bottom: 20px;
}

.popup div {
    font-size: 25px;
    padding : 5px;
    padding-bottom: 55px;
} 

/* Eléments de formulaire */
 .popup input {
    margin-bottom: 30px;
}

.popup button {
    margin: 15px;
} 
.popup button:hover{
    background-color: var(--color-primary);
    color: white;  
    transform: scale(1.1);  
}
.popupBackground .popup label {
    font-size: 17px;
    margin: 15px;
    padding: 15px;
}


 


  