/* Partie banner  */

#banner-712 span {
    color: #fff;
}

#banner-712 span a {
    color: var(--primary);
    text-decoration: none;
}

@media only screen and (min-width: 0rem) {
    #banner-712 {
        padding: clamp(10.9375rem, 10vw, 12.5rem) 1rem 6.25rem;
        position: relative;
        z-index: 1;
    }

    #banner-712 .cs-container {
        text-align: center;
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        justify-content: center;
        /* align-items: flex-start; */
        flex-direction: column;
        gap: 1rem;
    }

    #banner-712 .cs-int-title {
        font-size: clamp(2.4375rem, 6.4vw, 3.8125rem);
        /* font-weight: 900; */
        line-height: 1.2em;
        text-align: inherit;
        margin: 0;
        color: var(--bodyTextColorWhite);
        position: relative;
    }

    #banner-712 .cs-background {
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }

    #banner-712 .cs-background:before {
        content: "";
        position: absolute;
        display: block;
        height: 100%;
        width: 100%;
        background: #000;
        opacity: 0.75;
        top: 0;
        left: 0;
        z-index: 1;
    }

    #banner-712 .cs-background img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

@media only screen and (min-width: 48rem) {
    #banner-712 .cs-background:before {
        opacity: 1;
        background: linear-gradient(
            90.01deg,
            rgba(0, 0, 0, 0.9) 16.86%,
            rgba(0, 0, 0, 0) 100%
        );
    }
}
/* Fin partie banner  */

@media only screen and (min-width: 0rem) {
    .services-341 .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(3rem, 6vw, 4rem);
    }

    .services-341 {
        padding: var(--sectionPadding);
    }

    .services-341 .cs-content {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .services-341 .cs-card-group {
        width: 100%;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: clamp(1rem, 1.6vw, 1.25rem);
    }

    .services-341 .cs-item {
        list-style: none;
        width: 100%;
        max-width: 31.25rem;
        border-radius: 0.5rem;
        position: relative;
        z-index: 1;
        transition:
            box-shadow 0.3s,
            transform 0.3s,
            background 0.3s;
        background: #fff;
    }

    .services-341 .cs-item:hover {
        box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
        transform: translateY(-0.4375rem);
    }

    .services-341 .cs-item:hover .cs-picture img {
        transform: scale(1.1);
    }

    .services-341 .cs-item:hover .cs-h3 {
        color: var(--primaryDark);
    }

    .services-341 .cs-item:before {
        content: "";
        width: 100%;
        height: 100%;
        border-radius: 0.5rem;
        border: 1px solid #e8e8e8;
        background: 0 0;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }

    .services-341 .cs-link {
        text-decoration: none;
        padding-bottom: clamp(1rem, 2.2vw, 1.5rem);
        display: block;
    }

    .services-341 .cs-picture {
        width: 100%;
        height: 15rem;
        margin-bottom: clamp(1rem, 2.2vw, 1.5rem);
        border-radius: 0.5rem 0.5rem 0 0;
        overflow: hidden;
        display: block;
        position: relative;
        z-index: 10;
    }

    .services-341 .cs-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition:
            transform 0.6s,
            opacity 0.3s;
    }

    .services-341 .cs-h3 {
        font-size: clamp(1.25rem, 3vw, 1.5625rem);
        line-height: 1.2em;
        font-weight: 700;
        color: var(--headerColor);
        margin: 0 0 0.75rem;
        padding: 0 clamp(1rem, 2vw, 1.5rem);
        transition: color 0.3s;
    }

    .services-341 .cs-item-text {
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        line-height: 1.5em;
        color: var(--bodyTextColor);
        margin-bottom: 20px;
        padding: 0 clamp(1rem, 2.2vw, 1.5rem);
    }
}

.generator-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .generator-container {
        padding: 20px;
        width: 95%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .generator-container {
        padding: 15px;
    }
}

#version {
    font-size: 0.8rem;
    color: #a0aec0;
}

.generator-container .options {
    margin-bottom: 20px;
}

.generator-container .category {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.generator-container #majuscules-category {
    border-color: #bbdefb;
}

.generator-container #minuscules-category {
    border-color: #c8e6c9;
}

.generator-container #chiffres-category {
    border-color: #ffccbc;
}

.generator-container #symboles-category {
    border-color: #d1c4e9;
}

/* En-tête de catégorie flexible */
.generator-container .category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    cursor: pointer;
    margin-bottom: 15px; /* Crée de l'espace avant les cases à cocher */
    padding-right: 25px; /* Laisse de la place pour le + / - absolu */
    position: relative;
}

/* Remplacement de l'ancien .h3 */
.generator-container .category-title {
    margin: 0;
    font-size: 1.17em;
    font-weight: bold;
    color: #424242;
}

/* Design du bouton secondaire "Tout cocher / Décocher" */
.generator-container button.toggle-category {
    width: auto;
    padding: 5px 12px;
    font-size: 0.8rem;
    background-color: #e0e0e0;
    color: #333;
    border-radius: 4px;
}

.generator-container button.toggle-category:hover {
    background-color: #d5d5d5;
}

.generator-container .character-options-container {
    transition: max-height 0.3s ease-in-out;
    max-height: 500px;
    overflow-y: auto;
}

.generator-container .character-options-container.collapsed {
    max-height: 0;
}

/* Gestion dynamique des indicateurs + et - */
.generator-container .category-header::after {
    content: "-";
    position: absolute;
    right: 0;
    font-size: 1.4em;
    font-weight: bold;
    color: #424242;
}

.generator-container .category.collapsed .category-header::after {
    content: "+";
}

.generator-container .category.collapsed .char-options {
    display: none;
}

.generator-container .char-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.generator-container .char-options label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 10px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background-color: white;
    transition:
        background-color 0.3s,
        border-color 0.3s;
    margin: 4px;
}

.generator-container .char-options input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.generator-container .char-options input[type="checkbox"] + label::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border: 1px solid #bdbdbd;
    border-radius: 3px;
    background-color: white;
    transition:
        background-color 0.3s,
        border-color 0.3s;
}

.generator-container
    .char-options
    input[type="checkbox"]:checked
    + label::before {
    background-color: #00bcd4;
    border-color: #00bcd4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M5.5 10.5l5-5L9.5 4l-4 4-2-2-1 1 3 3 6-6 1 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.generator-container .char-options label:hover {
    border-color: #616161;
}

.generator-container
    .char-options
    input[type="checkbox"]:checked
    + label:hover {
    border-color: #0097a7;
}

.generator-container label[for="longueur"] {
    display: block;
    margin-bottom: 5px;
}

.generator-container button {
    background-color: #00bcd4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    font-size: 16px;
}

.generator-container button:hover {
    background-color: #0097a7;
}

.generator-container .resultat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin-top: 10px;
}

.generator-container .resultat input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.generator-container .resultat button#copier {
    background-color: #00bcd4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 20%;
    font-size: 16px;
}

.generator-container .resultat button#copier:hover {
    background-color: #0097a7;
}

.generator-container .resultat span {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9em;
    color: green;
}

.generator-container #motDePasse {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.generator-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-bottom: 10px;
}

.generator-container input[type="range"]:focus {
    outline: none;
}

.generator-container #longueur {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.generator-container #longueur:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

@media (max-width: 768px) {
    .generator-container .resultat {
        flex-direction: row;
        align-items: center;
    }

    .generator-container .resultat input[type="text"] {
        margin-bottom: 0;
        margin-right: 10px;
    }

    .generator-container .resultat button#copier {
        margin-left: auto;
    }

    .generator-container .resultat span {
        margin-left: 10px;
    }
}

.faq-container {
    width: 80%;
    margin: 20px auto 70px auto;
}

.faq-question {
    padding: 15px;
    background-color: #f0f0f0;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.faq-question:hover {
    background-color: #e0e0e0;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
}

.faq-question.active::after {
    content: "-";
}

.faq-answer {
    padding: 15px;
    display: none;
    border-bottom: 1px solid #ccc;
}

.faq-answer.show {
    display: block;
}
