@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   DRJ PRODUITS — CSS shortcodes
   ============================================================ */

/* ── Base ── */
.drj { font-family: 'Outfit', sans-serif; color: #111; }
.drj img { display: block; max-width: 100%; }
.drj-in { max-width: 1400px; margin: 0 auto; }

/* ── Grille ── */
.drj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ── Card ── */
.drj-card { background: #fff; border-radius: 14px; border: 1px solid #e0e3e8; overflow: hidden; display: flex; flex-direction: column; }
.drj-card.hide { display: none; }

/* ── Image ── */
.drj-card-img { height: 210px; overflow: hidden; background: #EEF2F7; position: relative; flex-shrink: 0; }
.drj-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ── Body ── */
.drj-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.drj-body h4 { font-size: .94rem; font-weight: 700; color: #111; margin-bottom: 5px; line-height: 1.2; }
.drj-body p { font-size: .74rem; color: #555; line-height: 1.55; font-weight: 300; margin-bottom: 12px; flex: 1; }

/* ── Specs ── */
.drj-specs { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.drj-sr { display: flex; align-items: center; justify-content: space-between; }
.drj-sl { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: #bbb; }
.drj-sv { font-size: .76rem; font-weight: 600; color: #111; }
.drj-sdiv { height: 1px; background: #f2f4f6; margin: 1px 0; }

/* ── Tags — inline dot-separated ── */
.drj .drj-options { display: flex !important; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 14px; }
.drj .drj-option-tag { font-size: .65rem !important; color: #888 !important; font-weight: 400 !important; background: none !important; border: none !important; padding: 0 !important; border-radius: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.drj .drj-option-tag.drj-option-highlight { color: #4A7C9B !important; font-weight: 600 !important; }
.drj .drj-option-dot { width: 3px !important; height: 3px !important; border-radius: 50% !important; background: #d0d3d8 !important; flex-shrink: 0; display: inline-block !important; }

/* ── Filtres piscines ── */
.drj-pool-header { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 24px; gap: 24px; }
.drj-pool-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.drj-pool-btn { padding: 8px 18px; border-radius: 20px; font-size: .76rem; font-weight: 600; border: 1.5px solid #e0e3e8; background: transparent; color: #555; cursor: pointer; transition: all .3s; font-family: 'Outfit', sans-serif; }
.drj-pool-btn:hover { border-color: #4A7C9B; color: #4A7C9B; }
.drj-pool-btn.drj-pool-btn-active { background: #1a2535; border-color: #1a2535; color: #fff; }
.drj-pool-card-hidden { display: none !important; }

/* ── Filtres toolbar ── */
.drj-toolbar { margin-bottom: 24px; background: #fff; border-radius: 14px; padding: 18px 22px 4px; }
.drj-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }

/* Segmented */
.drj-seg { display: inline-flex; background: #F0F2F5; border-radius: 8px; padding: 3px; gap: 2px; }
.drj-seg-btn { font-size: .8rem; padding: 6px 18px; border-radius: 6px; cursor: pointer; color: #888 !important; border: none !important; background: none !important; font-family: 'Outfit', sans-serif; transition: color .18s, background .18s, box-shadow .18s; white-space: nowrap; font-weight: 500; outline: none !important; box-shadow: none !important; }
.drj-seg-btn:hover { color: #333 !important; }
.drj-seg-btn.on { background: #fff !important; color: #111 !important; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08) !important; border: 0.5px solid #dde1e7 !important; }

/* Sous-filtres */
.drj-subrow { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid #ebeef2; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .3s ease, opacity .25s ease, padding .25s ease; }
.drj-subrow:last-child { border-bottom: none; }
.drj-subrow.visible { max-height: 70px; opacity: 1; }
.drj-flabel { font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; color: #c0c5cc; font-weight: 600; min-width: 110px; flex-shrink: 0; }
.drj-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.drj-tab { padding: 7px 16px; border-radius: 20px; font-size: .75rem; font-weight: 600; border: 1.5px solid #e0e3e8 !important; background: transparent !important; color: #666 !important; cursor: pointer; transition: all .2s; font-family: 'Outfit', sans-serif; white-space: nowrap; outline: none !important; }
.drj-tab:hover { border-color: #4A7C9B !important; color: #4A7C9B !important; }
.drj-tab.on { background: #1a2535 !important; border-color: #1a2535 !important; color: #fff !important; }
.drj-tab.unavailable { opacity: 0 !important; max-width: 0 !important; padding-left: 0 !important; padding-right: 0 !important; pointer-events: none; border: none !important; overflow: hidden; }

/* Barre résultats */
.drj-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; min-height: 24px; }
.drj-count { font-size: .72rem; color: #aaa; }
.drj-count strong { color: #4A7C9B; font-weight: 700; }
.drj-reset { font-size: .68rem; font-weight: 600; color: #bbb !important; background: none !important; border: none !important; cursor: pointer; font-family: 'Outfit', sans-serif; display: flex; align-items: center; gap: 4px; transition: color .15s; outline: none !important; }
.drj-reset:hover { color: #4A7C9B !important; }
.drj-reset svg { width: 11px; height: 11px; }
.drj-reset.hide { visibility: hidden; }

/* Empty */
.drj-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #ccc; display: none; }
.drj-empty svg { width: 36px; height: 36px; margin: 0 auto 12px; display: block; opacity: .25; }
.drj-empty p { font-size: .83rem; line-height: 1.6; }

/* ── Card contact (more) ── */
.drj-card-more { background: linear-gradient(145deg, #1a2535 0%, #243042 100%) !important; border-color: #2e3d52 !important; cursor: default; }
.drj-more-inner { padding: 28px 22px; display: flex; flex-direction: column; height: 100%; }
.drj-more-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(74,124,155,.15); border: 1px solid rgba(74,124,155,.25); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.drj-more-icon svg { width: 22px; height: 22px; stroke: #4A7C9B; }
.drj-card-more h4 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.drj-card-more p { font-size: .75rem; color: rgba(255,255,255,.65); line-height: 1.65; font-weight: 300; margin-bottom: 24px; flex: 1; }
.drj-more-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.drj-more-cta { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 600; color: #fff !important; background: #4A7C9B; border-radius: 8px; padding: 10px 16px; text-decoration: none; transition: background .25s, gap .25s; white-space: nowrap; }
.drj-more-cta:hover,
.drj-more-cta:focus,
.drj-more-cta:active { background: #3d6a87; gap: 11px; color: #fff !important; text-decoration: none !important; }
.drj-more-cta svg { width: 13px; height: 13px; }
.drj-more-tel { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; letter-spacing: .02em; white-space: nowrap; }
.drj-more-tel:hover { color: #fff; }
.drj-more-tel svg { width: 14px; height: 14px; stroke: #4A7C9B; }


/* ============================================================
   DRJ — FIX HOVER ELEMENTOR
   Neutralise le fond violet/coloré appliqué par défaut par le
   thème Elementor sur button:hover / :focus / :active.
   ============================================================ */

/* Supprimer outlines et box-shadow par défaut */
.drj button:focus,
.drj button:focus-visible,
.drj button:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Tabs filtres (spa, places, dim, long, larg) */
.drj .drj-tab,
.drj .drj-tab:hover,
.drj .drj-tab:focus,
.drj .drj-tab:active { background: transparent !important; background-color: transparent !important; }
.drj .drj-tab.on,
.drj .drj-tab.on:hover,
.drj .drj-tab.on:focus,
.drj .drj-tab.on:active { background: #1a2535 !important; background-color: #1a2535 !important; }

/* Boutons filtres piscines */
.drj .drj-pool-btn,
.drj .drj-pool-btn:hover,
.drj .drj-pool-btn:focus,
.drj .drj-pool-btn:active { background: transparent !important; background-color: transparent !important; }
.drj .drj-pool-btn.drj-pool-btn-active,
.drj .drj-pool-btn.drj-pool-btn-active:hover,
.drj .drj-pool-btn.drj-pool-btn-active:focus { background: #1a2535 !important; background-color: #1a2535 !important; }

/* Segmented buttons (spa/nage) */
.drj .drj-seg-btn,
.drj .drj-seg-btn:hover,
.drj .drj-seg-btn:focus,
.drj .drj-seg-btn:active { background: none !important; background-color: transparent !important; }
.drj .drj-seg-btn.on,
.drj .drj-seg-btn.on:hover,
.drj .drj-seg-btn.on:focus { background: #fff !important; background-color: #fff !important; }

/* Bouton reset */
.drj .drj-reset,
.drj .drj-reset:hover,
.drj .drj-reset:focus,
.drj .drj-reset:active { background: none !important; background-color: transparent !important; }


/* ============================================================
   DRJ — Vitrine accueil : dropdown mobile
   Sur mobile, le segmented est remplacé par un select natif
   plus ergonomique et compact.
   ============================================================ */

.drj-select-mobile {
    display: none; /* caché sur desktop par défaut */
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1.5px solid #e0e3e8;
    border-radius: 10px;
    background-color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: #1a2535;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2535' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    outline: none;
}

.drj-select-mobile:focus {
    border-color: #4A7C9B;
}


/* ── Responsive ── */
@media (max-width: 1200px) { .drj-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .drj-grid { grid-template-columns: repeat(2, 1fr); } .drj-card-img { height: 185px; } }
@media (max-width: 600px)  {
    .drj-grid { grid-template-columns: 1fr; }
    .drj-top { flex-wrap: wrap; }
    .drj-flabel { min-width: 80px; }
    /* Vitrine : cacher segmented, afficher select */
    .drj-seg-desktop { display: none; }
    .drj-select-mobile { display: block; width: 100%; }
    /* Toolbar de la vitrine : padding réduit pour que le select prenne toute la largeur */
    #drj-vitrine-grid { margin-top: 0; }
    .drj-toolbar:has(.drj-select-mobile) {
        padding: 0;
        background: transparent;
        margin-bottom: 20px;
    }
    .drj-toolbar:has(.drj-select-mobile) .drj-top {
        margin-bottom: 0;
    }
}