/* ============================================================
   Clubs MarocGym — Feuille de style principale
   Design : SaaS propre, bleu professionnel + blanc
   ============================================================ */

:root {
    --brand:        #1d4ed8;
    --brand-dark:   #1e3a8a;
    --brand-light:  #3b82f6;
    --brand-50:     #eff6ff;
    --brand-100:    #dbeafe;

    --ink:          #0f172a;
    --ink-700:      #334155;
    --muted:        #64748b;
    --line:         #e2e8f0;
    --bg:           #ffffff;
    --soft:         #f7f9fc;

    --radius-sm:    10px;
    --radius:       16px;
    --radius-lg:    22px;

    --shadow-sm:    0 1px 2px rgba(15, 23, 42, .06);
    --shadow:       0 10px 30px -14px rgba(15, 23, 42, .22);
    --shadow-lg:    0 28px 60px -30px rgba(29, 78, 216, .38);

    --font-latin:   'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-ar:      'Tajawal', 'Plus Jakarta Sans', system-ui, sans-serif;

    --container:    1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }

body {
    font-family: var(--font-latin);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    /* « clip » évite le défilement horizontal (menu hors écran, débords)
       sans créer de conteneur de défilement, donc sans casser les éléments
       en position: sticky. */
    overflow-x: clip;
}

body.locale-ar { font-family: var(--font-ar); }
body.locale-ar h1, body.locale-ar h2, body.locale-ar h3, body.locale-ar h4 { font-weight: 700; }

a { text-decoration: none; color: inherit; }

.container { max-width: var(--container); }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; }

::selection { background: var(--brand-100); color: var(--brand-dark); }

/* ---------------- Boutons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border-radius: 999px;
    font-weight: 600;
    padding: .7rem 1.4rem;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; }

.btn-brand {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    color: #fff;
    box-shadow: 0 12px 26px -14px rgba(29, 78, 216, .85);
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(29, 78, 216, .9); }

.btn-ghost {
    background: #fff;
    color: var(--brand-dark);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-dark); }

.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: #f1f5ff; color: var(--brand-dark); transform: translateY(-2px); }

.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }

/* ============================================================
   Barre supérieure
   ============================================================ */
.topbar {
    position: relative;
    z-index: 1040;
    background: var(--ink);
    color: #cbd5e1;
    font-size: .84rem;
    padding: .55rem 0;
}
.topbar__contacts { display: flex; gap: 1.6rem; }
.topbar__contacts span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__contacts i { color: var(--brand-light); }

.topbar__actions { display: flex; align-items: center; gap: 1.1rem; }

.topbar__lang {
    background: transparent;
    border: 0;
    color: #cbd5e1;
    font-size: .84rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem .4rem;
    border-radius: 6px;
}
.topbar__lang:hover { color: #fff; background: rgba(255,255,255,.08); }

.topbar .dropdown-menu {
    z-index: 1040;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .35rem;
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, .45);
    min-width: 170px;
}
.topbar .dropdown-item {
    border-radius: 9px;
    padding: .5rem .75rem;
    font-weight: 600;
    font-size: .9rem;
    color: var(--ink-700);
}
.topbar .dropdown-item:hover { background: var(--brand-50); color: var(--brand); }
.topbar .dropdown-item.active { background: var(--brand); color: #fff; }

.topbar__link { color: #cbd5e1; }
.topbar__link:hover { color: #fff; }
.topbar__link--accent { color: #fff; font-weight: 600; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    padding: .85rem 0;
    transition: box-shadow .25s ease, border-color .25s ease, padding .25s ease;
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px -22px rgba(15, 23, 42, .5);
    padding: .6rem 0;
}

.header-actions { display: flex; align-items: center; gap: .65rem; }

.icon-btn {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-700);
    transition: all .18s ease;
}
.icon-btn:hover { border-color: var(--brand-100); color: var(--brand); background: var(--brand-50); }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__mark {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 10px 22px -12px rgba(29, 78, 216, .9);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 1.16rem; font-weight: 800; letter-spacing: -.03em; }
.brand__text span { font-size: 1.16rem; font-weight: 500; color: var(--brand); letter-spacing: -.03em; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text span { color: var(--brand-light); }
.brand--sm .brand__mark { width: 38px; height: 38px; font-size: .9rem; }
.brand--sm .brand__text strong, .brand--sm .brand__text span { font-size: 1rem; }

/* Hamburger (menu unique, toutes tailles d'écran) */
.hamburger {
    width: 46px; height: 46px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: #fff;
    display: grid;
    align-content: center;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
    transition: all .2s ease;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 20px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .28s ease, opacity .2s ease;
}
.hamburger:hover { border-color: var(--brand-100); background: var(--brand-50); }
.hamburger:hover span { background: var(--brand); }

body.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu latéral */
.main-menu {
    width: min(400px, 92vw) !important;
    border-inline-start: 1px solid var(--line);
    background: #fff;
}
.main-menu .offcanvas-header { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.main-menu .offcanvas-body { padding: 1.4rem; display: flex; flex-direction: column; }

.main-menu__nav { display: flex; flex-direction: column; gap: .15rem; }

.main-menu__link {
    padding: .85rem .9rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: background .18s ease, transform .18s ease;
}
.main-menu.show .main-menu__link {
    animation: menuIn .38s ease forwards;
    animation-delay: calc(var(--i) * 55ms);
}
@keyframes menuIn { to { opacity: 1; transform: translateX(0); } }

.main-menu__link:hover { background: var(--brand-50); }
.main-menu__label { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.main-menu__link:hover .main-menu__label { color: var(--brand); }
.main-menu__sub {
    font-family: var(--font-ar);
    font-size: .9rem;
    color: var(--muted);
    font-weight: 500;
}

.main-menu__cta { margin-top: auto; padding-top: 1.6rem; }
.main-menu__auth {
    display: flex; justify-content: center; gap: .6rem;
    margin-top: 1rem; color: var(--muted); font-size: .9rem;
}
.main-menu__auth a:hover { color: var(--brand); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    padding: 3.6rem 0 5.5rem;
    background:
        radial-gradient(900px 420px at 82% -10%, rgba(59, 130, 246, .16), transparent 62%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 70%);
    overflow: hidden;
}
.hero__glow {
    position: absolute;
    inset-inline-start: -160px;
    top: -120px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(29, 78, 216, .14), transparent 68%);
    pointer-events: none;
}
.hero__inner { position: relative; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--brand-100);
    color: var(--brand-dark);
    font-size: .83rem;
    font-weight: 600;
    padding: .42rem .95rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
.hero__badge i { color: #f59e0b; }

.hero__title {
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}
.hero__accent {
    display: block;
    background: linear-gradient(120deg, var(--brand) 10%, var(--brand-light) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__title-ar {
    display: block;
    font-family: var(--font-ar);
    font-style: normal;
    font-weight: 500;
    font-size: clamp(1rem, 1.7vw, 1.3rem);
    color: var(--muted);
    margin-top: .55rem;
    letter-spacing: 0;
}

.hero__subtitle {
    font-size: 1.06rem;
    color: var(--ink-700);
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 1.9rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__visual { position: relative; }
.hero__visual img {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .7rem;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: .7rem .95rem;
    box-shadow: var(--shadow);
    animation: floaty 5s ease-in-out infinite;
}
.hero__float strong { display: block; font-size: 1.02rem; line-height: 1.2; }
.hero__float small { color: var(--muted); font-size: .74rem; }
.hero__float-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: var(--brand-50);
    color: var(--brand);
}
.hero__float--rating { top: 8%; inset-inline-start: -26px; }
.hero__float--rating .hero__float-icon { background: #fffbeb; color: #d97706; }
.hero__float--gyms { bottom: 9%; inset-inline-end: -22px; animation-delay: 1.4s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

/* ============================================================
   Carte de recherche
   ============================================================ */
.search-wrap { margin-top: -3.2rem; position: relative; z-index: 5; }

.search-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr auto;
    gap: .35rem;
    align-items: end;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: .85rem;
    box-shadow: 0 30px 60px -34px rgba(15, 23, 42, .38);
}
.search-card__field { padding: .35rem .9rem; position: relative; }
.search-card__field + .search-card__field { border-inline-start: 1px solid var(--line); }
.search-card__field label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: .3rem;
}
.search-card__field label i { color: var(--brand); margin-inline-end: .25rem; }
.search-card__field .form-select,
.search-card__field .form-control {
    border: 0;
    padding: 0;
    font-weight: 600;
    font-size: .98rem;
    color: var(--ink);
    background-color: transparent;
    box-shadow: none;
}
.search-card__field .form-select:focus,
.search-card__field .form-control:focus { box-shadow: none; }
.search-card__submit { height: 52px; padding-inline: 1.7rem; }

/* ============================================================
   Barre de statistiques
   ============================================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.6rem;
}
.stats-bar__item {
    text-align: center;
    padding: 1.2rem .75rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.stats-bar__item strong {
    display: block;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--brand);
    letter-spacing: -.03em;
}
.stats-bar__item span { font-size: .85rem; color: var(--muted); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 4.5rem 0; }
.section--soft { background: var(--soft); }

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.4rem;
}
.section__head--center { justify-content: center; text-align: center; }
.section__head--center > div { max-width: 660px; }

.eyebrow {
    display: inline-block;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--brand);
    margin-bottom: .6rem;
}
.eyebrow--light { color: #93c5fd; }

.section__title { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: .3rem; }
.section__title-ar {
    font-family: var(--font-ar);
    color: var(--muted);
    font-size: 1.02rem;
    margin: 0 0 .5rem;
}
.section__subtitle { color: var(--muted); margin: 0; max-width: 620px; line-height: 1.65; }
.section__head--center .section__subtitle { margin-inline: auto; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    padding-bottom: .2rem;
}
.link-more i { transition: transform .2s ease; }
.link-more:hover i { transform: translateX(4px); }

/* ---------------- Activités ---------------- */
.activity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .55rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.activity-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent) 35%, #fff);
    box-shadow: 0 22px 40px -26px var(--accent);
}
.activity-card__icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: grid; place-items: center;
    font-size: 1.25rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, #fff);
}
.activity-card__name { font-size: .98rem; font-weight: 700; }
.activity-card__count { font-size: .8rem; color: var(--muted); }

/* ---------------- Villes ---------------- */
.city-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.2rem 1.2rem 3.4rem;
    height: 100%;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.city-card::after {
    content: '';
    position: absolute;
    inset-inline-end: -30px; bottom: -34px;
    width: 96px; height: 96px;
    border-radius: 50%;
    background: var(--brand-50);
    transition: transform .3s ease;
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.city-card:hover::after { transform: scale(1.5); }
.city-card__pin {
    position: absolute;
    inset-inline-start: 1.1rem;
    top: 1.25rem;
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--brand-50);
    color: var(--brand);
    font-size: .85rem;
    z-index: 1;
}
.city-card__name { font-weight: 700; position: relative; z-index: 1; }
.city-card__count { font-size: .82rem; color: var(--muted); position: relative; z-index: 1; }

/* ---------------- Carte salle ---------------- */
.gym-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gym-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-100);
    box-shadow: 0 30px 55px -32px rgba(15, 23, 42, .45);
}

.gym-card__media { position: relative; display: block; }
.gym-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .5s ease;
}
.gym-card:hover .gym-card__media img { transform: scale(1.06); }

.gym-card__badges {
    position: absolute;
    top: .8rem;
    inset-inline-start: .8rem;
    display: flex;
    gap: .35rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .7rem;
    font-weight: 700;
    padding: .3rem .6rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}
.chip--premium { background: rgba(15, 23, 42, .82); color: #fbbf24; }
.chip--verified { background: rgba(255, 255, 255, .92); color: #16a34a; }
.chip--audience { background: rgba(255, 255, 255, .92); color: #db2777; }
.chip--kids { background: rgba(255, 255, 255, .92); color: #2563eb; }

.gym-card__price {
    position: absolute;
    bottom: .8rem;
    inset-inline-end: .8rem;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: .4rem .7rem;
    text-align: end;
    line-height: 1.15;
    box-shadow: var(--shadow-sm);
}
.gym-card__price small { display: block; font-size: .64rem; color: var(--muted); }
.gym-card__price strong { font-size: .95rem; color: var(--brand); }
.gym-card__price span { font-size: .68rem; color: var(--muted); }

.gym-card__body { padding: 1.15rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }

.gym-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .8rem; }
.gym-card__city { color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.gym-card__city i { color: var(--brand); }
.gym-card__rating { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-700); }
.gym-card__stars { color: #f59e0b; font-size: .74rem; letter-spacing: -.05em; }
.gym-card__rating small { color: var(--muted); }

.gym-card__title { font-size: 1.1rem; margin: 0; }
.gym-card__tagline {
    font-size: .87rem;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gym-card__activities { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    font-weight: 600;
    padding: .28rem .6rem;
    border-radius: 999px;
    color: var(--tag-color);
    background: color-mix(in srgb, var(--tag-color) 11%, #fff);
    border: 1px solid color-mix(in srgb, var(--tag-color) 22%, #fff);
}
.tag--more { color: var(--muted); background: var(--soft); border-color: var(--line); }

.gym-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
}
.gym-card__district { color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.gym-card__cta { font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: .35rem; }
.gym-card__cta i { transition: transform .2s ease; }
.gym-card:hover .gym-card__cta i { transform: translateX(4px); }

/* ---------------- Avantages ---------------- */
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.4rem;
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card__icon {
    width: 50px; height: 50px;
    border-radius: 15px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 12px 24px -14px rgba(29, 78, 216, .9);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.feature-card p { font-size: .89rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* ---------------- Étapes ---------------- */
.steps { position: relative; }
.step-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.5rem 1.6rem;
    height: 100%;
    text-align: center;
    transition: transform .22s ease, box-shadow .22s ease;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-card__num {
    position: absolute;
    top: -18px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    box-shadow: 0 10px 20px -10px rgba(29, 78, 216, .9);
}
[dir="rtl"] .step-card__num { transform: translateX(50%); }
.step-card__icon {
    width: 62px; height: 62px;
    margin: .6rem auto 1rem;
    border-radius: 18px;
    display: grid; place-items: center;
    font-size: 1.4rem;
    background: var(--brand-50);
    color: var(--brand);
}
.step-card h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.step-card p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.65; }

/* ---------------- CTA propriétaires ---------------- */
.owner-cta { padding: 0 0 4.5rem; }
.owner-cta__box {
    position: relative;
    border-radius: 28px;
    padding: 3.2rem;
    background:
        radial-gradient(700px 320px at 88% 0%, rgba(59, 130, 246, .35), transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    overflow: hidden;
}
.owner-cta__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: #fff; max-width: 560px; }
.owner-cta__title-ar { font-family: var(--font-ar); color: #bfdbfe; font-size: 1.05rem; margin-bottom: .8rem; }
.owner-cta__subtitle { color: #cbd5e1; max-width: 540px; line-height: 1.7; }
.owner-cta__list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.owner-cta__list li { display: flex; align-items: center; gap: .65rem; color: #e2e8f0; font-size: .94rem; }
.owner-cta__list i {
    width: 24px; height: 24px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(59, 130, 246, .25);
    color: #93c5fd;
    font-size: .68rem;
    flex: 0 0 24px;
}
.owner-cta__panel {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    backdrop-filter: blur(8px);
}
.owner-cta__note {
    text-align: center;
    color: #cbd5e1;
    font-size: .82rem;
    margin: 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

/* ============================================================
   En-tête de page interne
   ============================================================ */
.page-hero {
    padding: 2.6rem 0 2.2rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
}
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: .9rem;
}
.breadcrumb-nav a { color: var(--brand); font-weight: 600; }
.breadcrumb-nav i { font-size: .6rem; opacity: .6; }
.page-hero__title { font-size: clamp(1.6rem, 3.4vw, 2.35rem); margin-bottom: .3rem; }
.page-hero__title-ar { font-family: var(--font-ar); color: var(--muted); font-size: 1rem; margin: 0 0 .35rem; }
.page-hero__subtitle { color: var(--muted); margin: 0; max-width: 640px; }
.page-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: .35rem 0 0;
    font-size: .85rem;
    color: var(--muted);
}
.page-hero__meta i { color: var(--brand-light); }

/* ============================================================
   Pages statiques (mentions légales, confidentialité, CGU)
   ============================================================ */
.legal-page { max-width: 820px; margin-inline: auto; }
.legal-page__block + .legal-page__block { margin-top: 2.1rem; }
.legal-page__block h2 {
    font-size: 1.2rem;
    margin-bottom: .7rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
}
.legal-page__block p { color: var(--muted); line-height: 1.75; margin-bottom: .75rem; }
.legal-page__block p:last-child { margin-bottom: 0; }

/* ============================================================
   Filtres & résultats
   ============================================================ */
.filters-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    position: sticky;
    top: 96px;
    box-shadow: var(--shadow-sm);
}
.filters-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    font-size: .95rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.1rem;
}
.filters-card__head i { color: var(--brand); margin-inline-end: .35rem; }
.filters-card__toggle { background: none; border: 0; color: var(--muted); }
.filters-card__body { display: block; }

.filter-group { margin-bottom: 1.1rem; }
.filter-group__label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-700);
    margin-bottom: .45rem;
}
.filter-group .form-select {
    border-radius: 12px;
    border-color: var(--line);
    font-size: .9rem;
    padding: .6rem .8rem;
}
.filter-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: .9rem;
    color: var(--ink-700);
    cursor: pointer;
}
.filter-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--brand);
    cursor: pointer;
}
.filter-input {
    position: relative;
}
.filter-input i {
    position: absolute;
    inset-inline-start: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .82rem;
}
.filter-input input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .6rem .8rem .6rem 2.3rem;
    font-size: .9rem;
    outline: none;
}
[dir="rtl"] .filter-input input { padding: .6rem 2.3rem .6rem .8rem; }
.filter-input input:focus { border-color: var(--brand-light); box-shadow: 0 0 0 3px var(--brand-50); }

.filters-card__reset {
    display: block;
    text-align: center;
    margin-top: .8rem;
    font-size: .84rem;
    color: var(--muted);
}
.filters-card__reset:hover { color: var(--brand); }

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
    flex-wrap: wrap;
}
.results-bar__count { margin: 0; font-weight: 700; color: var(--ink-700); font-size: .95rem; }
.results-bar__count i { color: var(--brand); margin-inline-end: .35rem; }
.results-bar__sort { display: flex; align-items: center; gap: .6rem; }
.results-bar__sort label { font-size: .84rem; color: var(--muted); margin: 0; white-space: nowrap; }
.results-bar__sort .form-select {
    border-radius: 12px;
    border-color: var(--line);
    font-size: .88rem;
    padding: .5rem 2rem .5rem .85rem;
    width: auto;
    min-width: 178px;
}

.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--soft);
}
.empty-state__icon {
    font-size: 2.4rem;
    color: var(--brand-light);
    display: block;
    margin-bottom: .9rem;
}
.empty-state h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.4rem; }

.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pagination-nav__link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--brand);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem 1.1rem;
    background: #fff;
}
.pagination-nav__link:hover { background: var(--brand-50); border-color: var(--brand-100); }
.pagination-nav__link.is-disabled { opacity: .45; pointer-events: none; }
.pagination-nav__pages { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.pagination-nav__pages a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-700);
    background: #fff;
}
.pagination-nav__pages a:hover { border-color: var(--brand-100); background: var(--brand-50); }
.pagination-nav__pages a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============================================================
   Pied de page
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: #94a3b8;
    padding: 3.6rem 0 1.4rem;
    font-size: .9rem;
}
.site-footer__about { line-height: 1.75; max-width: 380px; }
.site-footer__social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.site-footer__social a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #cbd5e1;
    transition: all .2s ease;
}
.site-footer__social a:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }

.site-footer__title { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.site-footer__list a:hover { color: #fff; }

.newsletter { display: flex; gap: .5rem; margin-top: .9rem; }
.newsletter__field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.newsletter__field i {
    position: absolute;
    inset-inline-start: .9rem;
    color: #64748b;
    font-size: .85rem;
}
.newsletter__field input {
    width: 100%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #fff;
    padding: .7rem .9rem .7rem 2.4rem;
    font-size: .88rem;
    outline: none;
}
[dir="rtl"] .newsletter__field input { padding: .7rem 2.4rem .7rem .9rem; }
.newsletter__field input::placeholder { color: #7c8aa0; }
.newsletter__field input:focus { border-color: var(--brand-light); background: rgba(255, 255, 255, .1); }

.site-footer__owner {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.3rem;
    color: #93c5fd;
    font-weight: 600;
    font-size: .87rem;
}
.site-footer__owner:hover { color: #fff; }

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-footer__bottom a:hover { color: #fff; }

/* ---------------- Bouton retour en haut ---------------- */
.back-to-top {
    position: fixed;
    inset-inline-end: 1.4rem;
    bottom: 1.4rem;
    width: 46px; height: 46px;
    border-radius: 14px;
    border: 0;
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 14px 30px -14px rgba(29, 78, 216, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .25s ease;
    z-index: 1020;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-dark); }

/* ---------------- Page 404 ---------------- */
.error-page { padding: 6rem 0; }
.error-page__code {
    display: block;
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--brand) 10%, var(--brand-light) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-page__title { margin: 1rem 0 .6rem; }
.error-page__text { color: var(--muted); margin-bottom: 1.8rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991.98px) {
    .hero { padding: 2.6rem 0 4.5rem; }
    .search-card { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .search-card__field + .search-card__field { border-inline-start: 0; }
    .search-card__field { border-bottom: 1px solid var(--line); border-radius: 0; }
    .search-card__submit { grid-column: 1 / -1; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .section__head { flex-direction: column; align-items: flex-start; }
    .filters-card { position: static; }
    .filters-card__body { display: none; padding-top: .3rem; }
    .filters-card.is-open .filters-card__body { display: block; }
    .owner-cta__box { padding: 2.2rem 1.6rem; }
}

@media (max-width: 575.98px) {
    .search-card { grid-template-columns: 1fr; }
    .section { padding: 3.2rem 0; }
    .hero__title { font-size: 1.95rem; }
    .btn-lg { padding: .8rem 1.4rem; font-size: .95rem; }
    .gym-card__footer { flex-direction: column; align-items: flex-start; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------- Préférences de mouvement ---------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   Page salle de sport (détail)
   ============================================================ */

.gym-hero {
    position: relative;
    margin-bottom: 1.5rem;
}
.gym-hero__cover {
    position: relative;
    height: 380px;
    overflow: hidden;
}
.gym-hero__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gym-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .15) 0%, rgba(15, 23, 42, .85) 100%);
}
.gym-hero__content {
    position: relative;
    margin-top: -170px;
    padding-bottom: 1.5rem;
}

.breadcrumb-nav--light,
.breadcrumb-nav--light a {
    color: rgba(255, 255, 255, .85);
}
.breadcrumb-nav--light a:hover { color: #fff; }

.gym-hero__head {
    display: flex;
    gap: 1.3rem;
    align-items: flex-end;
    margin: 1rem 0 1.2rem;
    flex-wrap: wrap;
}
.gym-hero__logo {
    width: 92px; height: 92px;
    border-radius: 22px;
    background: #fff;
    display: grid; place-items: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    flex: 0 0 92px;
    border: 4px solid #fff;
}
.gym-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.gym-hero__logo span {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--brand);
}

.gym-hero__title-block { flex: 1; min-width: 240px; }

.gym-hero__badges { display: flex; gap: .4rem; margin-bottom: .5rem; flex-wrap: wrap; }
.gym-hero__title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    color: #fff;
    margin: 0 0 .55rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.gym-hero__meta {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    flex-wrap: wrap;
    color: #e2e8f0;
    font-size: .92rem;
}
.gym-hero__meta i { color: var(--brand-light); margin-inline-end: .3rem; }
.gym-hero__rating strong { color: #fff; margin-inline: .25rem; }
.gym-hero__rating small { color: #cbd5e1; }

.gym-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

/* ---------------- Panneaux ---------------- */
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.7rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.panel--accent {
    background: linear-gradient(160deg, #eff6ff 0%, #ffffff 100%);
    border-color: var(--brand-100);
}
.panel__title {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1.2rem;
}
.panel__title i { color: var(--brand); }
.panel__text {
    color: var(--ink-700);
    line-height: 1.8;
    margin: 0;
    font-size: .96rem;
}
.panel__head-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.panel__head-inline .panel__title { margin: 0; }
.panel__addr {
    margin: .9rem 0 0;
    color: var(--ink-700);
    font-size: .9rem;
}
.panel__addr i { color: var(--brand); margin-inline-end: .35rem; }

/* ---------------- Galerie ---------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 110px;
    gap: .5rem;
}
.gallery__item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item--main {
    grid-column: span 2;
    grid-row: span 2;
}
@media (max-width: 575.98px) {
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 90px; }
}

/* ---------------- Activités ---------------- */
.activity-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.activity-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--c) 25%, #fff);
}

/* ---------------- Équipements ---------------- */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
}
.equipment-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .9rem;
    background: var(--soft);
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-700);
    transition: background .18s ease;
}
.equipment-item:hover { background: var(--brand-50); }
.equipment-item__icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: #fff;
    color: var(--brand);
    flex: 0 0 34px;
    box-shadow: var(--shadow-sm);
}

/* ---------------- Offres ---------------- */
.offer-card {
    position: relative;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    padding: 1.3rem;
    height: 100%;
}
.offer-card__badge {
    position: absolute;
    top: -10px;
    inset-inline-end: 1rem;
    background: #f97316;
    color: #fff;
    font-weight: 800;
    font-size: .75rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    box-shadow: 0 8px 16px -8px rgba(249, 115, 22, .9);
}
.offer-card__title { font-size: 1.02rem; margin: 0 0 .3rem; }
.offer-card__desc { color: var(--ink-700); font-size: .85rem; margin: 0; line-height: 1.55; }
.offer-card__until { color: #c2410c; font-size: .76rem; margin-top: .7rem; display: flex; align-items: center; gap: .3rem; }

/* ---------------- Tarifs ---------------- */
.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card.is-popular {
    border-color: var(--brand);
    box-shadow: 0 18px 40px -24px rgba(29, 78, 216, .55);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 40%);
}
.plan-card__badge {
    position: absolute;
    top: -11px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: .28rem .8rem;
    border-radius: 999px;
    white-space: nowrap;
}
[dir="rtl"] .plan-card__badge { transform: translateX(50%); }
.plan-card__name { font-size: 1rem; margin: 0 0 .8rem; text-align: center; }
.plan-card__price {
    text-align: center;
    margin-bottom: .6rem;
}
.plan-card__amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.02em;
}
.plan-card__period {
    display: block;
    font-size: .76rem;
    color: var(--muted);
}
.plan-card__desc {
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
    margin: 0 0 1.1rem;
    flex: 1;
    line-height: 1.5;
}

/* ---------------- Avis ---------------- */
.reviews { display: grid; gap: 1rem; }
.review {
    padding: 1.1rem 1.2rem;
    background: var(--soft);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.review__head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .6rem;
}
.review__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
    flex: 0 0 42px;
}
.review__head strong { display: block; }
.review__stars { color: #f59e0b; font-size: .76rem; }
.review__comment { color: var(--ink-700); font-size: .9rem; margin: 0 0 .4rem; line-height: 1.6; }
.review__date { color: var(--muted); font-size: .76rem; }
.reviews__empty { color: var(--muted); font-size: .88rem; margin: 0; }
.review-thanks { color: #16a34a; font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }

/* Sélecteur d'étoiles (formulaire d'avis) */
.star-picker { display: inline-flex; gap: .25rem; }
.star-picker__btn {
    border: 0;
    background: none;
    padding: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: #d1d5db;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}
.star-picker__btn:hover { transform: scale(1.12); }
.star-picker__btn.is-active { color: #f59e0b; }

/* ---------------- Carte ---------------- */
.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
}
.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------------- Sidebar ---------------- */
.sidebar { position: sticky; top: 100px; }
.quick-card__price {
    text-align: center;
    margin-bottom: 1.1rem;
}
.quick-card__price small { display: block; color: var(--muted); font-size: .78rem; }
.quick-card__price strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -.03em;
}
.quick-card__price span { color: var(--muted); font-size: .8rem; }
.quick-card__actions {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.1rem;
}
.quick-card__actions a,
.quick-card__actions button {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-700);
    font-size: .9rem;
    padding: 0;
    cursor: pointer;
    transition: all .18s ease;
}
.quick-card__actions a:hover,
.quick-card__actions button:hover { border-color: var(--brand-100); color: var(--brand); background: var(--brand-50); }

/* ---------------- Horaires ---------------- */
.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.schedule-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}
.schedule-list li:last-child { border-bottom: 0; }
.schedule-list li span { font-weight: 600; color: var(--ink-700); }
.schedule-list li em { font-style: normal; color: var(--brand); font-weight: 600; }
.schedule-list li.is-closed em { color: #ef4444; }

/* ---------------- Horaires par catégorie ---------------- */
.cat-hours__group + .cat-hours__group {
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px dashed var(--line);
}
.cat-hours__title {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .35rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}
.cat-hours__title i { color: var(--brand); font-size: .85rem; }

/* ---------------- Cours collectifs (emploi du temps) ---------------- */
.timetable-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.timetable {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    min-width: 520px;
}
.timetable th,
.timetable td {
    padding: .5rem .6rem;
    text-align: center;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    white-space: nowrap;
}
.timetable thead th {
    background: var(--soft);
    font-weight: 700;
    color: var(--ink-700);
    font-variant-numeric: tabular-nums;
}
.timetable tbody th {
    text-align: start;
    font-weight: 700;
    color: var(--brand);
    background: var(--soft);
    position: sticky;
    inset-inline-start: 0;
}
.timetable tbody tr:last-child th,
.timetable tbody tr:last-child td { border-bottom: 0; }
.timetable th:last-child,
.timetable td:last-child { border-right: 0; }
.timetable__empty { color: var(--line); }

/* ---------------- Contact ---------------- */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .7rem;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .9rem;
    color: var(--ink-700);
    word-break: break-word;
}
.contact-list i {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand);
    display: grid; place-items: center;
    flex: 0 0 34px;
}
.contact-list a:hover { color: var(--brand); }

.social-list {
    display: flex;
    gap: .5rem;
    margin-top: 1.3rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
}
.social-list a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--soft);
    color: var(--ink-700);
    transition: all .18s ease;
}
.social-list a:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }

/* ---------------- Modal demande ---------------- */
.request-modal .modal-content {
    border: 0;
    border-radius: var(--radius-lg);
}
.request-modal .modal-header {
    padding: 1.3rem 1.6rem;
    border-bottom: 1px solid var(--line);
}
.request-modal .modal-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.1rem;
    font-weight: 800;
}
.request-modal .modal-title i { color: var(--brand); }
.request-modal .modal-body { padding: 1.6rem; }
.request-modal__desc {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 1.2rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink-700);
    margin-bottom: .35rem;
}
.form-group .form-control,
.form-group .form-select {
    border-radius: 12px;
    border-color: var(--line);
    font-size: .92rem;
}
.form-group .form-control:focus,
.form-group .form-select:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px var(--brand-50);
}
.request-modal .modal-footer {
    padding: 1rem 1.6rem 1.4rem;
    border-top: 1px solid var(--line);
}
.request-modal__success {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #ecfdf5;
    color: #047857;
    padding: .85rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: .9rem;
    margin-top: .5rem;
}
.request-modal__success i { color: #10b981; font-size: 1.1rem; }

.request-modal__error {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: .9rem;
    margin-top: .5rem;
    margin-bottom: 0;
}
.request-modal__error i { font-size: 1.1rem; }

/* ---------------- Responsive détail salle ---------------- */
@media (max-width: 991.98px) {
    .gym-hero__cover { height: 260px; }
    .gym-hero__content { margin-top: -120px; }
    .gym-hero__head { align-items: flex-start; }
    .gym-hero__logo { width: 72px; height: 72px; flex-basis: 72px; }
    .gym-hero__logo span { font-size: 1.9rem; }
    .sidebar { position: static; }
}
@media (max-width: 767.98px) {
    /* Hero salle sur téléphone : le contenu ne chevauche plus l'image,
       il s'affiche sur un fond sombre pour que les textes clairs
       (titre, fil d'Ariane, métadonnées) restent lisibles. */
    .gym-hero { background: #0f172a; }
    .gym-hero__cover { height: 230px; }
    .gym-hero__overlay { background: linear-gradient(180deg, rgba(15, 23, 42, .12) 25%, #0f172a 100%); }
    .gym-hero__content { margin-top: 0; padding-top: 1.2rem; padding-bottom: 1.5rem; }
    .gym-hero__title { text-shadow: none; }
    .gym-hero__head { gap: 1rem; margin: .5rem 0 1rem; }
    .gym-hero__meta { gap: .4rem .9rem; font-size: .88rem; }
    .gym-hero__actions { gap: .5rem; }
    .gym-hero__actions .btn { padding: .6rem 1.1rem; }
}
@media (max-width: 575.98px) {
    .gym-hero__cover { height: 200px; }
    .panel { padding: 1.2rem; }
    .equipment-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Lightbox overlay ---------------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox-overlay__close {
    position: absolute;
    top: 1.2rem;
    inset-inline-end: 1.2rem;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}
.lightbox-overlay__close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-overlay__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-overlay__nav--prev { inset-inline-start: 1.2rem; }
.lightbox-overlay__nav--next { inset-inline-end: 1.2rem; }
