/* =========================================================
   L’OPALE GEO ENGINE – BASE STYLES
   Copiez ce fichier dans votre thème enfant pour personnaliser :
/wp-content/themes/votre-theme-child/geo-engine.css
========================================================= */

/* =========================================================
   ENTITY SUMMARY
========================================================= */

.lopale-geo-entity-summary {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    line-height: 1.7;
}

.lopale-geo-entity-summary p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   ANSWER READY
========================================================= */

.lopale-geo-answer-ready {
    margin: 0 0 24px;
    padding: 18px 20px;
    background: #E0F4F6;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #1d4ed8;
    border-radius: 10px;
}

.lopale-geo-answer-ready-content {
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
}

.lopale-geo-answer-ready-content > *:first-child {
    margin-top: 0;
}

.lopale-geo-answer-ready-content > *:last-child {
    margin-bottom: 0;
}

.lopale-geo-answer-ready-content ul,
.lopale-geo-answer-ready-content ol {
    margin: 12px 0 0 20px;
    padding: 0;
}

.lopale-geo-answer-ready-content li {
    margin-bottom: 6px;
}

/* =========================================================
   FAQ
========================================================= */

.lopale-geo-faq {
    margin: 40px 0;
}

.lopale-geo-faq h2 {
    margin: 0 0 20px;
}

.lopale-geo-faq-item {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.lopale-geo-faq-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.lopale-geo-faq-q {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.lopale-geo-faq-a {
    margin-top: 10px;
    line-height: 1.7;
    color: #374151;
}

.lopale-geo-faq-a > *:first-child {
    margin-top: 0;
}

.lopale-geo-faq-a > *:last-child {
    margin-bottom: 0;
}

/* =========================================================
   RELATED CONTENT
========================================================= */

.lopale-geo-related {
    margin: 32px 0;
}

.lopale-geo-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.lopale-geo-related h2 {
    margin: 0;
}

.lopale-geo-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

/* Cards réelles utilisées dans le PHP */
.geo-related-card {
    height: 100%;
    max-height: 650px;
}

.geo-related-card a {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 16px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
    overflow: hidden;
}

.geo-related-card img,
.geo-related-card .geo-related-thumb-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #f2f2f2;
    max-height: 300px;
}

.geo-related-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #111827;
}

.geo-related-card p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* =========================================================
   CAROUSEL
========================================================= */

.lopale-geo-related-carousel {
    position: relative;
}

.lopale-geo-related-track-wrap {
    overflow: hidden;
}

.lopale-geo-related-track {
    display: flex;
    transition: transform .35s ease;
    will-change: transform;
}

.lopale-geo-related-slide {
    flex: 0 0 calc(100% / var(--slides-desktop, 3));
    padding: 0 9px;
    box-sizing: border-box;
}

.lopale-geo-related-carousel .geo-related-card a {
    height: 100%;
}

/* =========================================================
   NAV
========================================================= */

.lopale-geo-related-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lopale-geo-related-btn {
    appearance: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.lopale-geo-related-btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

/* =========================================================
   DOTS
========================================================= */

.lopale-geo-related-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 16px;
}

.lopale-geo-related-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    cursor: pointer;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .18);
}

.lopale-geo-related-dot.is-active {
    background: rgba(0, 0, 0, .65);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .lopale-geo-related-slide {
        flex-basis: calc(100% / var(--slides-tablet, 2));
    }
}

@media (max-width: 640px) {
    .lopale-geo-related-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .lopale-geo-related-slide {
        flex-basis: calc(100% / var(--slides-mobile, 1));
    }
}