/* =============================================
   LES COMPAGNONS LECOQ - FAQ ACCORDION CSS
   Couvreur Val-de-Marne
   Couleurs: Blanc Cassé #f4e6c5 / Marron Foncé #2b1d12
   ============================================= */

/* === VARIABLES === */
.lclq-faq-wrapper {
    --lclq-faq-max-width: 900px;
    --lclq-faq-item-spacing: 12px;
    --lclq-faq-question-bg: #2b1d12;
    --lclq-faq-question-bg-hover: #3d2a1c;
    --lclq-faq-question-color: #f4e6c5;
    --lclq-faq-question-size: 16px;
    --lclq-faq-question-padding: 20px;
    --lclq-faq-border-radius: 12px;
    --lclq-faq-answer-bg: #f4e6c5;
    --lclq-faq-answer-color: #2b1d12;
    --lclq-faq-answer-size: 15px;
    --lclq-faq-answer-padding: 25px;
    --lclq-faq-icon-bg: #f4e6c5;
    --lclq-faq-icon-color: #2b1d12;
    --lclq-faq-icon-size: 28px;
}

/* === RESET === */
.lclq-faq-wrapper,
.lclq-faq-wrapper *,
.lclq-faq-wrapper *::before,
.lclq-faq-wrapper *::after {
    box-sizing: border-box;
}

/* === WRAPPER === */
.lclq-faq-wrapper {
    width: 100%;
    max-width: var(--lclq-faq-max-width);
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;
}

/* === FAQ ITEM === */
.lclq-faq-item {
    margin-bottom: var(--lclq-faq-item-spacing);
    border-radius: var(--lclq-faq-border-radius);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(43, 29, 18, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.lclq-faq-item:hover {
    box-shadow: 0 8px 30px rgba(43, 29, 18, 0.2);
    transform: translateY(-2px);
}

.lclq-faq-item:last-child {
    margin-bottom: 0;
}

/* === QUESTION (BOUTON) === */
.lclq-faq-question {
    width: 100%;
    padding: var(--lclq-faq-question-padding) calc(var(--lclq-faq-question-padding) + 5px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--lclq-faq-question-bg);
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: var(--lclq-faq-question-size);
    font-weight: 600;
    color: var(--lclq-faq-question-color);
    transition: all 0.3s ease;
    gap: 15px;
    border-radius: var(--lclq-faq-border-radius);
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.lclq-faq-question:hover {
    background: var(--lclq-faq-question-bg-hover);
}

.lclq-faq-question:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 29, 18, 0.3);
}

.lclq-faq-question:active {
    transform: scale(0.99);
}

.lclq-faq-question span:first-child {
    flex: 1;
    line-height: 1.4;
    pointer-events: none;
}

/* === ICÔNE +/- === */
.lclq-faq-icon {
    width: var(--lclq-faq-icon-size);
    height: var(--lclq-faq-icon-size);
    min-width: var(--lclq-faq-icon-size);
    border-radius: 50%;
    background: var(--lclq-faq-icon-bg);
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    pointer-events: none;
}

.lclq-faq-icon::before,
.lclq-faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--lclq-faq-icon-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lclq-faq-icon::before {
    width: 12px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.lclq-faq-icon::after {
    width: 2px;
    height: 12px;
    transform: translate(-50%, -50%);
}

/* === ÉTAT OUVERT === */
.lclq-faq-item.active .lclq-faq-icon {
    transform: rotate(180deg);
}

.lclq-faq-item.active .lclq-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.lclq-faq-item.active .lclq-faq-question {
    background: var(--lclq-faq-question-bg-hover);
    border-radius: var(--lclq-faq-border-radius) var(--lclq-faq-border-radius) 0 0;
}

/* === RÉPONSE === */
.lclq-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--lclq-faq-answer-bg);
}

.lclq-faq-item.active .lclq-faq-answer {
    max-height: 800px;
}

.lclq-faq-answer-content {
    padding: var(--lclq-faq-answer-padding);
}

.lclq-faq-answer-content p {
    margin: 0;
    font-size: var(--lclq-faq-answer-size);
    line-height: 1.7;
    color: var(--lclq-faq-answer-color);
}

.lclq-faq-answer-content p + p {
    margin-top: 15px;
}

.lclq-faq-answer-content strong {
    color: #1a0f08;
    font-weight: 600;
}

.lclq-faq-answer-content a {
    color: #2b1d12;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lclq-faq-answer-content a:hover {
    color: #4a3728;
}

/* =============================================
   RESPONSIVE - TABLETTE
   ============================================= */
@media screen and (max-width: 768px) {
    .lclq-faq-wrapper {
        padding: 15px;
    }
    
    .lclq-faq-question {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .lclq-faq-answer-content {
        padding: 20px;
    }
    
    .lclq-faq-answer-content p {
        font-size: 14px;
    }
    
    .lclq-faq-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }
}

/* =============================================
   RESPONSIVE - MOBILE
   ============================================= */
@media screen and (max-width: 480px) {
    .lclq-faq-wrapper {
        padding: 10px;
    }
    
    .lclq-faq-item {
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .lclq-faq-question {
        padding: 16px 15px;
        font-size: 14px;
        gap: 12px;
        border-radius: 10px;
    }
    
    .lclq-faq-item.active .lclq-faq-question {
        border-radius: 10px 10px 0 0;
    }
    
    .lclq-faq-answer-content {
        padding: 15px;
    }
    
    .lclq-faq-answer-content p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .lclq-faq-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
    
    .lclq-faq-icon::before {
        width: 10px;
    }
    
    .lclq-faq-icon::after {
        height: 10px;
    }
}

/* =============================================
   FIX ELEMENTOR
   ============================================= */
.elementor-widget-container .lclq-faq-wrapper {
    width: 100%;
    background: transparent;
}
