:root {
  --graphite: #151515;
  --anthracite: #242424;
  --blanc-chaud: #F7F5F0;
  --card: #FCFBF8;
  --gris-perle: #DEDAD1;
  --bleu-cobalt: #B69257;
  --bleu-cobalt-hover: #987641;
  --bleu-glace: #FCFBF8;
  --texte-secondaire: #74716B;
  --texte-clair: rgba(255, 255, 255, 0.62);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 2px 10px rgba(17, 19, 21, 0.08);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background: var(--blanc-chaud);
  color: var(--graphite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--bleu-cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

/* ===== BARRE D'ANNONCE + HEADER (fixes ensemble) ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
}

.announce-bar {
  background: var(--bleu-glace);
  padding: 9px 0;
  overflow: hidden;
}

.announce-track {
  display: flex;
  width: max-content;
  animation: scroll-announce 22s linear infinite;
}

.announce-track p {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding-right: 80px;
}

@keyframes scroll-announce {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .announce-track {
    animation: none;
  }
}

/* ===== HEADER ===== */
.header {
  background: var(--blanc-chaud);
  border-bottom: 1px solid var(--gris-perle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 90px;
}

.logo {
  height: 78px;
  width: auto;
}

.nav {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  color: var(--texte-secondaire);
  font-weight: 600;
  font-size: 14.5px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--bleu-cobalt);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--graphite);
}

.nav-link.is-active {
  color: var(--graphite);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--graphite);
  font-weight: 600;
  font-size: 13.5px;
  transition: color 0.2s;
}

.phone-link:hover {
  color: var(--bleu-cobalt);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px 16px;
  border-top: 1px solid var(--gris-perle);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: var(--graphite);
  font-weight: 600;
  padding: 11px 4px;
  font-size: 15px;
  border-bottom: 1px solid var(--gris-perle);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile-phone {
  color: var(--bleu-cobalt) !important;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--bleu-cobalt);
  color: #fff;
}

.btn-primary:hover {
  background: var(--bleu-cobalt-hover);
}

.btn-small {
  padding: 9px 20px;
  font-size: 13.5px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 150px 0 90px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 15, 15, 0.94) 0%, rgba(15, 15, 15, 0.82) 32%, rgba(15, 15, 15, 0.45) 62%, rgba(15, 15, 15, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 22px;
}

.hero-label-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--bleu-cobalt);
}

.hero-content h1 {
  color: #fff;
  font-weight: 800;
  font-size: 52px;
  letter-spacing: -0.01em;
  line-height: 1.14;
  margin-bottom: 22px;
}

.hero-content h1 em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--bleu-cobalt);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16.5px;
  max-width: 460px;
  margin-bottom: 34px;
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-outline:hover {
  background: var(--bleu-cobalt);
  border-color: var(--bleu-cobalt);
  color: #151515;
}

/* ===== CARTE D'INFORMATIONS ===== */
.info-card-wrap {
  position: relative;
  z-index: 3;
  margin-top: -56px;
}

.info-card {
  background: var(--blanc-chaud);
  border: 1px solid var(--gris-perle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-icon {
  color: var(--bleu-cobalt);
  flex-shrink: 0;
}

.info-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texte-secondaire);
  margin-bottom: 3px;
}

.info-text {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--graphite);
}

.info-cta {
  justify-self: end;
}

/* ===== SECTION TITLES ===== */
.section-title-serif {
  text-align: center;
  color: var(--graphite);
  font-size: 34px;
  margin-bottom: 12px;
}

.section-lead {
  text-align: center;
  color: var(--texte-secondaire);
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 15.5px;
}

.section-title-light {
  color: #fff;
}

.section-lead-light {
  color: var(--texte-clair);
}

/* ===== AVANT / APRES ===== */
.section-avant-apres {
  padding: 96px 0 88px;
  background: var(--blanc-chaud);
}

.comparisons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-comparison {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gris-perle);
}

.comparison-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}

.compare-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.compare-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.compare-after {
  clip-path: inset(0 0 0 50%);
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 0;
  transform: translateX(-50%);
  z-index: 10;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--card);
  transform: translateX(-50%);
}

.slider-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  color: var(--graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.tag {
  position: absolute;
  top: 14px;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-before {
  left: 14px;
  background: #D64545;
}

.tag-after {
  right: 14px;
  background: #2FA85B;
}

.comparison-label {
  font-weight: 700;
  color: var(--graphite);
  padding: 16px 20px;
  font-size: 15px;
}

/* ===== TARIFS ===== */
.section-tarifs {
  padding: 96px 0;
  background: var(--bleu-glace);
}

.eco-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #178a4c;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.vehicle-select {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--gris-perle);
  border-radius: 30px;
  padding: 5px;
  margin: 0 auto 44px;
  width: fit-content;
}

.vehicle-option {
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--graphite);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.vehicle-option:hover {
  color: var(--bleu-cobalt);
}

.vehicle-option.is-active {
  background: var(--graphite);
  color: #fff;
}

.cards-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.card-pack {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--gris-perle);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.card-pack-featured {
  border: 1.5px solid var(--graphite);
}

.pack-flag {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--bleu-cobalt);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
}

.pack-header {
  margin-bottom: 20px;
}

.pack-header h3 {
  color: var(--graphite);
  font-size: 19px;
  margin-bottom: 8px;
}

.pack-duration {
  display: inline-block;
  background: var(--bleu-glace);
  color: var(--graphite);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 30px;
  font-family: 'Manrope', sans-serif;
}

.pack-features {
  height: 275px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 24px;
  mask-image: linear-gradient(to bottom, transparent 0, transparent 24px, #000 72px, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 24px, #000 72px, #000 100%);
}

.pack-features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--gris-perle);
  font-size: 14.5px;
  color: var(--graphite);
  font-weight: 600;
  position: relative;
  padding-left: 24px;
  flex-shrink: 0;
}

.pack-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bleu-cobalt);
  font-weight: 700;
}

.pack-features li.feature-included {
  color: var(--texte-secondaire);
  font-weight: 500;
}

.pack-features li.feature-included::before {
  color: var(--texte-secondaire);
}

.pack-price {
  margin-bottom: 20px;
}

.price-value {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--graphite);
}

.btn-pack {
  text-align: center;
}

/* ===== AVIS ===== */
.section-avis {
  padding: 96px 0 80px;
  background: var(--blanc-chaud);
  overflow: hidden;
}

.section-avis .container {
  margin-bottom: 12px;
}

.avis-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #fff 6%, #fff 94%, transparent);
}

.avis-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-avis 55s linear infinite;
}

.avis-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-avis {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.card-avis {
  background: var(--card);
  border: 1px solid var(--gris-perle);
  border-radius: var(--radius);
  padding: 24px;
  width: 300px;
  flex-shrink: 0;
}

.avis-stars {
  color: #FFB020;
  font-size: 15px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.card-avis p {
  color: var(--graphite);
  font-size: 14px;
  margin-bottom: 14px;
  opacity: 0.85;
}

.avis-author {
  color: var(--graphite);
  font-weight: 700;
  font-size: 13px;
}

/* ===== CONTACT ===== */
.section-contact {
  padding: 96px 0;
  background: var(--anthracite);
  text-align: center;
}

.section-contact .section-lead-light {
  margin-bottom: 40px;
}

.cards-contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.card-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card-contact:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--bleu-cobalt);
}

.contact-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-text {
  flex: 1;
  min-width: 0;
}

.contact-text h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 3px;
}

.contact-text p {
  color: var(--texte-clair);
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  word-break: break-word;
}

.contact-arrow {
  color: var(--texte-clair);
  font-size: 17px;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.card-contact:hover .contact-arrow {
  transform: translateX(3px);
  color: #fff;
}

.contact-reassurance {
  margin-top: 26px;
  color: var(--texte-clair);
  font-size: 13.5px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--anthracite);
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  color: var(--texte-clair);
  font-size: 13px;
}

/* ===== WHATSAPP FLOTTANT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 900;
  transition: transform 0.2s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.whatsapp-float img {
  width: 26px;
  height: 26px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .info-card {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }
  .info-cta {
    grid-column: span 2;
    justify-self: stretch;
  }
  .comparisons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cards-packs {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 36px;
  }
}

@media (max-width: 760px) {
  .nav,
  .header-actions .phone-link,
  .header-actions .btn-small {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-inner {
    height: 68px;
  }
  .logo {
    height: 40px;
  }
  .hero {
    padding: 36px 0 56px;
  }
  .hero-label {
    font-size: 11.5px;
    letter-spacing: 0.08em;
  }
  .hero-content h1 {
    font-size: 28px;
    line-height: 1.28;
    margin-bottom: 14px;
  }
  .hero-subtitle {
    font-size: 14.5px;
    max-width: 100%;
    margin-bottom: 24px;
  }
  .hero-buttons,
  .hero-content .btn {
    width: 100%;
  }
  .info-card-wrap {
    margin-top: 20px;
  }
  .info-card {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hours phone"
      "zone zone"
      "cta cta";
    padding: 22px 20px;
    gap: 18px 16px;
    border-radius: 14px;
  }
  .info-item {
    gap: 10px;
    align-items: flex-start;
  }
  .info-item:nth-child(1) {
    grid-area: hours;
  }
  .info-item:nth-child(2) {
    grid-area: zone;
  }
  .info-item:nth-child(3) {
    grid-area: phone;
  }
  .info-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }
  .info-title {
    font-size: 10.5px;
  }
  .info-text {
    font-size: 13.5px;
  }
  .info-cta {
    grid-area: cta;
    justify-self: stretch;
    margin-top: 4px;
  }
  .cards-contact {
    grid-template-columns: 1fr;
  }
  .section-avant-apres,
  .section-tarifs,
  .section-avis,
  .section-contact {
    padding-top: 64px;
    padding-bottom: 56px;
  }
  .section-title-serif {
    font-size: 27px;
  }
  .section-lead {
    margin-bottom: 28px;
  }
}

@media (max-width: 420px) {
  .announce-track p {
    font-size: 12px;
    padding-right: 50px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .avis-track {
    animation: none;
  }
  .btn,
  .card-contact,
  .nav-toggle span,
  .comparison-wrapper * {
    transition: none !important;
  }
}
