/* ============================================================================
   Opaddock - Etablissements (centres equestres)
   Module : apps/opaddock/modules/etablissements/
   Prefixe : .etb-*
   ============================================================================ */

:root {
    --primary-50:  #ecfdf5;
    --primary-100: #d1fae5;
    --primary-300: #6ee7b7;
    --primary-light: #34d399;
    --primary: #10b981;
    --primary-rgb: 16, 185, 129;
    --primary-dark: #059669;
    --primary-darker: #047857;
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --yellow-400: #facc15;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --blue-500: #3b82f6;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md:   0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg:   0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ============ LAYOUT GENERAL ============ */
.etb-main {
    min-height: calc(100vh - 200px);
    background: var(--slate-50);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--slate-800);
}

/* ============ HERO ============ */
.etb-hero {
    background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
    color: white;
    padding: 60px 20px 80px;
    position: relative;
    overflow: hidden;
}

.etb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(var(--primary-rgb), 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.etb-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.etb-hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.etb-hero-sub {
    font-size: 17px;
    opacity: 0.92;
    margin: 0 0 32px;
    max-width: 580px;
}

/* ============ SEARCH BAR ============ */
.etb-search-bar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: stretch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 920px;
}

.etb-search-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 14px;
    border-radius: 12px;
    transition: background 0.2s;
    min-width: 0;
}

.etb-search-cell:hover { background: var(--slate-50); }

.etb-search-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-500);
    margin-bottom: 4px;
}

.etb-search-input {
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--slate-800);
    outline: none;
    width: 100%;
    padding: 0;
    font-family: inherit;
}

.etb-search-input::placeholder { color: var(--slate-400); }

.etb-search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.etb-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

/* ============ RESULTS LAYOUT ============ */
.etb-results-wrap { padding: 40px 20px 60px; }

.etb-results-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* ============ FILTRES SIDEBAR ============ */
.etb-filters {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--slate-200);
    position: sticky;
    top: calc(76px + var(--sat, 0px) + 16px);
}

.etb-filter-group {
    margin-bottom: 24px;
}

.etb-filter-group:last-child { margin-bottom: 0; }

.etb-filter-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-500);
    margin: 0 0 12px;
}

.etb-filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.etb-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--slate-50);
    color: var(--slate-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.etb-filter-row:hover { background: var(--slate-100); }

.etb-filter-row.is-active {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: var(--primary);
    color: var(--primary-darker);
}

.etb-filter-row-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 16px;
    flex-shrink: 0;
}

.etb-filter-row-icon.etb-gold {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: white;
}

.etb-filter-row-text {
    flex: 1;
}

.etb-filter-row-check {
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 18px;
}

.etb-filter-row.is-active .etb-filter-row-check { opacity: 1; }

.etb-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.etb-pill {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-700);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.etb-pill:hover { background: var(--slate-200); }

.etb-pill.is-active {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.etb-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--slate-500);
    font-size: 13px;
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.2s;
}

.etb-reset-link:hover { color: var(--primary-dark); }

/* ============ RESULTS ============ */
.etb-results { min-width: 0; }

.etb-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.etb-count {
    font-size: 15px;
    color: var(--slate-600);
    font-weight: 500;
}

.etb-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.etb-sort label { font-size: 13px; color: var(--slate-500); }

.etb-sort-select {
    padding: 8px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    background: white;
    font-size: 14px;
    color: var(--slate-700);
    cursor: pointer;
    font-family: inherit;
}

.etb-sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

/* ============ GRID ============ */
.etb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ============ CARD ============ */
.etb-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--slate-100);
}

.etb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--slate-200);
}

.etb-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.etb-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--slate-100);
    overflow: hidden;
}

.etb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.etb-card:hover .etb-card-media img { transform: scale(1.05); }

.etb-card-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
    color: var(--slate-400);
    font-size: 56px;
}

.etb-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.etb-card-rating {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-soft);
}

.etb-card-rating i { color: var(--yellow-400); }
.etb-card-rating small { color: var(--slate-500); font-weight: 400; }

.etb-card-body { padding: 18px 20px 20px; }

.etb-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--slate-800);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.etb-card-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--slate-500);
    margin-bottom: 12px;
}

.etb-card-loc i { color: var(--primary); }

.etb-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
}

.etb-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--slate-600);
    font-weight: 500;
}

.etb-stat i { color: var(--primary); font-size: 15px; }

.etb-card-prox {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.etb-prox-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-darker);
    font-size: 11px;
    font-weight: 600;
}

.etb-prox-tag i { font-size: 12px; }
.etb-prox-tag small { color: var(--slate-500); font-weight: 500; margin-left: 2px; }

/* ============ BADGES ============ */
/* Base NEUTRE et lisible par elle-même : un badge sans variante doit rester
 * visible. (Avant : `color:white` sans fond -> texte blanc sur hero clair,
 * la pilule s'affichait vide.) Les variantes ci-dessous redéfinissent
 * fond + couleur ; la base ne sert que de repli sûr. */
.etb-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.etb-badge-equures {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
}

.etb-badge-wifi {
    background: linear-gradient(135deg, var(--blue-500), #2563eb);
}

/* ============ EMPTY STATE ============ */
.etb-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.etb-empty-icon {
    font-size: 56px;
    color: var(--slate-300);
    margin-bottom: 16px;
}

.etb-empty h3 { font-size: 20px; color: var(--slate-700); margin: 0 0 8px; }
.etb-empty p  { color: var(--slate-500); margin: 0 0 24px; }

/* ============ PAGINATION ============ */
.etb-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.etb-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: white;
    color: var(--slate-700);
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.etb-page-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.etb-page-info { color: var(--slate-500); font-size: 14px; }

/* ============ BUTTONS ============ */
.etb-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.etb-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.etb-btn-block { width: 100%; }

/* ============ DETAIL PAGE ============ */
.etb-breadcrumb {
    background: white;
    padding: 14px 20px;
    border-bottom: 1px solid var(--slate-200);
}

.etb-breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
}

.etb-breadcrumb a {
    color: var(--slate-500);
    text-decoration: none;
    transition: color 0.2s;
}

.etb-breadcrumb a:hover { color: var(--primary-dark); }
.etb-bc-sep { color: var(--slate-300); }
.etb-bc-current { color: var(--slate-800); font-weight: 600; }

.etb-detail-hero {
    background: white;
    padding: 32px 20px 24px;
}

.etb-detail-hero-inner { max-width: 1200px; margin: 0 auto; }

.etb-detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.etb-detail-title-row > div:first-child {
    flex: 1;
    min-width: 280px;
}

.etb-detail-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.etb-detail-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--slate-800);
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Adresse (ville + code postal) affichée sous le titre de la fiche.
   Rendue depuis 2026-07-17 : la donnée existait en base mais n'était jamais
   montrée au cavalier (et c'est elle qui légitime le schema.org PostalAddress). */
.etb-detail-address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 10px;
    font-style: normal;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--slate-600);
}
.etb-detail-address i { color: var(--primary); }
/* Le pays s'ajoute a la ville : la ligne doit pouvoir passer a la ligne sur un
   telephone plutot que de deborder (16/09/2026). */
.etb-detail-address { flex-wrap: wrap; }

/* « Itinéraire » — le lien qui rend les coordonnées utiles à l'utilisateur, et
   qui justifie de les baliser en `geo` (schema.org). Discret : c'est une action
   secondaire à côté de l'adresse, pas un appel à l'action. */
.etb-detail-itineraire {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    background: var(--primary-50, #ecfdf5); color: var(--primary-dark, #059669);
    border: 1px solid var(--primary-200, #a7f3d0);
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
    /* Hauteur tactile : on le vise au pouce, au bord de la route. */
    min-height: 32px; transition: background .18s, border-color .18s;
}
.etb-detail-itineraire:hover { background: var(--primary-100, #d1fae5); border-color: var(--primary, #10b981); }
.etb-detail-itineraire:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 16,185,129), .25); }
@media (prefers-reduced-motion: reduce) { .etb-detail-itineraire { transition: none; } }

.etb-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--slate-600);
    font-size: 14px;
}

.etb-detail-meta i { color: var(--primary); margin-right: 3px; }

.etb-detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.etb-detail-rating i { color: var(--yellow-400); }
.etb-detail-meta-sep { color: var(--slate-300); }

.etb-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.etb-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: white;
    color: var(--slate-700);
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.etb-hero-btn:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}

/* Survol : on ANNONCE l'action (rose pale). En favori : on AFFIRME l'etat (plein
   rouge, coeur blanc). Les deux etaient confondus dans la meme regle -- survoler
   un etablissement non favori le faisait deja paraitre enregistre. */
.etb-hero-btn-fav:hover {
    color: #e11d48;
    border-color: #fda4af;
    background: #fff1f2;
}
.etb-hero-btn-fav.is-active,
.etb-hero-btn-fav.is-active:hover {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(225, 29, 72, .32);
}
.etb-hero-btn-fav.is-active i { color: #fff; }

.etb-hero-btn-share:hover {
    color: var(--primary-dark);
    border-color: var(--primary-light);
    background: var(--primary-50);
}

/* Photo principale */
.etb-detail-photo {
    background: white;
    padding: 0 20px 32px;
}

.etb-detail-photo-inner {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: var(--slate-100);
}

.etb-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.etb-detail-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
    color: var(--slate-300);
    font-size: 120px;
}

/* ══ Défilé des photos de l'établissement (15/09/2026) ═══════════════════════
   Le défilement est NATIF : `overflow-x: auto` + `scroll-snap` suffisent à
   glisser d'une photo à l'autre au doigt, à la molette et au clavier. Les
   flèches et les pastilles ajoutées en JavaScript ne font que doubler ce geste
   à la souris ; sans elles, le défilé reste utilisable.

   `scroll-snap-type: x mandatory` est ce qui empêche de s'arrêter entre deux
   photos : sans lui, un glissement approximatif laisse deux moitiés d'images à
   l'écran, et on ne sait plus laquelle on regarde. */
.etb-gal {
    position: relative;
    width: 100%;
    height: 100%;
}

.etb-gal-piste {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* La barre de défilement se masque : le geste se fait au doigt ou aux
       flèches, et une barre grise en travers de la photo abîme la présentation.
       Le défilement lui-même n'est PAS désactivé -- le contenu reste atteignable
       au clavier et à la molette. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.etb-gal-piste::-webkit-scrollbar { display: none; }

.etb-gal-img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

/* Les flèches sont au-dessus du dégradé de `.etb-detail-photo-inner::after`,
   qui n'intercepte rien (`pointer-events: none`) mais se peindrait par-dessus. */
.etb-gal-fl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;              /* 44px : la cible tactile minimale (§17) */
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--slate-700, #334155);
    box-shadow: 0 4px 14px -2px rgba(2, 32, 22, .28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background .15s, opacity .15s, transform .15s;
}
.etb-gal-fl:hover { background: #fff; }
.etb-gal-fl:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
/* Une flèche en bout de course est GRISÉE, pas retirée : la faire disparaître
   déplacerait l'autre et ferait bouger la cible sous le doigt (§17ter). */
.etb-gal-fl:disabled {
    opacity: .35;
    cursor: default;
    box-shadow: none;
}
.etb-gal-prec { left: 14px; }
.etb-gal-suiv { right: 14px; }

.etb-gal-points {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 7px;
    pointer-events: none;     /* décoratif : la navigation se fait aux flèches */
}
.etb-gal-point {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 3px rgba(2, 32, 22, .35);
    transition: width .2s, background .2s;
}
.etb-gal-point.est-on {
    width: 20px;
    border-radius: 4px;
    background: #fff;
}

@media (max-width: 768px) {
    /* Au doigt, on glisse : les flèches encombrent la photo sans rien apporter.
       Les pastilles restent -- elles disent combien il y en a, et où on en est. */
    .etb-gal-fl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .etb-gal-piste { scroll-behavior: auto; }
    .etb-gal-point { transition: none; }
}

/* Corps detail */
.etb-detail-body { padding: 32px 20px 60px; }

.etb-detail-body-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.etb-detail-main { min-width: 0; }

/* Stats grid */
.etb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.etb-stat-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.etb-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.etb-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
}

.etb-stat-label {
    font-size: 12px;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.etb-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--slate-800);
}

/* Sections */
.etb-section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--slate-100);
}

.etb-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--slate-800);
    margin: 0 0 16px;
}

/* Quote (mot du gerant) */
.etb-quote {
    position: relative;
    padding-left: 56px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--slate-700);
    font-style: italic;
}

.etb-quote p { margin: 0; }

.etb-quote-icon {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 40px;
    color: var(--primary-100);
    line-height: 1;
}

/* Hebergement grid */
.etb-hebergement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.etb-heb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--slate-50);
    border-radius: 12px;
    border: 1px solid var(--slate-100);
}

.etb-heb-item.etb-heb-highlight {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.etb-heb-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.etb-heb-label {
    font-size: 12px;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.etb-heb-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-800);
    margin-top: 2px;
}

/* Equipements grid */
.etb-equip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.etb-equip-card {
    text-align: center;
    padding: 20px;
    background: var(--slate-50);
    border-radius: 12px;
    border: 1px solid var(--slate-100);
}

.etb-equip-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 10px;
}

.etb-equip-name {
    font-size: 14px;
    color: var(--slate-600);
    margin-bottom: 4px;
    font-weight: 500;
}

.etb-equip-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
}

.etb-equip-price small {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-500);
}

/* Parking grid */
.etb-parking-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.etb-parking-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--primary-50);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 50px;
    min-width: 0;
}

.etb-parking-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(var(--primary-rgb), 0.12);
    border-radius: 50%;
    font-size: 15px;
    color: var(--primary);
    flex-shrink: 0;
}

.etb-parking-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    white-space: nowrap;
}

.etb-parking-count {
    display: none;
}

.etb-parking-price {
    font-size: 12px;
    color: var(--primary-dark);
    font-weight: 700;
    background: rgba(var(--primary-rgb), 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Proximites grid */
/* Section "A cheval depuis l'ecurie" */
.etb-section-prox {
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(var(--primary-rgb), 0.04) 100%);
    border: 1.5px solid rgba(var(--primary-rgb), 0.18);
    border-radius: 20px;
    padding: 28px 24px !important;
    position: relative;
    overflow: hidden;
}

.etb-section-prox::before {
    content: "\f1d0";
    font-family: "tabler-icons";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 140px;
    color: rgba(var(--primary-rgb), 0.06);
    pointer-events: none;
    line-height: 1;
}

.etb-prox-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.etb-prox-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-darker));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.30);
}

.etb-prox-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--slate-800);
    margin: 0 0 2px;
    padding: 0;
}

.etb-prox-title::before { display: none; }

.etb-prox-subtitle {
    font-size: 12px;
    color: var(--slate-500);
    margin: 0;
}

.etb-prox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.etb-prox-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 12px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.06);
    text-align: center;
}

.etb-prox-time {
    font-size: 30px;
    font-weight: 900;
    color: var(--primary-darker);
    line-height: 1;
}

.etb-prox-time span {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-left: 2px;
}

.etb-prox-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-600);
    line-height: 1.3;
}

/* Parcours grid (dans fiche etablissement).
   auto-FILL (et non auto-fit) : avec auto-fit, un SEUL parcours voit sa colonne
   s'etirer sur toute la largeur -> carte geante (aspect-ratio 16/10 a pleine largeur).
   auto-fill conserve les colonnes vides -> la carte garde une taille normale (~250px). */
.etb-parcours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
    gap: 16px;
}

.etb-parcours-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}

.etb-parcours-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.etb-parcours-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--slate-100);
    overflow: hidden;
}

.etb-parcours-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.etb-parcours-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
    color: var(--slate-400);
    font-size: 32px;
}

.etb-parcours-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: white;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.etb-parcours-body { padding: 14px; }

.etb-parcours-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.etb-parcours-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--slate-600);
}

.etb-parcours-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.etb-parcours-stats i {
    color: var(--primary);
    font-size: 14px;
}

/* Sidebar */
.etb-detail-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.etb-sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-100);
}

.etb-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-500);
    margin: 0 0 14px;
}

.etb-sidebar-text {
    font-size: 14px;
    color: var(--slate-600);
    margin: 0 0 16px;
    line-height: 1.5;
}

.etb-sidebar-text strong { color: var(--slate-800); }

/* Langues */
.etb-langues-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.etb-langue-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    font-size: 13px;
    color: var(--slate-700);
}

.etb-langue-chip strong {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

/* Contact */
.etb-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    background: var(--primary-50);
    border-radius: 10px;
    transition: all 0.2s;
    word-break: break-all;
}

.etb-contact-link:hover {
    background: var(--primary-100);
}

/* Not found */
.etb-not-found {
    text-align: center;
    padding: 100px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.etb-not-found h1 {
    font-size: 32px;
    color: var(--slate-800);
    margin-bottom: 12px;
}

.etb-not-found p {
    color: var(--slate-500);
    margin-bottom: 24px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .etb-results-inner {
        grid-template-columns: 1fr;
    }

    .etb-filters {
        position: static;
    }

    .etb-detail-body-inner {
        grid-template-columns: 1fr;
    }

    .etb-detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .etb-hero { padding: 40px 20px 60px; }

    .etb-search-bar {
        flex-direction: column;
        padding: 14px;
    }

    .etb-search-cell {
        padding: 8px 0;
        border-bottom: 1px solid var(--slate-200);
        border-radius: 0;
    }

    .etb-search-cell:last-of-type {
        border-bottom: none;
    }

    .etb-search-btn {
        padding: 14px;
        justify-content: center;
    }

    .etb-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .etb-detail-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .etb-detail-actions {
        width: 100%;
    }

    .etb-hero-btn {
        flex: 1;
        justify-content: center;
    }

    .etb-detail-photo-inner {
        aspect-ratio: 16 / 10;
    }

    .etb-section {
        padding: 20px;
    }
}

/* ============================================================================
   PREMIUM ENHANCEMENTS (2026-05-20)
   Append-only : ces règles affinent le rendu sans casser la structure existante.
   ============================================================================ */

/* ----- Hero : décor + chip stats ----- */
.etb-hero {
    padding: 72px 20px 96px;
}
.etb-hero::after {
    content: "";
    position: absolute;
    right: -120px; top: -80px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 65%);
    pointer-events: none;
}
.etb-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.etb-hero-chip-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74,222,128,.25);
    animation: etbPulse 2s ease-in-out infinite;
}
@keyframes etbPulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
    50%     { box-shadow: 0 0 0 8px rgba(74,222,128,.05); }
}
.etb-hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 28px;
    color: rgba(255,255,255,.92);
    flex-wrap: wrap;
}
.etb-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.etb-hero-stat strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.etb-hero-stat span {
    font-size: 13px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ----- Search bar : ombre plus douce, focus accentué ----- */
.etb-search-bar {
    box-shadow: 0 24px 60px -12px rgba(2, 32, 22, 0.40),
                0 8px 16px -4px rgba(2, 32, 22, 0.18);
}
.etb-search-cell:focus-within {
    background: rgba(var(--primary-rgb), 0.06);
    box-shadow: inset 0 0 0 1.5px rgba(var(--primary-rgb), 0.3);
}
.etb-search-btn {
    padding: 0 32px;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35);
}
.etb-search-btn:active {
    transform: translateY(0);
}

/* ----- Cards : ombre signature, lift au hover, overlay gradient sur photo ----- */
.etb-card {
    border: 1px solid rgba(15,23,42,0.05);
    box-shadow: 0 4px 12px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.03);
    transition: transform .25s cubic-bezier(.4,0,.2,1),
                box-shadow .25s cubic-bezier(.4,0,.2,1),
                border-color .25s;
}
.etb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -16px rgba(2,32,22,.18),
                0 8px 16px -8px rgba(2,32,22,.10);
    border-color: rgba(var(--primary-rgb), 0.30);
}
.etb-card-media {
    position: relative;
    background: linear-gradient(180deg, var(--slate-100) 0%, var(--slate-50) 100%);
}
.etb-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(2,32,22,0.35) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s;
}
.etb-card:hover .etb-card-media::after { opacity: 1; }

/* Placeholder centre : illustration SVG cheval/écurie au lieu de l'icône building seule */
.etb-card-media-placeholder,
.etb-detail-photo-placeholder {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--slate-100) 100%);
    color: var(--primary);
    position: relative;
}
.etb-card-media-placeholder::before,
.etb-detail-photo-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), .12) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(var(--primary-rgb), .08) 0%, transparent 40%);
}
.etb-card-media-placeholder i,
.etb-detail-photo-placeholder i {
    font-size: 56px;
    opacity: 0.55;
    position: relative;
    z-index: 1;
}
.etb-detail-photo-placeholder i { font-size: 96px; }

/* Badges : halo subtil */
.etb-card-badges {
    gap: 6px;
}
.etb-badge {
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    font-weight: 700;
    letter-spacing: 0.2px;
}
.etb-badge-equures {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    border: 1px solid rgba(255,255,255,.6);
}
.etb-badge-wifi {
    background: rgba(255,255,255,.95);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-rgb),.20);
}

/* Chiens acceptés : variante propre. Réutilisait `-wifi` (bleu), ce qui donnait
 * au chien la couleur du wifi. « Non » et « peut-être » restent sur la base
 * neutre : seul l'état positif mérite la couleur du thème. */
.etb-badge-chien-oui {
    background: rgba(255,255,255,.95);
    color: var(--primary-darker);
    border: 1px solid rgba(var(--primary-rgb),.20);
}
.etb-badge-chien-non {
    color: var(--slate-600);
}

/* Card rating : plus contrasté */
.etb-card-rating {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 4px 12px rgba(15,23,42,.10);
    font-weight: 700;
}

/* Card title hover (subtil teinte primaire) */
.etb-card:hover .etb-card-title { color: var(--primary-darker); }
.etb-card-title { transition: color .2s; }

/* Proximité tags : pill cleaner */
.etb-prox-tag {
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    color: var(--primary-darker);
    font-weight: 600;
}

/* ----- Filtres : indicateur visuel actif plus net ----- */
.etb-filter-row {
    border-width: 1.5px;
}
.etb-filter-row:hover {
    border-color: rgba(var(--primary-rgb), 0.20);
    transform: translateX(2px);
}
.etb-filter-row.is-active {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.35);
    color: var(--primary-darker);
}
.etb-pill {
    transition: transform .15s, box-shadow .15s;
}
.etb-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,23,42,.08);
}
.etb-pill.is-active {
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.30);
}

/* ----- Empty state : illustration premium ----- */
.etb-empty {
    padding: 64px 32px;
    background: linear-gradient(180deg, white 0%, var(--slate-50) 100%);
    border-radius: 24px;
    border: 1px dashed var(--slate-200);
}
.etb-empty-icon {
    width: 96px; height: 96px;
    background: rgba(var(--primary-rgb), 0.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0.05),
                0 0 0 16px rgba(var(--primary-rgb), 0.025);
}
.etb-empty-icon i { font-size: 42px; }

/* ----- Detail hero ----- */
.etb-detail-hero {
    padding: 36px 20px 28px;
    background: linear-gradient(180deg, var(--slate-50) 0%, white 100%);
    border-bottom: 1px solid var(--slate-100);
}
.etb-breadcrumb {
    background: transparent;
}
.etb-detail-title {
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.02em;
}
.etb-detail-photo-inner {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px -8px rgba(2,32,22,.18);
    position: relative;
}
.etb-detail-photo-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(2,32,22,0.20) 100%);
    pointer-events: none;
}

/* Hero actions buttons */
.etb-hero-btn {
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(15,23,42,.08);
    border-width: 1.5px;
    font-weight: 600;
    transition: all .2s;
}
.etb-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15,23,42,.12);
}

/* ----- Sidebar reservation : sticky + gradient header ----- */
@media (min-width: 980px) {
    .etb-detail-sidebar {
        position: sticky;
        top: 90px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
}
.etb-sidebar-card {
    border: 1px solid var(--slate-100);
    box-shadow: 0 4px 16px rgba(15,23,42,.04);
}
.etb-sidebar-card:first-child {
    border-color: transparent;
    background: linear-gradient(180deg, var(--primary-darker), var(--primary-dark));
    color: #fff;
    box-shadow: 0 12px 32px -8px rgba(var(--primary-rgb), 0.4);
}
.etb-sidebar-card:first-child .etb-sidebar-title {
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}
.etb-sidebar-card:first-child .etb-sidebar-text {
    color: rgba(255,255,255,.88);
}
.etb-sidebar-card:first-child strong { color: #fff; }
.etb-sidebar-card:first-child .etb-btn-primary {
    background: #fff;
    color: var(--primary-darker);
    font-weight: 700;
    border: none;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.etb-sidebar-card:first-child .etb-btn-primary:hover {
    background: var(--slate-50);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

/* Sections : titre avec barre accent */
.etb-section-title {
    position: relative;
    padding-left: 16px;
}
.etb-section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--primary-darker));
}

/* Cards parcours : meilleur shadow */
.etb-parcours-card {
    transition: transform .2s, box-shadow .2s;
}
.etb-parcours-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -8px rgba(2,32,22,.14);
}

/* ----- Mobile : un peu plus aéré ----- */
@media (max-width: 980px) {
    .etb-hero { padding: 48px 16px 64px; }
    .etb-hero-stats { gap: 24px; }
    .etb-hero-stat strong { font-size: 18px; }
}

/* ============================================================================
   AUTH INCENTIVE MODAL (visiteur non connecté cliquant sur "Favori")
   ============================================================================ */
.etb-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.etb-auth-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.etb-auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.etb-auth-modal-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(2,32,22,0.30);
    transform: translateY(20px) scale(.97);
    opacity: 0;
    transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .25s;
}
.etb-auth-modal.is-open .etb-auth-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@media (max-width: 1024px) {
    .etb-auth-modal {
        align-items: flex-end;
        justify-content: flex-end;
        padding: 0;
    }
    .etb-auth-modal-card {
        max-width: none;
        width: 100%;
        border-radius: 28px 28px 0 0;
        padding: 8px 28px 32px;
        padding-bottom: max(32px, calc(20px + env(safe-area-inset-bottom, 0px)));
        transform: translateY(100%);
        opacity: 1;
        transition: transform .5s cubic-bezier(.175, .885, .32, 1.1);
    }
    .etb-auth-modal.is-open .etb-auth-modal-card {
        transform: translateY(0);
        opacity: 1;
    }
    .etb-auth-modal-drag-handle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        height: 24px;
        margin-bottom: 4px;
    }
    .etb-auth-modal-drag-handle::before {
        content: '';
        width: 40px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 2px;
    }
    .etb-auth-modal-close {
        top: 10px; right: 16px;
    }
}
.etb-auth-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--slate-100);
    color: var(--slate-500);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}
.etb-auth-modal-close:hover { background: var(--slate-200); color: var(--slate-700); }
.etb-auth-modal-close i { font-size: 18px; }

.etb-auth-modal-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 12px 28px rgba(244,63,94,.30);
}
.etb-auth-modal-icon i { font-size: 36px; }

.etb-auth-modal-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--slate-800);
    letter-spacing: -0.01em;
}
.etb-auth-modal-card p {
    margin: 0 0 24px;
    color: var(--slate-500);
    font-size: 15px;
    line-height: 1.55;
}
.etb-auth-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.etb-auth-modal-actions .etb-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
}
.etb-auth-modal-link {
    background: none;
    border: none;
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
    transition: color .15s;
}
.etb-auth-modal-link:hover { color: var(--slate-700); }

/* ============================================================================
   HERO V2 — overrides ciblés (motif SVG, stats horizontales, vague bottom)
   ============================================================================ */

.etb-hero-v2 {
    background:
        radial-gradient(ellipse at 85% 20%, rgba(255,255,255,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 15% 80%, rgba(0,0,0,0.10) 0%, transparent 55%),
        linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 55%, var(--primary) 100%);
    padding: 80px 20px 120px;
    overflow: hidden;
}
.etb-hero-v2::before,
.etb-hero-v2::after { display: none; }  /* on remplace par notre propre stack */

.etb-hero-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.etb-hero-v2 .etb-hero-inner {
    position: relative;
    z-index: 2;
}

/* ----- Chip plus visible ----- */
.etb-hero-v2 .etb-hero-chip {
    padding: 9px 18px;
    font-size: 13px;
    letter-spacing: 0.3px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ----- Titre avec mot accentué en jaune/blanc cassé ----- */
.etb-hero-v2 .etb-hero-title {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.etb-hero-v2 .etb-hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
    padding: 0 2px;
}

.etb-hero-v2 .etb-hero-sub {
    font-size: 18px;
    max-width: 620px;
    margin-bottom: 36px;
    opacity: 0.95;
}

/* ----- Search bar : un peu plus généreuse ----- */
.etb-hero-v2 .etb-search-bar {
    max-width: 920px;
    border-radius: 22px;
    padding: 12px;
    box-shadow:
        0 30px 70px -15px rgba(2, 32, 22, 0.50),
        0 12px 24px -8px rgba(2, 32, 22, 0.25),
        0 0 0 1px rgba(255,255,255,0.6) inset;
}
.etb-hero-v2 .etb-search-btn {
    border-radius: 14px;
    height: 60px;
    padding: 0 32px;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(2, 32, 22, 0.35);
}

/* ----- Stats : pills horizontales avec icône ----- */
.etb-hero-v2 .etb-hero-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}
.etb-hero-v2 .etb-hero-stat {
    flex: 0 1 auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 14px;
    padding: 12px 20px 12px 14px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .2s, background .2s;
}
.etb-hero-v2 .etb-hero-stat:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.20);
}
.etb-hero-v2 .etb-hero-stat-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}
.etb-hero-v2 .etb-hero-stat-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.15;
}
.etb-hero-v2 .etb-hero-stat-body strong {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.etb-hero-v2 .etb-hero-stat-body span {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

/* ----- Vague de transition vers la section résultats ----- */
.etb-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    display: block;
}

/* ----- Responsive ----- */
@media (max-width: 820px) {
    .etb-hero-v2 { padding: 56px 16px 100px; }
    .etb-hero-v2 .etb-hero-title { font-size: clamp(26px, 7vw, 36px); }
    .etb-hero-v2 .etb-hero-sub { font-size: 16px; margin-bottom: 28px; }
    .etb-hero-v2 .etb-hero-stats { gap: 10px; }
    .etb-hero-v2 .etb-hero-stat { padding: 10px 14px 10px 10px; }
    .etb-hero-v2 .etb-hero-stat-icon { width: 36px; height: 36px; font-size: 18px; }
    .etb-hero-v2 .etb-hero-stat-body strong { font-size: 18px; }
    .etb-hero-v2 .etb-hero-stat-body span { font-size: 11px; }
    .etb-hero-wave { height: 50px; }
}
@media (max-width: 520px) {
    .etb-hero-v2 .etb-hero-stat { flex: 1 1 100%; }
}

/* ============================================================================
   BOUTONS FLOTTANTS FAVORI + PARTAGER (haut droite, toujours visibles)
   ============================================================================ */
.etb-float-actions {
    display: none;
}

.etb-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s, background .18s, color .18s;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(15,23,42,.14);
    color: var(--slate-500);
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
}

.etb-float-btn i {
    font-size: 18px;
    line-height: 1;
}

.etb-float-btn:active {
    transform: scale(0.90);
}

/* Partager — légèrement plus visible pour inciter au partage */
.etb-float-share {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    box-shadow: 0 2px 12px rgba(var(--primary-rgb), .18);
}

.etb-float-share:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), .35);
    transform: scale(1.08);
}

.etb-float-fav:hover,
.etb-float-fav.is-active {
    background: #fff1f2;
    color: #e11d48;
    box-shadow: 0 4px 16px rgba(225,29,72,.20);
    transform: scale(1.08);
}

/* ============================================================================
   BARRE D'ACTIONS FIXE EN BAS (message | réserver)
   ============================================================================ */
.etb-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: max(12px, calc(8px + env(safe-area-inset-bottom, 0px)));
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
}

.etb-bottom-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
    padding: 0 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.etb-bottom-bar-btn i {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.etb-bottom-bar-btn span {
    font-size: 15px;
    font-weight: 700;
}

.etb-bottom-bar-btn:active {
    transform: scale(0.96);
}

.etb-bottom-bar-msg {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.etb-bottom-bar-msg:hover {
    background: var(--slate-200);
    color: var(--slate-800);
}

.etb-bottom-bar-msg:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.etb-bottom-bar-resa {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), .35);
}

.etb-bottom-bar-resa:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), .45);
}

.etb-bottom-bar-resa:active {
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), .25);
}

/* Pousser le contenu au-dessus de la barre */
.etb-main.etb-detail {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

/* Cacher les anciens boutons hero et sidebar resa sur mobile */
@media (max-width: 979px) {
    .etb-detail-actions { display: none; }
    .etb-detail-sidebar .etb-sidebar-card:first-child { display: none; }
}

/* Desktop : cacher la barre et les flottants, restaurer le padding */
@media (min-width: 769px) {
    .etb-bottom-bar { display: none; }
    .etb-float-actions { display: none; }
    .etb-main.etb-detail { padding-bottom: 0; }
}

/* ==========================================================================
   Composant calendrier de sélection de dates (partagé avec style_index.css)
   ========================================================================== */
.cal-modal {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; transition: opacity .35s ease;
}
.cal-modal.show { display: flex; opacity: 1; }
.cal-box {
    background: #fff;
    border-radius: 24px;
    width: 100%; max-width: 920px;
    max-height: 92vh;
    overflow: hidden;
    display: flex; flex-direction: column;
    transform: scale(0.95);
    transition: transform .4s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 25px 60px rgba(0,0,0,.18);
}
.cal-modal.show .cal-box { transform: scale(1); }
.cal-head {
    padding: 24px 32px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #f1f5f9;
}
.cal-head h3 { font-size: 22px; font-weight: 800; color: #1e293b; letter-spacing: -.02em; }
.cal-head p  { font-size: 13px; color: #64748b; margin-top: 2px; }
.cal-pills {
    display: flex; gap: 12px; padding: 16px 32px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}
.cal-pill {
    flex: 1; padding: 12px 16px;
    background: #fff; border-radius: 12px;
    border: 2px solid transparent;
    transition: all .3s ease;
}
.cal-pill.active { border-color: var(--primary); box-shadow: 0 4px 12px rgba(var(--primary-rgb),.15); }
.cal-pill-label {
    font-size: 11px; font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase; letter-spacing: .1em;
    margin-bottom: 4px;
}
.cal-pill-val { font-size: 15px; font-weight: 600; color: #1e293b; }
.cal-pill-val.empty { color: #94a3b8; font-weight: 400; }
.cal-grids {
    flex: 1; overflow-y: auto;
    padding: 24px 32px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative;
}
.cal-nav {
    position: absolute; top: 24px;
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    color: #334155; z-index: 5;
    cursor: pointer;
    transition: all .25s ease;
}
.cal-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-nav-prev { left: 32px; }
.cal-nav-next { right: 32px; }
.cal-month-title {
    text-align: center;
    font-size: 16px; font-weight: 700; color: #1e293b;
    margin-bottom: 14px;
}
.cal-weekdays {
    display: grid; grid-template-columns: repeat(7,1fr);
    gap: 4px; margin-bottom: 6px;
}
.cal-wd {
    font-size: 11px; font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase; letter-spacing: .08em;
    text-align: center; padding: 6px 0;
}
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #334155; font-weight: 500;
    border-radius: 10px;
    transition: all .15s ease;
    background: transparent;
    border: none; cursor: pointer;
}
.cal-day:hover:not(:disabled):not(.empty) {
    background: var(--primary-50);
    transform: scale(1.08);
}
.cal-day:disabled { color: #cbd5e1; cursor: not-allowed; }
.cal-day.empty { cursor: default; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--primary); font-weight: 700; }
.cal-day.in-range {
    background: var(--primary-100);
    border-radius: 0;
    color: var(--primary-darker);
}
.cal-day.range-start,
.cal-day.range-end {
    background: linear-gradient(135deg,var(--primary),var(--primary-dark)) !important;
    color: #fff !important; font-weight: 700;
    border-radius: 10px; z-index: 2;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb),.4);
}
.cal-day.range-start.has-range { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-day.range-end.has-range   { border-top-left-radius: 0;  border-bottom-left-radius: 0;  }
.cal-foot {
    padding: 18px 32px;
    border-top: 1px solid #f1f5f9;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; background: #fff;
}
.cal-info { font-size: 13px; color: #475569; }
.cal-info b { color: var(--primary-dark); font-weight: 700; }
.cal-actions { display: flex; gap: 10px; }
.cal-btn {
    padding: 10px 20px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    transition: all .25s ease;
    border: none; cursor: pointer; font-family: inherit;
}
.cal-btn-ghost { background: #f1f5f9; color: #334155; }
.cal-btn-ghost:hover { background: #e2e8f0; }
.cal-btn-primary {
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    color: #fff;
}
.cal-btn-primary:hover {
    background: linear-gradient(135deg,var(--primary-dark),var(--primary-darker));
    box-shadow: 0 4px 12px rgba(var(--primary-rgb),.35);
}
@media (max-width: 980px) {
    .cal-grids { grid-template-columns: 1fr; gap: 24px; padding: 20px 16px; }
    .cal-nav-prev { left: 16px; } .cal-nav-next { right: 16px; }
    .cal-head, .cal-pills, .cal-foot { padding-left: 20px; padding-right: 20px; }
    .cal-pills { flex-direction: column; }
    .cal-foot { flex-direction: column-reverse; align-items: stretch; }
    .cal-actions { justify-content: space-between; }
    .cal-actions .cal-btn { flex: 1; }
}
@media (max-width: 768px) {
    .cal-modal { padding: 0; }
    .cal-box {
        max-width: none; width: 100%;
        max-height: 100vh; height: 100vh;
        border-radius: 0;
    }
    .cal-pills { padding: 14px 20px; flex-direction: row; }
    .cal-pill { padding: 10px 14px; }
    .cal-pill-val { font-size: 14px; }
    .cal-foot { flex-direction: column-reverse; gap: 10px; }
    .cal-actions { width: 100%; }
}

/* ── LA BARRE DU BAS NE DÉBORDE PLUS (13/09/2026) ───────────────────────────
   « Réserver » était coupé à droite sur un téléphone. Les quatre boutons portent
   `flex: 1`, donc ils veulent la même largeur — mais un élément flex ne descend
   pas sous sa largeur de contenu (`min-width: auto` par défaut) : icône + libellé
   + padding font un plancher que la barre ne peut pas respecter à quatre, et le
   dernier sort de l'écran.
   Les deux boutons SANS libellé (partager, favori) reprennent leur largeur
   naturelle, carrée ; les deux boutons qui portent un mot se partagent le reste
   et peuvent enfin rétrécir. */
.etb-bottom-bar-btn { min-width: 0; }
.etb-bottom-bar-btn:not(:has(span)) { flex: 0 0 52px; padding: 0; }
.etb-bottom-bar-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Repli pour les navigateurs sans `:has()` : on borne la croissance des boutons
   à icône seule par leur classe, plutôt que de laisser la barre déborder. */
.etb-bottom-bar-share, .etb-bottom-bar-fav { flex: 0 0 52px; padding: 0; }

@media (max-width: 380px) {
    /* Très petit écran : le libellé « Message » s'efface, son icône suffit —
       mieux vaut une icône lisible qu'un mot coupé. */
    .etb-bottom-bar-msg span { display: none; }
    .etb-bottom-bar-msg { flex: 0 0 52px; padding: 0; }
}

/* ── LE PIED DU SELECTEUR DE DATES ──────────────────────────────────────────
   « Valider » est seul depuis le retrait d'« Effacer » : il prend la largeur et
   gagne en hauteur. C'est l'unique action de l'ecran, elle doit se viser au
   pouce sans chercher. */
.cal-actions { flex: 1 1 auto; }
.cal-actions .cal-btn-primary {
    flex: 1 1 auto;
    padding: 14px 28px;
    font-size: 15.5px;
    border-radius: 14px;
}
@media (max-width: 980px) {
    .cal-foot { flex-direction: column; align-items: stretch; gap: 10px; }
    .cal-actions .cal-btn-primary { width: 100%; padding: 16px 28px; font-size: 16px; }
}
