/* =========================================================
   SAJ Gestion — page d'accueil
   ========================================================= */

:root {
  --ivory: #faf7f2;
  --ivory-2: #f4efe6;
  --paper: #ffffff;
  --ink: #1c1a17;
  --ink-2: #45413a;
  --muted: #777166;
  --line: #e8e1d5;
  --gold: #c39033;
  --gold-deep: #8f6420;
  --gold-soft: #f4ead6;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(28, 26, 23, .04), 0 12px 32px -12px rgba(28, 26, 23, .12);
  --shadow-lg: 0 2px 4px rgba(28, 26, 23, .04), 0 24px 60px -20px rgba(28, 26, 23, .22);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.05;
}
.display em {
  font-style: italic;
  color: var(--gold);
}

.divider {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin: 0 auto 28px;
}

.section { padding: 120px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .display { font-size: clamp(40px, 5vw, 60px); margin: 16px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-1px); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 247, 242, .86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 15px;
  color: var(--ink-2);
  position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  padding: 8px 24px 24px;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 26px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.nav.open { background: var(--ivory); border-color: var(--line); }
.nav.open .mobile-menu { display: block; }

/* ---------- En-tête ---------- */
.hero {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  left: 50%; top: -420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(195, 144, 51, .14), rgba(195, 144, 51, 0));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(42px, 5.6vw, 76px);
  max-width: 1120px;
  margin-bottom: 26px;
}
.hero-lead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 44px;
}

/* Les 4 avantages : liste verticale reliée par un fil */
.benefits {
  position: relative;
  list-style: none;
  width: max-content;
  max-width: calc(100% - 48px);
  margin: 80px auto 0;
  padding: 0;
}
.benefits::before {
  content: "";
  position: absolute;
  left: 17px; top: 18px; bottom: 18px;
  width: 1px;
  background: linear-gradient(var(--line), var(--gold-soft), var(--line));
}
.benefits li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
  font-weight: 500;
  color: var(--ink-2);
}
.benefits li + li { margin-top: 14px; }
.benefits .ico {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  box-shadow: 0 0 0 5px var(--ivory);
  display: grid;
  place-items: center;
  transition: background .3s ease, color .3s ease, transform .5s var(--ease);
}
.benefits .ico svg { width: 17px; height: 17px; }
@media (hover: hover) {
  .benefits li:hover .ico { background: var(--ink); color: var(--gold-soft); transform: scale(1.08); }
}

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.about-grid .display { font-size: clamp(40px, 5vw, 60px); margin-top: 16px; }
.about-body .about-lead {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 28px;
}
.about-lead strong { font-weight: 600; color: var(--gold-deep); }
.about-body p { color: var(--ink-2); margin-bottom: 18px; font-size: 17px; }
.audience { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Services ---------- */
.services { background: var(--ivory-2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.service:hover { box-shadow: var(--shadow); }
.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.service-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
}
.service-ico svg { width: 24px; height: 24px; }
.service-num {
  font-family: var(--serif);
  font-size: 22px;
  color: #b9b1a3;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.service-sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

.service details { border-top: 1px solid var(--line); }
.service details:last-of-type { border-bottom: 1px solid var(--line); }
.service summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink);
  transition: color .2s ease;
}
.service summary::-webkit-details-marker { display: none; }
.service summary:hover { color: var(--gold-deep); }
.service summary .plus {
  flex: none;
  position: relative;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background .2s ease, border-color .2s ease, transform .3s ease;
}
.service summary .plus::before,
.service summary .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.service summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.service summary .plus {
  transition: background .35s cubic-bezier(.32,.72,0,1), border-color .35s ease, color .35s ease, transform .5s cubic-bezier(.32,.72,0,1);
}
.service details.is-open summary { color: var(--gold-deep); }
.service details.is-open summary .plus { background: var(--ink); border-color: var(--ink); color: var(--ivory); transform: rotate(180deg); }
.service details.is-open summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.service details p {
  color: var(--muted);
  font-size: 15px;
  padding: 0 40px 18px 0;
}
/* Sans JS : comportement natif */
html:not(.js) .service details[open] summary .plus { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
html:not(.js) .service details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.service-note {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 13.5px;
  line-height: 1.5;
}
.service-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }


/* ---------- Comment ça marche ? ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.step { padding-right: 36px; }
.step-top { display: flex; align-items: center; margin-bottom: 20px; }
.step-ico {
  position: relative;
  z-index: 1;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  box-shadow: 0 0 0 6px var(--ivory);
  display: grid;
  place-items: center;
  transition: background .3s ease, color .3s ease;
}
.step-ico svg { width: 18px; height: 18px; }
.step:hover .step-ico { background: var(--ink); color: var(--gold-soft); }
.step-line { flex: 1; height: 1px; background: var(--line); margin-right: -36px; }
.step h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.step-label {
  display: block;
  margin: 2px 0 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
}
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Tarifs ---------- */
.pricing { background: var(--ivory-2); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px 32px;
}
.price-card .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-card .tag {
  align-self: flex-start;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 26px 0 6px;
}
.price-amount strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 76px;
  line-height: .9;
  letter-spacing: -.02em;
}
.price-amount .cur { font-family: var(--serif); font-size: 34px; }
.price-amount .unit { color: var(--muted); font-size: 15px; }
.price-desc { color: var(--muted); font-size: 15px; margin-bottom: 28px; min-height: 48px; }
.price-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  flex: 1;
}
.price-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.price-features svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.price-card .btn { width: 100%; }

.price-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
}
.price-card.featured .label,
.price-card.featured .price-desc,
.price-card.featured .price-amount .unit { color: #b8b0a3; }
.price-card.featured .price-features { border-color: rgba(255,255,255,.12); }
.price-card.featured .tag { background: var(--gold); color: #fff; }

.price-foot {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 40px;
}

/* ---------- Témoignages ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testi {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.testi-quote {
  font-family: var(--serif);
  font-size: 64px;
  line-height: .6;
  height: 28px;
  color: var(--gold);
}
.testi blockquote {
  margin: 0 0 28px;
  font-size: 16.5px;
  color: var(--ink-2);
  flex: 1;
}
.testi figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.avatar {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}
.testi .who { font-weight: 600; font-size: 15px; line-height: 1.3; }
.testi .role { color: var(--muted); font-size: 13.5px; }

/* ---------- Contact : carte deux tons ---------- */
.contact { padding: 40px 0 0; }
.contact-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.contact-info {
  position: relative;
  overflow: hidden;
  padding: 72px 56px;
  background: var(--ink);
  color: var(--ivory);
}
.contact-info::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  left: -300px; bottom: -380px;
  background: radial-gradient(closest-side, rgba(195, 144, 51, .3), rgba(195, 144, 51, 0));
  pointer-events: none;
}
.contact-info > * { position: relative; }
.contact .eyebrow { color: var(--gold); }
.contact .display { font-size: clamp(40px, 4.6vw, 60px); margin: 16px 0 20px; }
.contact-lead { color: #c9c1b4; font-size: 17.5px; margin-bottom: 36px; }
.contact-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-points li { display: flex; gap: 14px; align-items: center; color: #e6dfd3; }
.contact-points .ico {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.contact-points .ico svg { width: 18px; height: 18px; }
.form-panel {
  padding: 64px 56px 40px;
  background: var(--paper);
}
.form-panel iframe { display: block; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 36px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-top img { height: 44px; width: auto; margin-bottom: 14px; }
.footer-top p { color: var(--muted); font-size: 15px; max-width: 320px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { font-size: 15px; color: var(--ink-2); transition: color .2s ease; }
.footer-links a:hover { color: var(--gold-deep); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--gold-deep); }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-card { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .price-desc { min-height: 0; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .services-grid, .testi-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step { padding-right: 0; }
  .step-line { display: none; }
  .section { padding: 88px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 116px 0 24px; }
  .hero-lead { font-size: 17px; }
  .benefits { margin-top: 56px; }
  .service, .testi, .price-card { padding: 28px 22px; }
  .service details p { padding-right: 0; }
  .contact-card { border-radius: 24px; }
  .contact-info { padding: 48px 24px; }
  .form-panel { padding: 32px 20px 16px; }
  .footer-links { gap: 40px; }
}

/* =========================================================
   Finitions & micro-interactions
   ========================================================= */

/* Lien actif (scrollspy) */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }

/* Cartes : léger soulèvement au survol */
.service, .testi, .price-card {
  transition: transform .5s cubic-bezier(.32,.72,0,1), box-shadow .5s cubic-bezier(.32,.72,0,1), border-color .3s ease;
}
@media (hover: hover) {
  .testi:hover, .price-card:not(.featured):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #ddd4c4;
  }
  .price-card.featured:hover { transform: translateY(-16px); }
  .service:hover { border-color: #ddd4c4; }
  .service:hover .service-ico { transform: rotate(-6deg) scale(1.04); }
}
.service-ico { transition: transform .5s cubic-bezier(.32,.72,0,1), background .3s ease, color .3s ease; }

/* Menu mobile : ouverture douce */
@media (max-width: 860px) {
  .mobile-menu {
    display: block;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
    border-bottom-color: transparent;
    transition: max-height .5s cubic-bezier(.32,.72,0,1), opacity .3s ease, padding .5s cubic-bezier(.32,.72,0,1);
  }
  .nav.open .mobile-menu {
    max-height: 480px;
    opacity: 1;
    padding-top: 8px;
    padding-bottom: 24px;
    border-bottom-color: var(--line);
  }
  .mobile-menu a { transform: translateY(-6px); opacity: 0; transition: transform .5s cubic-bezier(.32,.72,0,1), opacity .4s ease; }
  .nav.open .mobile-menu a { transform: none; opacity: 1; }
  .nav.open .mobile-menu a:nth-child(2) { transition-delay: .03s; }
  .nav.open .mobile-menu a:nth-child(3) { transition-delay: .06s; }
  .nav.open .mobile-menu a:nth-child(4) { transition-delay: .09s; }
  .nav.open .mobile-menu a:nth-child(5) { transition-delay: .12s; }
  .nav.open .mobile-menu a:nth-child(6) { transition-delay: .15s; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* Sélection de texte aux couleurs de la marque */
::selection { background: var(--gold-soft); color: var(--ink); }



/* Filet doré aligné à gauche dans les titres non centrés */
.section-head:not(.center) .divider,
.about-grid .divider,
.contact-info .divider { margin-left: 0; }
.about-grid .display { margin-top: 0; }
.contact .display { margin-top: 0; }

/* Pied de page : liens sur une ligne */
.footer-top { align-items: center; }
.footer-top img { margin-bottom: 0; }
.footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list a { font-size: 15px; color: var(--ink-2); transition: color .2s ease; }
.footer-list a:hover { color: var(--gold-deep); }

/* Tarifs sur mobile : sélecteur à 3 positions (Heure / Jour / + 2 jours) */
.price-switch { display: none; }
@media (max-width: 1024px) {
  .price-switch {
    --i: 1;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 480px;
    margin: 0 auto 20px;
    padding: 5px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
  }
  .price-switch button {
    position: relative;
    z-index: 1;
    padding: 12px 6px;
    border: 0;
    border-radius: 999px;
    background: none;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .35s ease;
  }
  .price-switch button[aria-selected="true"] { color: var(--ivory); }
  .price-switch-pill {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc((100% - 10px) / 3);
    border-radius: 999px;
    background: var(--ink);
    transform: translateX(calc(var(--i) * 100%));
    transition: transform .55s cubic-bezier(.32, .72, 0, 1);
  }
  .js .price-grid .price-card:not(.is-active) { display: none; }
}
