/* Styles globaux */

/* Section Header (FAQ) */
.section-header {
    background-image: url('https://www.ecomelio.fr/images/art.jpg'); /* Image de fond */
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    color: #ffffff;
    text-align: center;
    position: relative;
}

.section-header p {
    font-size: clamp(0.875rem, 0.38vw + 0.8rem, 1.125rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    line-height: 1.24;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #111111;
  }

.section-header h2 {
    font-size: clamp(3.5rem, 2.63vw + 2.99rem, 5.25rem); /* Titre principal */
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: 'Tiempos Headline', Georgia, serif;
    line-height: 1.08;
    margin-bottom: 20px;
    color: #111111;
}

.section-header .separator-line {
    width: 60px;
    height: 4px;
    background-color: #ffffff;
    margin: 20px auto;
}

#faq-search {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
    font-family: 'Futura PT', system-ui, 'Helvetica Neue', sans-serif;
    outline: none;
    background-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

#faq-search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#no-result-message {
    text-align: center;
    font-size: 1.5rem;
    color: #111111; /* Couleur subtile */
}


/* Styles pour la FAQ */
.faq-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-category-title {
    font-size: 24px;
    font-weight: bold;
    margin: 30px 0 15px;
    border-bottom: 1px solid #111111;
    padding-bottom: 5px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    font-size: 18px;
    text-align: left;
    padding: 10px 0;
    cursor: pointer;
}

.faq-question:focus {
    outline: none;
}

.faq-icon {
    font-size: 18px;
    font-weight: bold;
}

.faq-answer {
    padding: 10px 0;
    font-size: 16px;
    display: none;
}

.faq-answer p {
    margin: 0;
}

/* Sidebar FAQ */
.faq-sidebar {
    width: 200px;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

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

.faq-sidebar ul li {
    margin-bottom: 10px;
}

.faq-sidebar ul li a {
    text-decoration: none;
    color: #111111;
    display: block;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.faq-sidebar ul li a:hover {
    background-color: #ddd;
}

/* Panel */
.panel {
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111111;
    color: #ffffff;
    padding: 15px;
    cursor: pointer;
}

.accordion-button {
    background: none;
    border: none;
    color: #ffffff;
    text-align: left;
    width: 100%;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.accordion-button:focus {
    outline: none;
}

.panel-title:hover {
    background-color: #333333;
}

.panel-body {
    background-color: #ffffff;
    padding: 15px;
    border-top: 1px solid #e1e1e1;
    display: none;
}

/* Responsivité */
@media (max-width: 768px) {
    .faq-page-container {
        flex-direction: column;
        align-items: center;
    }

    .faq-category-title {
        text-align: center;
    }

    .faq-sidebar {
        width: 100%;
        margin-bottom: 20px;
        position: relative;
    }

    .faq-section {
        width: 100%;
    }

    .faq-question {
        font-size: 18px;
        text-align: left;
        color: #111111;
    }

    .faq-icon {
        margin-left: 10px;
    }

    #faq-search {
        width: 100%;
        margin-top: 10px;
    }

    .section-header {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}
