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

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0px 40px 48px 40px;
}

h2 {
    color: #5a9ba0;
    font-size: 36px;
    font-weight: 600;
    padding-bottom: 3%;
    text-align: center;
    padding-top: 25px;
}

/*-----------------------------*/
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9fafb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Conteneur principal */
.faq-container {
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}


/* Header */
.faq-header {
    text-align: center;
    margin-bottom: 1.998rem;
}

.faq-header .header-subtitle {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 2.248rem;
    margin-top: 0.125rem;
}

.faq-header .header-descrip {
    color: #6b7280;
    margin-top: 0.498rem;
    line-height: 1.597;
}

/* Liste FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.998rem;
}

/* FAQ item */
.faq-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.2rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}


.faq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item-header .faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.597;
}

/* Icon */
.faq-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex-shrink: 0;
    color: #5a9ba0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: #3b7f83;
}


/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.597;
    margin-top: 0;
}

.faq-answer .answer-aste {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Open state */
.faq-item.open .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.748rem;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: #3b7f83;
}

/*-------------*/
.lienfaq {
    color: #5a9ba0;
    font-size: 0.95rem;
}

.lienfaq2 {
    color: #5a9ba0;
    font-weight: 400;
    font-size: 1.1rem;
}

.anyquestion {
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 400;
    color: #1f2937;
}

/* ============================ */
/* -------- Responsive -------- */
/* ============================ */

@media (max-width: 1024px) {
    main {
        padding: 0px 30px 25px 30px;
    }

    h2 {
        font-size: 2rem;
    }

    .faq-header .header-subtitle {
        font-size: 1.75rem;
    }

    .faq-item-header .faq-question {
        font-size: 1.125rem;
    }

    .faq-answer {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    main {
        padding: 0px 15px 20px 15px;
    }

    h2 {
        font-size: 1.75rem;
    }

    .faq-header .header-subtitle {
        font-size: 1.5rem;
    }

    .faq-header .header-descrip {
        font-size: 0.95rem;
    }

    .faq-list {
        gap: 0.75rem;
    }

    .faq-item-header .faq-question {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .faq-item {
        padding: 1rem;
    }
}

@media (max-width: 450px) {
    main {
        padding: 0px 15px 20px 15px;
    }

    h2 {
        font-size: 2rem;
    }

    .faq-header .header-subtitle {
        font-size: 1.5rem;
    }

    .faq-header .header-descrip {
        font-size: 0.95rem;
    }

    .faq-list {
        gap: 0.75rem;
    }

    .faq-item-header .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .faq-item {
        padding: 1rem;
    }

    .anyquestion {
        font-size: 1rem;
        text-align: center;
        margin-top: 1.5rem;
    }

    .lienfaq2 {
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    main {
        padding: 0px 10px 15px 10px;
    }

    h2 {
        font-size: 1.8rem;
        padding-top: 15px;
    }

    .faq-header .header-subtitle {
        font-size: 1.25rem;
    }

    .faq-header .header-descrip {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .faq-item {
        padding: 0.8rem;
        border-radius: 0.5rem;
    }

    .faq-item-header .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.85rem;
    }

    .anyquestion {
        font-size: 0.9rem;
        text-align: center;
        margin-top: 1.5rem;
    }

    .lienfaq2 {
        font-size: 0.85rem;
    }

    .faq-icon {
        width: 1.2rem;
        height: 1.2rem;
    }
}

@media (max-width: 321px) {

    .faq-item {
        padding: 0.7rem;
        border-radius: 0.5rem;
    }

    .faq-item-header .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.85rem;
    }

    .anyquestion {
        font-size: 0.84rem;
        text-align: center;
        margin-top: 1.5rem;
    }

    .lienfaq2 {
        font-size: 0.84rem;
    }

    .faq-icon {
        width: 1.2rem;
        height: 1.2rem;
    }
}