*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:root {
  --surface:                #f7f9ff;
  --surface-variant:        #e1e2ec;
  --surface-container-low:  #f1f4f9;
  --surface-container:      #ebeef3;
  --surface-container-high: #e6e8ee;
  --on-surface:             #181c20;
  --on-surface-variant:     #44464f;
  --primary:                #485d92;
  --on-primary:             #ffffff;
  --primary-container:      #dae2ff;
  --on-primary-container:   #2f4578;
  --secondary:              #585e71;
  --secondary-container:    #dce2f9;
  --on-secondary-container: #404659;
}

html { scroll-behavior: smooth; }

/* Anchor offset — sections sit under the fixed nav */
#apropos, #tarifs, #zone { scroll-margin-top: 65px; }

body {
  font-family: 'Roboto', system-ui, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 65px;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 5rem);
  background: rgba(247, 249, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  flex: 1;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 44px; width: auto; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--on-primary-container);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: .65; }

.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--on-surface);
}
.nav-burger svg { display: block; width: 26px; height: 26px; }

.nav-mobile {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  z-index: 99;
  background: rgba(247, 249, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--surface-container);
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem 2.5rem;
}
.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: var(--on-primary-container);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.nav-mobile a:hover { opacity: .65; }

.nav-mobile .nav-cta {
  color: var(--on-primary);
  padding: 12px 28px;
  font-size: 1rem;
  margin-top: .5rem;
}

/* ── LANG SWITCHER ───────────────────────────── */
.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-container);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--on-surface);
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: background .15s;
}
.lang-btn:hover { background: var(--surface-variant); }
.lang-btn svg { flex-shrink: 0; transition: transform .2s; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  padding: 6px;
  min-width: 155px;
  z-index: 200;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--on-surface);
  font-size: .875rem;
  font-weight: 600;
  transition: background .15s;
}
.lang-option:hover { background: var(--surface-container-low); }
.lang-option.active { color: var(--primary); }

/* ── FOCUS VISIBLE ───────────────────────────── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.nav-cta:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-white:focus-visible,
.tarif-btn:focus-visible { border-radius: 12px; }

/* ── HERO ─────────────────────────────────────── */
.hero {
  height: 100dvh;
  min-height: 580px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px clamp(1rem, 4vw, 3rem) 1.5rem;
  gap: 1rem;
}

.sofa-wrapper {
  width: 100%;
  max-width: 850px;
  max-height: min(50vh, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  user-select: none;
  -webkit-user-select: none;
}

.sofa-container {
  position: relative;
  cursor: ew-resize;
  overflow: hidden;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 16px;
}

.sofa-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#sofa-clean {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 0 50%);
}

.sofa-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255,255,255,.9);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0,0,0,.4);
}

.sofa-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}

.sofa-labels-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 415px;
}

.label-pill {
  background: var(--surface-container-low);
  color: var(--on-surface);
  font-family: 'Fira Sans', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: 20px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  max-width: 693px;
}

.hero-text h1 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--on-surface);
  line-height: 1.2;
}

.hero-text p {
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  color: var(--on-surface-variant);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }
.btn-primary svg, .btn-primary img { width: 20px; height: 20px; flex-shrink: 0; }

.btn-secondary {
  background: var(--primary-container);
  color: var(--on-primary-container);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: opacity .2s;
}
.btn-secondary:hover { opacity: .85; }

/* ── SECTION COMMONS ──────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  max-width: 839px;
  margin: 0 auto;
  line-height: 1.55;
}

.section-header p strong { font-weight: 900; }

/* ── À PROPOS ─────────────────────────────────── */
#apropos {
  background: #FAF8FF;
  padding: 8rem clamp(1.5rem, 6vw, 5rem);
}

#apropos .section-header h2 { color: var(--on-surface-variant); }

.services-photos {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

.service-photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 240px;
  max-width: 332px;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

.service-photo-img {
  width: 100%;
  height: 335px;
  border-radius: 40px;
  overflow: hidden;
}

.service-photo-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.12);
  transform-origin: center center;
  will-change: transform;
}

.service-photo-label {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--on-surface-variant);
}

/* ── QUINCONCE + REVEAL ──────────────────── */
.service-photo-card.offset { transform: translateY(150px); }
.service-photo-card.offset.visible { transform: translateY(114px); }
.services-photos { padding-bottom: 130px; }

/* ── HERO ENTRANCE ───────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sofa-wrapper  { animation: fade-up .9s cubic-bezier(.22,1,.36,1) .05s both; }
.hero-text h1  { animation: fade-up .8s cubic-bezier(.22,1,.36,1) .2s  both; }
.hero-text p   { animation: fade-up .8s cubic-bezier(.22,1,.36,1) .35s both; }
.hero-actions  { animation: fade-up .8s cubic-bezier(.22,1,.36,1) .48s both; }

/* ── SCROLL REVEAL ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s cubic-bezier(.22,1,.36,1),
              transform .75s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .26s; }
.reveal-d4 { transition-delay: .34s; }

/* ── TARIFS ───────────────────────────────────── */
#tarifs {
  background: var(--surface);
  padding: 8rem clamp(1.5rem, 6vw, 5rem);
}

#tarifs .section-header h2 { color: var(--on-surface); }
#tarifs .section-header p strong { color: var(--on-surface); }

.tarif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.tarif-card {
  background: var(--surface-container-low);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tarif-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tarif-icon img { width: 36px; height: 36px; display: block; }
.check img { width: 20px; height: 20px; }

.tarif-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tarif-category {
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary);
}

.tarif-price {
  font-weight: 800;
  font-size: 2rem;
  color: var(--on-surface);
  line-height: 1.2;
}

.tarif-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tarif-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-surface-variant);
}

.check {
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tarif-btn {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-weight: 800;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: block;
  width: 100%;
  line-height: 24px;
  position: relative;
  overflow: hidden;
  transition: opacity .2s, transform .18s cubic-bezier(.34,1.56,.64,1), background .25s;
}
.tarif-btn:hover { opacity: .85; }
.tarif-btn:active { transform: scale(.93); }

@keyframes ripple-expand {
  from { transform: scale(0); opacity: .7; }
  to   { transform: scale(3.8); opacity: 0; }
}
.tarif-btn .btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  width: 100%; aspect-ratio: 1;
  top: 50%; left: 50%;
  translate: -50% -50%;
  animation: ripple-expand .55s cubic-bezier(.2,.6,.4,1) forwards;
  pointer-events: none;
}
@keyframes btn-flash {
  0%   { background: var(--secondary-container); }
  25%  { background: var(--primary-container); }
  100% { background: var(--secondary-container); }
}
.tarif-btn.flashing { animation: btn-flash .45s ease forwards; }

/* ── CART SLOT (icon ↔ count swap) ──────────── */
.cta-slot {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .38s cubic-bezier(.34,1.56,.64,1), opacity .22s ease;
}
.cta-icon svg, .cta-icon img { width: 16px; height: 16px; display: block; }
.cta-count {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(-200deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-radius: 8px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  font-size: .68rem;
  font-weight: 800;
  line-height: 0;
  white-space: nowrap;
  opacity: 0;
  transition: transform .42s cubic-bezier(.34,1.56,.64,1), opacity .22s ease;
  pointer-events: none;
}
.nav-cta.has-cart .cta-icon {
  opacity: 0;
  transform: scale(0) rotate(200deg);
}
.nav-cta.has-cart .cta-count {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}
@keyframes count-pop {
  0%   { transform: translate(-50%, -50%) scale(1)    rotate(0deg); }
  35%  { transform: translate(-50%, -50%) scale(1.55) rotate(0deg); }
  65%  { transform: translate(-50%, -50%) scale(.85)  rotate(0deg); }
  100% { transform: translate(-50%, -50%) scale(1)    rotate(0deg); }
}
.cta-count.pop { animation: count-pop .42s cubic-bezier(.36,.07,.19,.97); }

@keyframes cta-bump {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.08); }
  65%  { transform: scale(.96); }
  100% { transform: scale(1); }
}
.nav-cta.cta-bump { animation: cta-bump .38s cubic-bezier(.36,.07,.19,.97); }

.tarif-qty {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--secondary-container);
  border-radius: 12px;
  padding: 4px;
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--on-secondary-container);
  display: flex;
  align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: rgba(0,0,0,.1); }

.qty-count {
  font-weight: 800; font-size: 1.1rem;
  min-width: 28px; text-align: center;
  color: var(--on-secondary-container);
}

/* ── ZONE ─────────────────────────────────────── */
#zone {
  background: var(--surface);
  padding: 8rem clamp(1.5rem, 6vw, 5rem);
}

#zone .section-header h2 { color: var(--on-surface-variant); }

.map-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.map-circle {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 10px solid var(--surface-container);
  overflow: hidden;
}

.map-tooltip {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  white-space: nowrap;
}
.map-tooltip::before { display: none; }

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--secondary);
  padding: 1.25rem clamp(1.5rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo { text-decoration: none; }
.footer-logo img {
  height: 49px;
  width: auto;
  filter: brightness(0) invert(1);
}

footer p {
  color: rgba(255,255,255,.55);
  font-size: .85rem;
}

/* ── NAV MOBILE LANG ─────────────────────────── */
.nav-mobile-lang {
  display: flex;
  gap: 1.25rem;
  border-top: 1px solid var(--surface-container);
  padding-top: 1.25rem;
  width: 100%;
  justify-content: center;
}
.nav-mobile-lang a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-primary-container);
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s;
}
.nav-mobile-lang a.active,
.nav-mobile-lang a:hover { opacity: 1; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .nav-links                { display: none; }
  .nav-right .lang-switcher { display: none; }
  .nav-burger               { display: flex; }
  .nav-right .nav-cta       { padding: 7px 12px; font-size: .8rem; gap: 6px; }
  .service-photo-card.offset,
  .service-photo-card.offset.visible { transform: translateY(0); }
  .services-photos { padding-bottom: 0; }
  .map-circle { width: 280px; height: 280px; }
  footer { justify-content: center; text-align: center; }
  .sofa-labels-row { justify-content: center; gap: 3rem; }
}
