/* UDS-SAVOIE – Urban Driver Service
   Alpine premium redesign — shared by the French and English websites.
*/

:root {
  --navy: #1f3a5f;
  --navy-dark: #14273f;
  --navy-deep: #0e1d30;
  --navy-soft: #eaf0f6;
  --ink: #252a30;
  --muted: #626a73;
  --line: #dce2e8;
  --snow: #f5f7f9;
  --white: #ffffff;
  --gold: #b98a4a;
  --gold-light: #e5c89f;
  --success: #28735a;
  --error: #9e3d42;
  --shadow: 0 18px 45px rgba(20, 39, 63, 0.12);
  --shadow-soft: 0 10px 30px rgba(20, 39, 63, 0.07);
  --radius: 18px;
  --radius-small: 10px;
  --max: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3 {
  margin-top: 0;
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.14;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy-dark);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* Header and navigation */
.topbar {
  position: sticky;
  z-index: 1200;
  top: 0;
  color: var(--white);
  background: rgba(20, 39, 63, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand img {
  width: 68px;
  height: 48px;
  object-fit: contain;
  object-position: center;
}

.brand .b1 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.brand .b2 {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.menu a {
  padding: 10px 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 650;
  border-radius: 7px;
  transition: color 160ms ease, background 160ms ease;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.langSwitch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.langSwitch a {
  padding: 6px 7px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 7px;
}

.langSwitch a:hover,
.langSwitch a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.ctaRow {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.hamb {
  display: none;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
}

.hamb svg { width: 22px; height: 22px; }

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  color: var(--navy-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  background: #fbfcfd;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.btn img, .btn svg { width: 18px; height: 18px; }

.btn.primary {
  color: var(--white);
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.btn.primary:hover { background: var(--navy-deep); }

.btn.ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: none;
}

.btn.ghost img { filter: brightness(0) invert(1); }

/* Homepage hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.18), transparent 25%),
    linear-gradient(125deg, var(--navy-dark) 0%, var(--navy) 58%, #3e5e7e 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: -24%;
  width: 65%;
  height: 68%;
  content: "";
  opacity: 0.18;
  background: rgba(255, 255, 255, 0.85);
  clip-path: polygon(0 100%, 30% 25%, 43% 50%, 63% 0, 100% 100%);
}

.hero::after {
  right: 28%;
  bottom: -32%;
  width: 48%;
  opacity: 0.07;
  transform: scaleX(-1);
}

.hero .heroBg {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: transparent;
}

.hero .heroBg picture { display: none; }

.heroInner {
  position: relative;
  min-height: 620px;
  padding-block: 72px 74px;
}

.heroInner > div[style*="text-align:center"] {
  max-width: 780px;
  margin: 0 0 18px !important;
  text-align: left !important;
}

.heroInner > div[style*="text-align:center"] img {
  display: none;
}

.heroInner > div[style*="text-align:center"] h1 {
  max-width: 850px;
  margin: 0 0 18px !important;
  color: var(--white);
  font-size: clamp(2.7rem, 5.5vw, 4.9rem) !important;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.heroInner > div[style*="text-align:center"] p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: clamp(1rem, 2vw, 1.18rem) !important;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  width: 38px;
  height: 1px;
  content: "";
  background: currentColor;
}

.kicker i { display: none; }

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  align-items: end;
  margin-top: 24px;
  gap: 65px;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 23px;
  gap: 12px;
}

.hero .heroActions .btn:not(.primary) {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: none;
}

.hero .heroActions .btn.primary {
  color: var(--navy-dark);
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.hero .heroActions .btn img { filter: brightness(0) invert(1); }

.trustRow {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 9px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
}

.pill img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

.heroCard {
  padding: 30px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.heroCard h2 {
  margin: 0 0 7px;
  color: var(--navy-dark);
  font-size: 1.5rem;
  font-weight: 600;
}

.heroCard > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.heroCard .ctaBand { display: none; }

.list { margin-top: 18px; }

.li {
  display: flex;
  align-items: flex-start;
  padding: 13px 0;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.li .ic {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  background: var(--navy-soft);
  border-radius: 50%;
}

.li .ic img { width: 15px; height: 15px; }
.li b { display: block; color: var(--navy-dark); font-size: 0.93rem; }
.li small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.78rem; }

/* Inner-page hero */
.pageHero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 350px;
  padding-block: 78px 72px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(125deg, var(--navy-dark), var(--navy) 62%, #3e5e7e);
}

.pageHero::after {
  position: absolute;
  z-index: -1;
  right: -5%;
  bottom: -30%;
  width: 60%;
  height: 86%;
  content: "";
  opacity: 0.14;
  background: var(--white);
  clip-path: polygon(0 100%, 30% 25%, 44% 50%, 65% 0, 100% 100%);
}

.breadcrumb {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pageHero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.55rem, 5.2vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.pageHero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

/* Content sections */
.section { padding-block: 92px; }

.section.alt { background: var(--snow); }

.h2 {
  margin: 0;
  color: var(--navy-dark);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.sub {
  max-width: 82ch;
  margin: 13px 0 0;
  color: var(--muted);
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--navy), var(--gold));
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card h3 {
  margin: 0 0 12px;
  color: var(--navy-dark);
  font-size: 1.35rem;
  font-weight: 600;
}

.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.card .meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 19px;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--navy-dark);
  background: var(--navy-soft);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
}

.link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  gap: 9px;
}

.link img { width: 16px; height: 16px; }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
  gap: 24px;
}

.panel {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel h3 {
  margin: 0 0 13px;
  color: var(--navy-dark);
  font-size: 1.4rem;
  font-weight: 600;
}

.panel p { color: var(--muted); }

.panel ul {
  margin: 16px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.panel li {
  position: relative;
  margin: 0;
  padding: 9px 0 9px 27px;
  border-top: 1px solid var(--line);
}

.panel li::before {
  position: absolute;
  top: 15px;
  left: 3px;
  width: 12px;
  height: 7px;
  content: "";
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.ctaBand {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  background: var(--navy-soft);
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
}

.ctaBand .bg { display: none; }

.ctaBand .content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px;
  gap: 18px;
}

.ctaBand .content b {
  color: var(--navy-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.ctaBand .content span { color: var(--muted); font-size: 0.88rem; }

/* Forms */
.formWrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 28px;
}

form { display: grid; margin-top: 24px; gap: 15px; }

label {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

input, textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cdd5de;
  border-radius: 8px;
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.1);
}

textarea { min-height: 130px; resize: vertical; }

.help { margin-top: 7px; color: var(--muted); font-size: 0.75rem; }

.alert {
  margin-top: 18px;
  padding: 16px;
  color: var(--navy-dark);
  background: var(--navy-soft);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  font-size: 0.9rem;
}

.alert.ok { background: #e9f4ef; border-left-color: var(--success); }
.alert.err { background: #faecec; border-left-color: var(--error); }

/* Footer */
.footer {
  padding-block: 58px 105px;
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy-dark);
}

.footerGrid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 50px;
}

.footer h3 {
  margin: 0 0 13px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer a:hover { color: var(--white); }

.footer .legal,
.footer small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
}

.footer > .container > .legal {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

/* Fixed quick actions */
.floating {
  position: fixed;
  z-index: 1400;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fab {
  display: flex;
  align-items: center;
  padding: 11px 15px;
  color: var(--white);
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.83rem;
  font-weight: 800;
  gap: 9px;
}

.fab.secondary {
  color: var(--navy-dark);
  background: var(--white);
  border-color: var(--line);
}

.fab img { width: 17px; height: 17px; }
.fab:not(.secondary) img { filter: brightness(0) invert(1); }

.mobileBar { display: none; }

/* Progressive reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .nav { flex-wrap: wrap; padding-block: 12px; }
  .brand { margin-right: auto; }
  .menu { order: 4; width: 100%; }
  .heroGrid { gap: 38px; }
}

@media (max-width: 900px) {
  .nav { min-height: 72px; flex-wrap: nowrap; }
  .brand img { width: 58px; height: 42px; }
  .brand .b2 { display: none; }
  .hamb { display: inline-flex; }
  .langSwitch { margin-left: auto; }
  .ctaRow { display: none; }
  .menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    width: auto;
    padding: 12px;
    background: var(--navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
  }
  .menu.open { display: grid; gap: 4px; }
  .menu a { padding: 12px; }
  .heroInner { min-height: auto; padding-block: 68px 64px; }
  .heroGrid { grid-template-columns: 1fr; }
  .heroCard { max-width: 600px; }
  .grid3 { grid-template-columns: 1fr; }
  .split, .formWrap { grid-template-columns: 1fr; }
  .footerGrid { grid-template-columns: 1fr 1fr; }
  .footerGrid > :first-child { grid-column: 1 / -1; }
  .floating { display: none; }
  .mobileBar {
    position: fixed;
    z-index: 1500;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: block;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }
  .mobileBar .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .mobileBar a {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 9px;
    color: var(--white);
    background: var(--navy-dark);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 6px;
  }
  .mobileBar a.light {
    color: var(--navy-dark);
    background: var(--navy-soft);
  }
  .mobileBar img { width: 16px; height: 16px; }
  .mobileBar a:not(.light) img { filter: brightness(0) invert(1); }
  .footer { padding-bottom: 125px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  body { font-size: 16px; }
  .brand .b1 { font-size: 0.8rem; }
  .heroInner { padding-block: 55px 52px; }
  .heroInner > div[style*="text-align:center"] img { width: 245px; }
  .hero::before, .hero::after { width: 110%; }
  .heroActions, .heroActions .btn { width: 100%; }
  .heroCard, .card, .panel { padding: 25px; }
  .pageHero { min-height: 310px; padding-block: 62px 56px; }
  .section { padding-block: 68px; }
  .ctaBand .content { align-items: flex-start; flex-direction: column; padding: 24px; }
  .ctaBand .btn { width: 100%; }
  .footerGrid { grid-template-columns: 1fr; gap: 30px; }
  .footerGrid > :first-child { grid-column: auto; }
  .mobileBar a { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Homepage brand identity: UDS-SAVOIE (2026-10) */
.brand-symbol { display:grid; width:48px; height:42px; place-items:center; flex:0 0 48px; color:#fff; }
.brand-symbol svg { width:48px; height:36px; }
.brand-text { display:flex; flex-direction:column; min-width:0; }
.brand-text .b1 { display:block; font-size:.86rem; letter-spacing:.065em; white-space:nowrap; }
.brand-text .b2 { display:block; font-size:.64rem; letter-spacing:.035em; white-space:nowrap; }
.heroIdentity { max-width:780px; margin-bottom:18px; }
.heroIdentity .heroEyebrow { color:var(--gold-light); font-size:.91rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; margin-bottom:12px; }
.heroIdentity .heroEyebrow span { color:rgba(255,255,255,.7); font-size:.78rem; font-weight:500; letter-spacing:.045em; }
.heroIdentity h1 { max-width:850px; margin:0 0 18px; color:var(--white); font-size:clamp(2.7rem,5.5vw,4.9rem); font-weight:500; letter-spacing:-.035em; }
.heroIdentity p { margin:0; color:rgba(255,255,255,.76); font-size:clamp(1rem,2vw,1.18rem); }
@media (max-width:1220px) { .nav { gap:10px; } .nav .ctaRow { gap:6px; } }
@media (max-width:700px) { .brand-symbol { width:38px; flex-basis:38px; } .brand-symbol svg { width:37px; } .brand-text .b1 { font-size:.82rem; } .brand-text .b2 { font-size:.58rem; } .heroIdentity .heroEyebrow { line-height:1.5; } .heroIdentity .heroEyebrow span { display:block; } }

@media (max-width:900px) { .brand-text .b2 { display:none; } }
