/* ============================================================
   MonHaras — Feuille de style principale
   Palette : bleu marine · blanc · noir · accents doré/marron
   (Les variables --green* portent désormais des valeurs bleu marine
    pour conserver toute la base de code sans renommage.)
   ============================================================ */

:root {
    --green:        #1B2A4A;   /* bleu marine (couleur principale) */
    --green-dark:   #111D36;   /* marine foncé */
    --green-soft:   #E8ECF4;   /* marine très clair (fonds, survols) */
    --gold:         #C8973F;   /* doré (accent) */
    --gold-dark:    #9C6F2A;   /* doré/marron foncé */
    --gold-soft:    #FBF1DD;
    --brown:        #6E4F2E;   /* marron (touche subtile) */
    --fir:          #15573C;   /* vert sapin (onglets accueil + Clubs près de moi) */
    --fir-dark:     #0F4230;   /* vert sapin foncé (survol) */
    --fir-soft:     #E4EFE7;   /* vert sapin très clair (survol) */
    --cream:        #F6F8FB;   /* blanc cassé légèrement bleuté (fond de page) */
    --surface:      #FFFFFF;
    --ink:          #14181F;   /* noir doux (texte) */
    --muted:        #5B6573;   /* gris froid */
    --line:         #E1E5EC;   /* gris bleuté clair (bordures) */
    --danger:       #C0392B;
    --danger-soft:  #FBEAE7;
    --info:         #2C6E8F;
    --info-soft:    #E5F1F6;
    --success:      #1E7A4B;
    --radius:       16px;
    --radius-sm:    10px;
    --radius-lg:    24px;
    --shadow:       0 6px 24px rgba(17, 29, 54, .10);
    --shadow-lg:    0 18px 50px rgba(17, 29, 54, .18);
    --maxw:         1180px;
    --header-h:     70px;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

a { color: var(--green); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.hidden { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .72em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
    font-family: var(--font-body); font-size: .98rem; font-weight: 600;
    cursor: pointer; transition: all .16s ease; white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
/* Or « affirmé » : dégradé + arête lumineuse + bordure or profond. Définition
   UNIQUE pour tout le site — les anciennes redéfinitions par page (club.css,
   account.css) ont été supprimées, elles se contredisaient entre elles. */
.btn-gold {
    background: linear-gradient(180deg, #E3B75C, var(--gold));
    color: #23201A; border-color: #A87C2E;
    box-shadow: 0 2px 8px rgba(168,124,46,.28), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-gold:hover {
    background: linear-gradient(180deg, #EFC673, #D4A44B);
    color: #23201A; transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(168,124,46,.34), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(168,124,46,.3), inset 0 1px 2px rgba(120,86,28,.25); }
.btn-fir { background: var(--fir); color: #fff; }
.btn-fir:hover { background: var(--fir-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.btn-ghost { background: var(--green-soft); color: var(--green); }
.btn-ghost:hover { background: #dce8e0; }
.btn-sm { padding: .5em 1em; font-size: .86rem; }
.btn-lg { padding: .9em 1.8em; font-size: 1.05rem; }
/* Pleine largeur : le libellé doit pouvoir passer à la ligne, sinon un texte long
   impose sa largeur min-content au conteneur (débordement sur mobile). */
.btn-block { display: flex; width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
/* Navigation au clavier : aucun bouton du site n'avait d'indicateur de focus.
   :focus-visible seulement — la souris ne déclenche pas l'anneau. */
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--green-soft), 0 0 0 4.5px var(--green); }
.btn-gold:focus-visible { box-shadow: 0 0 0 3px rgba(200,151,63,.45), 0 0 0 4.5px var(--gold-dark); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251,249,246,.88); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--green); }
.brand:hover { color: var(--green); }
.brand .logo { width: 34px; height: 34px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a { padding: .5em .85em; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { background: var(--green-soft); color: var(--green); }
.main-nav a.active { color: var(--green); font-weight: 600; }
.nav-divider { width: 1px; height: 26px; background: var(--line); margin: 0 6px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Menu profil */
.user-menu { position: relative; padding-left:12px;}
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 4px; border: 1.5px solid var(--line); border-radius: 999px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-name { display: none; font-weight: 600; font-size: .93rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; flex: 0 0 auto; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.8rem; }
.user-menu .dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 8px; z-index: 200;
}
.user-menu .dropdown a { display: flex; align-items: center; gap: 10px; padding: .6em .8em; border-radius: 10px; color: var(--ink); font-size: .94rem; }
.user-menu .dropdown a:hover { background: var(--green-soft); color: var(--green); }
.user-menu .dropdown hr { border: none; border-top: 1px solid var(--line); margin: 6px 4px; }
.badge-dot { background: var(--gold); color: #2a1e06; border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 1px 7px; margin-left: auto; }

/* Cloche de notifications — toujours visible et tout à droite du header (mobile + PC) */
.header-bell { order: 10; position: relative; flex: 0 0 auto; margin-left: 6px; }
.header-bell .bell-btn { border: none; padding: 6px; border-radius: 50%; gap: 0; position: relative; background: none; }
.header-bell .bell-btn:hover { background: var(--green-soft); }
.bell-ico { width: 25px; height: 25px; display: block; }
.bell-badge { position: absolute; top: -1px; right: -1px; background: var(--gold); color: #2a1e06; border-radius: 999px; font-size: .62rem; font-weight: 700; min-width: 16px; height: 16px; line-height: 16px; text-align: center; padding: 0 3px; box-shadow: 0 0 0 2px #fff; }
/* Le menu déroulant des notifs ne doit jamais sortir de l'écran */
.header-bell .dropdown { right: 0; left: auto; width: min(300px, calc(100vw - 24px)); max-width: calc(100vw - 24px); min-width: 0; box-sizing: border-box; }
/* Liste défilante : l'en-tête (titre + « Tout voir ») reste fixe, seules les
   notifications défilent — jusqu'à 20 chargées (voir inc/header.php). */
.notif-list { max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain; }

/* ---------- Hero ---------- */
.hero {
    position: relative; padding: 64px 0 90px; overflow: hidden;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(200,151,63,.14), transparent 60%),
        linear-gradient(160deg, #26406E 0%, var(--green) 45%, var(--green-dark) 100%);
    color: #fff; text-align: center;
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60' stroke='%23ffffff10' /%3E%3C/svg%3E");
    opacity: .4;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 16ch; margin-inline: auto; }
.hero p.lead { font-size: 1.18rem; color: #e9f2ec; max-width: 52ch; margin: 0 auto 8px; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff; padding: .4em 1em; border-radius: 999px; font-size: .85rem; font-weight: 500; margin-bottom: 18px; }

/* ---------- Sélecteur de recherche (façon site de voyage) ---------- */
.search-card {
    background: #fff; color: var(--ink); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 12px; margin: 30px auto 0; max-width: 920px;
}
.search-tabs { display: flex; gap: 6px; padding: 6px 6px 12px; flex-wrap: wrap; justify-content: center; }
.search-tab {
    border: none; background: transparent; cursor: pointer; font-family: var(--font-body);
    font-weight: 600; color: var(--muted); padding: .6em 1.1em; border-radius: 999px; font-size: .95rem;
    display: inline-flex; align-items: center; gap: .5em; transition: .15s;
}
.search-tab.active { background: var(--green); color: #fff; }
.search-tab:hover:not(.active) { background: var(--green-soft); color: var(--green); }
/* Vert sapin uniquement pour les onglets de la page d'accueil (section .hero) */
.hero .search-tab.active { background: var(--fir); color: #fff; }
.hero .search-tab:hover:not(.active) { background: var(--fir-soft); color: var(--fir); }
.search-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 0; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; }
.search-field { display: flex; flex-direction: column; padding: .5em 1.1em; border-right: 1px solid var(--line); text-align: left; min-width: 0; }
.search-field:last-of-type { border-right: none; }
.search-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green); margin-bottom: 2px; }
.search-field input, .search-field select {
    border: none; background: transparent; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
    padding: 0; width: 100%; outline: none; appearance: none; cursor: pointer;
}
.search-field input::placeholder { color: #aab2ac; }
.search-submit { align-self: center; }
.search-submit .btn { height: 52px; width: 52px; padding: 0; font-size: 1.2rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-listings { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .18s, box-shadow .18s; position: relative; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--green-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.94); color: var(--green); font-size: .76rem; font-weight: 700; padding: .35em .8em; border-radius: 999px; box-shadow: var(--shadow); }
.card-tag.request { color: var(--gold-dark); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-loc { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--green); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.card-price { font-weight: 700; color: var(--green); font-size: 1.05rem; }
.card-price small { font-weight: 500; color: var(--muted); font-size: .8rem; }

/* Chips / badges */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 500; padding: .25em .7em; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.chip-gold { background: var(--gold-soft); color: var(--gold-dark); }
.chip-muted { background: #f0efea; color: var(--muted); }
.badge-role { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .2em .6em; border-radius: 6px; }
.badge-role.owner { background: var(--gold-soft); color: var(--gold-dark); }
.badge-role.pro { background: var(--green); color: #fff; }
.badge-role.rider { background: var(--info-soft); color: var(--info); }
.badge-id-verified { display: inline-flex; align-items: center; gap: 3px; font-size: .75rem; font-weight: 600; padding: .2em .65em; border-radius: 999px; background: #e8f4fd; color: #1a73e8; border: 1px solid #c3daf7; white-space: nowrap; }

/* Étoile favori */
.fav-star {
    position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.92); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); transition: transform .15s, background .15s; z-index: 2;
}
.fav-star:hover { transform: scale(1.1); }
.fav-star svg { width: 20px; height: 20px; }
.fav-star .star-shape { fill: none; stroke: var(--muted); stroke-width: 1.6; transition: .15s; }
.fav-star.is-fav .star-shape { fill: var(--gold); stroke: var(--gold-dark); }
.fav-star.is-fav { background: #fff; }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.form-narrow { max-width: 460px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.input, .textarea, .select {
    width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7B73' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.5em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); }

/* Choix de rôle / pilules radio */
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-radio { position: relative; }
.pill-radio input { position: absolute; opacity: 0; }
.pill-radio label { display: block; padding: .7em 1.2em; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; transition: .15s; }
.pill-radio input:checked + label { background: var(--green); color: #fff; border-color: var(--green); }
.pill-radio input:focus-visible + label { box-shadow: 0 0 0 3px var(--green-soft); }

/* ---------- Alertes / flash ---------- */
.alert { padding: .9em 1.2em; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .94rem; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.alert-success { background: #E8F5EE; color: #14633e; border-color: #bfe3cd; }
.alert-error { background: var(--danger-soft); color: #8e2a1e; border-color: #f1c9c2; }
.alert-info { background: var(--info-soft); color: #1d5571; border-color: #c4e0eb; }
.flash-stack { position: fixed; top: 84px; right: 20px; z-index: 300; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.flash-stack .alert { box-shadow: var(--shadow-lg); animation: slideIn .3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }

/* Bannière globale de transfert de propriété d'écurie (compte à rebours 48 h) */
.transfer-banner { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: #FBF1DD; color: #6a4a12; border-bottom: 1px solid #e6cf9c; font-size: .9rem; line-height: 1.35; }
.transfer-banner.danger { background: #7a1f17; color: #fff; border-bottom-color: #5c130d; }
.transfer-banner .tb-ico { font-size: 1.3rem; flex-shrink: 0; }
.transfer-banner .tb-txt { flex: 1; }
.transfer-banner.danger strong { color: #fff; }
.transfer-banner .tb-action { margin: 0; flex-shrink: 0; }
@media (max-width: 640px) { .transfer-banner { flex-wrap: wrap; padding: 10px 14px; } .transfer-banner .tb-action { width: 100%; } .transfer-banner .tb-action .btn { width: 100%; } }

/* ---------- Bandeau cookies (discret & stylisé) ---------- */
.cookie-bar[hidden] { display: none !important; }   /* l'attribut hidden doit l'emporter sur display:flex */
.cookie-bar {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400;
    max-width: 720px; margin: 0 auto;
    background: rgba(255,255,255,.86);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(17,29,54,.22);
    padding: 12px 14px 12px 16px; font-size: .84rem; line-height: 1.45;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    animation: cookieUp .45s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes cookieUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.cookie-bar-ico {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.cookie-bar-txt { flex: 1 1 240px; min-width: 0; color: var(--muted); }
.cookie-bar-txt strong { color: var(--ink); }
.cookie-bar a { color: var(--gold-dark); font-weight: 600; white-space: nowrap; }
.cookie-bar-x {
    flex: 0 0 auto; cursor: pointer;
    background: var(--green); color: #fff; border: none;
    border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .82rem;
    transition: transform .12s, background .15s;
}
.cookie-bar-x:hover { background: var(--green-dark); transform: translateY(-1px); }
.cookie-bar-actions { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
.cookie-bar-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.cookie-bar-ghost:hover { background: var(--cream); color: var(--ink); }
@media (max-width: 520px) {
    .cookie-bar { padding: 12px; }
    .cookie-bar-actions { width: 100%; }
    .cookie-bar-x { flex: 1 1 auto; width: auto; margin-top: 2px; }
}

/* ---------- Page section title ---------- */
.page-head { padding: 40px 20px 8px; text-align: center; }
.page-head h1 { margin-inline: auto; }
.page-head .eyebrow { color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }

/* ---------- Filtres ---------- */
.layout-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.filters h3 { font-size: 1rem; margin-bottom: 14px; }
.filters .field { margin-bottom: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: .92rem; }
/* Bouton « Ajouter mon club » : centré et pleine largeur sur mobile.
   Élargir le seul bouton ne suffisait pas : son conteneur, item flex de
   .toolbar, gardait la largeur de son contenu et restait donc calé à gauche —
   le bouton faisait bien « 100 % », mais 100 % d'un bloc étroit. */
@media (max-width: 560px) {
    .toolbar-actions { width: 100%; justify-content: center; }
    .create-club-btn { width: 100%; justify-content: center; text-align: center; display: flex; }
}

/* ---------- Annonce détail ---------- */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; border-radius: var(--radius-lg); overflow: hidden; }
/* Annonce sans photo secondaire : la photo principale prend toute la largeur. */
.detail-gallery.no-thumbs { grid-template-columns: 1fr; }
.detail-gallery .main-photo { aspect-ratio: 3/2; }
.detail-gallery .main-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .thumbs { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.detail-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; margin-top: 30px; align-items: start; }
.detail-layout > * { min-width: 0; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; margin: 22px 0; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.spec .k { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.spec .v { font-weight: 600; margin-top: 2px; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 90px; }
.price-tag { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--green); }
.price-tag small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.owner-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0; }

/* ---------- Checklists activités / installations (annonce.php) ---------- */
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 10px 20px; margin: 16px 0 22px; }
.feature-item { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.feature-item span { color: var(--green); font-weight: 700; }
.feature-item.off { color: var(--muted); text-decoration: line-through; }
.feature-item.off span { color: var(--muted); }
.horse-card { padding: 18px 20px; }

/* ---------- Sidebar annonce : actions, badges de confiance, essai ---------- */
.side-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.side-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.side-action:hover { border-color: var(--green); background: var(--green-soft); }
.trust-badges { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; font-size: .85rem; color: var(--muted); }
.trust-badges a { font-weight: 600; }
/* ---------- Carte "Demander un essai" (widget façon Cavalons) ---------- */
.trial-card { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.trial-price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: .95rem; margin: 0 0 12px; }
.trial-price-line strong { color: var(--gold-dark); }
.trial-price-old { text-decoration: line-through; }
.trial-details { margin: 0; }
.trial-details summary { list-style: none; cursor: pointer; }
.trial-details summary::-webkit-details-marker { display: none; }
.trial-cta { display: block; width: 100%; text-align: center; background: var(--gold); color: #fff; font-weight: 700; font-size: 1rem; padding: 13px 16px; border-radius: var(--radius-sm); transition: background .15s; }
.trial-cta:hover { background: var(--gold-dark); }
.trial-details[open] .trial-cta { background: var(--gold-dark); }
.trial-form { margin-top: 14px; }
.trial-form-intro { font-size: .86rem; color: var(--muted); margin: 0 0 12px; }
.trial-reassure { text-align: center; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- FAQ (annonce.php) ---------- */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: 10px 0 0; color: var(--muted); }

/* ============================================================
   Page « Demande d'essai » (demander-essai.php)
   Signature : le « billet d'essai » — talon perforé.
   ============================================================ */
.essai-page { padding-top: 18px; }
.essai-head { max-width: 640px; margin: 6px 0 34px; }
.essai-eyebrow { display: inline-block; font-family: var(--font-mono, ui-monospace, "SFMono-Regular", Menlo, monospace); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.essai-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 12px; color: var(--green); }
.essai-sub { color: var(--muted); font-size: 1.02rem; margin: 0; }

.essai-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; align-items: start; }
.essai-layout > * { min-width: 0; }

/* --- Étapes numérotées (séquence réelle) --- */
.essai-step { display: grid; grid-template-columns: 40px 1fr; gap: 18px; margin-bottom: 40px; }
.step-mark { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.essai-step:not(:last-child) .step-mark::after { content: ""; position: absolute; top: 46px; left: 50%; width: 1.5px; height: calc(100% - 6px); background: var(--line); transform: translateX(-50%); }
.step-title { font-family: var(--font-display); font-size: 1.5rem; margin: 6px 0 4px; color: var(--green); }
.step-lead { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.step-optional { font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #f0efea; border-radius: 999px; padding: 4px 10px; vertical-align: 3px; margin-left: 6px; }
.req { color: var(--danger); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; }

/* --- Sélecteur calendrier + créneaux (calendrier en bloc, créneaux en rangée dessous) --- */
.tb-picker { display: block; }
.tb-cal { width: 100%; max-width: 340px; }
.tb-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tb-cal-label { font-family: var(--font-display); font-weight: 600; color: var(--green); text-transform: capitalize; }
.tb-arrow { width: 36px; height: 36px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--green); }
.tb-arrow:hover:not(:disabled) { border-color: var(--green); background: var(--green-soft); }
.tb-arrow:disabled { opacity: .35; cursor: default; }
.tb-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 7px; }
.tb-dow span { text-align: center; font-size: .68rem; font-weight: 700; color: var(--muted); }
.tb-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 42px; gap: 5px; }
.tb-day { height: 42px; display: flex; align-items: center; justify-content: center; font-size: .85rem; border: 1px solid var(--line); background: #fff; border-radius: 9px; color: var(--ink); cursor: pointer; transition: .12s; }
.tb-day.empty { border: none; }
.tb-day:hover:not(.off):not(.empty):not(.taken) { background: var(--green-soft); }
.tb-day.empty { background: none; cursor: default; }
.tb-day.off { color: #c4cad3; background: #f5f7fa; border-color: #edf0f4; cursor: default; }
.tb-day.taken { color: #b9c0cb; background: none; cursor: not-allowed; text-decoration: line-through; }
.tb-day.has { background: var(--green); color: #fff; font-weight: 700; }
.tb-day.active { box-shadow: 0 0 0 2px var(--gold); }
.tb-periods { margin-top: 22px; }
.tb-periods-empty { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.tb-periods-title { font-weight: 600; margin: 0 0 12px; color: var(--green); }
.tb-period-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tb-period { flex: 1 1 150px; text-align: center; padding: 13px 12px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: .12s; }
.tb-period:hover { border-color: var(--gold); }
.tb-period.on { background: var(--green); border-color: var(--green); color: #fff; }
.tb-hint { color: var(--gold-dark); font-size: .85rem; font-weight: 600; margin: 16px 0 0; }
.tb-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tb-slot { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: var(--gold-dark); border-radius: 999px; padding: 6px 8px 6px 14px; font-size: .84rem; font-weight: 600; }
.tb-slot-x { border: none; background: rgba(156,111,42,.18); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; font-size: .95rem; color: inherit; }
.tb-slot-x:hover { background: rgba(156,111,42,.34); }

/* --- Le billet d'essai (élément signature) --- */
.essai-aside { position: sticky; top: 90px; }
.ticket { --paper: #FBF6EA; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); animation: ticket-in .5s cubic-bezier(.2,.7,.2,1) both; }
.ticket-stub { display: flex; gap: 14px; align-items: center; padding: 20px; }
.ticket-photo { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.ticket-eyebrow { display: block; font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.ticket-horse { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; color: var(--green); }
.ticket-meta { font-size: .82rem; color: var(--muted); margin-top: 3px; }
/* Ligne de déchirure perforée + encoches aux couleurs du fond de page */
.ticket-tear { position: relative; height: 0; border-top: 2px dashed #E4D9BE; margin: 0 18px; }
.ticket-tear::before, .ticket-tear::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); }
.ticket-tear::before { left: -30px; }
.ticket-tear::after { right: -30px; }
.ticket-tear span { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--paper); padding: 0 10px; font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #B6A57E; }
.ticket-pay { padding: 20px; }
.ticket-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: .92rem; color: var(--ink); }
.ticket-row.promo { color: var(--gold-dark); }
.ticket-num { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-weight: 600; }
.ticket-row.total { margin-top: 8px; padding-top: 12px; border-top: 1.5px solid #EBE0C6; font-weight: 700; }
.ticket-row.total .ticket-num { font-size: 1.35rem; color: var(--green); }
.ticket-cta { display: block; width: 100%; margin-top: 16px; padding: 15px; border: none; border-radius: 12px; background: var(--gold); color: #fff; font: inherit; font-weight: 700; font-size: 1.02rem; cursor: pointer; transition: background .15s, transform .1s; }
.ticket-cta:hover:not(:disabled) { background: var(--gold-dark); }
.ticket-cta:active:not(:disabled) { transform: translateY(1px); }
.ticket-cta:disabled { background: #DCCFA8; color: #fff; cursor: not-allowed; }
.ticket-note { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; color: var(--muted); margin: 14px 2px 0; line-height: 1.5; }
.ticket-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold-dark); }

@keyframes ticket-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ticket { animation: none; } }
@media (max-width: 920px) {
    .essai-layout { grid-template-columns: 1fr; gap: 8px; }
    .essai-aside { position: static; order: -1; margin-bottom: 28px; }
}

/* ---------- Page Essais (essais.php) ---------- */
.trials-head { margin: 6px 0 30px; max-width: 620px; }
.trials-eyebrow { display: inline-block; font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.trials-title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.05; letter-spacing: -.01em; color: var(--green); margin: 0 0 10px; }
.trials-sub { color: var(--muted); margin: 0; }
.trials-section { font-family: var(--font-display); font-size: 1.35rem; color: var(--green); display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.trials-count { font-family: var(--font-body); font-size: .8rem; font-weight: 700; background: var(--gold); color: #fff; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.trials-empty { color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; }

.trial-req { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.trial-req.is-accepted { border-color: #c9e2d3; }
.trial-req-thumb { width: 68px; height: 68px; flex: 0 0 auto; object-fit: cover; border-radius: 12px; }
.trial-req-body { flex: 1; min-width: 0; }
.trial-req-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.trial-req-who { margin: 0; font-size: .98rem; }
.trial-req-caption { display: block; font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.trial-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.trial-slot { font-size: .8rem; font-weight: 600; color: var(--green); background: var(--green-soft); border-radius: 8px; padding: 5px 10px; }
.trial-msg { margin: 12px 0 0; font-size: .9rem; color: var(--ink); border-left: 2px solid var(--gold); padding-left: 12px; font-style: italic; }
.trial-profile { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 18px; margin: 12px 0 0; background: var(--cream); border-radius: 10px; padding: 12px 14px; }
.trial-profile div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.trial-profile dt { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; margin: 0; }
.trial-profile dd { font-size: .86rem; font-weight: 600; color: var(--ink); margin: 0; }
.trial-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.trial-next { margin: 14px 0 0; background: var(--fir-soft); border-radius: 12px; padding: 12px 14px; font-size: .9rem; color: var(--fir-dark); }
.trial-next p { margin: 0; }
.trial-next.is-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.trial-next.is-cta .btn { flex: 0 0 auto; }
.trial-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trial-actions form { margin: 0; }
.trial-status { font-size: .74rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
.trial-status.st-pending { background: var(--gold-soft); color: var(--gold-dark); }
.trial-status.st-ok { background: var(--fir-soft); color: var(--fir-dark); }
.trial-status.st-off { background: #f0efea; color: var(--muted); }
@media (max-width: 560px) {
    .trial-req { flex-direction: column; }
    .trial-req-thumb { width: 100%; height: 140px; }
}

/* ---------- Messagerie ---------- */
.msg-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 560px; background: #fff; }
.conv-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 70vh; }
.conv-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conv-item:hover, .conv-item.active { background: var(--green-soft); }
.conv-item .who { font-weight: 600; font-size: .94rem; }
.conv-item .preview { font-size: .84rem; color: var(--muted); }
.conv-item.unread .who::after { content: "●"; color: var(--gold); margin-left: 6px; font-size: .7rem; }
.thread { display: flex; flex-direction: column; }
.thread-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.thread-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 52vh; background: var(--cream); }
.bubble { max-width: 70%; padding: .7em 1em; border-radius: 16px; font-size: .94rem; }
.bubble.them { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble .time { display: block; font-size: .72rem; opacity: .7; margin-top: 3px; }
.bubble-sys { align-self: center; max-width: 88%; text-align: center; background: var(--gold-soft); border: 1px solid #e6d5ac; color: var(--ink); padding: .8em 1.1em; border-radius: 14px; font-size: .88rem; line-height: 1.5; }
.bubble-sys .time { font-size: .72rem; opacity: .7; }
.thread-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.thread-form input { flex: 1; }

/* ---------- Forum ---------- */
.forum-cat { display: flex; gap: 16px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .15s; }
.forum-cat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.forum-cat .ico { font-size: 1.8rem; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--green-soft); border-radius: 14px; flex: 0 0 auto; }
.forum-cat .meta { margin-left: auto; text-align: right; font-size: .84rem; color: var(--muted); }
.topic-row { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.topic-row:hover { border-color: var(--green); }
.topic-row .stats { text-align: center; min-width: 70px; }
.topic-row .stats .n { font-weight: 700; color: var(--green); }
.topic-row .stats .l { font-size: .72rem; color: var(--muted); }

/* Post / réponse */
.post { display: grid; grid-template-columns: 160px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.post .post-author { background: var(--green-soft); padding: 20px; text-align: center; }
.post .post-author .avatar { margin: 0 auto 8px; }
.post .post-content { padding: 20px 24px; }
.post .post-content .body { white-space: pre-wrap; }

/* ---------- Catégories d'accueil ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: flex; align-items: flex-end; padding: 16px; color: #fff; background: var(--green); transition: transform .18s; }
.cat-tile:hover { transform: translateY(-3px); color: #fff; }
.cat-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.55)); z-index: 1; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile span { position: relative; z-index: 2; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- Steps / how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { text-align: center; padding: 10px; }
.step .num { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin: 0 auto 14px; }

/* ---------- Bandes / CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--green), var(--green-dark)); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dceae2; max-width: 50ch; margin: 0 auto 24px; }
/* Posé sur le bandeau vert foncé : seule l'ombre est renforcée pour détacher le
   bouton du fond. Le dégradé/la bordure viennent de la définition unique .btn-gold. */
.cta-band .btn-gold {
    box-shadow: 0 10px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.45);
}
.cta-band .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty .ico { font-size: 3rem; margin-bottom: 12px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { padding: .5em .9em; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; background: #fff; }
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #cfe0d6; padding: 56px 0 28px; margin-top: 64px; }
.site-footer a { color: #cfe0d6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { color: #fff; font-family: var(--font-body); font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .92rem; }
.footer-brand .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #9AA8C0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .layout-sidebar { grid-template-columns: 1fr; }
    .filters { position: static; }
    .detail-layout { grid-template-columns: 1fr; }
    .contact-box { position: static; }
    .msg-layout { grid-template-columns: 1fr; }
    .conv-list { max-height: 240px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
    .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; gap: 2px; align-items: stretch; display: none; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: .8em 1em; }
    .nav-divider { display: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .search-fields { grid-template-columns: 1fr; }
    .search-field { border-right: none; border-bottom: 1px solid var(--line); }
    .search-field:last-of-type { border-bottom: none; }
    .search-submit { padding: 8px; }
    .search-submit .btn { width: 100%; border-radius: 999px; }
    .detail-gallery { grid-template-columns: 1fr; }
    .detail-gallery .thumbs { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .post { grid-template-columns: 1fr; }
    .post .post-author { display: flex; align-items: center; gap: 12px; text-align: left; }
    .post .post-author .avatar { margin: 0; }
    .field-row, .field-row-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    /* Dropdown notifs en mobile : position fixe ancrée au bord droit de l'écran.
       Ancrage left+right plutôt que 100vw : 100vw inclut la barre de défilement
       et faisait sortir le panneau par la gauche sur les écrans étroits. */
    .header-bell .dropdown {
        position: fixed;
        top: var(--header-h);
        left: 12px;
        right: 12px;
        width: auto;
        max-width: 340px;
        margin-left: auto;
    }

    /* User menu (profil) dans le nav mobile : on affiche tout en plat.
       :not(.header-bell) évite de casser le dropdown de la cloche de notifs. */
    .user-menu-name { display: inline; }
    .user-menu:not(.header-bell) summary {
        border: none;
        border-radius: 0;
        border-top: 1px solid var(--line);
        padding: .8em 1em;
        background: var(--green-soft);
        color: var(--green);
        margin-top: 4px;
    }
    .user-menu:not(.header-bell) .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 4px 0 0;
        min-width: 0;
        width: 100%;
    }
    .user-menu:not(.header-bell) .dropdown a { padding: .75em 1em; border-radius: 0; }
}
@media (max-width: 480px) {
    .cat-tiles { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Panneau de modération
   ============================================================ */
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
/* min-width:0 — sans lui les colonnes se dimensionnent sur le contenu (nav, tableaux)
   au lieu de l'écran, et toute la mise en page déborde sur mobile. */
.admin-shell > * { min-width: 0; }
.admin-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 90px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: .65em .9em; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .94rem; }
.admin-nav a:hover { background: var(--green-soft); color: var(--green); }
.admin-nav a.active { background: var(--green); color: #fff; }
.admin-nav .count { margin-left: auto; font-size: .78rem; background: rgba(0,0,0,.08); padding: 1px 8px; border-radius: 999px; }
.admin-nav a.active .count { background: rgba(255,255,255,.22); }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 16px; margin-bottom: 26px; }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.admin-stat .n { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--green); line-height: 1; }
.admin-stat .l { color: var(--muted); font-size: .85rem; margin-top: 6px; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; padding: 12px 14px; background: var(--green-soft); color: var(--green); font-weight: 600; white-space: nowrap; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.admin-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: var(--cream); }
.admin-table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-table .row-actions form { display: inline; }
.btn-mini { padding: .35em .7em; font-size: .78rem; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); }
.btn-mini:hover { border-color: var(--green); color: var(--green); }
.btn-mini.danger { color: var(--danger); border-color: var(--danger-soft); }
.btn-mini.danger:hover { background: var(--danger-soft); }
.btn-mini.gold { color: var(--gold-dark); border-color: var(--gold-soft); }
.btn-mini.gold:hover { background: var(--gold-soft); }
/* Bloc d'actions d'une demande de réservation (reservations.php) */
.resa-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 150px; }
.resa-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; width: 100%; max-width: 200px; }
.resa-actions form { margin: 0; }
.resa-actions .btn-mini { display: block; width: 100%; text-align: center; }
@media (max-width: 520px) { .resa-side { align-items: stretch; width: 100%; } .resa-actions { max-width: none; } }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.cell-user .avatar { width: 32px; height: 32px; font-size: .8rem; }

@media (max-width: 820px) {
    .admin-shell { grid-template-columns: minmax(0, 1fr); }
    .admin-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
    .admin-nav a { flex: 1 1 auto; justify-content: center; }
    /* Les boutons d'action de l'admin ont des libellés longs : sans retour à la
       ligne ils dépassent du cadre sur les petits écrans. */
    .admin-shell .btn { white-space: normal; max-width: 100%; text-align: center; }
}

/* ---- Bouton signaler ---- */
.report-box { margin-top: 12px; }
.report-box summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .82rem; font-weight: 600; display: inline-block; }
.report-box summary::-webkit-details-marker { display: none; }
.report-box summary:hover { color: var(--danger); }
.report-box[open] summary { color: var(--danger); margin-bottom: 8px; }
.report-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }

/* ---- Filtre recherche admin ---- */
.admin-search { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-search input { flex: 1; min-width: 180px; }

/* ---- Solde / portefeuille ---- */
.wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wallet .box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.wallet .box.primary { background: var(--green); color: #fff; border-color: var(--green); }
.wallet .amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.wallet .box.primary .amount { color: #fff; }
@media (max-width: 560px) { .wallet { grid-template-columns: 1fr; } }

/* ============================================================
   Recherche par localisation (champ + autocomplétion + carte)
   ============================================================ */
/* z-index EXPLICITE (pas seulement sur .loc-suggest) : sans lui, ce bloc et le
   reste de la page (ex. la grille de résultats /clubs) sont tous deux
   "position:relative, z-index:auto" — donc dans le même niveau d'empilement,
   départagés par l'ordre du DOM. Le panneau de suggestions passait alors
   sous les cartes qui suivent dans la page. Un z-index explicite ici crée un
   contexte d'empilement propre, systématiquement au-dessus. */
.locsearch { position: relative; z-index: 20; }
.loc-field { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; }
.loc-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.loc-pin { flex: 0 0 auto; opacity: .8; }
.loc-input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--font-body); font-size: 1rem; padding: .55em .6em; min-width: 0; color: var(--ink); }
.loc-clear { flex: 0 0 auto; width: 28px; height: 28px; border: none; background: var(--green-soft); color: var(--green); border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.loc-clear:hover { background: #d9e6dd; }
.loc-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 6px; z-index: 200; max-height: 280px; overflow-y: auto; }
/* Empêche tout conteneur .card (overflow:hidden) de couper le menu déroulant des villes */
.card:has(.locsearch), .card:has([data-location-search]), .card:has([data-geocode]) { overflow: visible; }
.loc-suggest li { padding: .6em .8em; border-radius: 8px; cursor: pointer; font-size: .94rem; display: flex; gap: 8px; align-items: center; color: var(--ink); }
.loc-suggest li:hover { background: var(--green-soft); }
.loc-sub { color: var(--muted); font-size: .85em; }
.loc-radius-wrap { margin-top: 12px; }
.loc-radius-head { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.loc-radius-head strong { color: var(--green); }
.loc-radius { width: 100%; accent-color: var(--green); cursor: pointer; height: 6px; }
.loc-map { margin-top: 12px; height: 200px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); z-index: 1; }
.locsearch-hero .loc-field { padding: 6px 8px 6px 16px; }
.locsearch-hero .loc-input { padding: .7em .6em; font-size: 1.05rem; }
.locsearch-hero .loc-map { height: 220px; }

/* Ligne de champs du hero (localisation pleine largeur + contrôles) */
.search-hero { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.search-hero-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; justify-content: center; }
.search-hero-row > * { flex: 1 1 160px; }
.search-hero-row .search-submit-btn { flex: 0 0 auto; }
.search-pill { display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .4em .9em; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.search-pill:hover, .search-pill:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.search-pill label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green); margin-bottom: 1px; }
.search-pill select { border: none; background: transparent; font-family: var(--font-body); font-size: .98rem; font-weight: 500; color: var(--ink); outline: none; appearance: none; cursor: pointer; padding: 2px 20px 2px 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314533C' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }

/* ============================================================
   Sélecteur de niveau galop
   ============================================================ */
.galop-picker { position: relative; }
.galop-picker summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7em 1em; font-weight: 600; font-size: .96rem; color: var(--ink); height: 100%; }
.galop-picker summary::-webkit-details-marker { display: none; }
.galop-picker[open] summary { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.galop-picker .gp-ico { opacity: .85; }
.galop-panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.galop-opt { display: flex; align-items: center; gap: 10px; padding: .5em .7em; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.galop-opt:hover { background: var(--green-soft); }
.galop-opt input { accent-color: var(--green); width: 16px; height: 16px; }
.galop-opt input:checked + span { color: var(--green); font-weight: 600; }

/* Leaflet : garder la carte sous les menus du site */
.leaflet-pane, .leaflet-top, .leaflet-bottom { z-index: 2 !important; }

@media (max-width: 600px) {
    .search-hero-row > * { flex: 1 1 100%; }
}

/* ============================================================
   Disponibilités & calendrier (D.P)
   ============================================================ */
.resa-box { margin-top: 26px; padding: 22px; background: var(--green-soft); border-radius: var(--radius); }
/* Cartes de mois à largeur PLAFONNÉE (min 160 / max 230px) : sans le 1fr elles
   ne s'étirent plus, donc les cases ne peuvent jamais devenir géantes ni déborder. */
.cal-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 230px)); gap: 16px; justify-content: start; min-width: 0; }
.cal { max-width: 320px; min-width: 0; }
.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.cal-head { text-align: center; font-weight: 700; text-transform: capitalize; margin-bottom: 10px; color: var(--green); font-family: var(--font-display); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .68rem; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
/* Calendrier en rangées de semaines (aligne parfaitement, sans espace parasite) */
.cal-dowrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.cal-dowrow span { text-align: center; font-size: .68rem; font-weight: 700; color: var(--muted); }
.cal-weeks { display: flex; flex-direction: column; gap: 4px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.cal-arrow { width: 38px; height: 38px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; font-size: 1.15rem; line-height: 1; cursor: pointer; color: var(--green); transition: .15s; }
.cal-arrow:hover:not(:disabled) { border-color: var(--green); background: var(--green-soft); }
.cal-arrow:disabled { opacity: .35; cursor: default; }
.cal-nav-label { font-family: var(--font-display); font-weight: 600; color: var(--green); min-width: 190px; text-align: center; text-transform: capitalize; }
.cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .82rem; border-radius: 8px; color: var(--ink); }
.cal-cell.empty { visibility: hidden; }
.cal-cell.avail { background: #d7ecdf; color: var(--green-dark); font-weight: 600; cursor: pointer; transition: .12s; }
.cal-cell.avail:hover { background: #bfe0cd; }
.cal-cell.off { color: #c7ccc8; }
.cal-cell.past { color: #dde0dc; text-decoration: line-through; }
.cal-cell.booked { background: #f0efea; color: #b4b2a9; text-decoration: line-through; }
.cal-cell.blocked { background: #f6e3df; color: #c79a92; text-decoration: line-through; }
.cal-cell.sel { background: var(--green) !important; color: #fff !important; font-weight: 700; }
.cal-cell.start { box-shadow: 0 0 0 2px var(--gold); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 12px; }
.cal-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.cal-legend .dot.avail { background: #d7ecdf; } .cal-legend .dot.booked { background: #d3d1c7; } .cal-legend .dot.blocked { background: #e7c3bb; } .cal-legend .dot.sel { background: var(--green); }
.resa-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .92rem; line-height: 1.5; }
@media (max-width: 620px) { .cal-wrap { grid-template-columns: 1fr; } }

/* --- Calendrier mensuel des cours (onglet Calendrier du club) --- */
.mcal-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.mcal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--green); font-family: var(--font-display); }
.mcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mcal-dows { margin-bottom: 4px; }
.mcal-dow { text-align: center; font-size: .68rem; font-weight: 700; color: var(--muted); }
.mcal-cell { min-height: 78px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 4px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.mcal-empty { border: none; background: transparent; }
.mcal-today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.mcal-num { font-size: .72rem; font-weight: 700; color: var(--muted); text-align: right; }
.mcal-today .mcal-num { color: var(--gold-dark); }
.mcal-ev { display: block; font-size: .68rem; line-height: 1.25; padding: 2px 4px; border-radius: 4px; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcal-ev:hover { filter: brightness(1.08); }
.mcal-ev-cours { background: var(--green); }
.mcal-ev-offer { background: var(--gold); }
.mcal-ev-prestation { background: var(--success); }
.mcal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 12px; }
.mcal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
@media (max-width: 560px) { .mcal-cell { min-height: 58px; } .mcal-ev { font-size: .6rem; } }

/* --- Carrousel photos (pensions, type Airbnb) --- */
.pgallery { position: relative; width: 100%; height: 200px; background: #0b1830; overflow: hidden; }
.pg-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.pg-slide.active { opacity: 1; }
.pg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #111; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.pg-prev { left: 8px; } .pg-next { right: 8px; }
.pg-nav:hover { background: #fff; }
.pg-count { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 20px; z-index: 2; }
.pg-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; gap: 5px; justify-content: center; z-index: 2; }
.pg-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.pg-dot.active { background: #fff; }
.pg-dot, .pg-nav { cursor: pointer; }
/* Bannière photos du club (slider large) */
.pgallery.club-banner { height: 300px; border-radius: var(--radius); }
.club-banner-single { display: block; width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 640px) { .pgallery.club-banner, .club-banner-single { height: 190px; } }
/* Dialogue de confirmation stylisé (remplace window.confirm) */
.mh-confirm-overlay { position: fixed; inset: 0; background: rgba(17,29,54,.55); backdrop-filter: blur(2px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; }
.mh-confirm-overlay.open { display: flex; }
.mh-confirm { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; padding: 22px 22px 18px; box-shadow: var(--shadow-lg); animation: mmPop .16s ease; }
.mh-confirm-msg { margin: 0 0 18px; font-size: 1rem; color: var(--ink); line-height: 1.5; }
.mh-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
/* Liste des membres (cartes cliquables) + modal détaillé */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.member-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.member-card.is-clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.member-card.is-clickable:hover { border-color: var(--green); box-shadow: var(--shadow); }
.member-card .avatar { flex: 0 0 auto; }
.member-card .mc-arrow { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.avatar.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }
.mmodal-overlay { position: fixed; inset: 0; background: rgba(17,29,54,.55); backdrop-filter: blur(2px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mmodal-overlay[hidden] { display: none; }
.mmodal { position: relative; background: #fff; border-radius: 18px; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 24px; box-shadow: var(--shadow-lg); animation: mmPop .16s ease; }
@keyframes mmPop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mmodal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--cream); cursor: pointer; font-size: 1rem; z-index: 2; }
.mmodal-close:hover { background: var(--line); }
.mmodal-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: none; border-radius: 50%; background: #fff; box-shadow: var(--shadow); cursor: pointer; font-size: 1.6rem; line-height: 1; color: var(--green); z-index: 1001; }
.mmodal-prev { left: max(16px, calc(50% - 320px)); }
.mmodal-next { right: max(16px, calc(50% - 320px)); }
.mmodal-nav:hover { background: var(--green-soft); }
.mm-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.mm-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.mm-detail .mm-line { border-top: 1px solid var(--line); padding: 4px 0; display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
@media (max-width: 620px) { .mmodal-nav { top: auto; bottom: 14px; transform: none; } .mmodal-prev { left: 24px; } .mmodal-next { right: 24px; } }
/* Cartes de choix cliquables (ex. lieux d'intervention moniteur) */
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .choice-cards { grid-template-columns: 1fr; } }
.choice-card { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice-card:hover { border-color: var(--green); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card .cc-ico { font-size: 1.5rem; line-height: 1.2; }
.choice-card .cc-body { display: flex; flex-direction: column; gap: 2px; }
.choice-card .cc-body strong { font-size: .95rem; }
.choice-card .cc-body small { color: var(--muted); font-size: .8rem; }
.choice-card .cc-check { position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; transition: all .15s; }
.choice-card input:checked ~ .cc-check { background: var(--green); border-color: var(--green); }
.choice-card input:checked { }
.choice-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
/* Options de récurrence créneau moniteur (affichage sans JS) */
.field:has(#slotRepeat:checked) #slotRepeatOpts { display: block !important; }
/* Champs à enregistrement automatique (grille de prix) */
[data-autosave].is-saving { border-color: var(--gold); background: #fffdf5; }
[data-autosave].is-saved { border-color: var(--green); background: #f2fbf5; transition: border-color .3s, background .3s; }
/* Vignettes images dans les conversations */
.msg-img { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; margin-top: 6px; cursor: zoom-in; }

/* Contacter l'écurie : popover centré sur mobile */
.club-contact > summary { display: inline-flex; }
@media (max-width: 560px) {
  .club-contact { position: static !important; }
  .club-contact > summary { width: 100%; justify-content: center; }
  .club-contact form {
    position: fixed !important;
    left: 50% !important; right: auto !important; top: 50% !important;
    transform: translate(-50%, -50%);
    width: 92vw !important; max-width: 360px;
    z-index: 1000 !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.4);
  }
}

/* Champ localisation : rectangle arrondi cohérent avec les autres champs (variante panneau) */
.locsearch-panel .loc-field { border-radius: var(--radius-sm); border: 1.5px solid var(--line); padding: 2px 6px 2px 12px; }
.locsearch-panel .loc-input { padding: .65em .5em; font-size: .98rem; }

/* Sélecteur de jours (pastilles) */
.weekday-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.wd-opt { position: relative; cursor: pointer; }
.wd-opt input { position: absolute; opacity: 0; }
.wd-opt span { display: block; padding: .5em .9em; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .85rem; transition: .15s; }
.wd-opt input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.wd-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--green-soft); }

/* Badge réduction */
.discount-badge { position: absolute; top: 12px; right: 56px; background: var(--gold); color: #2a1e06; font-size: .76rem; font-weight: 700; padding: .3em .7em; border-radius: 999px; box-shadow: var(--shadow); }

/* Bouton d'upload de fichier stylé */
.file-upload { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex-wrap: wrap; }
.file-upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-upload-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green); border: 1.5px solid var(--line); border-radius: 999px; padding: .6em 1.2em; font-weight: 600; font-size: .92rem; transition: .15s; }
.file-upload:hover .file-upload-btn { background: #dce8e0; border-color: var(--green); }
.file-upload input:focus-visible + .file-upload-btn { box-shadow: 0 0 0 3px var(--green-soft); }
.file-upload-name { font-size: .85rem; color: var(--muted); }

/* Cours de club & chevaux */
.horse-list { display: flex; flex-wrap: wrap; gap: 8px; }
.horse-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green-dark); border-radius: 999px; padding: .35em .8em; font-size: .88rem; font-weight: 600; }
.horse-del { border: none; background: rgba(0,0,0,.08); color: var(--ink); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: .7rem; line-height: 1; padding: 0; }
.horse-del:hover { background: var(--danger); color: #fff; }
.course-card { padding: 0; margin-bottom: 14px; overflow: hidden; transition: box-shadow .15s; }
.course-card:hover { box-shadow: var(--shadow); }
.course-head { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.course-date { background: linear-gradient(160deg, var(--green), var(--green-dark)); color: #fff; border-radius: 14px; padding: 9px 6px 8px; text-align: center; min-width: 66px; flex: 0 0 auto; line-height: 1.05; box-shadow: 0 4px 12px rgba(17,29,54,.22); }
.course-date .dow { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; opacity: .92; }
.course-date .d { font-size: 1.85rem; font-weight: 700; font-family: var(--font-display); line-height: 1; margin: 2px 0; }
.course-date .m { font-size: .7rem; opacity: .95; }
.course-head strong { font-size: 1.08rem; line-height: 1.3; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.course-riders { border-top: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 8px; background: var(--cream); }
.rider-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .92rem; flex-wrap: wrap; }
.course-action { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 14px 16px; }
@media (max-width: 480px) {
    .course-head { gap: 10px; padding: 14px; }
    .course-date { min-width: 56px; }
    .course-date .d { font-size: 1.55rem; }
    .course-action .select-mini, .rider-row .select-mini { width: 100%; }
}
.select-mini { padding: .35em 1.8em .35em .7em; font-size: .88rem; }
.wd-btn { padding: .4em .8em; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .82rem; cursor: pointer; color: var(--ink); transition: .15s; }
.wd-btn.on { background: var(--green); color: #fff; border-color: var(--green); }
.wd-btn:hover { border-color: var(--green); }

/* Bulle « Support » (médiation litige) */
.bubble.support { align-self: center; background: var(--gold-soft); color: var(--gold-dark); border: 1px solid #e8d4a8; max-width: 92%; text-align: center; }
.bubble.support .time { color: var(--gold-dark); opacity: .7; }

/* Notation par étoiles */
.stars { letter-spacing: 1px; white-space: nowrap; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; font-size: 1.9rem; line-height: 1; }
.star-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-pick label { color: #dcd6ca; cursor: pointer; transition: color .12s; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: var(--gold); }
.star-pick input:focus-visible + label { outline: 2px solid var(--green-soft); border-radius: 4px; }

/* QR code de remise en main propre */
.qr-handover { display: inline-flex; flex-direction: column; align-items: center; }
.qr-box { width: 190px; height: 190px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: .8rem; padding: 6px; }
.qr-img { display: block; image-rendering: pixelated; border-radius: 6px; }

/* Réglages : lignes + interrupteurs à bascule */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting-row:last-of-type { border-bottom: none; }
.switch { position: relative; width: 48px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider { position: absolute; inset: 0; background: #cfd6d1; border-radius: 999px; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px var(--green-soft); }


/* ============================================================
   Bulle de support flottante (#supBubble)
   ========================================================== */
#supBubble { position: fixed; right: 20px; bottom: 20px; z-index: 500; }
.sup-toggle {
    position: relative; width: 58px; height: 58px; border-radius: 50%; border: none;
    background: var(--green); color: #fff; font-size: 1.5rem; cursor: pointer;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center;
    transition: transform .15s, background .15s;
}
.sup-toggle:hover { background: var(--green-dark); transform: translateY(-2px); }
.sup-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* Le bandeau cookies (bottom fixe) peut chevaucher la bulle tant qu'il n'est pas fermé : on la remonte. */
#cookieBar:not([hidden]) ~ #supBubble { bottom: 100px; }
.sup-badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid var(--cream);
}
.sup-badge[hidden] { display: none; }

.sup-panel {
    position: fixed; right: 20px; bottom: 90px; width: 380px; max-width: calc(100vw - 32px);
    height: min(600px, calc(100vh - 120px)); background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; flex-direction: column;
    overflow: hidden; animation: supPop .16s ease;
}
.sup-panel[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .sup-panel { animation: none; } }
@keyframes supPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.sup-head { display: flex; flex-direction: column; background: var(--green); color: #fff; flex: 0 0 auto; }
.sup-head-top { display: flex; align-items: center; gap: 10px; padding: 14px 10px 10px 14px; }
.sup-avatars { display: flex; flex: 0 0 auto; }
.sup-avatar {
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: #fff;
    border: 2px solid var(--green);
}
.sup-avatars .sup-avatar + .sup-avatar { margin-left: -12px; }
.sup-head-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sup-head-names { font-family: var(--font-display); font-size: .95rem; font-weight: 600; line-height: 1.2; }
.sup-presence { font-size: .74rem; color: rgba(255,255,255,.82); }
.sup-head-tabs { display: flex; gap: 4px; padding: 4px 10px 10px; overflow-x: auto; }
.sup-tab {
    background: transparent; border: none; color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 600;
    padding: 6px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.sup-tab.is-active { background: rgba(255,255,255,.16); color: #fff; }
.sup-tab:focus-visible, .sup-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.sup-close { background: transparent; border: none; color: #fff; font-size: 1rem; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; }
.sup-close:hover { background: rgba(255,255,255,.16); }
.sup-head-menu { position: relative; flex: 0 0 auto; }
.sup-menu-btn { background: transparent; border: none; color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; }
.sup-menu-btn:hover { background: rgba(255,255,255,.16); }
.sup-menu-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.sup-menu {
    position: absolute; top: 100%; right: 0; margin-top: 4px; z-index: 5;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); min-width: 210px; padding: 4px; overflow: hidden;
}
.sup-menu[hidden] { display: none; }
.sup-menu-item {
    display: block; width: 100%; text-align: left; background: transparent; border: none;
    padding: 9px 12px; border-radius: var(--radius-sm); font: inherit; font-size: .86rem;
    font-weight: 600; color: var(--ink); cursor: pointer;
}
.sup-menu-item:hover, .sup-menu-item:focus-visible { background: var(--cream); outline: none; }

.sup-body { flex: 1 1 auto; overflow-y: auto; padding: 16px; font-size: .92rem; color: var(--ink); }

.sup-greet { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 4px; }
.sup-eta { color: var(--muted); font-size: .82rem; margin: 0 0 18px; }

.sup-motifs-label {
    font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink);
    margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.sup-motifs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.sup-motif {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
    padding: 12px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    cursor: pointer; font: inherit; color: var(--ink); transition: transform .12s, border-color .12s, box-shadow .12s;
}
.sup-motif-ico {
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; background: var(--green); font-size: 1rem; flex: 0 0 auto;
}
.sup-motif-label { font-size: .82rem; font-weight: 600; line-height: 1.25; }
.sup-motif:hover, .sup-motif:focus-visible {
    border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); outline: none;
}
.sup-motif:hover .sup-motif-ico, .sup-motif:focus-visible .sup-motif-ico { background: var(--gold-dark); }
@media (prefers-reduced-motion: reduce) { .sup-motif { transition: none; } .sup-motif:hover { transform: none; } }

.sup-faq { padding-top: 4px; border-top: 1px dashed var(--line); }
.sup-faq-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 0 0 8px; }
.sup-faq-search { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; margin-bottom: 8px; }
.sup-faq-list { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.sup-faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; }
.sup-faq-item summary { cursor: pointer; font-weight: 600; font-size: .86rem; }
.sup-faq-item p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }

.sup-chat { display: flex; flex-direction: column; height: 100%; gap: 10px; }
.sup-chat-log, .sup-thread-log { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1 1 auto; min-height: 120px; }
.sup-msg { max-width: 88%; padding: 9px 13px; border-radius: 16px; font-size: .87rem; line-height: 1.45; white-space: pre-wrap; }
.sup-msg-user, .sup-msg-mine { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.sup-msg-assistant, .sup-msg-other { align-self: flex-start; background: var(--cream); color: var(--ink); border-bottom-left-radius: 4px; }
.sup-msg-support { align-self: flex-start; background: var(--info-soft); color: var(--ink); border: 1px solid var(--info); border-bottom-left-radius: 4px; }
.sup-msg-img { max-width: 100%; border-radius: 8px; margin-top: 6px; }
.sup-typing-dots { display: flex; align-items: center; gap: 4px; padding: 12px 14px; }
.sup-typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: supTypingBlink 1.2s infinite ease-in-out; }
.sup-typing-dots span:nth-child(2) { animation-delay: .2s; }
.sup-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes supTypingBlink { 0%, 80%, 100% { opacity: .3; transform: scale(.85); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .sup-typing-dots span { animation: none; opacity: .6; } }

.sup-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px 34px; }
.sup-suggestion {
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
    font-size: .8rem; font-weight: 600; color: var(--green); cursor: pointer; transition: border-color .12s, background .12s;
}
.sup-suggestion:hover, .sup-suggestion:focus-visible { border-color: var(--gold); background: var(--gold-soft); outline: none; }

/* Fil de discussion humanisé : avatar + bulle + heure, comme une vraie conversation. */
.sup-msg-row { display: flex; gap: 8px; align-items: flex-end; }
.sup-msg-row-user { justify-content: flex-end; }
.sup-msg-row-assistant { justify-content: flex-start; }
.sup-msg-avatar {
    width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
    flex: 0 0 auto; font-family: var(--font-display); margin-bottom: 2px;
}
.sup-msg-col { display: flex; flex-direction: column; gap: 3px; max-width: 82%; }
.sup-msg-row-user .sup-msg-col { align-items: flex-end; }
.sup-msg-row .sup-msg { max-width: 100%; }
.sup-msg-time { font-size: .68rem; color: var(--muted); padding: 0 4px; }
.sup-chat-form, .sup-reply-form { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.sup-chat-input, .sup-reply-form textarea { width: 100%; min-height: 56px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; resize: vertical; }
.sup-chat-actions { display: flex; align-items: center; gap: 8px; }
.sup-chat-actions .btn { margin-left: auto; }
.sup-attach-btn {
    display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: .82rem; font-weight: 600;
    color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff;
}
.sup-attach-btn:hover { border-color: var(--gold); color: var(--ink); }
.sup-attach-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-sent { align-self: flex-end; font-size: .72rem; color: var(--muted); padding: 0 4px; }
.sup-thread-status { text-align: center; font-size: .8rem; color: var(--muted); background: var(--green-soft); border-radius: 8px; padding: 6px 10px; }
.sup-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.sup-compose { display: flex; flex-direction: column; gap: 10px; }
.sup-compose label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .84rem; }
.sup-compose .input, .sup-compose .textarea { font-weight: 400; }
.sup-hint { color: var(--muted); font-size: .8rem; }

.sup-tickets { display: flex; flex-direction: column; gap: 8px; }
.sup-ticket-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
    padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    cursor: pointer; font: inherit; font-size: .86rem; color: var(--ink);
}
.sup-ticket-row:hover { border-color: var(--gold); }
.sup-ticket-subject { display: flex; align-items: center; gap: 6px; }
.sup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: 0 0 auto; }
.sup-ticket-status { font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sup-status-open { background: var(--danger-soft); color: var(--danger); }
.sup-status-in_progress { background: var(--gold-soft); color: var(--gold-dark); }
.sup-status-resolved { background: var(--green-soft); color: var(--green-dark); }
.sup-back { background: transparent; border: none; color: var(--green); font-weight: 600; cursor: pointer; padding: 0 0 10px; font-size: .84rem; }
.sup-satisfaction { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sup-login-cta { text-align: center; padding: 24px 8px; }
.sup-empty, .sup-loading { color: var(--muted); font-size: .86rem; text-align: center; padding: 20px 0; }

@media (max-width: 480px) {
    #supBubble { right: 14px; bottom: 14px; }
    .sup-panel {
        right: 0; left: 0; bottom: 0; top: 0; width: 100%; max-width: 100%;
        height: 100%; border-radius: 0;
    }
}

/* ============================================================
   BLOC DE RECHERCHE DU HERO — maquette « Organic » (variante 1b)
   Le sélecteur de cible vit à l'intérieur du panneau, en segmented
   control : l'onglet actif et le champ appartiennent visiblement au
   même objet, ce que des onglets flottant au-dessus ne montraient pas.
   Palette de la maquette transposée sur les jetons du site (crème doré
   et or), pour ne pas poser un composant étranger sur un site marine.
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hero-search {
    --hs-panel: #FBF1DD;      /* crème doré : le panneau */
    --hs-track: #F0E2C6;      /* rail du segmented control */
    --hs-chip:  #EFE3CC;      /* raccourcis */
    --hs-ink:   #2A2318;
    background: var(--hs-panel);
    border: none;
    border-radius: 28px;
    padding: 22px 24px 24px;
    box-shadow: 0 24px 60px rgba(20, 36, 63, .35);
    max-width: 780px;
    margin-inline: auto;
    text-align: left;
}

/* ---- ligne « Je cherche » + sélecteur de cible ---- */
.hero-search .hs-target { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-search .hs-label { font-family: var(--font-display); font-size: 1.25rem; color: var(--hs-ink); white-space: nowrap; }
.hero-search .hs-tabs { display: flex; gap: 4px; background: var(--hs-track); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.hero-search .hs-tabs .search-tab {
    border: none; background: transparent; border-radius: 999px; cursor: pointer;
    padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center;
    font-family: var(--font-body); font-size: .93rem; font-weight: 600; color: #6F6455;
    white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s;
}
.hero-search .hs-tabs .search-tab:hover { color: var(--hs-ink); }
.hero-search .hs-tabs .search-tab.active { background: #fff; color: var(--hs-ink); box-shadow: 0 2px 6px rgba(32,30,29,.12); }

/* ---- barre de recherche ---- */
.hero-search .search-hero { gap: 0; }
.hero-search .hs-bar {
    background: #fff; border: none; border-radius: 999px;
    padding: 7px 7px 7px 20px; gap: 10px; position: relative;
}
.hero-search .hs-bar:focus-within { box-shadow: 0 0 0 3px rgba(200,151,63,.35); }
.hero-search .loc-pin { opacity: 1; font-size: 1.05rem; }
.hero-search .loc-input { font-size: 1.05rem; padding: .55em .1em; }
.hero-search .loc-clear { width: 34px; height: 34px; background: var(--hs-chip); color: var(--muted); font-size: 1.2rem; }
.hero-search .loc-clear:hover { background: #E5D3B8; }
.hero-search .hs-submit {
    flex: 0 0 auto; min-height: 48px; padding: 0 24px; border: none; border-radius: 999px;
    background: var(--gold); color: #fff; cursor: pointer;
    font-family: var(--font-body); font-size: 1rem; font-weight: 700; white-space: nowrap;
}
.hero-search .hs-submit:hover { background: var(--gold-dark); }
.hero-search .loc-suggest { top: calc(100% + 8px); border-radius: 20px; padding: 8px; border: none; box-shadow: 0 20px 48px rgba(32,30,29,.22); }
.hero-search .loc-suggest li { border-radius: 14px; padding: .65em .8em; }
.hero-search .loc-suggest li:hover { background: var(--gold-soft); }

/* ---- raccourcis ---- */
.hero-search .hs-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-search .hs-chip {
    border: none; background: var(--hs-chip); border-radius: 999px; cursor: pointer;
    padding: 0 15px; min-height: 38px; display: inline-flex; align-items: center;
    font-family: var(--font-body); font-size: .88rem; font-weight: 600; color: #4A4239; white-space: nowrap;
}
.hero-search .hs-chip:hover { background: #E5D3B8; }
.hero-search .hs-chip[disabled] { opacity: .6; cursor: progress; }

/* ---- rayon + carte ----
   Rendus côte à côte : le curseur seul ne dit pas ce que « 50 km » couvre,
   la carte le montre. Ils apparaissent ensemble, jamais l'un sans l'autre. */
.hero-search .hs-radius { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 20px; align-items: center; margin-top: 18px; }
.hero-search .hs-radius.hidden { display: none; }
.hero-search .loc-radius-head { font-size: .9rem; color: #6F6455; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.hero-search .loc-radius-head strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-dark); }
.hero-search .loc-radius { accent-color: var(--gold); }
.hero-search .hs-map { margin-top: 0; height: 104px; border-radius: 18px; border: none; }
.hero-search .hs-map.hidden { display: none; }

@media (max-width: 640px) {
    .hero-search { padding: 18px 16px 20px; border-radius: 22px; }
    .hero-search .hs-target { gap: 10px; justify-content: center; }
    .hero-search .hs-label { font-size: 1.1rem; width: 100%; text-align: center; }
    .hero-search .hs-tabs { width: 100%; }
    /* flex-basis auto + padding fixe faisait déborder les onglets de leur
       piste arrondie dès que 3-4 libellés ne tenaient plus sur une ligne
       (ex. "Demi-pension"). basis 0 + min-width 0 permet un vrai rétrécissement,
       et le texte peut repasser sur deux lignes plutôt que déborder. */
    .hero-search .hs-tabs .search-tab {
        flex: 1 1 0; min-width: 0; justify-content: center;
        padding: 6px 8px; font-size: .82rem; white-space: normal;
        text-align: center; line-height: 1.15;
    }
    .hero-search .hs-shortcuts { justify-content: center; }
    /* La barre passe en colonne : un champ et un bouton côte à côte sous
       360 px ne laissent la place ni à l'un ni à l'autre. */
    .hero-search .hs-bar { flex-wrap: wrap; border-radius: 22px; padding: 12px 14px; }
    .hero-search .loc-input { flex: 1 1 auto; }
    .hero-search .hs-submit { flex: 1 1 100%; margin-top: 8px; }
    .hero-search .hs-radius { grid-template-columns: 1fr; }
    .hero-search .hs-map { height: 150px; }
}

/* ============================================================
 *  Fusion de comptes — /fusion-comptes
 *
 *  Le parcours est une suite de pages, mais doit se lire comme une seule qui
 *  se réécrit : à chaque étape, le contenu s'efface vers le blanc puis le
 *  suivant s'y inscrit. D'où deux animations symétriques plutôt qu'une
 *  transition de page, impossible en HTML classique.
 * ========================================================== */
.merge-card { animation: merge-fade-in .34s ease-out both; }
.merge-card.merge-out { animation: merge-fade-out .32s ease-in forwards; }

@keyframes merge-fade-in  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes merge-fade-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .merge-card, .merge-card.merge-out { animation: none; }
}

/* Choix du sens de la fusion : deux blocs pleine largeur, cliquables en
   entier. Un bouton radio suivi d'un bouton « continuer » ferait deux gestes
   là où la question n'en demande qu'un. */
.merge-choice {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--card, #fff); color: inherit; font: inherit;
  border: 1.5px solid var(--border, #dfe2e6); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
  transition: border-color .15s, box-shadow .15s, transform .08s;
}
.merge-choice:hover  { border-color: var(--primary, #1B2A4A); box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.merge-choice:active { transform: translateY(1px); }
.merge-choice strong { display: block; font-size: 1.02rem; }
.merge-choice span   { display: block; font-size: .9rem; color: var(--muted, #6b7078); margin-top: 2px; }
.merge-choice em     { display: block; font-style: normal; font-size: .84rem; color: var(--muted, #6b7078); margin-top: 6px; }

.merge-code { text-align: center; font-size: 1.6rem; letter-spacing: .4em; }

.merge-recap {
  border-left: 3px solid var(--primary, #1B2A4A);
  padding: 10px 0 10px 14px; margin-bottom: 18px; font-size: .92rem;
}
.merge-recap p  { margin: 0 0 6px; }
.merge-recap ul { margin: 0; padding-left: 18px; }
.merge-recap li { margin-bottom: 2px; }

/* ---- Échelle de fidélité de l'abonnement écurie ------------------------
   Présente sur /tarification, /pro et l'espace abonnement : les trois pages
   doivent montrer exactement la même grille, d'où une seule règle ici. */
.loyalty-grid { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.loyalty-grid th,
.loyalty-grid td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line, #E1E5EC); }
.loyalty-grid thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
                         color: var(--muted, #5B6573); font-weight: 600; }
.loyalty-grid tbody th { font-weight: 500; }
.loyalty-grid td { text-align: right; white-space: nowrap; }
.loyalty-grid tbody tr:last-child th,
.loyalty-grid tbody tr:last-child td { border-bottom: 0; }
.loyalty-grid .is-current { background: var(--cream, #F6F8FB); }
.loyalty-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
                 background: var(--green, #1B2A4A); color: #fff; font-size: .72rem;
                 font-weight: 600; vertical-align: middle; white-space: nowrap; }
@media (max-width: 480px) {
    .loyalty-grid { font-size: .88rem; }
    .loyalty-grid th, .loyalty-grid td { padding: 8px 4px; }
}
