:root {
  --ink: #0e2238;
  --primary: #1d4e79;
  --primary-dark: #0e2238;
  --primary-soft: #e8eef4;
  --accent: #ffc400;
  --accent-dark: #e6b000;
  --soft: #f3f5f7;
  --text: #14202c;
  --muted: #5b6b7a;
  --border: #d6dde3;
  --danger: #c62828;
  --radius: 2px;
  --shadow: 0 1px 3px rgba(14, 34, 56, .14);
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; color: var(--text); background: #fff; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin: 0 0 .5em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- boutons & formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius); padding: 12px 24px;
  font-family: var(--head); font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--ink); transition: background .12s; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--primary); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-whatsapp { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-whatsapp:hover { background: var(--soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a31f1f; }
.btn-sm { padding: 7px 14px; font-size: 16px; }
.btn-lg { padding: 15px 30px; font-size: 20px; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #b9c4ce; border-radius: var(--radius); background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
textarea { resize: vertical; min-height: 80px; }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.error-msg { color: var(--danger); font-size: 15px; margin: 8px 0 0; }
.success-msg { background: var(--primary-soft); color: var(--ink); padding: 12px 14px; }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.logo { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: .03em; text-transform: uppercase; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo span:not(.logo-mark):not(.logo-text) { color: var(--accent); }
.logo-mark { width: 34px; height: 34px; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: #d5deE6; text-decoration: none; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid transparent; padding: 4px 0; }
.nav a:hover { color: #fff; border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.site-header .btn-ghost { color: #cdd7e1; }
.site-header .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-header .btn-outline { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.site-header .btn-outline:hover { background: rgba(255, 255, 255, .1); }
/* menu déroulant des langues */
.lang-menu { position: relative; }
.lang-toggle { display: flex; align-items: center; gap: 6px; border: 0; background: rgba(255, 255, 255, .1); font: inherit; font-size: 14px; font-weight: 700; color: #fff;
  padding: 8px 10px; border-radius: var(--radius); cursor: pointer; }
.lang-toggle:hover, .lang-menu.open .lang-toggle { background: rgba(255, 255, 255, .2); }
.lang-chevron { transition: transform .15s; }
.lang-menu.open .lang-chevron { transform: rotate(180deg); }
.lang-options { position: absolute; top: calc(100% + 6px); right: 0; min-width: 170px; background: #fff; padding: 4px; box-shadow: 0 8px 24px rgba(14, 34, 56, .3); z-index: 30; }
.lang-options button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; font: inherit; font-size: 15px; color: var(--text); padding: 9px 12px; cursor: pointer; text-align: left; }
.lang-options button b { font-size: 12px; color: var(--muted); width: 22px; }
.lang-options button:hover { background: var(--soft); }
.lang-options button.active { background: var(--accent); font-weight: 600; }
.lang-options button.active b { color: var(--ink); }
.site-header.scrolled { box-shadow: 0 2px 10px rgba(14, 34, 56, .4); }

/* ---------- bannière : texte à gauche, image coupée en biais à droite ---------- */
.hero { background: var(--ink); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(76vh, 620px); }
.hero-text { align-self: center; padding: 64px 40px 64px max(16px, calc((100vw - 1180px) / 2)); }
.hero-text h1 { font-size: clamp(42px, 6vw, 78px); line-height: .98; margin-bottom: 20px; }
.hero-text h1::before { content: ""; display: block; width: 70px; height: 8px; background: var(--accent); margin-bottom: 24px; }
.hero-text p { font-size: clamp(17px, 1.5vw, 20px); color: #cdd7e1; max-width: 520px; margin: 0 0 30px; }
.hero-text .btn-outline { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.hero-text .btn-outline:hover { background: rgba(255, 255, 255, .12); }
.hero-img { background: url('/images/hero-port.svg') center / cover no-repeat; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- repères ---------- */
.trust { background: var(--accent); color: var(--ink); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 20px 24px; border-left: 2px solid rgba(14, 34, 56, .18); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { display: block; font-family: var(--head); font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.trust-item span { font-size: 15px; font-weight: 500; }

section { padding: 76px 0; }
.section-title { margin-bottom: 36px; max-width: 720px; }
.section-title h2, .feature-text h2, .contact-info h2 { font-size: clamp(32px, 4vw, 48px); color: var(--ink); }
.section-title p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-block; background: var(--ink); color: var(--accent); font-family: var(--head); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; padding: 3px 10px; margin-bottom: 12px; }

/* ---------- catalogue : fiches en lignes ---------- */
#catalogue { background: var(--soft); }
.models { display: grid; gap: 18px; }
.model-card { background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; }
.models .model-card { flex-direction: row; }
.model-img { aspect-ratio: 16 / 10; background: var(--primary-soft); position: relative; }
.models .model-img { flex: 0 0 40%; aspect-ratio: auto; min-height: 300px; }
.model-img img { width: 100%; height: 100%; object-fit: cover; }
.model-img .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--primary); }
.model-img video { width: 100%; height: 100%; object-fit: cover; }
.model-body { padding: 22px 26px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.model-body h3 { font-size: 30px; color: var(--ink); margin-bottom: 12px; }
.model-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.model-details { flex: 1; display: flex; flex-direction: column; }
.spec-table { display: grid; grid-template-columns: 1fr 1.1fr 1fr 2fr; gap: 0; margin: 0 0 14px; border: 1px solid var(--border); }
.spec-table div { padding: 8px 12px; border-right: 1px solid var(--border); }
.spec-table div:last-child { border-right: 0; }
.spec-table dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 700; font-size: 16px; color: var(--ink); }
.specs { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.model-body .desc { color: var(--muted); font-size: 16px; margin: 0 0 14px; flex: 1; }
.price { font-family: var(--head); font-size: 36px; font-weight: 700; color: var(--ink); line-height: 1; }
.deposit-hint { font-size: 15px; color: var(--muted); margin: 4px 0 14px; }
.models .btn { align-self: flex-start; }
.badge { position: absolute; top: 0; left: 0; background: var(--accent); color: var(--ink); padding: 4px 12px; font-family: var(--head); font-size: 16px; font-weight: 700; text-transform: uppercase; z-index: 1; }
.badge.out { background: var(--danger); color: #fff; }
/* flèche affichée seulement sur mobile */
.details-toggle { display: none; flex: 0 0 auto; width: 38px; height: 38px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; place-items: center; transition: transform .15s; }
.model-card.open .details-toggle { transform: rotate(180deg); background: var(--accent); }

/* galerie sur la fiche */
.gallery { position: absolute; inset: 0; }
.gallery-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.gal-video { flex: 0 0 100%; position: relative; scroll-snap-align: start; cursor: pointer; background: #000; }
.gal-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-icon, .thumb-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; color: var(--ink); background: var(--accent); pointer-events: none; }
.play-icon { width: 58px; height: 58px; padding-left: 3px; }
.thumb-play { width: 24px; height: 24px; }
.thumb-play svg { width: 14px; height: 14px; }
.gal-zoom, .gal-nav { position: absolute; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: var(--ink); }
.gal-zoom:hover, .gal-nav:hover { background: var(--primary); }
.gal-zoom { top: 0; right: 0; width: 38px; height: 38px; }
.gal-nav { bottom: 0; width: 38px; height: 38px; font-size: 24px; line-height: 1; padding-bottom: 3px; }
.gal-prev { left: 0; }
.gal-next { left: 39px; }
.gal-dots { display: none; }
.gal-count { position: absolute; bottom: 0; right: 0; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px; }

/* visionneuse plein écran */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(8, 18, 30, .96); display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; align-items: center; padding: 16px 8px; }
.lb-figure { grid-column: 2; grid-row: 1; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; height: 100%; }
.lb-figure video, .lb-figure img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; background: #000; user-select: none; }
.lb-figure figcaption { color: #cdd7e1; font-size: 14px; margin-top: 10px; text-align: center; }
.lb-btn { border: 0; background: var(--accent); color: var(--ink); cursor: pointer; width: 46px; height: 46px; font-size: 30px; line-height: 1; display: grid; place-items: center; padding-bottom: 4px; }
.lb-btn:hover { background: var(--accent-dark); }
.lb-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lb-next { grid-column: 3; grid-row: 1; justify-self: center; }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 1; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { visibility: hidden; }
.lb-thumbs { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 6px; justify-content: center; overflow-x: auto; padding: 12px 4px 0; }
.lb-thumbs button { position: relative; flex: 0 0 auto; border: 2px solid transparent; padding: 0; overflow: hidden; cursor: pointer; opacity: .55; background: none; }
.lb-thumbs button.active { border-color: var(--accent); opacity: 1; }
.lb-thumbs img, .lb-thumbs video { width: 72px; height: 52px; object-fit: cover; display: block; }

/* ---------- commander : trois étapes numérotées sur une ligne ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: step; border-top: 4px solid var(--ink); }
.step { position: relative; padding: 34px 28px 0 0; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -24px; left: 0; width: 44px; height: 44px; background: var(--accent); color: var(--ink);
  font-family: var(--head); font-size: 28px; font-weight: 700; display: grid; place-items: center; }
.step h3 { font-size: 26px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); }

/* ---------- livraison ---------- */
.feature { background: var(--ink); color: #dfe6ec; }
.feature-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.feature-text h2 { color: #fff; }
.feature-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 8px solid var(--accent); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 26px; font-weight: 600; color: #fff; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--accent); }

/* ---------- formats en images ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mosaic-item { position: relative; border: 0; padding: 0; overflow: hidden; cursor: zoom-in; background: var(--primary-soft); aspect-ratio: 4 / 3; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-item:hover { outline: 4px solid var(--accent); outline-offset: -4px; }

/* ---------- appel à l'action ---------- */
.cta-band { background: var(--accent); color: var(--ink); padding: 44px 0; }
.cta-content { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 4px; }
.cta-band p { margin: 0; font-weight: 500; }
.cta-band .btn-whatsapp { background: transparent; }
.cta-band .btn-whatsapp:hover { background: rgba(14, 34, 56, .1); }

.reveal { opacity: 0; transition: opacity .35s ease; }
.reveal.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; }
  html { scroll-behavior: auto; }
}
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

/* confirmation : prochaine étape */
.next-step { display: flex; gap: 14px; align-items: flex-start; background: var(--soft); border-left: 6px solid var(--accent); padding: 14px 16px; margin: 4px 0 8px; }
.next-step-icon { font-size: 24px; line-height: 1; }
.next-step p { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.5; }

/* ---------- fenêtre d'erreur ---------- */
.alert-pop { position: fixed; inset: 0; z-index: 95; background: rgba(8, 18, 30, .7); display: grid; place-items: center; padding: 20px; }
.alert-box { position: relative; width: min(430px, 100%); background: #fff; border-top: 8px solid var(--danger); padding: 26px 24px 22px; }
.alert-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; background: var(--soft); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.alert-close:hover { background: var(--border); }
.alert-icon { display: none; }
.alert-box h3 { font-size: 24px; color: var(--ink); margin: 0 34px 12px 0; }
#alert-list { margin: 0 0 18px; padding-left: 18px; font-size: 16px; display: grid; gap: 7px; }
.alert-pop.single #alert-list { list-style: none; padding-left: 0; }
.alert-box .btn { width: 100%; }
/* champ à corriger */
input.invalid, textarea.invalid, select.invalid { border-color: var(--danger); box-shadow: inset 3px 0 0 var(--danger); }
#calendar.invalid { border-color: var(--danger); }

/* ---------- contact ---------- */
#contact { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.contact-info p { margin: 0 0 10px; }
.contact-info a:not(.btn) { color: var(--ink); font-weight: 700; font-size: 20px; }
.card { background: #fff; border: 1px solid var(--border); padding: 26px; }
.card.message-form h3 { font-size: 28px; color: var(--ink); }
/* Message envoyé : la confirmation remplace les champs */
.form-done { display: none; padding: 14px 0; }
.message-form.sent > :not(.form-done):not(h3) { display: none; }
.message-form.sent .form-done { display: block; }
.form-done-icon { width: 46px; height: 46px; margin-bottom: 12px; background: var(--accent); color: var(--ink); font-size: 26px; font-weight: 700; display: grid; place-items: center; }
.form-done p { color: var(--ink); font-weight: 600; margin: 0 0 14px; }

.site-footer { background: var(--ink); color: #aab7c4; padding: 22px 0; font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- commande : panneau latéral ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(8, 18, 30, .6); display: flex; justify-content: flex-end; }
.modal-box { background: #fff; width: min(560px, 100%); height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.modal-box > * { flex-shrink: 0; }
.modal-box > .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#booking .modal-body { padding-bottom: 0; }
#booking-nav { position: sticky; bottom: 0; background: #fff; margin-top: 16px; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
#confirmation .modal-foot { padding-bottom: 20px; }
.modal-head { background: var(--ink); color: #fff; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { font-size: 26px; margin: 0; }
.modal-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #fff; }
.modal-body { padding: 18px 24px 24px; }
.modal-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

.progress { display: flex; gap: 2px; background: var(--ink); }
.progress div { flex: 1; height: 6px; background: #33475c; }
.progress div.done { background: var(--accent); }
.step-label { padding: 12px 24px 0; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.chosen-model { display: flex; gap: 12px; align-items: center; background: var(--soft); border-left: 6px solid var(--ink); padding: 10px 14px; margin-bottom: 16px; font-size: 15px; }

/* calendrier */
.calendar { border: 1px solid var(--border); padding: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head strong { text-transform: capitalize; }
.cal-nav { background: var(--ink); color: #fff; border: 0; width: 34px; height: 34px; cursor: pointer; font-size: 18px; }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .dow { font-size: 12px; color: var(--muted); font-weight: 700; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 0; background: var(--primary-soft); font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); font-weight: 600; }
.cal-day:hover:not(:disabled) { background: #cfdce8; }
.cal-day:disabled { background: transparent; color: #b8c2cc; cursor: default; font-weight: 400; text-decoration: line-through; }
.cal-day.empty { visibility: hidden; }
.cal-day.selected { background: var(--accent); color: var(--ink); font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }

.recap { width: 100%; border-collapse: collapse; font-size: 16px; }
.recap td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.recap td:first-child { color: var(--muted); width: 42%; padding-right: 12px; }
.recap tr.total td { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 22px; border-bottom: 0; }

.deposit-box { background: var(--ink); color: #cdd7e1; padding: 18px 20px; margin: 16px 0; }
.deposit-box .muted { color: #cdd7e1; }
.deposit-box .amount { font-family: var(--head); font-size: 44px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.ref { font-family: ui-monospace, Consolas, monospace; background: var(--soft); padding: 2px 8px; font-weight: 700; }

/* ---------- bouton de message, en bas à droite ---------- */
.chat-fab { position: fixed; right: 0; bottom: 24px; z-index: 40; border: 0; background: var(--accent); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; font-family: var(--head); font-size: 18px; font-weight: 700; text-transform: uppercase; box-shadow: 0 2px 10px rgba(14, 34, 56, .35); }
.chat-fab:hover { background: var(--accent-dark); }
.chat-panel { position: fixed; right: 16px; bottom: 76px; z-index: 40; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 64px - 76px - 8px); max-height: calc(100dvh - 64px - 76px - 8px);
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ink); box-shadow: 0 8px 28px rgba(14, 34, 56, .35); }
.chat-panel header { flex: 0 0 auto; position: relative; background: var(--ink); color: #fff; padding: 14px 50px 14px 16px; }
.chat-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; background: var(--accent); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.chat-body.sent .chat-bubble { display: none; }
.chat-panel header strong { display: block; font-family: var(--head); font-size: 22px; text-transform: uppercase; }
.chat-panel header small { color: #cdd7e1; }
.chat-panel .chat-body { flex: 1 1 auto; min-height: 0; padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; }
.chat-bubble { background: var(--soft); padding: 10px 12px; font-size: 15px; margin-bottom: 12px; }
.chat-panel .field { margin-bottom: 8px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 48px 16px 40px; }
  .hero-img { height: 240px; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .feature-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .models .model-card { flex-direction: column; }
  .models .model-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 800px) {
  .nav { display: none; }
  section { padding: 56px 0; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; gap: 8px; }
  .step { padding: 0 0 18px 60px; }
  .step::before { top: 0; }
}
@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child { padding: 12px 0; border-left: 0; border-top: 2px solid rgba(14, 34, 56, .18); }
  .trust-item:first-child { border-top: 0; }
  .logo { font-size: 22px; }
  .header-actions > .btn { display: none; }
  /* fiche repliée : nom, flèche et bouton seulement */
  .details-toggle { display: grid; }
  .model-head { align-items: center; margin-bottom: 12px; }
  .model-head h3 { margin: 0; font-size: 26px; }
  .model-card:not(.open) .model-details { display: none; }
  .models .btn { align-self: stretch; }
  .spec-table { grid-template-columns: 1fr 1fr; }
  .spec-table div:nth-child(even) { border-right: 0; }
  .spec-table div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .hero-actions .btn-lg { width: 100%; }
  .lightbox { grid-template-columns: 44px 1fr 44px; padding: 12px 4px; }
  .lb-btn { width: 40px; height: 40px; font-size: 26px; }
  .lb-thumbs img, .lb-thumbs video { width: 56px; height: 42px; }
  .modal-head, .modal-body { padding-inline: 16px; }
  .step-label { padding-inline: 16px; }
  #booking-nav .btn { flex: 1; }
  .chat-fab span { display: none; }
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
}
