*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #1a56db;
    --secondary-color: #7e3af2;
    --bg-color: #f3f4f6;
    --text-color: #374151;
    --card-bg: #ffffff;
}




body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

#output {
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 5px;
    padding: 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-top: 0px;
    white-space: pre-wrap;
    word-break: break-all;
}

#arrows-container{
    border-radius: 5px;
    border: 2.5px solid transparent;
    background:
        linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
        linear-gradient(90deg, #1a56db, #7e3af2);
}

#arrows {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);

}

.arrowTop,.arrowBottom{
    width: 37px;
    height: 37px;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    border: none;
    outline: none;
}

@media(max-width: 800px) {
    .arrowTop,.arrowBottom{
        width: 30px;
        height: 30px;
    }
}

.arrowTop {
    margin-top: 10px;
}

.arrowBottom {
    margin-bottom: 10px;
}

.leftArrow {
    width : 100%;
    transform: rotate(180deg);
}
.leftArrow:hover {
    width : 120%;
    transform: rotate(180deg);
}
.rightArrow {
    width : 100%;
}
.rightArrow:hover {
    width : 120%;
}



.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    word-wrap: break-word; /* Permet le retour à la ligne si le contenu dépasse */
    word-break: break-word; /* Coupe les mots trop longs si besoin */
}

.logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.main-content {
    background-color: var(--card-bg);
    border-radius: 0 0 10px 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.description {
    margin-bottom: 2rem;
    word-wrap: break-word; /* Permet le retour à la ligne si le contenu dépasse */
    word-break: break-word; /* Coupe les mots trop longs si besoin */
}

.horizontal-line{
    display: flex;
    gap: 12px;
    padding: 0.5rem;
    overflow-x: auto;
    border: 2.5px solid transparent;
    border-radius: 5px;
    background:
        linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
        linear-gradient(90deg, #1a56db, #7e3af2);
    width: 100%;
    margin-bottom: 2rem;

}

@media(max-width : 800px){
    .horizontal-line{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1px;
    overflow-x: auto;
    width: 100%;
    }
}

.toggle-container {
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
    height : 100%;
    text-align: center;
    

}
.toggle-container p {
    display: flex;
    flex-wrap: wrap; /* Permet le retour à la ligne si le contenu dépasse */
    word-break: break-word; /* Coupe les mots trop longs si besoin */
}

.toggle-button {

    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 15px;
    position: relative;
    transition: background-color 0.3s;
    margin-left: auto;
    margin-right: auto;
}

.toggle-circle {

    width: 26px;
    height: 26px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle-on {
    background-color: #4caf50;
}

.toggle-on .toggle-circle {
    transform: translateX(30px);
}

.password-input {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: auto;
    width:100%;
}

.hidden {
  display: none;
}

.password-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.password-input input[type="text"] {
    width: 80%;
    max-width: 300px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
}

.mise-en-garde {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.5rem;
    width: 60%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.mise-en-garde input[type="checkbox"] {
    margin-right: 0.5rem;
}

.options-container {
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    border: 2.5px solid transparent;
    border-radius: 5px;
    background:
        linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
        linear-gradient(90deg, #1a56db, #7e3af2);
}

.option {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.option-content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap; /* Permet le retour à la ligne si le contenu dépasse */
    word-break: break-word; /* Coupe les mots trop longs si besoin */
}


.option input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.option label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.option-example {
    margin-left: 1.5rem;
    margin-top: 0.25rem;
    font-style: italic;
    color: #6b7280;
    font-size: 0.85rem;
    flex-wrap: wrap; /* Permet le retour à la ligne si le contenu dépasse */
    word-break: break-word; /* Coupe les mots trop longs si besoin */
}

@media (max-width : 200px) {
    .horizontal-line{
        
    }
    .option-content {
        flex-direction: column; /* Colonne pour les petits écrans */
    }
    .option-example {
        margin-left: 0; /* Réinitialise le margin-left pour les petits écrans */
    }
}

.symbols-input {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.symbols-input input[type="text"] {
    flex-grow: 1;
    margin-left: 1.5rem;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 0.9rem;
    width: 100%;
}
#generate {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word; /* Permet le retour à la ligne si le contenu dépasse */
    word-break: break-word; /* Coupe les mots trop longs si besoin */
}

button:hover {
    opacity: 0.9;
}

.output {
    margin-top: 2rem;
}

.output h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#output {
    background-color: var(--bg-color);
    border-radius: 5px;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.highlight {
    /* Vos styles ici, par exemple : */
    background-color: yellow;
    font-weight: bold;
}

.highlight-green {
    background-color: #8dff96;
    font-weight: bold;
}

footer{
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 5rem; /* Rembourrage pour l'affichage sur expoinator */
}

footer p {
    text-align: center;
    color: #7e3af2;
    font-size: 1rem;
    margin: 0px;
    padding: 1rem 0;
    background: linear-gradient(90deg, #f3f4f6 0%, #e0e7ff 100%);
    border-radius: 0 0 10px 10px;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

footer p a {
    color: #1a56db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, text-decoration 0.2s;
    border-bottom: 1.5px solid #7e3af2;
    padding: 0 2px;
    border-radius: 3px;
}

footer p a:hover,
footer p a:focus {
    color: #7e3af2;
    background: #e0e7ff;
    text-decoration: underline;
}