/* ================================== */
/* Styles de la barre de navigation   */
/* ================================== */
:root {
    --border-color: #c5c5c5;
}
.nav a {
    text-decoration: none;
    color: #536056;
}

/* ================================== */
/* Styles de la page des services     */
/* ================================== */

/* Styles généraux */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #F2F1EC;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* En-tête */
header { 

    color: #fff; 
    text-align: center;
    padding: 0px 20px;
}

header h1, header p {
    color: #536056; 
}

/* Sections */
.service-category, .more-services, .faq-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.service-category h2, .more-services h2, .faq-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #536056;
}

.title-with-desc {
    margin-bottom: 5px;
} 

.category-description {
    font-style: italic;
    color: #777;
    margin-bottom: 20px;
}

.category-heading {
    margin-bottom: 20px;
}

.category-heading .service-description {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    color: #555;
}

/* Conteneur de cartes (Flexbox) */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Style des cartes */
.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1 1 250px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    margin-top: 0;
    color: #536056;
}

.card ul {
    list-style-type: none;
    padding: 0;
}

.card li {
    margin-bottom: 10px;
}

.emoji {
    margin-right: 5px;
}

.commander-btn {
    background-color: #5cb85c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    margin-top: auto;
}

.commander-btn:hover {
    background-color: #4cae4c;
}

.card-full-text {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* Style du texte en gras */
.highlight {
    color: #536056;
}

/* Section F.A.Q */
.faq-item {
    background-color: #DADCD9;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item + .faq-item {
    margin-top: 1.5rem;
}

.faq-item.faq-open {
    background-color: #bec0bd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.faq-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0;
    width: 100%;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-item.faq-open .faq-icon {
    transform: rotate(45deg);
}
.faq-toggle:focus-visible {
    outline: 2px solid #536056;
    outline-offset: 4px;
}

.faq-answer {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0 0 0.75rem 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.more-services button {
    max-width: 40%;
}

/* * Style du form de commande*/

form h1 {
    text-align: center;
    color: #536056;
    font-size: 2.5rem;
    margin-bottom: 0px;
}
form p {
    text-align: center;
    color: #536056;
    font-size: 1.2rem;
    margin-top: 0px;
    margin-bottom: 0rem;
}



input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 97%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    background-color: #f8f9fa !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
textarea:hover {
    background-color: #0080ff;

}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;

    background-color: #fff;
    padding: 10px 50px 50px 50px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

form div label {
    margin: 0 auto;
    font-weight: bold;
    color: #536056;
}

form button, .backtoindex {
    background-color: #5cb85c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    max-width: 60%;
    margin: 0 auto;
}
form button:hover, .backtoindex:hover {
    background-color: #4cae4c;
}


/* * Style of confirmation*/

.confirmcmd {
    max-width: 40%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);

    text-align: center;
    padding: 20px 10px 20px 10px;
    margin-bottom: 50px;
    display: none;

    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
}

@keyframes popout {
    0% {transform: translate(-50%, -50%) scale(0);}
    25% {transform: translate(-50%, -50%) scale(0.25);}
    50% {transform: translate(-50%, -50%) scale(0.5);}
    75% {transform: translate(-50%, -50%) scale(0.75);}
    100% {transform: translate(-50%, -50%) scale(1);}
}

.confirmcmd-visible {
    display: block;
    animation: popout 0.2s ease;
}

.confirmcmd img {
    display: block;
    margin: 0 auto;
    max-width: 80px;
    max-height: 80px;
}
.inputcdc {
    position: absolute;
    opacity: 0;
    left: -9999px;
}

.cdc-img {
    max-height: 100px;
    max-width: 100px;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

/* -- RESPONSIVE -- */
@media (max-width: 1200px) {
    .service-category,
    .more-services,
    .faq-section {
        padding: 0 15px;
    }

    .card {
        flex: 1 1 280px;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 110px;
    }

    header {
        padding: 30px 15px;
    }

    .card {
        flex: 1 1 45%;
    }

    form {
        max-width: 90%;
        padding: 30px;
    }

    .confirmcmd {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: stretch;
    }

    .card {
        flex: 1 1 100%;
    }

    .more-services button,
    form button,
    .backtoindex {
        max-width: 100%;
    }

    form {
        max-width: 100%;
        padding: 25px 20px 35px 20px;
    }

    .confirmcmd {
        position: static;
        transform: none;
        margin-top: 2rem;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 90px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .service-category h2,
    .more-services h2,
    .faq-section h2 {
        font-size: 1.6rem;
    }

    .card {
        padding: 15px;
    }

    .card h3 {
        font-size: 1.3rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        width: 100%;
    }

    .more-services button {
        max-width: 100%;
    }
}
