/* Motor's Events – maquette, style « paddock »
   Bleu nuit + orange piste, titres italiques condensés, rayures et damier. */

:root {
  --navy: #0A1A3B;
  --navy-2: #132A5E;
  --orange: #FF5B14;
  --orange-hover: #FF7638;
  --orange-text: #B83A00;
  --bg: #F1F3F7;
  --white: #FFFFFF;
  --ink: #0E1424;
  --muted: #5A6478;
  --line: #D9DEE9;
  --soft-on-dark: #C7D0E6;
  --focus: #1B6EF3;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: #FFC933; }

.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  padding: .6rem 1rem; border-radius: 6px;
  background: #fff; color: var(--navy); font-weight: 600;
}
.skip:focus { top: 1rem; }

/* Icônes */
.icon {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.w { fill: currentColor; }

/* Titres de section */
.title {
  font: italic 800 clamp(2rem, 4.5vw, 3.25rem)/.95 var(--display);
  text-transform: uppercase;
  letter-spacing: .005em;
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.3rem;
  border: 2px solid transparent; border-radius: 8px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.link-btn {
  padding: 0; border: 0; background: none;
  color: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

/* En-tête */
.site-header { background: var(--navy); color: #fff; }
.bar { display: flex; align-items: center; gap: 2rem; padding-block: 1.1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  font: italic 800 1.75rem/1 var(--display);
  letter-spacing: .01em; text-transform: uppercase; text-decoration: none;
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.75rem; }
.main-nav a { text-decoration: none; font-weight: 500; }
.main-nav a:hover, .login:hover {
  text-decoration: underline; text-underline-offset: 6px;
  text-decoration-color: var(--orange); text-decoration-thickness: 3px;
}
.actions { display: flex; align-items: center; gap: .75rem; }
.login { padding: .6rem .8rem; font-weight: 500; text-decoration: none; }

/* Accueil */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(6rem, 10vw, 8.5rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5rem), 0 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 0 62%; pointer-events: none;
  background: linear-gradient(112deg,
    transparent 0 24%, var(--orange) 24% 33%,
    transparent 33% 39%, #fff 39% 42%,
    transparent 42% 48%, var(--navy-2) 48%);
}
.hero .wrap { position: relative; }
h1 {
  max-width: 12ch; margin-bottom: 1.25rem;
  font: italic 800 clamp(3.2rem, 8.4vw, 7rem)/.88 var(--display);
  text-transform: uppercase; text-wrap: balance;
}
.lede { max-width: 52ch; margin-bottom: 2rem; color: var(--soft-on-dark); font-size: 1.2rem; }

.searchbar {
  display: grid; grid-template-columns: 1.3fr 1.1fr .9fr auto; align-items: stretch;
  max-width: 980px; padding: .5rem;
  background: #fff; color: var(--ink); border-radius: 12px;
}
.sb-field {
  display: grid; align-content: center; gap: .15rem; min-width: 0;
  padding: .55rem 1rem; border-right: 1px solid var(--line);
}
.sb-field:nth-child(3) { border-right: 0; }
.sb-field label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.sb-field input, .sb-field select {
  width: 100%; min-width: 0; padding: .15rem 0;
  border: 0; background: transparent;
  font-weight: 500; font-size: 1.05rem;
}
.sb-field input::placeholder { color: #8A93A6; }
.sb-field input:focus-visible, .sb-field select:focus-visible { outline-offset: 4px; border-radius: 4px; }
.btn-search { padding-inline: 1.6rem; font-size: 1.05rem; }

/* Catégories */
.categories { padding-block: 2rem 3.5rem; }
.categories .title { margin-bottom: 1.5rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.tile {
  display: grid; gap: .35rem; align-content: start; text-align: left;
  padding: 1.1rem; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s;
}
.tile:hover { border-color: var(--navy); }
.tile-icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: .6rem;
  background: var(--navy); color: var(--orange); border-radius: 10px;
}
.tile-icon .icon { width: 1.9rem; height: 1.9rem; }
.tile-name { font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.tile-desc { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.tile-count { margin-top: .4rem; font-size: .85rem; font-weight: 600; color: var(--orange-text); }
.tile[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tile[aria-pressed="true"] .tile-icon { background: var(--orange); color: var(--navy); }
.tile[aria-pressed="true"] .tile-desc { color: var(--soft-on-dark); }
.tile[aria-pressed="true"] .tile-count { color: #FFB38F; }

/* Événements */
.events { padding-block: 3.5rem 4.5rem; background: #fff; border-block: 1px solid var(--line); }
.events-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem;
}
.events-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; color: var(--muted); }
.events-meta .link-btn { color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  overflow: hidden; background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--navy); transform: translateY(-2px); }
.card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.cover {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
  color: #fff; background: linear-gradient(135deg, var(--ca), var(--cb));
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgb(255 255 255 / .1) 0 14px, transparent 14px 34px);
}
.cover .icon { position: relative; width: 5.5rem; height: 5.5rem; stroke-width: 2; }
.date {
  position: absolute; top: .9rem; left: .9rem;
  padding: .4rem .75rem; border-radius: 4px;
  background: #fff; color: var(--navy); text-align: center; line-height: 1;
  transform: skewX(-8deg);
}
.date > * { display: block; transform: skewX(8deg); }
.date small { font-size: .78rem; font-weight: 600; }
.date b { margin-block: .1rem; font: italic 800 2rem/1 var(--display); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: .25rem 1.1rem 1.1rem; }
.card-cat { display: flex; align-items: center; gap: .4rem; color: var(--orange-text); font-size: .9rem; font-weight: 600; }
.card h3 {
  margin: .35rem 0 .6rem;
  font: italic 800 1.55rem/1.05 var(--display); text-transform: uppercase;
}
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.card-place { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .95rem; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: auto; padding-top: 1rem;
}
.price { font-weight: 600; }
.go { display: inline-flex; align-items: center; gap: .3rem; color: var(--navy); font-weight: 600; font-size: .95rem; }
.empty { padding: 2rem 0 0; }
.empty p { max-width: 54ch; margin-bottom: 1rem; }

/* Publier en 3 étapes */
.how {
  position: relative; isolation: isolate; color: #fff;
  padding-block: 7rem;
  background: linear-gradient(#fff 50%, var(--bg) 50%);
}
.how::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  clip-path: polygon(0 3rem, 100% 0, 100% calc(100% - 3rem), 0 100%);
}
.how-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2.5rem;
}
.how-lede { max-width: 50ch; margin-top: .9rem; color: var(--soft-on-dark); font-size: 1.1rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-n { display: block; color: var(--orange); font: italic 800 5rem/1 var(--display); }
.steps h3 { margin: .25rem 0 .5rem; font: italic 800 1.7rem/1.05 var(--display); text-transform: uppercase; }
.steps p { max-width: 36ch; color: var(--soft-on-dark); }

/* Régions */
.regions { padding-block: 2rem 4rem; }
.regions .title { margin-bottom: 1.5rem; }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  padding: .6rem 1.05rem; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.pill:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Pied de page */
.checker {
  height: 32px;
  background: repeating-conic-gradient(var(--navy) 0 25%, #fff 0 50%) 0 0 / 32px 32px;
}
.site-footer { padding-block: 3rem; background: var(--navy); color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 4rem; }
.footer-grid p { max-width: 38ch; margin-top: .9rem; color: var(--soft-on-dark); }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.mock-note {
  margin-top: 2.5rem; padding-top: 1.1rem;
  border-top: 1px solid rgb(255 255 255 / .18);
  color: var(--soft-on-dark); font-size: .9rem;
}

/* Fenêtre d'ajout d'événement */
dialog {
  width: min(640px, 100% - 2rem); max-height: calc(100dvh - 2rem);
  padding: 0; overflow: auto;
  background: #fff; color: var(--ink);
  border: 0; border-radius: 12px;
}
dialog::backdrop { background: rgb(10 26 59 / .7); }
.dlg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; background: var(--navy); color: #fff;
}
.dlg-head h2 { font: italic 800 2rem/1 var(--display); text-transform: uppercase; }
.dlg-head .link-btn:focus-visible { outline-color: #FFC933; }
.dlg-body { padding: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .9rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; min-height: 2.9rem; padding: .6rem .8rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: 6px;
}
.form-grid textarea { min-height: 7rem; resize: vertical; }
.hint { margin-top: .35rem; color: var(--muted); font-size: .85rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; font-weight: 500; }
.form-grid .check input { flex: none; width: 1.15rem; min-height: 0; height: 1.15rem; margin-top: .2rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-foot p { max-width: 34ch; color: var(--muted); font-size: .9rem; }
.done { display: grid; justify-items: start; gap: 1rem; }
.done h3 { font: italic 800 1.9rem/1 var(--display); text-transform: uppercase; }

/* Adaptation */
@media (max-width: 900px) {
  .searchbar { grid-template-columns: 1fr; }
  .sb-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .sb-field:nth-child(3) { border-bottom: 0; }
  .btn-search { margin-top: .25rem; padding-block: 1rem; }
  .hero::before { inset: 0 0 0 82%; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .step-n { font-size: 3.5rem; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .login { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .tile, .pill { transition: none; }
  .card:hover { transform: none; }
}

/* Couleurs des catégories (fond des visuels) */
.cat-auto     { --ca: #B3121F; --cb: #E63946; }
.cat-moto     { --ca: #C24E00; --cb: #F58220; }
.cat-quad     { --ca: #1E6F5C; --cb: #2FA58A; }
.cat-truck    { --ca: #1F3F8F; --cb: #4A78D6; }
.cat-nautisme { --ca: #0B6E8A; --cb: #2BB3D1; }
.cat-aviation { --ca: #5B3FB0; --cb: #8D6FE0; }

/* ===== Fonctionnalités interactives v2 ===== */
.login { border: 0; background: transparent; color: #fff; cursor: pointer; }
.login span { display: inline-grid; place-items:center; min-width:1.35rem; height:1.35rem; padding:0 .25rem; margin-left:.2rem; border-radius:999px; background:var(--orange); color:var(--navy); font-size:.75rem; }
.quick-tools { padding: 1rem 0 3.5rem; background: var(--bg); }
.quick-tools-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.quick-card { display:flex; align-items:center; gap:1rem; padding:1.15rem; text-align:left; background:#fff; border:1.5px solid var(--line); border-radius:12px; cursor:pointer; transition:.15s; }
.quick-card:hover { border-color:var(--navy); transform:translateY(-2px); }
.quick-icon { display:grid; place-items:center; width:3rem; height:3rem; flex:none; border-radius:10px; background:var(--navy); color:var(--orange); font-size:1.5rem; font-weight:700; }
.quick-card strong,.quick-card small { display:block; }
.quick-card small { margin-top:.2rem; color:var(--muted); line-height:1.3; }
.featured { padding:4.5rem 0; background:#fff; border-block:1px solid var(--line); }
.section-kicker { color:var(--orange-text); font-weight:700; font-size:.8rem; letter-spacing:.12em; margin-bottom:.5rem; }
.featured-head { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin-bottom:1.6rem; }
.featured-head p,.calendar-sub { color:var(--muted); margin-top:.5rem; }
.featured-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.featured-item { min-height:210px; padding:1.4rem; border-radius:12px; color:#fff; background:linear-gradient(135deg,var(--navy),var(--navy-2)); position:relative; overflow:hidden; cursor:pointer; }
.featured-item::after { content:""; position:absolute; width:180px;height:180px;right:-70px;bottom:-90px;border-radius:50%;background:var(--orange);opacity:.9; }
.featured-item > * { position:relative; z-index:1; }
.featured-badge { display:inline-block; padding:.35rem .55rem; border-radius:5px; background:var(--orange); color:var(--navy); font-size:.75rem; font-weight:800; text-transform:uppercase; }
.featured-item h3 { margin:1.2rem 0 .55rem; max-width:14ch; font:italic 800 1.8rem/1 var(--display); text-transform:uppercase; }
.featured-item p { color:var(--soft-on-dark); }
.calendar-section { padding:4.5rem 0; background:var(--bg); border-block:1px solid var(--line); }
.calendar-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1rem; }
.calendar-day { background:#fff; border:1.5px solid var(--line); border-radius:12px; overflow:hidden; }
.calendar-day-head { padding:1rem; background:var(--navy); color:#fff; }
.calendar-day-head b { display:block; font:italic 800 1.8rem/1 var(--display); text-transform:uppercase; }
.calendar-events { padding:.8rem; display:grid; gap:.65rem; }
.calendar-event { padding:.8rem; border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.calendar-event:hover { border-color:var(--orange); }
.calendar-event strong { display:block; font-weight:700; }
.calendar-event small { color:var(--muted); }
.event-dialog { width:min(900px,calc(100% - 2rem)); }
.event-detail-hero { min-height:230px; padding:1.5rem; display:flex; flex-direction:column; justify-content:end; background:linear-gradient(135deg,var(--navy),var(--navy-2)); color:#fff; position:relative; overflow:hidden; }
.event-detail-hero::after { content:""; position:absolute; width:280px;height:280px;right:-100px;top:-100px;border-radius:50%;background:var(--orange);opacity:.9; }
.event-detail-hero > * { position:relative; z-index:1; }
.event-detail-hero h2 { max-width:15ch; margin-top:.8rem; font:italic 800 clamp(2.2rem,5vw,4rem)/.92 var(--display); text-transform:uppercase; }
.event-detail-content { padding:1.5rem; }
.detail-layout { display:grid; grid-template-columns:1.3fr .7fr; gap:1.5rem; }
.detail-box { padding:1rem; background:var(--bg); border:1px solid var(--line); border-radius:10px; }
.detail-box + .detail-box { margin-top:1rem; }
.detail-box h3 { margin-bottom:.55rem; font:italic 800 1.35rem/1 var(--display); text-transform:uppercase; }
.detail-meta { display:grid; gap:.55rem; }
.detail-meta div { display:flex; gap:.55rem; align-items:flex-start; }
.detail-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1rem; }
.favorite-active { background:var(--navy)!important; color:#fff!important; }
.verified { display:inline-flex; align-items:center; gap:.3rem; color:#087443; font-weight:700; font-size:.85rem; }
.organizer { display:flex; gap:.8rem; align-items:center; }
.organizer-avatar { display:grid; place-items:center; width:3rem;height:3rem;border-radius:50%;background:var(--orange);color:var(--navy);font-weight:800; }
.gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; }
.gallery div { aspect-ratio:16/10; border-radius:8px; background:linear-gradient(135deg,#233e78,#ff5b14); }
.alert-intro { color:var(--muted); margin-bottom:1.2rem; }
@media(max-width:900px){.quick-tools-grid,.featured-grid{grid-template-columns:1fr}.detail-layout{grid-template-columns:1fr}}
@media(max-width:560px){.featured-head{align-items:start;flex-direction:column}.gallery{grid-template-columns:1fr}.quick-card{align-items:flex-start}}

/* ===== Comptes / espace membre ===== */
.account-btn{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;border-radius:999px;padding:.72rem 1rem;font:600 14px Barlow,sans-serif;cursor:pointer;transition:.2s ease}.account-btn:hover,.account-btn.connected{background:#fff;color:#0A1A3B}.me-dialog{width:min(1080px,calc(100% - 28px));max-height:90vh;border:0;border-radius:24px;padding:0;background:#fff;color:#0A1A3B;box-shadow:0 30px 90px rgba(0,0,0,.35)}.me-dialog::backdrop{background:rgba(5,13,31,.72);backdrop-filter:blur(6px)}.me-dialog .dlg-head{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e8ebf1}.me-muted{color:#667085}.me-tabs{display:flex;gap:8px;margin:20px 0}.me-tabs button{border:1px solid #dfe4ec;background:#f7f8fa;color:#26334d;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}.me-tabs button.active{background:#0A1A3B;color:#fff;border-color:#0A1A3B}.me-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.me-form .full,.me-form>button,.me-form>.me-status{grid-column:1/-1}.me-form label{display:block;font-weight:700;font-size:14px;margin-bottom:7px}.me-form input,.me-form select,.me-form textarea{width:100%;border:1px solid #d8dee8;border-radius:12px;padding:12px 13px;background:#fff;color:#17233c;font:inherit;box-sizing:border-box}.me-form textarea{min-height:110px;resize:vertical}.me-form small{display:block;margin-top:6px;color:#667085}.me-status{min-height:20px;margin:0;color:#b33a17;font-size:14px}.me-space{padding-top:20px}.me-profile-head{display:flex;align-items:center;gap:14px;padding:0 0 22px;border-bottom:1px solid #e8ebf1}.me-profile-head h3{margin:0 0 3px}.me-profile-head .btn{margin-left:auto}.me-avatar{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:#0A1A3B;color:#fff;font-weight:800;font-size:20px;overflow:hidden;flex:0 0 auto}.me-avatar img{width:100%;height:100%;object-fit:cover}.me-space-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px;margin-top:20px}.me-panel{border:1px solid #e5e9f0;border-radius:18px;padding:20px;background:#fbfcfd}.me-panel h3{margin-top:0}.me-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.my-events{display:grid;gap:10px;margin-top:16px}.my-event{border:1px solid #e5e9f0;border-radius:14px;padding:14px;background:#fff;display:grid;grid-template-columns:1fr auto;gap:4px 12px}.my-event strong{font-size:15px}.my-event small{color:#667085}.my-event p{grid-column:1/-1;margin:5px 0 0;color:#9b3b1a;font-size:13px}.status{grid-row:1/3;grid-column:2;align-self:center;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:800}.status-pending{background:#fff3d6;color:#8b5a00}.status-approved{background:#dcfce7;color:#176b39}.status-rejected{background:#fee2e2;color:#9a2525}.me-toast{position:fixed;right:20px;bottom:20px;z-index:9999;max-width:min(420px,calc(100vw - 40px));background:#0A1A3B;color:#fff;border:1px solid rgba(255,255,255,.12);padding:14px 17px;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.25);font-weight:600}.me-dialog .dlg-body{overflow:auto}@media(max-width:820px){.me-space-grid{grid-template-columns:1fr}.me-form{grid-template-columns:1fr}.me-form .full,.me-form>button,.me-form>.me-status{grid-column:auto}.me-profile-head{align-items:flex-start;flex-wrap:wrap}.me-profile-head .btn{margin-left:0}.account-btn{display:none}}

.my-event-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}.link-btn.danger{color:#b42318}.admin-event{gap:8px}.admin-description{grid-column:1/-1!important;color:#475467!important;margin:8px 0!important;line-height:1.55}.me-toast.good{background:#0d6b45}.admin-open{margin-left:auto}@media(max-width:820px){.admin-open{margin-left:0}}
.auth-reset{justify-self:start!important;padding:0!important}

/* ===== Social / profile V3 ===== */
.dialog-x{width:42px;height:42px;border:1px solid #e4e8ef;border-radius:12px;background:#fff;color:#0A1A3B;display:grid;place-items:center;font-size:28px;line-height:1;cursor:pointer;transition:.18s ease}.dialog-x:hover{background:#0A1A3B;color:#fff;border-color:#0A1A3B}.me-dialog .dlg-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px}.me-dialog .dlg-head h2{font:italic 800 2rem/1 var(--display);text-transform:uppercase}.profile-dialog{width:min(1180px,calc(100% - 24px));max-height:min(92vh,920px)}.profile-dialog .dlg-body{padding:22px 24px 28px}.profile-hero{display:flex;align-items:center;gap:18px;padding:4px 0 22px;border-bottom:1px solid #e8ebf1}.profile-avatar-large{width:82px;height:82px;font-size:24px}.profile-identity{min-width:0}.profile-identity h3{font:italic 800 2rem/1 var(--display);text-transform:uppercase}.profile-identity>p{margin-top:5px}.profile-stats{display:flex;gap:22px;margin-top:12px}.profile-stats div{display:flex;align-items:baseline;gap:6px}.profile-stats strong{font-size:18px}.profile-stats span{font-size:12px;color:#667085}.profile-logout{margin-left:auto}.profile-tabs{display:flex;gap:6px;overflow:auto;padding:16px 0 18px;border-bottom:1px solid #e8ebf1}.profile-tabs button{white-space:nowrap;border:0;background:#f2f4f7;color:#475467;border-radius:999px;padding:10px 15px;font-weight:800;cursor:pointer}.profile-tabs button.active{background:#0A1A3B;color:#fff}.profile-panel-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:18px;padding-top:20px}.me-panel{box-shadow:0 8px 25px rgba(10,26,59,.04)}.profile-side-panel{background:linear-gradient(145deg,#0A1A3B,#132A5E);color:#fff;border:0}.profile-side-panel .me-muted{color:#c7d0e6}.profile-side-icon{width:48px;height:48px;border-radius:14px;background:#FF5B14;color:#0A1A3B;display:grid;place-items:center;font-size:30px;font-weight:900;margin-bottom:18px}.profile-side-links{display:grid;gap:8px;margin-top:20px}.profile-side-links button{display:flex;align-items:center;gap:12px;width:100%;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.06);color:#fff;border-radius:14px;padding:12px;text-align:left;cursor:pointer}.profile-side-links button:hover{background:rgba(255,255,255,.12)}.side-link-icon{width:34px;height:34px;border-radius:10px;background:#fff;color:#0A1A3B;display:grid;place-items:center;font-size:19px;font-weight:800;flex:none}.profile-side-links strong,.profile-side-links small{display:block}.profile-side-links small{margin-top:2px;color:#bfc9dd}.profile-list-panel{padding-top:20px}.panel-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.panel-title-row h3{font-size:1.15rem}.panel-title-row p{margin-top:3px}.social-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.social-card{display:grid;grid-template-columns:64px 1fr;align-items:center;gap:12px;border:1px solid #e5e9f0;border-radius:16px;background:#fff;padding:11px;cursor:pointer;transition:.18s ease}.social-card:hover{border-color:#0A1A3B;transform:translateY(-1px)}.social-card img,.social-card-placeholder{width:64px;height:64px;border-radius:14px;object-fit:cover}.social-card-placeholder{display:grid;place-items:center;background:#0A1A3B;color:#fff;font-weight:900}.social-card strong{display:block}.social-card p{margin:3px 0;color:#667085;font-size:13px}.social-card small{color:#98a2b3}.social-empty{padding:30px;border:1px dashed #d8dee8;border-radius:16px;text-align:center;color:#475467}.social-empty strong{display:block;color:#0A1A3B;margin-bottom:5px}.public-profile-dialog{width:min(700px,calc(100% - 24px))}.public-profile-loading{padding:50px;text-align:center;color:#667085}.public-profile-hero{display:grid;grid-template-columns:96px 1fr auto;gap:18px;align-items:center;padding:12px 0 22px}.public-avatar{width:96px;height:96px;border-radius:24px;object-fit:cover}.public-avatar-fallback{display:grid;place-items:center;background:#0A1A3B;color:#fff;font-size:26px;font-weight:900}.profile-kicker{font-size:12px;font-weight:800;color:#FF5B14;text-transform:uppercase;letter-spacing:.08em}.public-profile-hero h2{font:italic 800 2.4rem/.95 var(--display);text-transform:uppercase;margin-top:5px}.public-handle,.public-location{color:#667085;margin-top:5px}.public-profile-action{justify-self:end}.public-stats{display:flex;gap:32px;border-block:1px solid #e8ebf1;padding:16px 0;margin-bottom:18px}.public-stats div{display:grid}.public-stats strong{font-size:20px}.public-stats span{font-size:12px;color:#667085}.public-profile-content{color:#475467;line-height:1.7}.public-profile-content a{display:inline-flex;margin-top:15px;color:#0A1A3B;font-weight:800}.organizer-link{display:flex;align-items:center;gap:10px;border:0;background:none;padding:0;text-align:left;cursor:pointer}.organizer-link strong{display:block}.organizer-link .verified{display:block}.organizer-avatar-img{width:42px;height:42px;border-radius:50%;object-fit:cover}.admin-open{margin-left:auto}.me-dialog .my-events{max-height:430px;overflow:auto;padding-right:3px}@media(max-width:820px){.profile-dialog .dlg-body{padding:16px}.profile-hero{align-items:flex-start;flex-wrap:wrap}.profile-logout{margin-left:0}.profile-panel-grid{grid-template-columns:1fr}.social-list{grid-template-columns:1fr}.public-profile-hero{grid-template-columns:72px 1fr}.public-avatar{width:72px;height:72px;border-radius:18px}.public-profile-action{grid-column:1/-1;justify-self:start}.public-profile-hero h2{font-size:2rem}.profile-tabs{padding-bottom:12px}.me-dialog .dlg-head h2{font-size:1.6rem}}

/* ===== Communauté ===== */
.community{padding:76px 0;background:#f5f7fa;border-top:1px solid #e9edf3}
.community-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}
.community-head p{max-width:700px;color:#667085;margin:10px 0 0}
.community-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:20px}
.community-panel{background:#fff;border:1px solid #e2e7ee;border-radius:22px;padding:22px;box-shadow:0 12px 35px rgba(10,26,59,.05)}
.community-panel h3{margin:0;font-size:20px}.community-panel .panel-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.community-panel .panel-title-row p{margin:5px 0 0;color:#667085;font-size:14px}
.member-search{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:16px}.member-search input{min-width:0;border:1px solid #d8dee8;border-radius:13px;padding:13px 14px;font:inherit;color:#17233c;outline:none}.member-search input:focus{border-color:#0A1A3B;box-shadow:0 0 0 3px rgba(10,26,59,.08)}
.member-results,.top-members{display:grid;gap:9px}.member-result-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid #e7ebf1;border-radius:15px;padding:11px 12px;background:#fff;cursor:pointer;transition:.18s ease}.member-result-card:hover{transform:translateY(-1px);border-color:#cfd6e2;box-shadow:0 8px 20px rgba(10,26,59,.07)}
.member-avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;background:#0A1A3B;color:#fff;display:grid;place-items:center;font-weight:800;flex:0 0 auto}.member-avatar img{width:100%;height:100%;object-fit:cover}.member-avatar-fallback{width:100%;height:100%;display:grid;place-items:center}
.member-result-main{min-width:0;display:grid;gap:2px}.member-result-main strong{font-size:15px;color:#17233c}.member-result-main span{font-size:12px;color:#667085}.member-result-main small{font-size:12px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-result-main em{font-style:normal;color:#ff5b14;font-weight:800;font-size:12px;margin-top:2px}.member-arrow{font-size:22px;color:#98a2b3}.member-rank{width:30px;text-align:center;font:italic 800 17px/1 var(--display);color:#98a2b3;flex:0 0 auto}
.community-live{font-size:10px;letter-spacing:.12em;font-weight:900;color:#ff5b14;background:#fff1eb;border-radius:999px;padding:7px 9px;white-space:nowrap}.community-empty,.community-loading{padding:24px 12px;text-align:center;color:#667085}.community-empty strong{display:block;color:#17233c;margin-bottom:4px}.community-empty p{margin:0;font-size:13px}.community-loading{font-weight:700}
@media(max-width:900px){.community-grid{grid-template-columns:1fr}.community-head{display:block}}
@media(max-width:620px){.member-search{grid-template-columns:1fr}.community{padding:56px 0}.community-panel{padding:16px}.member-result-card{grid-template-columns:auto minmax(0,1fr) auto}.member-rank{width:24px}}
/* =========================================================
   HERO MOTOR'S EVENTS — VERSION AUTOMOBILE
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 720px;
  padding-block: 5rem 9rem;
  background:
    radial-gradient(
      circle at 76% 55%,
      rgba(255, 91, 20, .18),
      transparent 28%
    ),
    linear-gradient(
      115deg,
      #07142f 0%,
      #0A1A3B 48%,
      #0c2048 100%
    );
  color: #fff;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 4.5rem),
    0 100%
  );
}

/* Grandes bandes de vitesse */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background:
    linear-gradient(
      112deg,
      transparent 0 57%,
      rgba(255, 91, 20, .95) 57% 60%,
      transparent 60% 63%,
      rgba(255,255,255,.9) 63% 64%,
      transparent 64% 68%,
      rgba(255,255,255,.08) 68% 100%
    );

  opacity: .85;
}

/* Quadrillage très léger */

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(255,255,255,.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.035) 1px,
      transparent 1px
    );

  background-size: 70px 70px;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 35%,
    black 100%
  );
}

/* Forme orange derrière la voiture */

.hero-bg-shape {
  position: absolute;
  z-index: -2;
  width: 680px;
  height: 680px;
  right: -170px;
  top: 30px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255,91,20,.22) 0%,
      rgba(255,91,20,.08) 38%,
      transparent 70%
    );

  filter: blur(10px);
}

/* Contenu */

.hero-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 10;
  min-width: 0;
}

/* Petit label */

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;

  margin-bottom: 1.4rem;

  color: #ff8b5d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero-kicker span {
  width: 28px;
  height: 3px;
  display: block;
  background: var(--orange);
  transform: skewX(-20deg);
}

/* Titre */

.hero h1 {
  max-width: none;
  margin-bottom: 1.35rem;

  font:
    italic 800 clamp(2.8rem, 4.8vw, 5.5rem)/.86
    var(--display);

  letter-spacing: -.015em;
  text-transform: uppercase;
}

.hero h1 em {
  color: var(--orange);
  font-style: inherit;
}

/* Texte */

.hero .lede {
  max-width: 55ch;
  margin-bottom: 2.2rem;

  color: #cbd4e6;
  font-size: 1.18rem;
  line-height: 1.55;
}

/* Recherche */

.hero .searchbar {
  position: relative;
  z-index: 20;
  max-width: 980px;

  box-shadow:
    0 22px 60px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.08);
}

/* Voiture */

.hero-car {
  position: absolute;
  z-index: 3;
  width: min(850px, 64vw);
  right: -90px;
  bottom: 120px;
}

.hero-car img {
  position: relative;
  z-index: 3;

  display: block;
  width: 100%;
  height: auto;

  object-fit: contain;

  filter:
    drop-shadow(0 30px 30px rgba(0,0,0,.48))
    drop-shadow(0 0 35px rgba(255,91,20,.13));

  transform:
    perspective(1000px)
    rotateY(-7deg)
    rotateZ(-1deg);
}

/* Halo sous la voiture */

.hero-car-glow {
  position: absolute;
  z-index: 1;

  left: 12%;
  right: 5%;
  bottom: 8%;

  height: 130px;

  background:
    radial-gradient(
      ellipse,
      rgba(255,91,20,.30),
      transparent 68%
    );

  filter: blur(25px);
}

/* Fumée / traces de drift */

.hero-car::before {
  content: "";

  position: absolute;
  z-index: 0;

  left: -5%;
  bottom: 13%;

  width: 55%;
  height: 150px;

  background:
    radial-gradient(
      ellipse,
      rgba(215,222,234,.17),
      transparent 65%
    );

  filter: blur(25px);
  transform: rotate(-8deg);
}

/* Bas du hero */

.hero-bottom {
  position: absolute;
  z-index: 15;

  left: 0;
  right: 0;
  bottom: 0;

  padding-bottom: 1.8rem;
}

.hero-bottom-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-bottom strong {
  display: block;

  color: var(--orange);

  font:
    italic 800 1rem/1
    var(--display);

  letter-spacing: .08em;
}

.hero-bottom span {
  display: block;
  margin-top: .35rem;

  color: rgba(255,255,255,.62);
  font-size: .85rem;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.hero-scroll > span:first-child {
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.hero-scroll-line {
  width: 55px;
  height: 1px;
  margin: 0 !important;

  background: rgba(255,255,255,.45);
}

/* =========================================================
   PROCHAINS RASSOS
   ========================================================= */

.featured {
  position: relative;
  padding-top: 5.5rem;
}

.featured-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 1.25rem;
}

/* Cartes avec image */

.featured-item {
  min-height: 330px;
  padding: 0;

  overflow: hidden;
  position: relative;

  border-radius: 16px;
  background: var(--navy);

  cursor: pointer;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.featured-item:hover {
  transform: translateY(-5px);

  box-shadow:
    0 22px 50px rgba(10,26,59,.18);
}

/* Image de l'événement */

.featured-item-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .5s ease;
}

.featured-item:hover .featured-item-image {
  transform: scale(1.05);
}

/* Overlay */

.featured-item-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(5,12,27,.96) 0%,
      rgba(5,12,27,.60) 42%,
      rgba(5,12,27,.05) 78%
    );
}

/* Contenu */

.featured-item-content {
  position: absolute;
  z-index: 2;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 1.4rem;
}

.featured-item-content .featured-badge {
  margin-bottom: .7rem;
}

.featured-item-content h3 {
  margin: 0 0 .45rem;

  max-width: 16ch;

  font:
    italic 800 1.9rem/1
    var(--display);

  text-transform: uppercase;
}

.featured-item-content p {
  color: #d3dbea;
}


/* ===== Carte interactive des événements ===== */
.hero-map-panel {
  margin-top: 0;
  width: 100%;
  max-width: none;
  position: relative;
  z-index: 30;
}
.hero-map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
.hero-map-head h2 {
  margin-top: .25rem;
  color: #fff;
  font: italic 800 clamp(1.5rem, 3vw, 2.4rem)/.95 var(--display);
  text-transform: uppercase;
}
.hero-map-kicker {
  color: #ff8b5d;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.hero-map-stats {
  display: grid;
  min-width: 92px;
  padding: .55rem .8rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(5,15,35,.75);
  text-align: center;
  backdrop-filter: blur(8px);
}
.hero-map-stats strong { color: var(--orange); font-size: 1.35rem; line-height: 1; }
.hero-map-stats span { color: #d9e0ee; font-size: .72rem; }
.hero-map-wrap {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: #dfe4ea;
  box-shadow: 0 20px 55px rgba(0,0,0,.3);
}
.events-map {
  width: 100%;
  height: 390px;
  min-height: 300px;
  background: #dfe4ea;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  padding: .65rem .8rem;
  background: rgba(10,26,59,.97);
  color: #e9eef8;
  font-size: .72rem;
  font-weight: 700;
}
.map-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.map-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.map-dot.auto { background: #E63946; }
.map-dot.moto { background: #F58220; }
.map-dot.quad { background: #2FA58A; }
.map-dot.truck { background: #4E6FD8; }
.map-dot.nautisme { background: #2D9CDB; }
.map-dot.aviation { background: #9B59B6; }
.map-filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  margin-top: .75rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.97);
}
.map-filter { padding: .55rem .8rem; border-right: 1px solid #e1e5ec; }
.map-filter:last-child { border-right: 0; }
.map-filter label { display:block; font-size:.65rem; font-weight:800; text-transform:uppercase; color:#687389; letter-spacing:.08em; }
.map-filter input, .map-filter select { width:100%; border:0; outline:0; background:transparent; padding:.15rem 0; font-size:.9rem; }
.motor-map-marker { background: transparent !important; border: 0 !important; }
.motor-map-pin {
  display: block;
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
  position: relative;
}
.motor-map-pin::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  top: 6px; left: 6px;
  border-radius: 50%;
  background: #fff;
}
.motor-map-pin.cat-auto { background:#E63946; }
.motor-map-pin.cat-moto { background:#F58220; }
.motor-map-pin.cat-quad { background:#2FA58A; }
.motor-map-pin.cat-truck { background:#4E6FD8; }
.motor-map-pin.cat-nautisme { background:#2D9CDB; }
.motor-map-pin.cat-aviation { background:#9B59B6; }
.map-popup { display:grid; gap:.35rem; min-width:190px; }
.map-popup strong { font-size:1rem; line-height:1.15; }
.map-popup span { color:#667085; font-size:.82rem; }
.map-popup-cat { color:var(--orange) !important; font-size:.68rem !important; font-weight:800; text-transform:uppercase; }
.map-popup small { color:#8b5d00; font-size:.72rem; }
.map-popup button, .map-popup a {
  display:block; width:100%; margin-top:.2rem; padding:.55rem .7rem;
  border:1px solid var(--navy); border-radius:7px; background:var(--navy); color:#fff;
  text-align:center; text-decoration:none; font-weight:700; cursor:pointer;
}
.map-popup a { background:var(--orange); color:var(--navy); border-color:var(--orange); }
@media (max-width: 900px) {
  .hero-map-panel { max-width: 100%; }
}
@media (max-width: 600px) {
  .events-map { height: 330px; }
  .hero-map-head { align-items: flex-start; }
  .hero-map-stats { min-width: 76px; }
  .map-filters { grid-template-columns: 1fr; }
  .map-filter { border-right:0; border-bottom:1px solid #e1e5ec; }
  .map-filter:last-child { border-bottom:0; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

  .hero-copy {
    width: auto;
  }

  .hero-car {
    width: 62vw;
    right: -130px;
  }

}

@media (max-width: 900px) {

  .hero {
    min-height: 760px;
  }

  .hero-copy {
    width: 100%;
    max-width: 650px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 9vw, 5.5rem);
  }

  .hero-car {
    width: 620px;
    max-width: 80vw;

    right: -150px;
    bottom: 35px;

    opacity: .52;
  }

  .hero .searchbar {
    max-width: 680px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .hero {
    min-height: 850px;
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .hero .lede {
    font-size: 1rem;
  }

  .hero-car {
    width: 600px;
    max-width: none;

    right: -230px;
    bottom: 65px;

    opacity: .38;
  }

  .hero-bottom {
    padding-bottom: 1.5rem;
  }

  .hero-scroll {
    display: none;
  }


}

/* =========================================================
   IMAGES DES ÉVÉNEMENTS (cartes, à la une, fiche détaillée)
   ========================================================= */
.cover.has-img { background: var(--navy); }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-img::before { z-index: 1; background: linear-gradient(to bottom, rgb(10 26 59 / .45), transparent 50%); }
.cover.has-img .date { z-index: 2; }

.featured-item:has(.featured-item-image)::after { display: none; }
.featured-item-plain { position: relative; z-index: 1; height: 100%; min-height: 330px; padding: 1.4rem; display: flex; flex-direction: column; justify-content: flex-end; }
.featured-item-plain h3 { margin: 1rem 0 .45rem; }

.event-detail-hero.has-img::after { display: none; }
.event-detail-hero.has-img > .event-detail-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.event-detail-hero.has-img > .event-detail-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgb(5 12 27 / .92), rgb(5 12 27 / .25) 70%); }
.detail-poster { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 8px; background: #fff; }

.img-preview { display: block; max-width: 100%; max-height: 180px; margin-top: .6rem; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }

/* Le bouton « Compte » restait masqué sur mobile : impossible de se connecter */
@media (max-width: 820px) {
  .account-btn { display: inline-flex; padding: .55rem .85rem; font-size: 13px; }
}

/* =========================================================
   MOBILE — affichage plus compact et agréable
   ========================================================= */

@media (max-width: 600px) {
  .wrap { width: min(100% - 1.25rem, 1240px); }

  /* Header plus léger */
  .site-header .bar { padding-block: .8rem; gap: .5rem; }
  .site-header .brand { font-size: 1.35rem; }
  .account-btn { padding: .55rem .75rem !important; }

  /* Hero : moins de hauteur inutile sur téléphone */
  .hero {
    min-height: auto;
    padding: 2.4rem 0 4.5rem;
    clip-path: polygon(0 0,100% 0,100% calc(100% - 1.5rem),0 100%);
  }
  .hero::before { inset: 0 0 0 68%; opacity: .7; }
  .hero-copy { position: relative; z-index: 2; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); max-width: 8ch; margin-bottom: 1rem; }
  .hero .lede { max-width: 34ch; font-size: .95rem; line-height: 1.45; margin-bottom: 1.25rem; }

  /* Recherche : une seule colonne, plus compacte */
  .hero .searchbar { padding: .4rem; border-radius: 10px; }
  .hero .sb-field { padding: .45rem .75rem; }
  .hero .sb-field label { font-size: .72rem; }
  .hero .sb-field input,
  .hero .sb-field select { font-size: .95rem; }
  .hero .btn-search { min-height: 3rem; margin-top: .2rem; }

  .hero-car { width: 500px; right: -245px; bottom: 25px; opacity: .24; }
  .hero-bottom { display: none; }

  /* Outils rapides : deux cartes compactes sur une ligne, la 3e en dessous */
  .quick-tools { padding: .75rem 0 2rem; }
  .quick-tools-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
  .quick-card { align-items: center; min-height: 78px; padding: .8rem; gap: .65rem; border-radius: 10px; }
  .quick-card:last-child { grid-column: 1 / -1; }
  .quick-icon { width: 2.35rem; height: 2.35rem; border-radius: 8px; font-size: 1.2rem; }
  .quick-card strong { font-size: .88rem; }
  .quick-card small { display: none; }

  /* À la une : cartes horizontales plus courtes */
  .featured { padding: 2.75rem 0; }
  .featured-head { gap: .7rem; margin-bottom: 1rem; }
  .featured-head p { font-size: .9rem; }
  .featured-head .link-btn { font-size: .85rem; }
  .featured-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem; padding-bottom: .35rem; scrollbar-width: none; }
  .featured-grid::-webkit-scrollbar { display: none; }
  .featured-item { flex: 0 0 84%; min-height: 190px; scroll-snap-align: start; padding: 1rem; border-radius: 10px; }
  .featured-item h3 { margin: .75rem 0 .35rem; font-size: 1.5rem; }

  /* Catégories : défilement horizontal au lieu d'une longue colonne */
  .categories { padding-block: 2rem 2.5rem; }
  .categories .title { margin-bottom: 1rem; font-size: 2.1rem; }
  .tiles { display: flex; overflow-x: auto; gap: .7rem; padding-bottom: .35rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 72%; scroll-snap-align: start; padding: .9rem; }
  .tile-icon { width: 2.7rem; height: 2.7rem; margin-bottom: .35rem; }
  .tile-icon .icon { width: 1.55rem; height: 1.55rem; }
  .tile-desc { font-size: .82rem; }

  /* Événements : cartes compactes (voir la fin du fichier) */
  .events { padding-block: 2.5rem 3rem; }
  .events-head { align-items: flex-start; gap: .55rem; margin-bottom: 1rem; }
  .events-head .title { font-size: 2.1rem; }
  .events-meta { width: 100%; justify-content: space-between; font-size: .85rem; }
  .cards { grid-template-columns: 1fr; gap: .85rem; }
  .card { border-radius: 10px; }
  .card .cover { aspect-ratio: 16 / 8.5; }
  .cover .icon { width: 3.8rem; height: 3.8rem; }
  .date { top: .65rem; left: .65rem; padding: .3rem .55rem; }
  .date b { font-size: 1.55rem; }
  .card-body { padding: .15rem .85rem .85rem; }
  .card h3 { font-size: 1.3rem; margin: .3rem 0 .45rem; }
  .card-place { font-size: .85rem; }
  .card-foot { padding-top: .7rem; }

  /* Les étapes deviennent plus respirantes */
  .how { padding-block: 4.5rem; }
  .how-head { margin-bottom: 1.75rem; }
  .how .title { font-size: 2.2rem; }
  .steps { gap: 1.25rem; }
  .step-n { font-size: 3rem; }

  /* Régions : bandeau horizontal */
  .regions { padding-block: 2rem 3rem; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .3rem; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; padding: .5rem .85rem; font-size: .9rem; }

  /* Dialogues adaptés aux petits écrans */
  dialog,
  .event-dialog,
  .me-dialog,
  .profile-dialog,
  .public-profile-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); border-radius: 14px; }
  .dlg-head { padding: 1rem; }
  .dlg-body { padding: 1rem; }
}

/* =========================================================
   ACCUEIL — lien vers la liste complète
   (l'accueil n'affiche qu'un aperçu : voir script.js)
   ========================================================= */
.all-events-link {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: fit-content; margin: 1.75rem auto 0; padding: .9rem 1.4rem;
  border: 2px solid var(--navy); border-radius: 8px;
  color: var(--navy); font-weight: 700; text-decoration: none;
  transition: background .15s, color .15s;
}
.all-events-link:hover { background: var(--navy); color: #fff; }
@media (max-width: 600px) {
  .all-events-link { width: 100%; margin-top: 1.1rem; }
}

/* =========================================================
   NAVIGATION SUR TÉLÉPHONE
   Le menu était masqué : on le garde en une ligne défilante.
   ========================================================= */
.main-nav a[aria-current="page"] {
  text-decoration: underline; text-underline-offset: 6px;
  text-decoration-color: var(--orange); text-decoration-thickness: 3px;
}
@media (max-width: 760px) {
  .site-header .bar { flex-wrap: wrap; gap: .25rem .5rem; padding-bottom: 0; }
  .site-header .main-nav {
    display: block; order: 3; flex: 0 0 100%; margin: 0;
    overflow-x: auto; scrollbar-width: none;
  }
  .site-header .main-nav::-webkit-scrollbar { display: none; }
  .site-header .main-nav ul { gap: 1.4rem; white-space: nowrap; }
  .site-header .main-nav a { display: block; padding: .5rem 0 .75rem; font-size: .95rem; color: var(--soft-on-dark); }
  .site-header .main-nav a[aria-current="page"] { color: #fff; }
}

/* =========================================================
   PAGE ÉVÉNEMENTS
   ========================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body:has(dialog[open]) { overflow: hidden; }
.events-page #favoritesBtn,
.events-page #alertsBtn { display: none !important; }
.cat-autre { --ca: #132A5E; --cb: #3A5CA8; }

/* Bandeau de titre (remplace le grand hero de l'accueil) */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: 2.75rem 5rem;
  background: linear-gradient(115deg, #07142f 0%, var(--navy) 48%, #0c2048 100%);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.25rem), 0 100%);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(112deg,
    transparent 0 70%, rgb(255 91 20 / .95) 70% 73%,
    transparent 73% 75.5%, rgb(255 255 255 / .9) 75.5% 76.3%,
    transparent 76.3% 80%, rgb(255 255 255 / .07) 80% 100%);
}
.page-head h1 {
  max-width: none; margin: 0 0 .7rem;
  font: italic 800 clamp(2.8rem, 9vw, 4.75rem)/.88 var(--display);
  text-transform: uppercase; text-wrap: balance;
}
.page-head .lede { max-width: 46ch; margin: 0; font-size: 1.1rem; text-wrap: balance; }

/* Recherche + filtres */
.finder { position: relative; z-index: 2; margin-top: -1.9rem; padding-bottom: 1.25rem; }
.finder-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem;
  padding: .45rem; background: #fff; border-radius: 12px;
  box-shadow: 0 14px 40px rgb(10 26 59 / .16), 0 0 0 1px var(--line);
}
.finder-search {
  display: flex; align-items: center; gap: .6rem; min-width: 0;
  padding-inline: .75rem .4rem; border-radius: 8px; cursor: text;
}
.finder-search .icon { color: var(--muted); }
.finder-search input {
  flex: 1; min-width: 0; height: 3rem; border: 0; background: transparent; outline: none;
  font-size: 1rem;                                   /* 16 px : évite le zoom automatique sur iPhone */
}
.finder-search input::placeholder { color: #8A93A6; }
.finder-search:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.finder-toggle {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.9rem; padding: 0 .95rem;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
  font-weight: 600; cursor: pointer;
}
.finder-toggle[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.finder-badge {
  display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem;
  border-radius: 999px; background: var(--orange); color: var(--navy); font-size: .75rem; font-weight: 800;
}
.finder-panel {
  display: none; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: .75rem;
  padding: .7rem .4rem .4rem; border-top: 1px solid var(--line);
}
.finder-bar.is-open .finder-panel { display: grid; }
.finder-field { min-width: 0; }
.finder-field label { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .78rem; font-weight: 600; }
.finder-field select {
  width: 100%; min-height: 2.9rem; padding: .55rem .6rem;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-size: 1rem;
}

/* Catégories : une rangée qui défile sur téléphone */
.chips {
  display: flex; gap: .5rem; margin-top: .85rem; padding-bottom: .25rem;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 2.6rem; padding: .35rem 1rem; scroll-snap-align: start;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip .icon { width: 1.3rem; height: 1.3rem; stroke-width: 2.6; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"] .icon { color: var(--orange); }

/* Résultats */
.events-page .events { padding-block: .75rem 4rem; background: transparent; border: 0; }
.events-page .events-head { align-items: center; margin-bottom: 1rem; }
.results-count { min-height: 1.5em; font-weight: 600; }
.events-page .events-head .link-btn { color: var(--navy); }
.card-cat .card-sub { color: var(--muted); font-weight: 500; }
.events-page .card h3 { overflow-wrap: anywhere; }
.events-page .empty {
  margin-top: 1rem; padding: 1.5rem; background: #fff;
  border: 1.5px dashed var(--line); border-radius: 12px;
}
.more-wrap { display: flex; justify-content: center; margin-top: 1.75rem; }
.more-wrap .btn { min-width: 16rem; }
.more-wrap .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }

/* Chargement */
.is-skeleton { pointer-events: none; }
.is-skeleton .cover { background: #E4E8F1; clip-path: none; }
.is-skeleton .cover::before { display: none; }
.sk-line { display: block; height: .9rem; margin: .55rem 0; border-radius: 4px; background: #E4E8F1; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w90 { width: 90%; }
@media (prefers-reduced-motion: no-preference) {
  .is-skeleton { animation: sk-pulse 1.3s ease-in-out infinite; }
  @keyframes sk-pulse { 50% { opacity: .5; } }
}

/* Fiche détaillée */
.event-detail { position: relative; }
.event-detail .dialog-x { position: absolute; top: .8rem; right: .8rem; z-index: 5; border-color: transparent; }
.event-detail-hero { padding-top: 4rem; }
.event-detail-hero .featured-badge { align-self: flex-start; }
.event-detail-hero h2 { max-width: 20ch; font-size: clamp(2rem, 6.5vw, 3.6rem); overflow-wrap: anywhere; }
.detail-desc { white-space: pre-line; overflow-wrap: anywhere; }
.detail-meta div { align-items: baseline; }
.detail-meta strong { flex: 0 0 4.6rem; }
.detail-meta span { min-width: 0; overflow-wrap: anywhere; }
.detail-actions .btn { flex: 1 1 auto; }
@media (max-width: 900px) {
  .detail-side { order: -1; }                       /* sur téléphone : date et lieu avant la description */
  .detail-layout { gap: 1rem; }
}

/* Ordinateur : recherche, région et date sur une seule ligne */
@media (min-width: 601px) {
  .finder-bar { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .finder-toggle { display: none; }
  .finder-panel { display: contents; }
  .finder-field { padding: .4rem 1rem; border-left: 1px solid var(--line); }
  .finder-field select { min-height: 0; padding: .15rem 0; border: 0; font-weight: 500; }
}
@media (min-width: 901px) {
  .chips { flex-wrap: wrap; overflow: visible; }
}

/* Petits écrans : les deux listes déroulantes l'une sous l'autre (« 30 prochains jours » était coupé) */
@media (max-width: 440px) {
  .finder-panel { grid-template-columns: 1fr; }
}

/* Téléphone : cartes en liste, lisibles d'un coup d'œil (accueil et page Événements) */
@media (max-width: 600px) {
  .page-head { padding-block: 1.9rem 4.1rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.5rem), 0 100%); }
  .page-head::before { background: linear-gradient(112deg,
    transparent 0 82%, rgb(255 91 20 / .95) 82% 85%,
    transparent 85% 87%, rgb(255 255 255 / .9) 87% 88%, transparent 88%); }
  .page-head .lede { font-size: 1rem; max-width: 30ch; }
  .finder { margin-top: -1.6rem; }

  .cards { gap: .7rem; }
  .card { display: grid; grid-template-columns: 5.75rem minmax(0, 1fr); border-radius: 12px; }
  .card:hover { transform: none; }
  .card .cover {
    display: grid; place-items: center; aspect-ratio: auto; min-height: 7.25rem; clip-path: none;
  }
  .card .cover .icon { display: none; }
  .card .date { position: relative; top: auto; left: auto; }
  .card .cover.has-img .date { position: absolute; top: .4rem; left: .4rem; }
  .card-body { padding: .75rem .85rem .7rem; }
  .card h3 {
    margin: .15rem 0 .3rem; font-size: 1.3rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card-place { font-size: .85rem; }
  .card-foot { padding-top: .5rem; font-size: .9rem; }
  .card .go { margin-left: auto; white-space: nowrap; }
  article.card .card-foot .price { display: none; }   /* accueil : « Voir organisateur » n'apporte rien sur petit écran */

  .more-wrap .btn { width: 100%; min-width: 0; }
  .event-detail-hero { min-height: 170px; padding: 3.75rem 1.1rem 1.1rem; }
  .event-detail-content { padding: 1rem; }
  .detail-actions .btn { width: 100%; }
}
/* Participation aux événements */
.card-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-left:auto}
.attend-btn,.attendees-btn{padding:.62rem .85rem;font-size:.9rem}
.attendance-active{background:var(--navy)!important;color:#fff!important;border-color:var(--navy)!important}
.card-foot .go{display:inline-flex;align-items:center;gap:.25rem}
.attendees-list{display:grid;gap:.6rem;margin-top:1rem}
.attendee-row{display:flex;align-items:center;gap:.8rem;width:100%;padding:.7rem;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left;cursor:pointer}
.attendee-row:hover{border-color:var(--navy)}
.attendee-row>span:nth-child(2){display:grid;gap:.1rem}
.attendee-row small{color:var(--muted)}
.attendee-avatar,.attendee-avatar img,.attendee-avatar-fallback{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;overflow:hidden;flex:none}
.attendee-avatar img{object-fit:cover}
.attendee-avatar-fallback{background:var(--navy);color:var(--orange);font-weight:700}
.attendees-count{font-weight:600;color:var(--muted)}
@media (max-width:600px){.card-actions{width:100%;margin-left:0}.card-actions .btn{flex:1}.card-foot{align-items:flex-start}}
/* Cartes événements : même rendu partout (accueil = page Événements) */
.events { background: transparent; border: 0; }
.card h3 { overflow-wrap: anywhere; }
.empty {
  margin-top: 1rem; padding: 1.5rem; background: #fff;
  border: 1.5px dashed var(--line); border-radius: 12px;
}
/* =========================================================
   COMPTEUR DE VUES — CARTES ÉVÉNEMENTS
   ========================================================= */

.cover {
  position: relative;
  overflow: hidden;
}

/* Compteur de vues */
.views-badge {
  position: absolute !important;

  /* BAS DROITE */
  right: 12px !important;
  bottom: 12px !important;
  left: auto !important;
  top: auto !important;

  z-index: 10;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-width: 42px;
  height: 28px;
  padding: 0 9px;

  border-radius: 999px;

  /* Fond sombre légèrement transparent */
  background: rgba(8, 15, 28, 0.78);

  /* Petit effet verre */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  /* Bordure discrète */
  border: 1px solid rgba(255, 255, 255, 0.18);

  color: #fff;

  font-family: Barlow, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25);

  pointer-events: none;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

/* L'œil */
.views-badge .icon {
  width: 15px !important;
  height: 15px !important;

  flex: 0 0 15px;

  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;

  opacity: 0.95;
}

/* Nombre */
.views-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 10px;

  font-size: 13px;
  font-weight: 700;
}

/* Petit effet au survol de la carte */
.card:hover .views-badge {
  transform: translateY(-2px);

  background: rgba(8, 15, 28, 0.9);

  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   VERSION DES CARTES "À LA UNE"
   ========================================================= */

.featured-item {
  position: relative;
}

.featured-item .views-badge {
  right: 12px !important;
  bottom: 12px !important;
  top: auto !important;
  left: auto !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .views-badge {
    right: 9px !important;
    bottom: 9px !important;

    min-width: 38px;
    height: 26px;

    padding: 0 8px;

    font-size: 12px;
  }

  .views-badge .icon {
    width: 14px !important;
    height: 14px !important;
  }

  .views-badge span {
    font-size: 12px;
  }
}
/* =========================================================
   HERO — MOBILE FIX
   ========================================================= */

@media (max-width: 600px) {

  /* Conteneur général */
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding: 2.2rem 0 3.5rem !important;

    /* découpe légère en bas */
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - 1.2rem),
      0 100%
    );

    overflow: hidden;
  }

  /* Fond / bandes de vitesse */
  .hero::before {
    inset: 0 !important;
    opacity: .45;
    background:
      linear-gradient(
        115deg,
        transparent 0 63%,
        rgba(255,91,20,.8) 63% 66%,
        transparent 66% 69%,
        rgba(255,255,255,.7) 69% 70%,
        transparent 70% 74%,
        rgba(255,255,255,.05) 74% 100%
      );
  }

  .hero::after {
    background-size: 45px 45px;
    opacity: .5;
    mask-image: linear-gradient(
      to right,
      transparent,
      black 15%,
      black 100%
    );
  }

  /* Contenu */
  .hero-content {
    display: block !important;
    position: relative;
    z-index: 10;
  }

  .hero-copy {
    width: 100% !important;
    max-width: none !important;
    position: relative;
    z-index: 20;
  }

  /* Petit texte au-dessus */
  .hero-kicker {
    margin-bottom: 1rem;
    font-size: .68rem;
    letter-spacing: .11em;
  }

  .hero-kicker span {
    width: 22px;
  }

  /* TITRE */
  .hero h1 {
    width: 100%;
    max-width: 9ch !important;

    font-size: clamp(2.9rem, 14vw, 4.1rem) !important;
    line-height: .86 !important;

    letter-spacing: -.025em;
    margin-bottom: 1rem;
  }

  /* Description */
  .hero .lede {
    width: 100%;
    max-width: 31ch !important;

    font-size: .94rem !important;
    line-height: 1.45;
    margin-bottom: 1.25rem !important;
  }

  /* Barre de recherche */
  .hero .searchbar {
    width: 100%;
    max-width: none !important;

    display: grid;
    grid-template-columns: 1fr !important;

    padding: .35rem;
    border-radius: 12px;

    position: relative;
    z-index: 30;

    box-shadow:
      0 15px 35px rgba(0,0,0,.28),
      0 0 0 1px rgba(255,255,255,.08);
  }

  .hero .sb-field {
    width: 100%;
    min-width: 0;

    padding: .55rem .7rem;

    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .hero .sb-field:last-of-type {
    border-bottom: 0;
  }

  .hero .sb-field label {
    font-size: .68rem;
  }

  .hero .sb-field input,
  .hero .sb-field select {
    width: 100%;
    min-width: 0;
    font-size: .92rem;
  }

  .hero .btn-search {
    width: 100%;
    min-height: 3rem;

    margin-top: .25rem;
    padding: .8rem 1rem;

    font-size: .95rem;
  }

  /* =========================
     VOITURE — ARRIÈRE-PLAN
     ========================= */

  .hero-car {
    width: 430px !important;
    max-width: none !important;

    right: -190px !important;
    bottom: 5px !important;

    opacity: .18 !important;

    z-index: 1 !important;

    pointer-events: none;
  }

  .hero-car img {
    width: 100%;
    transform:
      perspective(1000px)
      rotateY(-7deg)
      rotateZ(-1deg);
  }

  /* Halo */
  .hero-car-glow {
    opacity: .35;
    bottom: 5%;
    height: 90px;
  }

  /* Fumée */
  .hero-car::before {
    opacity: .35;
  }

  /* On cache les infos du bas sur téléphone */
  .hero-bottom {
    display: none !important;
  }
}


/* Très petits téléphones */
@media (max-width: 380px) {

  .hero {
    padding-top: 1.8rem !important;
    padding-bottom: 3rem !important;
  }

  .hero h1 {
    font-size: 2.8rem !important;
    max-width: 8ch !important;
  }

  .hero .lede {
    font-size: .88rem !important;
  }

  .hero-car {
    width: 360px !important;
    right: -165px !important;
    bottom: 0 !important;
    opacity: .14 !important;
  }

}
/* =========================================================
   HERO MOBILE — CENTRAGE
   ========================================================= */

@media (max-width: 600px) {

  .hero-content {
    text-align: center !important;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
  }

  .hero-kicker {
    justify-content: center;
    text-align: center;
  }

  .hero h1 {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    max-width: 10ch !important;
  }

  .hero .lede {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .hero .searchbar {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left;
  }
}