/* Page publique d'une montée (autonome, sans en-tête ni pied de page du site). */
:root {
	--page: #193A38;
	--page-rgb: 25,58,56;
	--deep: #132525;
	--deep-rgb: 19,37,37;
	--field: #102221;
	--line: rgba(255, 255, 255, .1);
	--line-strong: rgba(255, 255, 255, .2);
	--title: var(--title);
	--text: #DDE4E1;
	--muted: #A9B8B5;
	--danger: #ff7a6b;
	--radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hubm-public-page { margin: 0; background: var(--page); color: var(--text); font: 16px/1.65 "Albert Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.hubm-public-page h1, .hubm-public-page h2, .hubm-public-page h3 { color: var(--title); margin: 0 0 .5em; line-height: 1.1; font-weight: 800; }
.hubm-public-page h1 { font-size: clamp(2rem, 6vw, 4.6rem); text-transform: uppercase; letter-spacing: -.01em; }
.hubm-public-page h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; }
.hubm-public-page h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.hubm-public-page p { margin: 0 0 1em; }
.hubm-public-page a { color: var(--accent-text); }
.hubm-public-page img { max-width: 100%; height: auto; }
.hubm-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hubm-section { padding-top: 56px; padding-bottom: 56px; }
.hubm-kicker { color: var(--accent-text) !important; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .7em !important; }

.hubm-preview-bar { background: #ffc850; color: #111; text-align: center; padding: 10px 16px; font-weight: 600; font-size: .9rem; }
.hubm-preview-bar a { color: #111; }
.hubm-pb-short { display: none; }
@media (max-width: 640px) {
	.hubm-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 36px; padding: 0 16px; font-size: .8rem; text-align: left; white-space: nowrap; }
	.hubm-pb-long { display: none; }
	.hubm-pb-short { display: inline; }
	.hubm-preview-bar + .hubm-topbar { top: 36px; }
}

/* Barre du haut */
.hubm-topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 18px 0; }
.hubm-preview-bar + .hubm-topbar { top: 44px; }
.hubm-topbar .hubm-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hubm-topbar-brand { display: flex; align-items: center; gap: 14px; color: var(--title) !important; text-decoration: none; font-weight: 700; line-height: 1.15; font-size: .95rem; }
.hubm-topbar-brand img { height: 46px; width: auto; }
.hubm-topbar-brand small { font-weight: 400; color: var(--text); font-size: .78rem; }

/* Boutons */
.hubm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; padding: 15px 28px; border-radius: 999px; text-decoration: none; cursor: pointer; transition: filter .2s, background .2s, border-color .2s, color .2s; line-height: 1.2; }
.hubm-btn--accent { background: var(--accent); color: var(--on-accent) !important; }
.hubm-btn--accent:hover { filter: brightness(1.08); }
.hubm-btn--ghost { background: rgba(var(--deep-rgb), .45); color: var(--title) !important; border-color: var(--line-strong); }
.hubm-btn--ghost:hover { border-color: var(--accent-text); color: var(--accent-text) !important; }
.hubm-btn--dark { background: var(--ink); color: var(--title) !important; }
.hubm-btn--sm { padding: 10px 18px; font-size: .78rem; }
.hubm-btn--block { width: 100%; }
.hubm-btn:disabled { opacity: .6; cursor: wait; }

/* Hero */
.hubm-hero { position: relative; display: flex; align-items: flex-end; min-height: min(86vh, 780px); padding: 150px 0 56px; overflow: hidden; background: var(--deep); }
.hubm-hero::before { content: ""; position: absolute; inset: 0; background: var(--cover, none) center 55% / cover no-repeat; }
.hubm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--page-rgb), .7) 0%, rgba(var(--page-rgb), .15) 30%, rgba(var(--page-rgb), .75) 72%, var(--page) 100%), linear-gradient(90deg, rgba(var(--deep-rgb), .75), rgba(var(--deep-rgb), 0) 65%); }
.hubm-hero > .hubm-wrap { position: relative; z-index: 1; }
.hubm-hero h1 { max-width: 920px; text-shadow: 0 2px 30px rgba(var(--deep-rgb), .75); }
.hubm-hero .hubm-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(var(--deep-rgb), .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-strong); letter-spacing: .12em; }
.hubm-hero .hubm-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hubm-hero .hubm-kicker:empty { display: none; }
.hubm-d-short { display: none; }
@media (max-width: 640px) { .hubm-d-long { display: none; } .hubm-d-short { display: inline; } .hubm-hero .hubm-kicker { letter-spacing: .08em; font-size: .72rem; } }
.hubm-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 22px 0 0; padding: 0; color: var(--title); font-size: 1rem; text-shadow: 0 1px 12px rgba(var(--deep-rgb), .9); }
.hubm-meta li { display: inline-flex; align-items: center; gap: 9px; }
.hubm-meta svg { color: var(--accent-text); flex: none; }
.hubm-meta strong { font-weight: 700; }
.hubm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 30px 0 22px; align-items: center; }
.hubm-hero-note { font-size: .9rem; }
.hubm-status { display: inline-flex; align-items: center; gap: 10px; color: var(--title); font-weight: 600; text-shadow: 0 1px 12px rgba(var(--deep-rgb), .9); }
.hubm-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(var(--deep-rgb), .5); flex: none; }
.hubm-hero-link { display: inline-flex; align-items: center; gap: 8px; color: var(--title) !important; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 5px; text-shadow: 0 1px 12px rgba(var(--deep-rgb), .9); }
.hubm-hero-link svg { color: var(--accent-text); }
.hubm-hero-link:hover { color: var(--accent-text) !important; text-decoration-color: currentColor; }
.hubm-socials { display: flex; flex-wrap: wrap; gap: 6px; }
.hubm-social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--title) !important; text-decoration: none; background: rgba(var(--deep-rgb), .5); border: 1.5px solid color-mix(in srgb, var(--title) 38%, transparent); box-sizing: border-box; transition: background .2s, color .2s, border-color .2s; }
.hubm-social svg { display: block; }
.hubm-social:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }

/* Présentation */
.hubm-intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.hubm-content { font-size: 1.1rem; line-height: 1.75; }
.hubm-pratique { margin-top: 28px; padding: 22px 26px; border-left: 3px solid var(--accent-text); background: var(--deep); border-radius: 0 var(--radius) var(--radius) 0; }
.hubm-pratique p { margin: 0; }
.hubm-facts { background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px; position: sticky; top: 24px; }
.hubm-facts div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.hubm-facts div:last-child { border-bottom: 0; }
.hubm-facts span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.hubm-facts strong { color: var(--title); font-weight: 600; overflow-wrap: anywhere; }
.hubm-facts .hubm-facts-link { display: block; width: fit-content; margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hubm-facts .hubm-facts-link:hover { text-decoration-thickness: 2px; }
.hubm-facts a { color: var(--title); }

/* Galerie */
.hubm-section.hubm-gallery-section { padding-top: 8px; padding-bottom: 16px; }
.hubm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hubm-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--deep); }
.hubm-gallery a, .hubm-gallery img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.hubm-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.hubm-gallery a:hover img { transform: scale(1.05); }
.hubm-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(8, 8, 8, .94); overscroll-behavior: contain; touch-action: none; animation: hubm-fade .18s ease-out; }
@keyframes hubm-fade { from { opacity: 0; } to { opacity: 1; } }
.hubm-lb-stage { position: absolute; inset: 64px 72px; display: flex; align-items: center; justify-content: center; }
.hubm-lb-stage img { max-width: 100%; max-height: 100%; border-radius: 8px; opacity: 0; transition: opacity .2s; user-select: none; -webkit-user-drag: none; }
.hubm-lb-stage img.is-in { opacity: 1; }
.hubm-lb-close, .hubm-lb-nav { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; cursor: pointer; transition: background .15s; }
.hubm-lb-close:hover, .hubm-lb-nav:hover { background: rgba(255, 255, 255, .25); }
.hubm-lb-close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 1.1rem; }
.hubm-lb-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 2rem; line-height: 1; padding-bottom: 4px; }
.hubm-lb-prev { left: 12px; }
.hubm-lb-next { right: 12px; }
.hubm-lb-count { position: absolute; top: 24px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: .9rem; font-weight: 600; pointer-events: none; }
@media (max-width: 640px) {
	.hubm-lb-stage { inset: 70px 0 90px; }
	.hubm-lb-stage img { border-radius: 0; }
	.hubm-lb-nav { top: auto; bottom: 22px; margin-top: 0; width: 48px; height: 48px; }
	.hubm-lb-prev { left: calc(50% - 64px); }
	.hubm-lb-next { right: calc(50% - 64px); }
}

/* Encart impression.cool */
.hubm-impression { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 36px; border-radius: 22px; background: var(--accent); color: var(--on-accent); overflow: hidden; }
.hubm-impression .hubm-kicker { color: inherit !important; opacity: .7; }
.hubm-impression p:last-child { margin: 0; font-size: 1.2rem; font-weight: 600; max-width: 640px; line-height: 1.4; }

/* Bulletin */
.hubm-box { background: var(--deep); border: 1px solid var(--line); border-radius: 22px; padding: 36px; }
.hubm-success { text-align: center; border-color: var(--accent-text); }
.hubm-form { background: var(--deep); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 48px); }
.hubm-form-head { max-width: 720px; }
.hubm-form-head p:last-child { color: var(--muted); }
.hubm-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.hubm-form fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 28px 0 8px; min-width: 0; }
.hubm-form legend { display: flex; align-items: center; gap: 12px; color: var(--title); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; padding: 0 0 18px; float: left; width: 100%; }
.hubm-form legend b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--accent-text) 18%, transparent); color: var(--accent-text); font-size: .8rem; }
.hubm-form legend + * { clear: both; }
.hubm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 18px; align-items: end; }
.hubm-cols--cp { grid-template-columns: 170px 1fr; }
.hubm-field { display: block; margin-bottom: 18px; }
.hubm-field > span { display: block; font-size: .86rem; font-weight: 600; color: var(--title); margin-bottom: 7px; }
.hubm-field small, .hubm-choice small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.hubm-field em, .hubm-check em { color: var(--accent-text); font-style: normal; white-space: nowrap; }
.hubm-form input[type=text], .hubm-form input[type=email], .hubm-form input[type=tel], .hubm-form input[type=number], .hubm-form input[type=date], .hubm-form input[type=file], .hubm-form textarea, .hubm-form select {
	width: 100%; background: var(--field); color: var(--title); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; font: inherit; font-size: 1rem; line-height: 1.4; margin: 0; transition: border-color .2s, box-shadow .2s;
}
.hubm-form select { appearance: auto; }
.hubm-form input::placeholder, .hubm-form textarea::placeholder { color: var(--muted); }
.hubm-form input:focus, .hubm-form textarea:focus, .hubm-form select:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-text) 20%, transparent); }
.hubm-form input[type=date] { color-scheme: var(--scheme, normal); min-height: 50px; }
.hubm-form input:user-invalid, .hubm-form textarea:user-invalid, .hubm-form select:user-invalid { border-color: #E4572E; box-shadow: 0 0 0 3px rgba(228, 87, 46, .18); }
.hubm-form input[type=file]::file-selector-button { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; padding: 8px 16px; margin-right: 12px; font: inherit; font-weight: 700; font-size: .78rem; text-transform: uppercase; cursor: pointer; }
.hubm-file small { display: block; margin: 6px 0 0; }
.hubm-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.hubm-choices--stack { flex-direction: column; }
.hubm-choice { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--field); color: var(--title); transition: border-color .2s, background .2s, opacity .2s; }
.hubm-choice:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.hubm-choice:has(input:checked) { border-color: var(--accent-text); background: color-mix(in srgb, var(--accent-text) 10%, var(--field)); }
.hubm-choice input { accent-color: var(--accent-text); margin: 0; width: 18px; height: 18px; flex: none; }
.hubm-choice span { flex: 1; }
.hubm-choice.is-disabled { opacity: .35; pointer-events: none; }
.hubm-yesno:not(:empty) { border-top: 1px solid var(--line); margin: 4px 0 18px; }
.hubm-yesno > .hubm-field:not(.hubm-field--row) { padding-top: 14px; }
.hubm-field--row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
/* Dernière question oui/non d'une partie : pas de trait, la partie suivante a déjà le sien. */
.hubm-form fieldset > .hubm-field--row:last-child, .hubm-form fieldset > :last-child > .hubm-field--row:last-child, .hubm-form fieldset > .hubm-yesno:last-child > :last-child { border-bottom: 0; }
.hubm-form fieldset > .hubm-yesno:last-child { margin-bottom: 0; }
.hubm-field--row > span { margin: 0 !important; font-weight: 500 !important; font-size: .95rem !important; }
.hubm-field--row .hubm-choices { flex: none; flex-wrap: nowrap; }
.hubm-field--row .hubm-choice { padding: 9px 16px; min-width: 92px; }
.hubm-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; cursor: pointer; }
.hubm-check input { accent-color: var(--accent-text); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.hubm-check[hidden], [data-hubm-show][hidden] { display: none !important; }
.hubm-decharge { background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; font-size: .88rem; margin-bottom: 18px; max-height: 200px; overflow: auto; }
.hubm-decharge p { margin: 0; }
.hubm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hubm-errors { background: rgba(255, 122, 107, .1); border: 1px solid var(--danger); border-radius: 10px; padding: 16px 20px; margin: 16px 0 8px; color: var(--title); }
.hubm-errors ul { margin: 8px 0 0 18px; padding: 0; }
.hubm-form-side { position: sticky; top: 24px; padding-top: 28px; }
.hubm-total { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.hubm-total-lines div { display: flex; justify-content: space-between; padding: 5px 0; font-size: .92rem; gap: 16px; }
.hubm-total-lines div span:last-child { color: var(--title); white-space: nowrap; }
.hubm-total-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 12px; margin-top: 10px; border-top: 1px solid var(--line); }
.hubm-total-sum span { font-weight: 700; color: var(--title); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.hubm-total-sum strong { font-size: 2.2rem; line-height: 1; color: var(--accent-text); }
.hubm-total > p:not(.hubm-kicker) { color: var(--muted); font-size: .85rem; }

/* Pied de page */
.hubm-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .88rem; color: var(--muted); }
.hubm-footer .hubm-wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.hubm-footer a { color: var(--title); }

@media (max-width: 1024px) {
	.hubm-form-grid { grid-template-columns: 1fr; gap: 0; }
	.hubm-form-side { position: static; }
}
@media (max-width: 900px) {
	.hubm-intro { grid-template-columns: 1fr; gap: 32px; }
	.hubm-facts { position: static; }
	.hubm-hero { min-height: 0; padding: 104px 0 36px; }
	.hubm-hero.has-cover-m::before { background-image: var(--cover-m); background-position: center; }
	.hubm-hero::after { background: linear-gradient(0deg, var(--page) 5%, rgba(var(--page-rgb), .55) 100%); }
	.hubm-impression { flex-direction: column; align-items: flex-start; padding: 26px; }
}
@media (max-width: 640px) {
	body.hubm-public-page { font-size: 15px; }
	.hubm-wrap { padding: 0 16px; }
	.hubm-section { padding-top: 40px; padding-bottom: 40px; }
	.hubm-topbar-brand img { height: 36px; }
	.hubm-topbar-brand { gap: 10px; font-size: .82rem; }
	.hubm-topbar-brand small { font-size: .7rem; }
	.hubm-public-page h1 { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
	.hubm-meta { font-size: .92rem; gap: 8px 20px; }
	.hubm-hero-actions .hubm-btn, .hubm-impression .hubm-btn { width: 100%; }
	.hubm-content { font-size: 1rem; }
	.hubm-cols--cp { grid-template-columns: 1fr; }
	.hubm-form { border-radius: 16px; padding: 20px 16px; }
	.hubm-field--row { flex-direction: column; align-items: stretch; }
	.hubm-field--row .hubm-choice { flex: 1; }
	.hubm-total-sum strong { font-size: 1.8rem; }
	.hubm-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
}
.hubm-ended { text-align: center; }
.hubm-ended p { max-width: 560px; margin: 0 auto 22px; color: var(--muted); }

/* Comment venir (Google Maps, chargée au clic) */
.hubm-map { margin-top: 28px; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hubm-map-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; }
.hubm-map-head h3 { margin: 0 0 2px; }
.hubm-map-head p { margin: 0; color: var(--muted); }
.hubm-map-head .hubm-btn { padding: 12px 20px; font-size: .8rem; white-space: nowrap; }
.hubm-map-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hubm-map-dialog { width: min(1000px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--deep); color: var(--title); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.hubm-map-dialog::backdrop { background: rgba(10, 8, 8, .72); backdrop-filter: blur(3px); }
.hubm-map-dialog[open] { display: flex; flex-direction: column; animation: hubm-pop .18s ease-out; }
@keyframes hubm-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.hubm-map-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.hubm-map-dialog-head strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hubm-map-dialog-foot { display: none; }
.hubm-map-close { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--title); font: inherit; font-size: 1rem; cursor: pointer; transition: border-color .2s, color .2s; }
.hubm-map-close:hover { border-color: var(--accent-text); color: var(--accent-text); }
.hubm-map-dialog-body { flex: 1; min-height: 0; background: var(--field); }
.hubm-map-dialog-body iframe { display: block; width: 100%; height: min(70vh, 640px); border: 0; }
html.hubm-noscroll, html.hubm-noscroll body { overflow: hidden; }
@media (max-width: 640px) {
	.hubm-map-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
	.hubm-map-dialog-head { padding: 12px 12px 12px 18px; }
	.hubm-map-dialog-head .hubm-btn { display: none; }
	.hubm-map-dialog-foot { display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--deep); }
	.hubm-map-dialog-body iframe { height: 100%; }
	.hubm-map-head .hubm-map-actions { width: 100%; }
	.hubm-map-head .hubm-map-actions .hubm-btn { flex: 1; padding: 12px 14px; }
}

/* Sélecteur de date du bulletin */
.hubm-dp { position: relative; }
.hubm-dp-btn { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 50px; text-align: left; background: var(--field); color: var(--title); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; font: inherit; font-size: 1rem; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.hubm-dp-btn::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zm-2 8h14v10H5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zm-2 8h14v10H5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hubm-dp.has-value .hubm-dp-btn::before { background: var(--accent-text); }
.hubm-dp-btn b { font-weight: 600; }
.hubm-dp-btn b::first-letter { text-transform: uppercase; }
.hubm-dp-btn span { color: var(--muted); }
.hubm-dp-btn:hover, .hubm-dp.is-open .hubm-dp-btn { border-color: var(--accent-text); }
.hubm-dp.is-open .hubm-dp-btn, .hubm-dp-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-text) 20%, transparent); }
.hubm-dp.is-error .hubm-dp-btn { border-color: #E4572E; box-shadow: 0 0 0 3px rgba(228, 87, 46, .18); }
.hubm-dp-pop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: 320px; max-width: 100%; padding: 14px; background: var(--deep); color: var(--title); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.hubm-dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hubm-dp-head > button { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--title); font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hubm-dp-head > button:hover { border-color: var(--accent-text); color: var(--accent-text); }
.hubm-dp-sel { display: flex; gap: 6px; min-width: 0; }
.hubm-form .hubm-dp-sel select { width: auto; padding: 6px 8px; font-size: .9rem; font-weight: 600; border-radius: 8px; background: var(--field); text-transform: capitalize; }
.hubm-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.hubm-dp-wd { text-align: center; color: var(--muted); font-size: .72rem; font-weight: 700; padding: 4px 0 6px; }
.hubm-dp-grid button { height: 38px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; border-radius: 10px; }
.hubm-dp-grid button:hover { background: color-mix(in srgb, var(--title) 10%, transparent); color: var(--title); }
.hubm-dp-grid button.is-today { box-shadow: inset 0 0 0 1px var(--line-strong); }
.hubm-dp-grid button.is-sel { background: var(--accent); color: var(--on-accent); font-weight: 800; }
.hubm-dp-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.hubm-dp-foot button { background: none; border: 0; color: var(--accent-text); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; padding: 4px 2px; }
.hubm-dp-foot [data-clear] { color: var(--muted); }

/* Messages d'erreur des formulaires (à la place des bulles du navigateur) */
.v-msg { margin: 6px 0 0 !important; color: #E4572E; font-size: .84rem; font-weight: 600; }
.v-msg::before { content: "! "; font-weight: 800; }
.hubm-form .is-invalid input:not([type=radio]):not([type=checkbox]), .hubm-form .is-invalid select, .hubm-form .is-invalid textarea, .hubm-form .is-invalid .hubm-choice, .hubm-form .is-invalid .hubm-dp-btn { border-color: #E4572E !important; box-shadow: 0 0 0 3px rgba(228, 87, 46, .15); }
.hubm-check.is-invalid { color: var(--title); }
.hubm-check.is-invalid input { outline: 2px solid #E4572E; outline-offset: 2px; }

/* Aide à la rédaction (historique pilote et véhicule) */
.hubm-ai { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: -8px 0 18px; }
.hubm-ai-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(var(--deep-rgb), .5); color: var(--accent-text); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.hubm-ai-btn:hover:not(:disabled) { border-color: var(--accent-text); }
.hubm-ai-btn:disabled { opacity: .45; cursor: default; }
.hubm-ai.is-busy .hubm-ai-btn { opacity: 1; }
.hubm-ai.is-busy .hubm-ai-btn svg { animation: hubm-ai-pulse 1s ease-in-out infinite; }
@keyframes hubm-ai-pulse { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.75) rotate(45deg); opacity: .55; } }
.hubm-ai-tip { color: var(--muted); font-size: .82rem; }
.hubm-ai-card { margin: -6px 0 20px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--accent-text); background: rgba(var(--deep-rgb), .6); }
.hubm-ai-card[hidden] { display: none; }
.hubm-ai-head { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--accent-text); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hubm-ai-text { margin: 0 0 14px; color: var(--title); line-height: 1.55; white-space: pre-line; }
.hubm-ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hubm-ai-link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hubm-ai-link:hover { color: var(--title); }
.hubm-ai-tip .hubm-ai-link { font-size: inherit; }
.hubm-ai-err { margin: 0; color: var(--muted); font-size: .88rem; }

/* Photo de la voiture : zone de dépôt puis carte avec miniature */
.hubm-photo { position: relative; }
.hubm-form input.hubm-photo-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.hubm-photo-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--field); cursor: pointer; transition: border-color .2s, background .2s; }
.hubm-photo-drop:hover, .hubm-photo.is-over .hubm-photo-drop { border-color: var(--accent-text); }
.hubm-photo-input:focus-visible + .hubm-photo-drop { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.hubm-photo-drop strong { color: var(--title); font-size: 1rem; }
.hubm-photo-drop small { color: var(--muted); font-size: .86rem; margin: 0 !important; }
.hubm-photo-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 4px; border-radius: 14px; color: var(--on-accent); background: var(--accent); }
.hubm-photo-card { display: none; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border: 1px solid var(--accent-text); border-radius: var(--radius); background: var(--field); }
.hubm-photo.has-file .hubm-photo-drop { display: none; }
.hubm-photo.has-file .hubm-photo-card { display: flex; }
.hubm-photo-thumb { flex: none; width: 88px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--line); }
.hubm-photo-meta { flex: 1; min-width: 0; }
.hubm-photo-meta strong { display: block; color: var(--title); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hubm-photo-meta small { color: var(--muted); font-size: .82rem; margin: 0 !important; }
.hubm-photo-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.hubm-photo-actions label { cursor: pointer; }
.hubm-photo-del { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.hubm-photo-del:hover { color: #E4572E; border-color: #E4572E; }
.hubm-form .hubm-photo.is-invalid .hubm-photo-drop { border-color: #E4572E; box-shadow: 0 0 0 3px rgba(228, 87, 46, .15); }
@media (max-width: 560px) { .hubm-photo-card { flex-wrap: wrap; } .hubm-photo-actions { width: 100%; justify-content: flex-end; } }

/* Montée sans présentation ni infos pratiques : pas de colonne vide.
   Les infos passent en carte pleine largeur, en colonnes, puis « Comment venir » en dessous. */
.hubm-intro--bare { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hubm-intro--bare .hubm-facts { order: -1; position: static; display: flex; padding: 26px 0; }
.hubm-intro--bare .hubm-facts div { flex: 1 1 0; min-width: 0; padding: 2px 26px; border: 0; border-left: 1px solid var(--line); }
.hubm-intro--bare .hubm-facts .hubm-fact-mail { flex: 0 0 auto; }
.hubm-intro--bare .hubm-facts div:first-child { border-left: 0; }
.hubm-intro--bare .hubm-facts strong { display: block; margin-top: 6px; line-height: 1.45; overflow-wrap: break-word; }
.hubm-intro--bare .hubm-fact-mail strong { overflow-wrap: normal; }
.hubm-intro--bare .hubm-map { margin-top: 0; }
@media (max-width: 960px) {
	.hubm-intro--bare .hubm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; padding: 24px 26px; }
	.hubm-intro--bare .hubm-facts div { padding: 0; border: 0; }
}
@media (max-width: 560px) { .hubm-intro--bare .hubm-facts { grid-template-columns: 1fr; gap: 18px; padding: 22px; } }
