/**
 * CSS pour les sections SEO extensibles (details/summary)
 * Luigi 31 - Jardin Élagage
 * Compatible avec le template Gardyn by Designesia
 */

/* ===== SECTION SEO CONTAINER ===== */
.seo-content-section {
    padding: 80px 0;
}

/* ===== DETAILS/SUMMARY STYLING ===== */
.seo-details {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.seo-details:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #6c9a4d;
}

.seo-details[open] {
    border-color: #6c9a4d;
    box-shadow: 0 4px 12px rgba(108, 154, 77, 0.15);
}

/* ===== SUMMARY (bouton clickable) ===== */
.seo-summary {
    background: #ffffff;
    padding: 20px 25px;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: all 0.3s ease;
    user-select: none;
}

.seo-summary::-webkit-details-marker {
    display: none;
}

.seo-summary::marker {
    content: "";
}

.seo-summary:hover {
    background: #f8faf6;
}

.seo-details[open] .seo-summary {
    background: #f0f5eb;
    border-bottom: 1px solid #e0e0e0;
}

/* Icône + (fermé) / - (ouvert) */
.seo-summary::after {
    content: "+";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 300;
    color: #6c9a4d;
    transition: transform 0.3s ease, color 0.3s ease;
}

.seo-details[open] .seo-summary::after {
    content: "−";
    color: #548237;
}

.seo-summary:hover::after {
    transform: translateY(-50%) scale(1.1);
}

/* Titres H3 dans summary */
.seo-summary h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3e1f;
    padding-right: 50px;
    line-height: 1.4;
}

.seo-summary h3 i {
    color: #6c9a4d;
    font-size: 1.3rem;
    vertical-align: middle;
}

/* ===== CONTENT INNER (contenu extensible) ===== */
.seo-content-inner {
    background: #ffffff;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seo-content-inner p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.seo-content-inner p:last-child {
    margin-bottom: 0;
}

.seo-content-inner ul,
.seo-content-inner ol {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.seo-content-inner li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #555;
}

.seo-content-inner h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3e1f;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.seo-content-inner strong {
    color: #2d3e1f;
    font-weight: 600;
}

.seo-content-inner a {
    color: #6c9a4d;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.seo-content-inner a:hover {
    color: #548237;
    border-bottom-color: #548237;
}

/* Style pour les textes temporaires */
.seo-content-inner em {
    color: #999;
    font-style: italic;
    display: block;
    text-align: center;
    padding: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .seo-content-section {
        padding: 60px 0;
    }

    .seo-summary {
        padding: 18px 20px;
    }

    .seo-summary h3 {
        font-size: 1.05rem;
        padding-right: 45px;
    }

    .seo-summary::after {
        right: 20px;
        font-size: 24px;
    }

    .seo-content-inner {
        padding: 20px !important;
    }
}

@media (max-width: 576px) {
    .seo-summary h3 {
        font-size: 0.95rem;
    }

    .seo-summary h3 i {
        font-size: 1.1rem;
    }
}

/* ===== ACCESSIBILITÉ ===== */
.seo-details:focus-within {
    outline: 2px solid #6c9a4d;
    outline-offset: 2px;
}

.seo-summary:focus {
    outline: none;
}

/* ===== PRINT ===== */
@media print {
    .seo-details {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .seo-details[open] .seo-summary::after {
        display: none;
    }

    .seo-content-inner {
        display: block !important;
    }
}
