:root {
  --accent: #5980a6;
  --accent-700: #3f6489;
  --accent-900: #16212e;
  --text: #1d1f20;
  --bg: #f6f8fa;
  --n200: #e5e7ea;
  --n300: #d3d7dc;
  --font: "Helvetica Neue", Helvetica, "Segoe UI", system-ui, sans-serif;
  --card: 0 1px 3px rgba(89, 128, 166, 0.16);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-700); text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(89, 128, 166, 0.22); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(16px, 4.5vw, 22px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 248, 250, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(89, 128, 166, 0.16);
}
.site-header.on-hero {
  background: transparent; border-bottom-color: transparent; backdrop-filter: none;
}
.header-inner { display: flex; align-items: center; gap: 6px; height: 64px; }
.brand { margin-right: auto; line-height: 0; }
.brand img { height: clamp(24px, 7vw, 30px); width: auto; display: block; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.tabs button {
  background: none; border: 0; cursor: pointer;
  font-size: clamp(11.5px, 3.1vw, 13px);
  padding: 7px clamp(5px, 1.7vw, 11px);
  color: var(--text); opacity: 0.55; white-space: nowrap;
  border-radius: 6px; transition: opacity 200ms ease, background 200ms ease;
}
.tabs button:hover { opacity: 1; }
.tabs button[aria-current="page"] { opacity: 1; color: var(--accent-700); background: rgba(89, 128, 166, 0.12); }
.site-header.on-hero .tabs button { color: #fff; }
.site-header.on-hero .tabs button[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.18); }

/* Panels */
.panel { display: none; padding-bottom: clamp(60px, 12vw, 96px); }
.panel.is-active { display: block; animation: fade 320ms ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden; background: #16212e;
  min-height: calc(clamp(420px, 58vw, 560px) + 64px);
  margin-top: -64px;
  display: flex; align-items: flex-end;
}
.hero .veil-bottom {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 42%; display: block;
  background: linear-gradient(180deg, rgba(22,33,46,0) 0%, rgba(22,33,46,0.55) 55%, #16212e 100%);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,26,38,0.74) 0%, rgba(41,64,90,0.4) 34%, rgba(24,38,54,0.72) 72%, rgba(18,28,40,0.94) 92%, #16212e 100%);
}
.hero .inner { position: relative; padding: clamp(70px, 13vw, 92px) clamp(16px, 4.5vw, 22px) clamp(72px, 12vw, 104px); max-width: 1040px; margin: 0 auto; width: 100%; }
.hero .kicker { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(38px, 10vw, 100px); line-height: 0.94; text-transform: uppercase;
  color: #fff; max-width: 17ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-info { margin-top: 26px; }
.hero-info p { font-size: 15px; color: rgba(255,255,255,0.78); }
.hero-phone { display: inline-block; font-size: clamp(26px, 4.4vw, 36px); font-weight: 600; letter-spacing: -0.01em; color: #fff; margin: 6px 0; }
.hero-phone:hover { color: rgba(255,255,255,0.85); }
.hero-mail { color: rgba(255,255,255,0.78); }
.hero-mail:hover { color: #fff; }
.hero-info .btn { margin-top: 20px; }

.btn {
  border: 0; border-radius: 10px; cursor: pointer; font-size: 15px;
  padding: 14px 24px; white-space: nowrap; transition: background 200ms ease, color 200ms ease;
}
.btn-primary { background: var(--accent-700); color: #fff; }
.btn-primary:hover { background: var(--accent-900); }
.btn-dark { background: var(--accent-900); color: #fff; }
.btn-dark:hover { background: var(--accent-700); }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.34); }
.btn-ghost:hover { background: rgba(255,255,255,0.24); }
.btn-block { width: 100%; }

/* Bandeau de fonctionnalités (chevauche le bas du hero) */
.feature-strip { margin-top: clamp(-58px, -7.5vw, -40px); position: relative; z-index: 5; }

/* Sections */
.section { padding-top: clamp(48px, 11vw, 76px); }
.section-head { text-align: center; max-width: 46ch; margin: 0 auto; }
.section-head h2 { font-size: clamp(30px, 5vw, 50px); letter-spacing: -0.025em; margin-bottom: 10px; color: var(--accent-700); }
.section-head p { font-size: 17px; color: rgba(29,31,32,0.58); }

.feature-bubbles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.bubble {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border-radius: 999px; padding: 8px 22px 8px 8px; box-shadow: var(--card);
  transition: transform 220ms ease, box-shadow 220ms ease;
  position: relative; cursor: default;
}
.bubble:hover, .bubble:focus-within { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(29,31,32,0.18); z-index: 30; }
.bubble-icon {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-700); color: #fff;
}
.bubble-icon svg { width: 17px; height: 17px; }
.bubble-label { font-size: 15px; font-weight: 600; color: var(--accent-700); white-space: nowrap; }
.bubble p {
  position: absolute; left: 50%; top: 100%; margin-top: 10px; width: 230px;
  background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 16px 36px rgba(29,31,32,0.28);
  font-size: 13.5px; line-height: 1.5; color: rgba(29,31,32,0.68); font-weight: 400; white-space: normal;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-10px) scale(0.94); transform-origin: top center; pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.32,1,0.5,1), transform 280ms cubic-bezier(0.32,1,0.5,1), visibility 280ms;
  z-index: 20;
}
.bubble:hover p, .bubble:focus-within p { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }

.card { background: #fff; border-radius: 16px; padding: clamp(20px, 4vw, 28px); box-shadow: var(--card); }
.card-tint { background: linear-gradient(160deg, rgba(89,128,166,0.1), #fff 70%); }

.paiement-list { border-radius: 12px; overflow: hidden; border: 1px solid var(--n200); }
.paiement-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; font-size: 14.5px; color: rgba(29,31,32,0.72); background: #fff; }
.paiement-row + .paiement-row { border-top: 1px solid var(--n200); }
.paiement-row svg { width: 19px; height: 19px; color: var(--accent-700); flex: none; }

/* Bande gardien */
.guard {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; align-items: center; border-radius: 20px;
  padding: clamp(26px, 5vw, 38px) clamp(22px, 4vw, 34px);
  background: linear-gradient(150deg, var(--accent-900), #3f6489);
  color: #fff;
}
.guard h2 { font-size: clamp(22px, 3.4vw, 28px); margin-bottom: 4px; }
.guard p { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.74); }
.guard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guard li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,0.84); }
.guard li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; flex: none; }
.guard .fine { font-size: 13px; color: rgba(255,255,255,0.56); line-height: 1.5; }

/* Véhicules */
.veh-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 26px 12px; margin-top: 26px; }
.veh { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.veh img { width: 46px; height: 46px; display: block; }
.veh span { font-size: 13px; color: rgba(29,31,32,0.58); }

/* À propos */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 5vw, 48px); align-items: center; }
.about-text h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 16px; }
.about-text p { font-size: 15.5px; line-height: 1.65; color: rgba(29,31,32,0.62); }
.about-text p + p { margin-top: 14px; }
.about-photos {
  aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; position: relative;
  box-shadow: var(--card); background: var(--n200);
}
.about-photos-track { display: flex; height: 100%; width: 100%; transition: transform 420ms cubic-bezier(0.32,1,0.5,1); }
.about-photos-track img { width: 100%; height: 100%; object-fit: cover; flex: none; }
.about-photos-next {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.9); color: var(--accent-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(29,31,32,0.24); transition: background 160ms ease;
}
.about-photos-next:hover { background: #fff; }
.about-photos-next svg { width: 18px; height: 18px; }

/* Bande photo (fond d'écran, page Tarifs) */
.tarif-band {
  position: relative; overflow: hidden;
  min-height: clamp(180px, 26vw, 260px);
  display: flex; align-items: center;
  padding: clamp(36px, 7vw, 56px) 0;
}
.tarif-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.tarif-band .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,26,38,0.8) 0%, rgba(41,64,90,0.55) 50%, rgba(16,26,38,0.85) 100%);
}
.tarif-band .wrap { position: relative; width: 100%; }
.tarif-band .section-head h2 { color: #fff; }
.tarif-band .section-head p { color: rgba(255,255,255,0.72); }

/* Pile de photos (page Contact) */
.photo-stack { display: flex; justify-content: center; align-items: flex-end; padding: 10px 0 30px; }
.photo-stack img {
  width: clamp(140px, 21vw, 210px); height: clamp(180px, 25vw, 260px); object-fit: cover;
  border-radius: 14px; border: 6px solid #fff; box-shadow: 0 16px 34px rgba(29,31,32,0.22);
  transition: transform 260ms cubic-bezier(0.32,1,0.5,1), box-shadow 260ms ease;
  position: relative;
}
.photo-stack img + img { margin-left: -34px; }
.photo-stack img:nth-child(1) { transform: rotate(-6deg) translateY(6px); z-index: 1; }
.photo-stack img:nth-child(2) { transform: rotate(0deg) translateY(-10px); z-index: 3; }
.photo-stack img:nth-child(3) { transform: rotate(6deg) translateY(6px); z-index: 2; }
.photo-stack img:hover { transform: translateY(-10px) scale(1.05) rotate(0deg); box-shadow: 0 22px 44px rgba(29,31,32,0.3); z-index: 10; }
@media (max-width: 560px) {
  .photo-stack img { width: clamp(120px, 34vw, 160px); height: clamp(160px, 42vw, 200px); }
  .photo-stack img + img { margin-left: -46px; }
}

/* Tarifs */
.tarif-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tarif-title-icon {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(89,128,166,0.14); color: var(--accent-700);
}
.tarif-title-icon svg { width: 19px; height: 19px; }
.tarif-title h3 { font-size: 21px; margin: 0; color: var(--accent-700); }

.tarif-table { width: 100%; border-collapse: collapse; }
.tarif-table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-700); background: rgba(89,128,166,0.14); padding: 11px 14px; white-space: nowrap;
}
.tarif-table th:first-child { border-radius: 10px 0 0 10px; }
.tarif-table th:last-child { border-radius: 0 10px 10px 0; }
.tarif-table th:not(:first-child), .tarif-table td:not(:first-child) { text-align: right; }
.tarif-table td { padding: 12px 14px; font-size: 15px; color: rgba(29,31,32,0.72); white-space: nowrap; }
.tarif-table td:not(:first-child) { font-weight: 600; color: var(--accent-700); }
.tarif-table tbody tr:nth-child(odd) { background: rgba(29,31,32,0.035); }
.tarif-note { font-size: 13px; color: rgba(29,31,32,0.46); margin-top: 10px; }

/* Carte */
.map-card { margin-top: 26px; border-radius: 18px; overflow: hidden; box-shadow: var(--card); }
.map-card iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Réserver */
.steps { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(29,31,32,0.45); }
.step span.num {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; background: #fff; border: 1.5px solid var(--n300);
}
.step.on { color: var(--text); }
.step.on span.num { background: var(--accent-900); border-color: var(--accent-900); color: #fff; }

.checkout-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid rgba(89,128,166,0.22);
}
.checkout-head h2 { font-size: clamp(26px, 4vw, 34px); }
.checkout { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; margin-top: 20px; }
.col { display: grid; gap: 18px; }
.col-side { position: sticky; top: 84px; }
.card h3 { font-size: 19px; margin-bottom: 18px; }

.field label, .field .lbl { display: block; font-size: 12.5px; color: rgba(29,31,32,0.52); margin-bottom: 6px; }
.input {
  width: 100%; min-width: 0; font-family: var(--font); font-size: 15px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--n300); background: #fff; color: var(--text);
}
.input:focus-visible { border-color: var(--accent); }
.input.err { border-color: #b3261e; }
.err-msg { font-size: 12.5px; color: #b3261e; margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; }

.seg { position: relative; display: flex; padding: 4px; background: var(--n200); border-radius: 999px; }
.seg .thumb {
  position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 3px rgba(29,31,32,0.16); pointer-events: none;
  transition: left 420ms cubic-bezier(0.32,1.2,0.5,1), width 420ms cubic-bezier(0.32,1.2,0.5,1);
}
.seg button {
  flex: 1; position: relative; z-index: 1; background: none; border: 0; cursor: pointer;
  font-size: 14px; padding: 9px 10px; border-radius: 999px; color: rgba(29,31,32,0.55);
  transition: color 240ms ease;
}
.seg button.on { color: var(--text); }

.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.sum-row .k { font-size: 14px; color: rgba(29,31,32,0.6); }
.sum-row .v { font-size: 15px; font-weight: 600; }
.sum-row.accent .k, .sum-row.accent .v { color: var(--accent-700); }
.total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--n200);
}
.total .amount { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--accent-700); }
.total .tva { font-size: 12.5px; color: rgba(29,31,32,0.48); margin-top: 2px; }
.fine-center { text-align: center; font-size: 12.5px; color: rgba(29,31,32,0.5); margin-top: 12px; }

/* Contact */
.contact-head { text-align: center; }
.contact-head h2 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 10px; }
.contact-head p.addr { font-size: 17px; color: rgba(29,31,32,0.58); max-width: 44ch; margin: 0 auto 30px; }
.phone { display: inline-block; font-size: clamp(30px, 4.4vw, 48px); font-weight: 600; line-height: 1; color: var(--accent-700); }
.mail { display: inline-block; font-size: 26px; margin-top: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.contact-grid h4 { font-size: 18px; margin-bottom: 8px; color: var(--accent-700); }
.contact-grid p { font-size: 14.5px; line-height: 1.55; color: rgba(29,31,32,0.58); }

/* Overlay */
.overlay {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(22,33,46,0.55); backdrop-filter: blur(8px);
}
.overlay.show { display: flex; animation: fade 240ms ease both; }
.overlay .box {
  background: #fff; border-radius: 18px; padding: 40px 34px; text-align: center;
  max-width: 380px; width: 100%; box-shadow: 0 20px 60px rgba(16,26,38,0.3);
}
.overlay h3 { font-size: 22px; margin-bottom: 8px; }
.overlay p { font-size: 14.5px; line-height: 1.55; color: rgba(29,31,32,0.58); }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 18px; border-radius: 50%;
  border: 2.5px solid rgba(89,128,166,0.25); border-top-color: var(--accent-700);
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.check { width: 42px; height: 42px; margin: 0 auto 16px; color: var(--accent-700); }

.site-footer { padding: 40px 0 56px; font-size: 13px; color: rgba(29,31,32,0.45); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

@media (max-width: 700px) {
  .col-side { position: static; }
  .steps { gap: 8px; }
  .step span:not(.num) { display: none; }
}
