/**
 * Styles pour la page catégorie/recherche
 * Fichier: assets/css/category-page.css
 */

/* TYPO */
@import url('https://fonts.googleapis.com/css2?family=Tilt+Neon&display=swap');

/* GLOBAL */
.ots-category-page {
    padding: 0;
    background: #ffffff;
    width: 100%;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3%;
}

.ast-container,
.site .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* HERO SECTION */
.ots-hero-section {
    position: relative;
    min-height: 490px;
    background: linear-gradient(135deg, #1F1A47 0%, #4A3F7A 100%);
    background-image: url('https://organisetonseminaire.com/wp-content/uploads/2025/10/vineyard-chateau-burgundy-france-1.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0 60px;
}

.ots-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(31 26 71 / 42%) 0%, rgb(74 63 122 / 50%) 100%);
    z-index: 1;
}

.ots-hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.ots-hero-text {
    color: white;
}

.ots-hero-breadcrumb {
    font-size: 14px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.ots-hero-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.ots-hero-breadcrumb a:hover {
    opacity: 0.7;
}

.ots-breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.6;
}

.ots-breadcrumb-current {
    color: #D8A807;
    font-weight: 500;
}

.ots-hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: white;
}

.ots-rse-suffix {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 24px;
    margin-left: 10px;
}

.ots-hero-subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.95;
    font-family: 'Tilt Neon', sans-serif;
    font-weight: 400;
}

.ots-hero-subtitle strong {
    color: #D8A807;
}

.ots-hero-subtitle em {
    color: #D8A807;
    font-style: normal;
}

.ots-hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 35px;
    opacity: 0.95;
    max-width: 700px;
}

.ots-hero-search {
    max-width: 900px;
}

.ots-hero-mascot {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ots-mascot-img {
    position: absolute;
    top: -90px;
    right: 0;
    width: 100%;
    max-width: 850px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: floatMascot 7s ease-in-out infinite;
    z-index: 999;
}

@keyframes floatMascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* SECTION PRESTATAIRES */
.ots-main-content {
    padding: 60px 0;
    background: #ffffff;
}

.ots-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.ots-left-column {
    background: white;
    border-radius: 16px;
    padding: 30px;
    padding: 0px 10px 0px 0px;
}

.ots-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F1A47;
    margin: 0 0 10px 0;
}

.ots-results-count {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 25px 0;
}

.prestataires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* CARTE (sticky) */
.ots-right-column {
    position: sticky;
    top: 240px;
}

.ots-map-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 600px;
}

#search-map {
    width: 100%;
    height: 100%;
}

/* AUCUN RÉSULTAT */
.ots-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.ots-no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #d1d5db;
}

.ots-no-results h2 {
    font-size: 24px;
    color: #1F1A47;
    margin: 0 0 10px 0;
}

/* PAGINATION */
.ots-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.ots-pagination .page-numbers {
    display: flex;
    gap: 8px;
}

.ots-pagination a,
.ots-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #1F1A47;
    font-weight: 600;
    background: white;
    transition: all 0.3s;
}

.ots-pagination a:hover {
    background: #D8A807;
    color: white;
    border-color: #D8A807;
}

.ots-pagination .current {
    background: #D8A807;
    color: white;
    border-color: #D8A807;
}

/* SECTIONS SEO */
.ots-secondary-description {
    padding: 80px 0;
    background: #fcfcfc;
}

.containerdescription {

    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.ots-seo-text-content {
    font-family: 'Tilt Neon', sans-serif;
    color: #1F1A47;
}

.ots-seo-text-content h2,
.ots-seo-text-content h3 {
    font-family: 'Tilt Neon', sans-serif;
    color: #1F1A47;
    font-weight: 400;
    line-height: 1.3;
}

.ots-seo-text-content h2 {
    font-size: 36px;
    margin: 0 0 30px 0;
}

.ots-seo-text-content h3 {
    font-size: 32px;
    margin: 50px 0 30px 0;
}

.ots-seo-text-content p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 20px 0;
    text-align: justify;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .ots-hero-content {
        grid-template-columns: 1fr 300px;
    }

    .ots-two-columns {
        grid-template-columns: 1fr;
    }

    .ots-right-column {
        position: relative;
        top: 0;
    }

    .containerdescription {
        max-width: 75%;
    }


}

@media (max-width: 768px) {
    .ots-hero-section {
        padding: 50px 0 40px;
    }

    .ots-hero-content {
        grid-template-columns: 1fr;
    }

    .ots-hero-title {
        font-size: 28px;
    }

    .ots-mascot-img {
        max-width: 200px;
        margin: 0 auto;
    }

    .prestataires-grid {
        grid-template-columns: 1fr;
    }

    .containerdescription {
        max-width: 85%;
    }

    .ots-main-content {
        padding: 140px 0;
    }

    .ots-mascot-img {
        top: -40px;
        animation: none;

    }
}

@media (max-width: 500px) {

    .containerdescription {
        max-width: 95%;
    }

    .containerfaq {
        max-width: 95% !important;
    }

    .ots-left-column {
        padding: 0;
    }

    .ots-main-content {
        padding: 140px 0;
    }

    .ots-mascot-img {
        top: -40px;
        animation: none;

    }
}

/* ==========================================
   SECTION FAQ - NOUVEAU DESIGN (ACCORDÉON)
========================================== */
.ots-faq-section {
    padding: 80px 0 0 0;
    background: #ffffff;
}

.containerfaq {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.ots-faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.ots-faq-subtitle {
    font-size: 18px;
    font-family: 'Tilt Neon', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #D8A807;
    margin: 0 0 15px 0;
}

.ots-faq-title {
    font-size: 38px;
    font-family: 'Tilt Neon', sans-serif;
    font-weight: 400;
    color: #1F1A47;
    margin: 0;
    line-height: 1.3;
}

/* Liste FAQ - PAS DE GAP */
.ots-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* ✅ PAS D'ESPACE ENTRE LES ITEMS */
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

/* Item FAQ */
.ots-faq-item {
    background: white;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 0;
    /* ✅ PAS DE BORDER RADIUS PAR DÉFAUT */
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ✅ PREMIER ITEM : Border radius en haut */
.ots-faq-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* ✅ DERNIER ITEM : Border radius en bas + pas de bordure */
.ots-faq-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom: none;
}

.ots-faq-question {
    padding: 25px 35px;
    font-size: 20px;
    font-family: 'Tilt Neon', sans-serif;
    font-weight: 400;
    color: #1F1A47;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    user-select: none;
    text-transform: uppercase;
}

.ots-faq-question:hover {
    color: #D8A807;
}

.ots-faq-item[open] .ots-faq-question {
    color: #D8A807;
}

/* Supprimer le triangle par défaut */
.ots-faq-question::-webkit-details-marker {
    display: none;
}

/* Icône flèche */
.ots-faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s ease;
    color: #6B7280;
}

.ots-faq-item[open] .ots-faq-icon {
    transform: rotate(180deg);
    color: #D8A807;
}

.ots-faq-icon svg {
    width: 16px;
    height: 16px;
}

/* Réponse */
.ots-faq-answer {
    padding: 5px 35px 30px 35px;
    font-size: 15px;
    line-height: 1.7;
    color: #4B5563;
    animation: slideDown 0.3s ease;
}

.ots-faq-answer p {
    margin: 0;
    font-family: 'Tilt Neon', sans-serif;
    font-weight: 400;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ots-faq-section {
        padding: 60px 0 0 0;
    }

    .ots-faq-title {
        font-size: 24px;
    }

    .ots-faq-question {
        padding: 16px 18px;
        font-size: 18px;
    }

    .ots-faq-answer {
        padding: 16px 18px 20px 18px;
        font-size: 14px;
    }

    .ots-faq-icon {
        margin-left: 12px;
    }
}

@media (max-width: 480px) {
    .containerfaq {
        padding: 0 15px;
    }

    .ots-faq-title {
        font-size: 22px;
    }

    .ots-faq-question {
        padding: 14px 16px;
        font-size: 16px;
    }

    .ots-faq-answer {
        padding: 14px 16px 18px 16px;
        font-size: 13px;
    }
}























/* ==========================================
   SECTION FILTRES
========================================== */




.ots-section-header {
    margin-bottom: 30px;
}

.ots-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.ots-section-title {
    margin: 0;
    flex: 1;
}

.ots-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.ots-filter-toggle:hover {
    border-color: #D8A807 !important;
    background: #f8f9fa !important;
    color: #D8A807 !important;
}

.ots-filter-toggle.active {
    border-color: #D8A807 !important;
    background: #f8f9fa !important;
    color: #D8A807 !important;
}

.ots-filter-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff5722;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.ots-filters-dropdown {
    display: none;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ots-filters-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ots-filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ots-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ots-filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ots-filter-group label i {
    color: #D8A807 !important;
}

.ots-filter-group select {
    padding: 2px 25px !important;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ots-filter-group select:focus {
    outline: none;
    border-color: #D8A807 !important;
}

.ots-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ots-checkbox-label:hover {
    background: #f8f9fa;
    border-color: #D8A807 !important;
}

.ots-checkbox-label input[type="checkbox"] {
    display: none;
}

.ots-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ots-checkbox-label input[type="checkbox"]:checked+.ots-checkbox-custom {
    background: #D8A807 !important;
    border-color: #D8A807 !important;
}

.ots-checkbox-label input[type="checkbox"]:checked+.ots-checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.ots-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.ots-btn-reset,
.ots-btn-apply {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ots-btn-reset {
    background: #f5f5f5;
    color: #666;
}

.ots-btn-reset:hover {
    background: #e0e0e0;
}

.ots-btn-apply {
    background: #D8A807;
    color: #fff;
}

.ots-btn-apply:hover {
    background: #D8A807;
}

@media (max-width: 768px) {
    .ots-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .ots-filter-toggle {
        width: 100%;
        justify-content: center;
    }
}


.map-card-simplified .card-primary-category,
.map-card-simplified .card-info,
.map-card-simplified .card-badges {
    display: none !important;
}

/* Ajuster l'espacement */
.map-card-simplified .card-content {
    padding: 16px;
}

.map-card-simplified .card-title {
    margin-bottom: 12px;
}

.leaflet-popup-content .map-card-simplified .card-primary-category {
    display: none !important;
}

.leaflet-popup-content .map-card-simplified .card-info {
    display: none !important;
}

.leaflet-popup-content .map-card-simplified .card-badges {
    display: none !important;
}


.ots-section-title,
.ots-seo-text-content h2,
.ots-faq-title {
    position: relative;
    padding-bottom: 15px !important;
}


.ots-section-title::after,
.ots-seo-text-content h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 216px;
    height: 19px;
    background-image: url('data:image/svg+xml;utf8,<svg width="216" height="19" viewBox="0 0 216 19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.999985 15.9998C30.1695 9.37474 113.8 -1.68752 214.966 7.06376" stroke="%23D8A807" stroke-width="6"/></svg>');
    background-repeat: no-repeat;

    /* Animation de la droite vers la gauche */
    opacity: 0;
    transform: translateX(100%);
    animation: slideFromRight 0.8s ease-out forwards;
}

.ots-faq-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 40%;
    transform: translateX(-50%);
    width: 216px;
    height: 19px;
    background-image: url('data:image/svg+xml;utf8,<svg width="216" height="19" viewBox="0 0 216 19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.999985 15.9998C30.1695 9.37474 113.8 -1.68752 214.966 7.06376" stroke="%23D8A807" stroke-width="6"/></svg>');
    background-repeat: no-repeat;

    /* Animation */
    opacity: 0;
    animation: slideFromRight 0.8s ease-out forwards;
}

@keyframes slideFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@media (max-width: 768px) {
    .ots-faq-title::after {
        left: 30%;
    }
}