/* Fond global pour éviter le blanc en overscroll */
html {
  background-color: #075487;
}

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

/* ==============================
   THEME myscale (fond nuit)
   ============================== */
:root {
  --bg-main: #061a2b;
  --primary: #003b68;
  --accent: #0b69a3;

  --text: #f5f7fb;
  --text-muted: rgba(245, 247, 251, 0.78);

  --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.85);
  --shadow-strong: 0 26px 80px rgba(0, 0, 0, 0.95);

  --radius-lg: 22px;
  --radius-md: 18px;
}

/* ==============================
   BODY
   ============================== */
body {
  font-family: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background:
    linear-gradient(
      145deg,
      rgba(2, 7, 12, 0.78) 0%,
      rgba(9, 28, 37, 0.68) 45%,
      rgba(2, 7, 12, 0.82) 100%
    ),
    radial-gradient(900px 700px at 8% 0%, rgba(0,59,104, 0.22), transparent 60%),
    radial-gradient(800px 600px at 92% 100%, rgba(11,105,163, 0.14), transparent 55%);
}

/* Grain global */
/* Grain + overlay combiné */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.06;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("img/hero_index.jpg") center center / cover no-repeat;
  transform: translateZ(0);
  will-change: transform;
}
/* ==============================
   PAGE WRAPPER
   ============================== */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px 80px;
}

/* ==============================
   SECTIONS
   ============================== */
.section {
  padding: 40px 0;
}

/* Section header générique */
.section-header {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* ==============================
   HERO
   ============================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 32px;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 56px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(9, 33, 50, 0.95);
  border: 1px solid rgba(11,105,163, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Titre */
.hero-title {
  font-size: clamp(2.2rem, 3.4vw, 3.0rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-title span {
  display: block;
  font-size: clamp(1.35rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Sous-titre */
.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* Téléphone HERO : empêcher le style bleu iOS + garder le style du site */
.hero-phone,
.hero-phone:visited {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed rgba(11,105,163, 0.55);
  padding-bottom: 1px;
}

.hero-phone:hover {
  border-bottom-color: rgba(11,105,163, 0.95);
}

.hero-phone:active {
  opacity: 0.85;
}

/* CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* KPI cards */
.hero-kpis {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==============================
   RESEAUX SOCIAUX HERO
   ============================== */

.hero-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: rgba(9, 28, 40, 0.9);
  border: 1px solid rgba(245, 247, 251, 0.18);

  color: var(--text);
  font-size: 0.9rem;

  text-decoration: none;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);

  background: rgba(0,59,104, 0.9);

  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}
.kpi-card {
  flex: 0 1 140px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 0 0, rgba(11,105,163, 0.15), rgba(9, 33, 50, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.kpi-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.06rem;
  font-weight: 700;
}

/* Panneau droit */
.hero-panel {
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  background: linear-gradient(145deg, rgba(9, 33, 50, 0.95), rgba(2, 7, 12, 0.98));
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(11,105,163, 0.28), transparent 55%);
  opacity: 0.4;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-panel-title {
  position: relative;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.hero-panel-text {
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-mini-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-link {
  border-radius: 999px;
  padding: 7px 14px;
  border: 1px solid rgba(245, 247, 251, 0.18);
  background: rgba(9, 28, 40, 0.9);
  color: var(--text);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-link:hover {
  transform: translateY(-2px);
  background: rgba(0,59,104, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* ==============================
   RESEAUX SOCIAUX HERO (fix mobile)
   ============================== */

.hero-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Empêche les couleurs "liens" (bleu) sur mobile + visited */
.social-icon,
.social-icon:visited {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: rgba(9, 28, 40, 0.9);
  border: 1px solid rgba(245, 247, 251, 0.18);

  color: var(--text);
  text-decoration: none;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;

  -webkit-tap-highlight-color: transparent; /* iOS */
}

.social-icon i {
  color: inherit; /* force l’icône à suivre la couleur du bouton */
}

.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(0,59,104, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

/* ==============================
   CONCEPT
   ============================== */
.section-concept {
  padding-top: 12px;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.concept-card {
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  background: rgba(9, 33, 50, 0.96);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.concept-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.concept-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.concept-card li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.concept-card li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
}

/* ==============================
   PRESTATIONS
   ============================== */
.section-prestas {
  padding-top: 20px;
}

.presta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.presta-card {
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  background: rgba(9, 33, 50, 0.96);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 140px;
}

.presta-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* Liste des tarifs générée depuis l’API */
.presta-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.presta-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
}

/* Label à gauche avec petit point accent */
.presta-label {
  position: relative;
  padding-left: 14px;
  flex: 1 1 auto;
}

.presta-label::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--accent);
}

/* Prix à droite */
.presta-price {
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Message lorsqu’il n’y a rien dans une catégorie */
.presta-empty {
  font-size: 0.86rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Responsive pour les cartes prestations */
@media (max-width: 960px) {
  .presta-grid {
    grid-template-columns: 1fr;
  }
}




/* ==============================
   FONCTIONNEMENT (TIMELINE)
   ============================== */
.section-steps {
  padding-bottom: 40px;
}

.steps-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.steps-timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(11,105,163, 0.3), rgba(0,59,104, 0.8));
  opacity: 0.65;
}

.step-item {
  position: relative;
  display: flex;
  gap: 14px;
  padding-left: 52px;
  margin-bottom: 18px;
}

.step-badge {
  position: absolute;
  left: 10px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, var(--accent), var(--primary));
  color: #020c14;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(9, 28, 37, 0.9);
}

.step-content h3 {
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA bas de section */
.steps-cta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==============================
   SECTION BAS DE PAGE
   ============================== */
.section-bottom {
  padding-top: 40px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bottom-block {
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  background: rgba(9, 33, 50, 0.96);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-block h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.bottom-block p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ==============================
   BOUTONS
   ============================== */
.btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #075487);
  color: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(245, 247, 251, 0.28);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(245, 247, 251, 0.06);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(11,105,163, 0.7);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(11,105,163, 0.12);
  transform: translateY(-1px);
}



/* ==============================
   ANIMATIONS D’APPARITION
   ============================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-announcement-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .site-announcement-label {
    margin-bottom: 2px;
  }

  .site-announcement-text {
    width: 100%;
    line-height: 1.35;
  }


/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  /* On garde le contenu principal en premier */
  .hero-content {
    order: 0;
  }

  /* Le bloc "Pas d’eau. Pas de karcher..." passe en dessous */
  .hero-panel {
    order: 1;
    margin-top: 18px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .presta-grid {
    grid-template-columns: 1fr;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding-inline: 16px;
  }

  .steps-timeline::before {
    left: 20px;
  }
}


@media (max-width: 640px) {
  .hero {
    padding-bottom: 36px;
  }

  .hero-kpis {
    gap: 8px;
  }

  .kpi-card {
    flex: 1 1 calc(50% - 8px);
  }

  .floating-cta {
    right: 12px;
    bottom: 12px;
  }

  .floating-cta button {
    padding-inline: 14px;
  }
}

@media (max-width: 640px) {
  .hero-social {
    gap: 12px;
    margin-top: 12px;
  }

  .social-icon,
  .social-icon:visited {
    width: 42px;   /* meilleur confort doigt */
    height: 42px;
    font-size: 1.05rem;
  }
}

/* Bouton héro – mise en avant */
.btn-hero-primary {
  font-size: 1rem;
  padding: 12px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
}

/* Halo doux autour du bouton */
.btn-hero-primary::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 0, rgba(11,105,163, 0.6), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

/* Quand la zone CTA héro devient visible, on déclenche les animations */
.hero-cta.visible .btn-hero-primary {
  animation:
    cta-pulse 1.4s ease-out 0.1s 1,
    cta-breathe 3.4s ease-in-out 1.6s infinite alternate;
}

.hero-cta.visible .btn-hero-primary::after {
  opacity: 0.8;
}

/* Pulse initial : petit zoom et flash de lumière */
@keyframes cta-pulse {
  0% {
    transform: scale(0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
  }
}

/* Animation de respiration lente pour garder l’œil attiré */
@keyframes cta-breathe {
  0% {
    transform: scale(1);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.95);
    filter: brightness(1);
  }
  100% {
    transform: scale(1.02);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 1);
    filter: brightness(1.08);
  }
}


/* ==============================
   BANNIÈRE ANNONCE SITE
   ============================== */
.site-announcement {
  width: 100%;
  background: #0b69a3;
  color: #fff;
  border-bottom: 1px solid rgba(9, 28, 37, 0.12);
}

.site-announcement-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.site-announcement-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(9, 28, 37, 0.65);
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.site-announcement-text {
  flex: 1;
  line-height: 1.4;
}

@media (max-width: 768px) {
  body {
    background:
      linear-gradient(
        145deg,
        rgba(2, 7, 12, 0.72) 0%,
        rgba(9, 28, 37, 0.60) 45%,
        rgba(2, 7, 12, 0.78) 100%
      ),
      radial-gradient(700px 500px at 50% 0%, rgba(0,59,104, 0.18), transparent 60%),
      radial-gradient(500px 400px at 50% 100%, rgba(11,105,163, 0.10), transparent 55%);
  }

  body::after {
    background: url("img/hero_index.jpg") 62% center / cover no-repeat;
  }
}

/* ==============================
   HERO MINIMAL
   ============================== */
.hero-minimal {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding-top: 40px;
  padding-bottom: 120px;
}

.hero-content-minimal {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-title-minimal {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  max-width: 900px;
  text-wrap: balance;
}

.hero-links-minimal {
  margin-top: 8px;
}

/* ==============================
   CTA FIXE BAS DROITE
   ============================== */
.floating-nav-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

/* Bouton style capsule avec bulle flèche */
.cta-rail {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 74px;
  min-width: 460px;
  padding: 0 28px 0 88px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  overflow: visible;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.cta-rail:hover {
  transform: translateY(-2px);
}

.cta-rail:active {
  transform: translateY(0) scale(0.985);
}

.cta-rail-primary {
  background: #f7d72f;
  color: #ffffff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.cta-rail-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: #0a1f29;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.cta-rail-arrow {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.55rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.cta-rail-primary .cta-rail-arrow {
  background: #f7d72f;
  color: #3e434b;
}

.cta-rail-secondary .cta-rail-arrow {
  background: rgba(255, 255, 255, 0.9);
  color: #3e434b;
}

.cta-rail-text {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* Animation flèche au hover */
.cta-rail:hover .cta-rail-arrow {
  transform: translateY(-50%) translateX(6px);
}

/* Animation flèche au clic */
.cta-rail:active .cta-rail-arrow i {
  animation: arrow-click-bounce 0.35s ease;
}

@keyframes arrow-click-bounce {
  0%   { transform: translateX(0) scale(1); }
  35%  { transform: translateX(10px) scale(1.08); }
  70%  { transform: translateX(-2px) scale(0.98); }
  100% { transform: translateX(0) scale(1); }
}

/* ==============================
   PETITS AJUSTEMENTS VISUELS
   ============================== */
.hero-social {
  margin-top: 4px;
}

.mini-link {
  padding: 10px 16px;
  font-size: 0.88rem;
}

/* ==============================
   RESPONSIVE HERO + CTA
   ============================== */
@media (max-width: 960px) {
  .hero-minimal {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 160px;
  }

  .hero-title-minimal {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .floating-nav-cta {
    right: 14px;
    left: 14px;
    bottom: 14px;
    gap: 10px;
    align-items: stretch;
  }

  .cta-rail {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 0 18px 0 72px;
  }

  .cta-rail-arrow {
    width: 66px;
    height: 66px;
    font-size: 2rem;
    left: -4px;
  }

  .cta-rail-text {
    font-size: clamp(1rem, 4.5vw, 1.45rem);
    white-space: normal;
    line-height: 1.05;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .hero-content-minimal {
    gap: 18px;
  }

  .hero-links-minimal {
    gap: 8px;
  }

  .hero-social {
    gap: 12px;
  }
}
