﻿/* PINAPP — démos sectorielles (prompt sites démo) — autonome, sans variables.css site principal */
@import url('./fonts.css');

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

html {
  scroll-behavior: auto;
}

.demo-sector-page {
  font-family: var(--demo-typo-body);
  color: var(--demo-texte);
  background: var(--demo-fond);
  overflow-x: hidden;
  padding-top: calc(36px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}

/* Démo prod : pas de bandeau .demo-live-banner — évite double réserve haut */
.demo-sector-page--no-live-banner {
  padding-top: env(safe-area-inset-top, 0px);
}

/* pinapp-global met .skip-link à top:-100px (halo biolume) → lien visible ; ici focus-only */
.demo-sector-page .skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
  border-radius: 0;
  transition: none;
}

.demo-sector-page .skip-link:focus,
.demo-sector-page .skip-link:focus-visible {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  border-radius: 4px;
  text-decoration: none;
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.demo-skip {
  position: absolute;
  left: -9999px;
  z-index: 10001;
  padding: 8px 16px;
  background: var(--demo-accent);
  color: var(--demo-texte-btn);
  text-decoration: none;
  border-radius: 100px;
}

.demo-skip:focus {
  left: 8px;
  top: calc(44px + env(safe-area-inset-top, 0px));
}

.demo-live-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-sizing: border-box;
  height: calc(36px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0
    env(safe-area-inset-left, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(62, 235, 214, 0.82);
  background: rgba(5, 10, 20, 0.95);
  backdrop-filter: blur(20px);
}

.demo-live-banner .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3eebd6;
  animation: demo-live-pulse 2s linear infinite;
  flex-shrink: 0;
}

@keyframes demo-live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Défilement page classique : sections respirantes, plus de « cage » 100vh / overflow hidden */
.demo-sector-page main#main-demo {
  scroll-behavior: smooth;
}

.demo-sector-page section {
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: clamp(48px, 9vh, 96px) max(24px, env(safe-area-inset-right)) clamp(56px, 11vh, 112px)
    max(24px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.demo-sector-page section > * {
  max-height: none;
}

.demo-sector-page section.hero {
  min-height: 100dvh;
  padding: calc(56px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right))
    calc(40px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left));
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 767px) {
  .demo-sector-page section:not(.hero) {
    min-height: auto;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

/* Carrousel plein écran derrière le texte (plusieurs visuels secteur) */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-dots {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.hero-dot.is-active {
  background: var(--demo-accent);
  transform: scale(1.2);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--demo-overlay-hero);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--demo-accent-hero);
  margin-bottom: 16px;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--demo-typo-titre);
  font-size: clamp(32px, 6vw, 72px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--demo-texte-hero);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 16px;
  opacity: 0.75;
  color: var(--demo-texte-hero);
  margin-bottom: 40px;
  line-height: 1.5;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 100px;
  background: var(--demo-accent);
  color: var(--demo-texte-btn);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  animation: demo-breathe 4s ease-in-out infinite;
}

@keyframes demo-breathe {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.008);
  }
}

.services-section {
  background: var(--demo-fond-services);
}

.services-title {
  font-family: var(--demo-typo-titre);
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--demo-texte);
}

.services-subtitle {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 32px;
  color: var(--demo-texte);
}

.swipe-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 240px;
  touch-action: pan-y;
}

.swipe-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--demo-fond-card);
  border: 1px solid var(--demo-border-card);
  border-radius: 16px;
  overflow: hidden;
}

.swipe-item.active {
  opacity: 1;
  pointer-events: auto;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--demo-accent);
  flex-shrink: 0;
}

.service-name {
  font-family: var(--demo-typo-titre);
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--demo-texte);
}

.service-desc {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--demo-texte);
}

.service-prix {
  font-size: 16px;
  font-weight: 600;
  color: var(--demo-accent);
}

.swipe-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.swipe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--demo-accent);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 200ms;
  border: none;
  padding: 0;
}

.swipe-dot.active {
  opacity: 1;
}

.preuve-section {
  background: var(--demo-fond-preuve);
  text-align: center;
}

.preuve-avis {
  font-family: var(--demo-typo-titre);
  font-size: clamp(18px, 2.5vw, 28px);
  font-style: italic;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 16px;
  color: var(--demo-texte);
}

.preuve-auteur {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 8px;
  color: var(--demo-texte);
}

.demo-label {
  font-size: 11px;
  opacity: 0.45;
  letter-spacing: 0.08em;
  color: var(--demo-texte);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.badge {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--demo-border-card);
  font-size: 12px;
  opacity: 0.85;
  color: var(--demo-texte);
}

.booking-section {
  background: var(--demo-fond-booking);
  text-align: center;
}

.booking-title {
  font-family: var(--demo-typo-titre);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--demo-texte);
}

.booking-sub {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 32px;
  color: var(--demo-texte);
}

.progress-track {
  width: 100%;
  max-width: 320px;
  height: 2px;
  background: var(--demo-border-card);
  border-radius: 100px;
  margin: 0 auto 32px;
}

.progress-fill {
  height: 2px;
  background: linear-gradient(90deg, #4ae88a, #3eebd6);
  border-radius: 100px;
  width: 33.33%;
  transition: width 300ms ease;
}

.questions-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  min-height: 200px;
  margin: 0 auto;
}

.question {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
  overflow-y: auto;
  padding: 0 4px;
}

.question.active {
  opacity: 1;
  pointer-events: auto;
}

.question-label {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--demo-texte);
  text-align: center;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--demo-border-card);
  font-size: 14px;
  cursor: pointer;
  color: var(--demo-texte);
  background: transparent;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

@media (hover: hover) {
  .pill:hover {
    background: var(--demo-accent);
    color: var(--demo-texte-btn);
    border-color: var(--demo-accent);
  }
}

.pill.selected {
  background: var(--demo-accent);
  color: var(--demo-texte-btn);
  border-color: var(--demo-accent);
}

.pill:disabled {
  opacity: 0.35;
  cursor: default;
}

.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.check-circle {
  width: 56px;
  height: 56px;
}

@keyframes check-appear {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.check-circle.animate {
  animation: check-appear 400ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.confirm-text {
  font-family: var(--demo-typo-titre);
  font-size: 20px;
  color: var(--demo-texte);
}

.confirm-sub {
  font-size: 14px;
  opacity: 0.6;
  color: var(--demo-texte);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(48px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 9000;
  background: var(--demo-fond-footer);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--demo-border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  font-size: 12px;
  color: var(--demo-texte);
  opacity: 0.85;
}

.site-footer a.pinapp-back {
  color: var(--demo-accent);
  text-decoration: none;
  font-size: 11px;
}

.footer-demo {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(62, 235, 214, 0.6);
}

@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(28px, 7vw, 48px);
  }
  .demo-sector-page section {
    padding: 0 16px;
  }
  .swipe-container {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-hero {
    animation: none;
  }
  .demo-live-banner .live-dot {
    animation: none;
  }
}

/* =====================================================
   DÉMOS — Features interactives
   ===================================================== */

#demo-feature {
  padding: 0 0 var(--space-6);
}

.df-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.df-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 8px;
}
.df-title {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--demo-texte, #f4f2ee);
}
.df-sub-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 10px;
  margin-top: 16px;
}
.df-note {
  font-size: 11px;
  opacity: 0.35;
  margin-top: 12px;
  line-height: 1.5;
  text-align: center;
}

/* Bouton CTA feature */
.df-cta {
  display: inline-block;
  padding: 12px 24px;
  background: var(--demo-accent, #00e5cc);
  color: #050a14;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity 200ms ease;
  width: 100%;
  text-align: center;
}
.df-cta:hover {
  opacity: 0.88;
}
.df-cta:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Pills communes */
.df-pill {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  color: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
}
.df-pill:hover {
  border-color: var(--demo-accent, #00e5cc);
}
.df-pill.active {
  background: rgba(var(--demo-accent-rgb, 0, 229, 204), 0.18);
  border-color: var(--demo-accent, #00e5cc);
  color: var(--demo-accent, #00e5cc);
}

.df-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.df-pills-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

/* Résultat prix flip */
.df-result-flip {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--demo-texte, #f4f2ee);
  margin: 20px 0 4px;
  font-variant-numeric: tabular-nums;
}
.df-currency {
  font-size: 0.5em;
  opacity: 0.55;
}

/* Slider */
.df-slider-wrap {
  margin-bottom: 16px;
}
.df-slider {
  width: 100%;
  accent-color: var(--demo-accent, #00e5cc);
  height: 4px;
  cursor: pointer;
}
.df-val {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 6px;
}

/* Quiz / Diagnostic */
.df-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}
.df-progress-fill {
  height: 100%;
  background: var(--demo-accent, #00e5cc);
  border-radius: 2px;
  transition: width 400ms ease;
}
.df-quiz-q {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 500;
}
.df-quiz-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.df-btn-oui,
.df-btn-non {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 200ms ease;
}
.df-btn-oui {
  background: rgba(57, 224, 117, 0.12);
  color: #39e075;
  border-color: #39e075;
}
.df-btn-oui:hover {
  background: rgba(57, 224, 117, 0.22);
}
.df-btn-non {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  border-color: #dc2626;
}
.df-btn-non:hover {
  background: rgba(220, 38, 38, 0.22);
}
.df-quiz-count {
  font-size: 11px;
  opacity: 0.4;
  margin-top: 12px;
  text-align: center;
}

/* Compatibilité ring */
.df-compat-ring {
  position: relative;
  width: 120px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.df-compat-pct {
  position: absolute;
  font-size: 22px;
  font-weight: 700;
  color: var(--demo-accent, #00e5cc);
}
.df-compat-msg {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 16px;
}

/* Arbre juridique */
.df-answer {
  font-size: 15px;
  line-height: 1.7;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--demo-accent, #c9a96e);
  border-radius: 0 12px 12px 0;
  margin-bottom: 16px;
}
.df-back {
  font-size: 12px;
  margin-bottom: 12px;
}

/* Diagnostic peau */
.df-reco-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  margin-bottom: 16px;
}
.df-reco-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.df-reco-desc {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 8px;
}
.df-reco-prix {
  font-size: 24px;
  font-weight: 700;
  color: var(--demo-accent, #c9748f);
}

/* Plan de salle */
.df-salle-wrap {
  text-align: center;
  margin-bottom: 16px;
}
.df-salle-svg {
  max-width: 320px;
  width: 100%;
}
.df-salle-legend {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.df-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.df-table-info {
  padding: 16px;
  background: rgba(57, 224, 117, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(57, 224, 117, 0.25);
  margin-bottom: 12px;
}

/* Cils */
.df-cils-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.df-cils-preview {
  text-align: center;
  margin: 12px 0;
}

/* Ongles — swatches */
.df-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.df-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 200ms,
    border-color 200ms;
}
.df-swatch:hover {
  transform: scale(1.15);
}
.df-swatch.active {
  border-color: #fff;
  transform: scale(1.18);
}
.df-nails-wrap {
  text-align: center;
  margin: 12px 0;
}

/* Coiffeur niveaux */
.df-hair-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.df-hair-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
}
.df-hair-btn.active {
  border-color: var(--demo-accent, #c0a882);
  background: rgba(192, 168, 130, 0.12);
}
.df-hair-visual {
  text-align: center;
  padding: 16px 0;
}
.df-hair-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.df-hair-details {
  font-size: 13px;
  opacity: 0.65;
}

/* Barbier countdown */
.df-countdown-lcd {
  font-family: var(--font-apple-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--demo-accent, #c9a96e);
  text-align: center;
  letter-spacing: 4px;
  text-shadow: 0 0 20px currentColor;
  margin: 12px 0;
}
.df-confirm-txt {
  font-size: 14px;
  text-align: center;
  opacity: 0.8;
}
.df-srv {
  text-align: left;
  border-radius: 10px;
  padding: 12px 16px;
}

/* Boulangerie panier */
.df-panier-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.df-panier-emoji {
  font-size: 24px;
  flex-shrink: 0;
}
.df-panier-nom {
  flex: 1;
  font-size: 14px;
}
.df-panier-prix {
  font-size: 13px;
  opacity: 0.6;
  white-space: nowrap;
}
.df-qte-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.df-qte-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  transition: all 180ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.df-qte-btn:hover {
  border-color: var(--demo-accent, #c4622d);
}
.df-qte {
  width: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.df-panier-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 12px;
  font-weight: 700;
  font-size: 18px;
}

/* Fitness */
.df-hb-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.df-hb-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.df-hb-row label {
  font-size: 12px;
  opacity: 0.55;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.df-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: inherit;
  outline: none;
  box-sizing: border-box;
}
.df-input:focus {
  border-color: var(--demo-accent, #dc2626);
}
.df-hb-res-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
}
.df-hb-stat {
  text-align: center;
}
.df-hb-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--demo-accent, #dc2626);
  line-height: 1;
}
.df-hb-lab {
  font-size: 10px;
  opacity: 0.5;
  margin-top: 4px;
}
.df-hb-msg {
  font-size: 13px;
  opacity: 0.7;
  margin: 12px 0;
  line-height: 1.5;
}
.df-calc-btn {
  margin-top: 8px;
}

@media (max-width: 480px) {
  .df-card {
    padding: 20px;
  }
  .df-result-flip {
    font-size: 36px;
  }
  .df-hb-res-grid {
    gap: 10px;
  }
  .df-hb-val {
    font-size: 22px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   PREMIUM FINISH — DEMOS 3000 EUR
   Animations cinematiques, glass Apple, spring physics, glows accent
   ════════════════════════════════════════════════════════════════════ */

/* ─── 1. TYPOGRAPHIE — rendu Apple precis ──────────────────────────── */
.demo-sector-page {
  text-rendering: optimizeLegibility;
  font-feature-settings:
    'kern' 1,
    'liga' 1,
    'calt' 1;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: rgba(0, 229, 204, 0.22);
  color: inherit;
}

/* ─── 2. HERO — entree cinematique (stagger 4 actes) ──────────────── */
.hero-label,
.hero-title,
.hero-sub,
.btn-hero {
  opacity: 0;
  transform: translateY(22px);
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-label {
  animation: hero-enter 0.8s 0.25s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-title {
  animation: hero-enter 0.9s 0.45s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-sub {
  animation: hero-enter 0.85s 0.65s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-hero {
  animation:
    hero-enter 0.8s 0.82s forwards cubic-bezier(0.16, 1, 0.3, 1),
    demo-breathe 4s 1.6s ease-in-out infinite;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero title — gradient text teal-accent (effet Apple WWDC) */
.hero-title {
  background: linear-gradient(
    140deg,
    var(--demo-texte-hero, #f4f0ec) 30%,
    var(--demo-accent-hero, #c41e3a) 90%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

/* Hero label — sub-pixel tracking */
.hero-label {
  letter-spacing: 0.16em;
  font-weight: 600;
}

/* Hero — ambient glow en bas (couleur accent) */
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 55vw;
  height: 35vw;
  border-radius: 50%;
  background: var(--demo-accent, #c41e3a);
  filter: blur(100px);
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
  animation: hero-ambient 7s ease-in-out infinite;
}
@keyframes hero-ambient {
  0%,
  100% {
    opacity: 0.08;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.14;
    transform: translateX(-50%) scale(1.12);
  }
}

/* ─── 3. CTA BUTTON — gradient, grain, spring physics ─────────────── */
.btn-hero {
  background: linear-gradient(
    155deg,
    var(--demo-accent, #c41e3a) 0%,
    var(--demo-accent-dark, #a01028) 100%
  ) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset,
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 0 0 var(--demo-accent, #c41e3a) !important;
  position: relative;
  overflow: hidden;
  transition:
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 300ms ease;
  letter-spacing: -0.01em;
}

/* Grain de lumiere interne */
.btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

@media (hover: hover) {
  .btn-hero:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.26) inset,
      0 -1px 0 rgba(0, 0, 0, 0.14) inset,
      0 10px 32px rgba(0, 0, 0, 0.42),
      0 0 28px rgba(0, 0, 0, 0.18) !important;
    animation: demo-breathe 4s ease-in-out infinite !important;
  }
}
.btn-hero:active {
  transform: scale(0.95) !important;
  transition: transform 80ms cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

/* ─── 4. SECTIONS — entree fluide (emerge de l'ombre) ─────────────── */
.demo-sector-page section:not(.hero) {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-sector-page section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toujours visible si JS desactive */
.no-js .demo-sector-page section {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── 5. SERVICE CARDS — glass Apple, hover spring ────────────────── */
.swipe-item {
  border-width: 0.5px !important;
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.1) inset,
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 1px 4px rgba(0, 0, 0, 0.14) !important;
  transition:
    transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 300ms ease !important;
}

.swipe-item.active:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 -1px 0 rgba(0, 0, 0, 0.08) inset,
    0 14px 40px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(255, 255, 255, 0.04) !important;
}

/* Icone accentuee */
.service-icon {
  filter: drop-shadow(0 0 8px var(--demo-accent, #c41e3a));
  transition: filter 300ms ease;
}

/* Prix — shimmer accent */
.service-prix {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 0 16px var(--demo-accent, #c41e3a);
}

/* Dot de swipe — accent */
.swipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition:
    opacity 200ms ease,
    width 200ms cubic-bezier(0.16, 1, 0.3, 1),
    background 200ms ease;
}
.swipe-dot.active {
  opacity: 1;
  width: 20px;
  border-radius: 3px;
}

/* ─── 6. TESTIMONIAL — quote decorative, gradient text ────────────── */
.preuve-avis {
  position: relative;
  letter-spacing: -0.01em;
  line-height: 1.65;
}
.preuve-avis::before {
  content: '\201C';
  position: absolute;
  top: -0.6em;
  left: -0.3em;
  font-size: 4em;
  line-height: 1;
  opacity: 0.12;
  color: var(--demo-accent, #c41e3a);
  font-family: var(--font-apple-serif);
  pointer-events: none;
}

/* Badges confiance */
.badge {
  border-width: 0.5px !important;
  font-size: 11px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  transition: opacity 200ms ease;
}
@media (hover: hover) {
  .badge:hover {
    opacity: 1;
  }
}

/* ─── 7. BOOKING — pills accent, progress shimmer ─────────────────── */
.progress-fill {
  background: linear-gradient(
    90deg,
    var(--demo-accent, #c41e3a) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    var(--demo-accent, #c41e3a) 100%
  );
  background-size: 200% 100%;
  animation: progress-shimmer 2.5s linear infinite;
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
@keyframes progress-shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: 0% center;
  }
}

/* Pills booking — spring press, active glow */
.pill {
  border-width: 0.5px !important;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    transform 80ms cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 200ms ease !important;
  -webkit-tap-highlight-color: transparent;
}
.pill:active {
  transform: scale(0.92) !important;
  transition: transform 80ms cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}
.pill.selected {
  box-shadow:
    0 0 14px var(--demo-accent, #c41e3a),
    0 0 0 1px var(--demo-accent, #c41e3a) inset !important;
  border-color: var(--demo-accent, #c41e3a) !important;
}

/* ─── 8. CONFIRMATION — check circle spring ───────────────────────── */
@keyframes check-appear {
  0% {
    transform: scale(0.4) rotate(-20deg);
    opacity: 0;
  }
  55% {
    transform: scale(1.15) rotate(3deg);
    opacity: 1;
  }
  75% {
    transform: scale(0.96) rotate(-1deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
.check-circle.animate {
  animation: check-appear 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}
.confirm-text {
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ─── 9. df-card — glass premium ──────────────────────────────────── */
.df-card {
  border-width: 0.5px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.08) inset,
    0 8px 32px rgba(0, 0, 0, 0.24),
    0 1px 4px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
}

.df-cta {
  background: linear-gradient(
    155deg,
    var(--demo-accent, #c41e3a) 0%,
    var(--demo-accent-dark, #a01028) 100%
  ) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 16px rgba(0, 0, 0, 0.32) !important;
  transition:
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 200ms ease !important;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.df-cta:active {
  transform: scale(0.95) !important;
  transition: transform 80ms cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.df-pill {
  border-width: 0.5px !important;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    transform 80ms ease !important;
}
.df-pill:active {
  transform: scale(0.92) !important;
}
.df-pill.active {
  box-shadow: 0 0 12px var(--demo-accent, #c41e3a) !important;
  border-color: var(--demo-accent, #c41e3a) !important;
}

/* ─── 10. FOOTER — frosted glass Apple 0.5px ─────────────────────── */
.site-footer {
  backdrop-filter: saturate(180%) blur(24px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(24px) !important;
  border-top-width: 0.5px !important;
}

/* ─── 11. SCROLLBAR — minimaliste ─────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
*::-webkit-scrollbar {
  width: 3px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
}

/* ─── 12. FOCUS & TOUCH ────────────────────────────────────────────── */
:focus {
  outline: none;
} /* Remplacé par :focus-visible ci-dessous */
:focus-visible {
  outline: 2.5px solid var(--demo-accent, #c41e3a);
  outline-offset: 4px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.15);
}
a,
button,
input,
.pill,
.df-pill,
.swipe-dot {
  -webkit-tap-highlight-color: transparent;
}
button,
.pill,
.df-cta,
.df-pill {
  cursor: pointer;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-label,
  .hero-title,
  .hero-sub,
  .btn-hero,
  .demo-sector-page section:not(.hero) {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero::after {
    animation: none;
  }
  .progress-fill {
    animation: none;
  }
}

/* Mobile : désactiver les effets GPU-coûteux */
@media (max-width: 767px) {
  /* Glow hero : blur 100px trop lourd sur mobile → simplifié */
  .hero::after {
    filter: blur(40px);
    width: 80vw;
    height: 25vw;
    opacity: 0.08;
    animation: none;
  }
  /* Shimmer progress : désactivé sur mobile */
  .progress-fill {
    animation: none;
    background: var(--demo-accent, #c41e3a) !important;
  }
  /* Swipe cards : no hover transform sur touch */
  .swipe-item.active:hover {
    transform: none;
  }
}

/* ─── Galerie + à propos + contact riche (démos complètes) ─── */
.swipe-container.has-thumbs {
  height: 320px;
  max-width: min(520px, 94vw);
}

.swipe-item .service-thumb {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  display: block;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

@media (min-width: 900px) {
  .services-section .swipe-container.has-thumbs {
    max-width: 560px;
    height: 340px;
  }

  .services-section .swipe-item .service-thumb {
    height: 168px;
  }
}

.demo-galerie-section {
  background: var(--demo-fond-services);
  padding-top: clamp(32px, 8vh, 64px);
  padding-bottom: clamp(32px, 8vh, 64px);
}

.demo-galerie-title {
  font-family: var(--demo-typo-titre);
  font-size: clamp(22px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: clamp(20px, 4vw, 36px);
  color: var(--demo-texte);
  font-weight: 400;
}

.demo-galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .demo-galerie-section--dense .demo-galerie-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1100px;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .demo-galerie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.demo-galerie-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--demo-border-card);
  background: var(--demo-fond-card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

@media (hover: hover) {
  .demo-galerie-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.16);
  }
}

.demo-galerie-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.demo-galerie-item figcaption {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  opacity: 0.65;
  color: var(--demo-texte);
}

.demo-apropos-section {
  background: var(--demo-fond-preuve);
}

.demo-apropos-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .demo-apropos-inner {
    grid-template-columns: 1fr;
  }
}

.demo-apropos-photo img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--demo-border-card);
}

.demo-apropos-title {
  font-family: var(--demo-typo-titre);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--demo-texte);
  font-weight: 400;
}

.demo-apropos-lead {
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.82;
  color: var(--demo-texte);
}

.preuve-photo-wrap {
  margin-bottom: 24px;
}

.preuve-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--demo-border-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.demo-contact-rich {
  background: var(--demo-fond-booking);
}

.demo-contact-rich-title {
  font-family: var(--demo-typo-titre);
  font-size: clamp(22px, 3vw, 34px);
  text-align: center;
  margin-bottom: 10px;
  color: var(--demo-texte);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.demo-contact-rich-intro {
  text-align: center;
  font-size: 14px;
  opacity: 0.65;
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.6;
  color: var(--demo-texte);
}

.demo-rich-form {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-rich-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--demo-texte);
  opacity: 0.75;
}

.demo-rich-input,
.demo-rich-textarea {
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--demo-border-card);
  background: var(--demo-fond-card);
  color: var(--demo-texte);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.demo-rich-textarea {
  min-height: 120px;
  resize: vertical;
}

.demo-rich-submit {
  margin-top: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  background: var(--demo-accent);
  color: var(--demo-texte-btn);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.demo-rich-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.demo-rich-hint {
  font-size: 11px;
  opacity: 0.45;
  text-align: center;
  margin-top: 4px;
}
