/* Fox Clean Auto — design system + homepage (chargé uniquement sur pages publiques) */

.page-home {
  --section-y: clamp(3.5rem, 8vw, 5.75rem);
}

/* —— Placeholders photo —— */
.media-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  width: 100%;
  min-height: 12rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.035) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(249, 115, 22, 0.06), transparent 70%),
    var(--bg-elevated);
  color: var(--text-muted);
  overflow: hidden;
}

.media-placeholder__icon {
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0.55;
  color: rgba(249, 115, 22, 0.75);
}

.media-placeholder__caption {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.72;
  text-align: center;
  padding: 0 1rem;
}

.media-placeholder--hero {
  min-height: clamp(18rem, 48vw, 28rem);
  aspect-ratio: 4 / 5;
  max-height: 34rem;
}

.media-placeholder--ba {
  min-height: 14rem;
  aspect-ratio: 16 / 10;
}

.media-placeholder--gallery {
  min-height: 9rem;
  aspect-ratio: 4 / 3;
}

.media-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-placeholder:has(img) .media-placeholder__icon,
.media-placeholder:has(img) .media-placeholder__caption {
  display: none;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal--in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Hero —— */
.hero-pro {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}

.hero-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(249, 115, 22, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 255, 255, 0.03), transparent 60%);
  pointer-events: none;
}

.hero-pro__grid {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-pro__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero-pro__badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.hero-pro__badge strong {
  color: var(--accent-bright);
  font-weight: 700;
}

.hero-pro__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.45rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-pro__subtitle {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(244, 241, 236, 0.92);
}

.hero-pro__lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-pro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.hero-pro__actions .btn {
  min-height: 2.85rem;
  padding-inline: 1.25rem;
}

.hero-pro__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-pro__checks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-pro__checks svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

/* —— Trust strip —— */
.trust-strip {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.trust-strip__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 0.35rem;
}

.trust-strip__item {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.78);
  white-space: nowrap;
}

.trust-strip__dot {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.7);
  margin-inline: 0.55rem;
}

@media (max-width: 640px) {
  .trust-strip__dot:nth-of-type(2n) {
    display: none;
  }
}

/* —— Sections —— */
.section-pro {
  padding: var(--section-y) 1.25rem;
}

.section-pro--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
}

.section-pro__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-pro__head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-pro__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-pro__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-pro__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* —— Formule cards —— */
.formule-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 860px) {
  .formule-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.formule-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.formule-card:hover {
  border-color: rgba(249, 115, 22, 0.35);
  background: var(--bg-card-strong);
}

@media (prefers-reduced-motion: reduce) {
  .formule-card:hover {
    transform: none;
  }
}

.formule-card--featured {
  border-color: rgba(249, 115, 22, 0.4);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.07), var(--bg-card) 42%);
}

.formule-card__tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  color: var(--accent-bright);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.formule-card__name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
}

.formule-card__meta {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.formule-card__desc {
  margin: 0 0 1rem;
  color: rgba(244, 241, 236, 0.88);
  font-size: 0.95rem;
}

.formule-card__list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.formule-card__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.formule-card__list svg {
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.15rem;
  color: var(--accent);
}

.formule-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.formule-card__price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}

.formule-card__price-new {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.formule-card .btn {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

/* —— Compare table —— */
.compare-wrap {
  margin-top: 2.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  color: rgba(244, 241, 236, 0.88);
  font-weight: 500;
}

.compare-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.compare-table .is-yes {
  color: var(--accent-bright);
  font-weight: 700;
}

.compare-table .is-no {
  color: rgba(161, 161, 170, 0.45);
}

.compare-toggle {
  margin: 1.5rem 0 0;
  text-align: center;
}

.compare-toggle summary {
  cursor: pointer;
  color: var(--accent-bright);
  font-weight: 600;
  list-style: none;
}

.compare-toggle summary::-webkit-details-marker {
  display: none;
}

/* —— How it works —— */
.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.step {
  padding: 1.15rem 1rem;
  border-top: 2px solid rgba(249, 115, 22, 0.45);
}

.step__num {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.step__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

/* —— Before / after —— */
.ba-section {
  opacity: 0.92;
}

.ba {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  max-width: 820px;
  margin: 0 auto;
  --ba-pos: 50%;
}

.ba__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #111;
}

.ba--landscape .ba__frame {
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: none;
  max-height: none;
}

.ba--portrait {
  max-width: 480px;
  margin-inline: auto;
}

.ba--portrait .ba__frame {
  aspect-ratio: 9 / 16;
  width: min(100%, 480px, calc(75vh * 9 / 16));
  max-height: 75vh;
  margin-inline: auto;
}

@media (max-width: 560px) {
  .ba--portrait {
    max-width: 430px;
  }

  .ba--portrait .ba__frame {
    width: min(100%, 430px, calc(75vh * 9 / 16));
  }
}

.ba__before,
.ba__after {
  position: absolute;
  inset: 0;
}

.ba__after {
  clip-path: inset(0 0 0 50%);
}

.ba__label {
  position: absolute;
  top: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ba__label--before {
  left: 0.75rem;
}

.ba__label--after {
  right: 0.75rem;
}

.ba__range {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  width: calc(100% - 2rem);
  margin: 0 auto;
  z-index: 3;
  accent-color: var(--accent);
  touch-action: none;
}

.ba .media-placeholder {
  border: 0;
  border-radius: 0;
  min-height: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.ba__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ba--portrait .ba__img {
  object-fit: contain;
}

.ba--landscape .ba__img {
  object-fit: cover;
}

.ba__media {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ba-gallery {
  max-width: 820px;
  margin: 0 auto;
}

.ba-gallery .ba {
  max-width: none;
  margin: 0;
}

.ba-gallery__meta {
  text-align: center;
  margin-top: 1rem;
}

.ba-gallery__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.ba-gallery__desc {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.ba-gallery__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
  user-select: none;
  touch-action: manipulation;
}

.ba-gallery__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ba-gallery__btn:hover,
.ba-gallery__btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.ba-gallery__count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 3.5rem;
  text-align: center;
}

/* —— Loyalty —— */
.loyalty-pro {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.08), transparent 45%),
    var(--bg-card);
}

@media (min-width: 780px) {
  .loyalty-pro {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 2rem;
  }
}

.loyalty-pro__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 650;
}

.loyalty-pro__text {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.loyalty-pro__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: rgba(244, 241, 236, 0.85);
  font-size: 0.92rem;
}

.loyalty-track {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.loyalty-track__item {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.loyalty-track__item--reward {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.1);
}

.loyalty-track__dot {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.loyalty-track__label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.loyalty-track__value {
  display: block;
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--accent-bright);
}

/* —— Why grid —— */
.why-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  padding: 1.25rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.why-card__icon {
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.85rem;
  color: var(--accent);
}

.why-card__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 650;
}

.why-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* —— Zone —— */
.zone-pro {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .zone-pro {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.zone-pro__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.zone-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: rgba(244, 241, 236, 0.9);
}

.zone-chip strong {
  color: var(--accent-bright);
}

.home-map {
  min-height: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* —— About —— */
.about-pro {
  max-width: 42rem;
}

.about-pro p {
  margin: 0 0 1rem;
  color: rgba(244, 241, 236, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-pro__note {
  margin-top: 0.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted) !important;
  font-size: 0.95rem !important;
}

/* —— Final CTA —— */
.cta-final {
  padding: clamp(3rem, 8vw, 5rem) 1.25rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(249, 115, 22, 0.12), transparent 55%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  border-top: 1px solid var(--border);
}

.cta-final__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.cta-final__text {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--text-muted);
}

.cta-final .btn {
  min-height: 3rem;
  padding-inline: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  font-weight: 700;
}

/* —— Footer pro —— */
.site-footer--pro {
  padding: 2.75rem 1.25rem calc(2rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: #050403;
}

.site-footer--pro .site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .site-footer--pro .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer--pro .site-footer__brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 650;
}

.site-footer--pro .site-footer__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 18rem;
}

.site-footer--pro .site-footer__heading {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.7);
}

.site-footer--pro ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer--pro li,
.site-footer--pro a {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-decoration: none;
}

.site-footer--pro a:hover {
  color: var(--accent-bright);
}

.site-footer--pro .site-footer__copy {
  margin: 1.5rem 0 0;
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: rgba(161, 161, 170, 0.7);
  font-size: 0.82rem;
}

/* —— Sticky mobile CTA —— */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  padding: 0.65rem 1rem calc(0.65rem + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, rgba(7, 6, 4, 0.92) 28%);
  transform: translateY(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.sticky-cta .btn {
  pointer-events: auto;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 2.85rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.sticky-cta--hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 921px) {
  .sticky-cta {
    display: none;
  }
}

body.page-home {
  padding-bottom: 0;
}

@media (max-width: 920px) {
  body.page-home {
    padding-bottom: calc(4.25rem + var(--safe-bottom));
  }

  body.page-home .whatsapp-fab {
    bottom: calc(4.75rem + var(--safe-bottom));
  }
}

/* Reviews placeholder — hidden until real content */
.reviews-slot[hidden] {
  display: none !important;
}
