@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400..800&family=Funnel+Display:wght@300..800&display=swap');

:root {
  --primary-blue: #4EA2C2;
  --primary-blue-hover: #3b88a5;
  --bg-color: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #1D1E20;
  --text-muted: #64748B;

  --font-heading: 'Funnel Display', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  --navbar-bg: rgba(248, 250, 252, 0.85);
  --premium-card-bg: linear-gradient(145deg, #FFFFFF 0%, #F1F5F9 100%);
  --hero-gradient: #FFFFFF;

  /* Icon colors */
  --hero-text-gradient: linear-gradient(to right, #1D1E20, #4EA2C2);
  --btn-outline-text: var(--primary-blue);
  --btn-outline-border: var(--primary-blue);
  --btn-outline-bg: transparent;
}

.mobile-only {
  display: none !important;
}

.desktop-only {
  display: block;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.brand {
  display: block;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2rem;
}

.nav-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropbtn {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-content {
  display: block;
  /* On force le bloc car on anime visibility et opacity */
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  /* Position initiale décalée */
  background-color: var(--card-bg);
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem 0;
  z-index: 1000;
  margin-top: 1rem;

  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Animation fluide */
  pointer-events: none;
}

.dropdown-content a {
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background-color: rgba(78, 162, 194, 0.05);
  color: var(--primary-blue);
  padding-left: 1.75rem;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  /* Remonte à sa position finale */
  pointer-events: auto;
}

/* Petit triangle invisible pour faciliter le passage de la souris vers le menu */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 1.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

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

.btn-primary {
  background-color: var(--primary-blue);
  color: #FFFFFF !important;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  box-shadow: 0 4px 15px rgba(99, 183, 217, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--btn-outline-border);
  color: var(--btn-outline-text);
}

.btn-outline:hover {
  background: rgba(99, 183, 217, 0.05);
  border-color: var(--primary-blue);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 5% 2rem;
  position: relative;
  background: var(--hero-gradient);
}

.hero-content {
  max-width: 800px;
  text-align: left;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: 1.5rem;
  background: var(--hero-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: 0;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 2rem;
}

.hero-3d-container {
  position: absolute;
  right: -5%;
  /* On le décale un peu pour que la zone Spline couvre bien le bord */
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  /* Plus large pour donner de l'air au modèle */
  height: 100vh;
  /* Utilise toute la hauteur de la fenêtre */
  z-index: 1;
  pointer-events: auto;
  overflow: hidden;
  /* Nécessaire pour masquer le watermark */
  opacity: 0;
  animation: splineFadeIn 1.5s ease-out 0.5s forwards;
}

@keyframes splineFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.hero-3d-container spline-viewer {
  /* On agrandit le viewer pour pousser le watermark hors de la zone cadrée */
  width: calc(100% + 150px);
  height: calc(100% + 100px);
  margin-right: -150px;
  margin-bottom: -100px;
}

@media (max-width: 1024px) {
  .hero-3d-container {
    width: 50%;
  }
}

.mobile-only-img {
  display: none;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: left;
    padding-top: 8rem;
    padding-bottom: 0;
  }

  .hero-content {
    text-align: left;
    order: 1;
    margin-bottom: 2rem;
  }

  .hero p {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-3d-container {
    position: relative;
    width: 100%;
    /* Toute la largeur disponible (dans le padding 5%) */
    margin-left: auto;
    margin-right: auto;
    height: auto;
    min-height: auto;
    right: 0;
    top: 0;
    transform: none;
    order: 2;
    margin-top: 2rem;
    /* Ajusté avec scale(2.2) et transform-origin: top */
    overflow: visible;
  }

  .desktop-only-3d {
    display: none !important;
  }

  .mobile-only-img {
    display: block !important;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
    transform: scale(2.2);
    transform-origin: top;
    /* Zoom augmenté et origine vers le haut pour éviter de remonter sur les boutons */
    margin: 3rem 0 5rem 0;
    /* Ajout de marge pour ne pas que le zoom chevauche les autres sections */
  }
}

/* Marquee / Scrolling Banner */
.marquee {
  background: var(--primary-blue);
  color: #fff;
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
  gap: 4rem;
}

.marquee:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-content span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Targets Section (B2B / B2C) */
.targets-section {
  padding: 6rem 5% 2rem;
  background-color: var(--bg-color);
}

.target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.target-card {
  border-radius: 24px;
  padding: 3rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
}

/* Background gradients for cards */
.target-card.pro {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
}

.target-card.particulier {
  background: linear-gradient(135deg, #4EA2C2 0%, #3b88a5 100%);
  color: #fff;
}

.target-content {
  position: relative;
  z-index: 2;
}

.target-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.target-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Bouton Blanc pour carte Pro */
.btn-white-pro {
  background-color: #fff !important;
  color: #1e293b !important;
}

/* Bouton Blanc pour carte Particulier */
.btn-white-part {
  background-color: #fff !important;
  color: var(--primary-blue) !important;
}

/* Services / Expertises Grid (Bento) */
.services {
  padding: 4rem 5% 8rem;
  background-color: var(--bg-color);
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--text-muted);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.expertise-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.expertise-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 183, 217, 0.5);
}

.expertise-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.expertise-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

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

/* ---------------- OPTION 1 : BENTO BOX ---------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  border-radius: 24px;
  padding: 2rem;
  background-color: var(--card-bg);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease;
  border: 1px solid var(--glass-border);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 183, 217, 0.5);
}

/* Tailles de Bento */
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-small {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bento-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.bento-card .icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bento-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  z-index: 2;
  position: relative;
}

.bento-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  z-index: 2;
  position: relative;
}

.cta-bento {
  border-color: var(--primary-blue) !important;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1.5rem;
    /* Ajout d'un espacement vertical entre les cases */
  }

  .bento-large,
  .bento-wide,
  .bento-small {
    grid-column: span 1;
    grid-row: auto;
    min-height: 280px;
    /* Hauteur minimale élégante */
    height: auto;
    padding: 3rem 1.5rem 1.5rem;
    /* Espace pour le texte en bas */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .bento-card .icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    top: 1rem;
    right: 1rem;
  }

  .bento-card h3 {
    font-size: 1.3rem;
  }
}

/* ---------------- OPTION 2 : REVEAL HOVER ---------------- */
.reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.reveal-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.reveal-card .icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.reveal-card h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  transition: color 0.3s ease, transform 0.4s ease;
  margin-bottom: 0;
}

/* Contenu caché (Hover state) */
.reveal-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  padding: 0 2rem;
}

.reveal-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn-reveal {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

/* Actions au survol */
.reveal-card:hover {
  background-color: var(--primary-blue);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(78, 162, 194, 0.25);
  border-color: transparent;
}

.reveal-card:hover .icon {
  transform: translateY(-30px);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.reveal-card:hover h3 {
  color: #fff;
  transform: translateY(-30px);
}

.reveal-card:hover .reveal-content {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card:hover .btn-reveal:hover {
  background: #fff;
  color: var(--primary-blue);
  border-color: #fff;
}

/* Reviews Section (Google Style) */
.reviews-section {
  padding: 4rem 5% 8rem;
  background-color: var(--bg-color);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  /* Enlever le souligné du lien */
  color: inherit;
  /* Garder la couleur du texte parente */
}

.review-card * {
  text-decoration: none !important;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4285f4;
  /* Google Blue default */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.reviewer-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.review-stars {
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.google-logo {
  width: 24px;
  height: 24px;
}

.review-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  font-style: italic;
}

/* Banner Separator */
.banner-separator {
  background: var(--primary-blue);
  background: linear-gradient(135deg, #4EA2C2 0%, #3b88a5 100%);
  color: #fff;
  padding: 3rem 5%;
  text-align: center;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-content p {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 500;
  color: #fff;
}

.banner-icon {
  font-size: 1.8rem;
}

@media (max-width: 768px) {
  .target-grid {
    grid-template-columns: 1fr;
  }

  .banner-content {
    flex-direction: column;
    gap: 0.5rem;
  }
}



/* Galerie Avant/Après */
.galerie {
  padding: 8rem 5%;
  background-color: var(--bg-color);
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.comparison-card {
  padding: 0;
}

.comparison-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tag-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  letter-spacing: 1px;
}

.tag-label.before {
  background: #f1f5f9;
  color: #64748b;
}

.tag-label.after {
  background: rgba(78, 162, 194, 0.1);
  color: var(--primary-blue);
}

.arrow-divider {
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  animation: slideArrow 2s infinite;
}

@keyframes slideArrow {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(10px);
  }
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-header {
    gap: 1rem;
  }
}

/* Footer Focus */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--glass-border);
  padding: 4.5rem 5% 1.5rem;
  color: var(--text-main);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: top;
  margin-bottom: 3.5rem;
}

.footer-col h3 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--primary-blue);
  font-family: var(--font-heading);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.05rem;
}

.footer-col ul a:hover {
  color: var(--primary-blue);
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--text-muted);
  transition: all 0.3s ease;
  padding: 8px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 50%;
  display: flex;
}

.social-links a:hover {
  color: var(--primary-blue);
  background: rgba(78, 162, 194, 0.1);
  transform: translateY(-2px);
}

.footer-mascot {
  display: flex;
  justify-content: flex-end;
}

.spongy-footer {
  max-height: 200px;
  width: auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
  transform: scale(1.8);
  /* Agrandissement visuel */
  transform-origin: bottom right;
  /* Garde les pieds au même endroit */
}


.footer-copyright {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.8;
}

.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .footer-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-mascot {
    display: none;
  }
}

@media (max-width: 600px) {
  .footer-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .contact-info li,
  .social-links {
    justify-content: flex-start;
  }

  .footer-mascot {
    display: none;
  }
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 3rem;
  }
}

/* Responsive Global & Header */
@media (max-width: 900px) {
  .hero .mascot-large {
    height: 40vh;
    right: -15%;
    opacity: 0.2;
  }

  /* Header Mobile */
  .nav-links {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .burger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2001;
  }

  .burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: 0.3s;
  }

  /* Animation Burger */
  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .mobile-navbar-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
  }
}

/* Overlay Menu Mobile */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--card-bg);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-nav-links li {
  margin-bottom: 2rem;
}

.mobile-nav-links a {
  font-size: 1.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.mobile-nav-links a:hover {
  color: var(--primary-blue);
}

/* Contact Section Minimaliste */
.contact-section-minimal {
  padding: 6rem 5%;
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
  /* Empêche l'image de déborder */
}

/* Conteneur gérant la rotation et la taille */
.mousse-decor-container {
  position: absolute;
  top: 0;
  width: 400px;
  /* Profondeur augmentée pour dépasser sur le bloc */
  height: 100%;
  pointer-events: none;
  z-index: 5;
  /* Au-dessus du conteneur du formulaire */
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  /* Permet les mesures internes */
}

.mousse-left {
  left: -50px;
  /* On le décale un peu à gauche pour un bel effet */
}

.mousse-right {
  right: -50px;
  /* On colle la deuxième à droite */
}

.mousse-decor {
  position: absolute;
  width: 130cqh;
  /* Marge pour le mouvement */
  height: 100cqw;
  object-fit: cover;
  transform: rotate(90deg) scale(1.3);
  opacity: 0.85;
  /* Légère transparence pour la douceur */
}

/* Inversion pour le côté droit pour créer une symétrie */
.mousse-right .mousse-decor {
  transform: rotate(-90deg) scale(1.3) scaleX(-1);
  /* Inclut le zoom et le miroir */
}

/* On s'assure que le conteneur ne bloque pas le scroll */
.contact-section-minimal {
  overflow: hidden;
  will-change: transform;
}

.contact-container-minimal {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  /* Garde le contenu principal au-dessus */
}

.contact-box {
  background-color: var(--primary-blue);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 15px 40px rgba(78, 162, 194, 0.2);
}

.contact-box h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.contact-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.contact-form-minimal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.minimal-input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  border: none;
  background-color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  color: var(--text-main);
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.minimal-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.minimal-input::placeholder {
  color: #A0AEC0;
}

textarea.minimal-input {
  resize: vertical;
  min-height: 120px;
}

.btn-minimal-submit {
  width: 100%;
  padding: 1.2rem;
  border-radius: 16px;
  border: 2px solid #fff;
  background-color: transparent;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-minimal-submit:hover {
  background-color: #fff;
  color: var(--primary-blue);
}

#result {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-height: 1.5rem;
  color: #fff;
}

#result.success {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

#result.error {
  color: #ffcccc;
}

.contact-footer-minimal {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  /* Pour le mobile */
  gap: 3rem;
  /* Espacement égal entre Tél, Mail et Réseaux */
  padding-top: 1rem;
  margin-top: 1rem;
}

.contact-links-minimal {
  display: contents;
  /* Les enfants deviennent des enfants directs du parent footer */
}

.contact-links-minimal a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: opacity 0.3s ease;
}

.contact-links-minimal a:hover {
  opacity: 0.8;
}

.social-links-minimal {
  display: flex;
  gap: 1rem;
}

.social-links-minimal a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-links-minimal a:hover {
  transform: translateY(-3px);
}

.reservation-hero {
  padding: 10rem 5% 4rem;
  background: var(--bg-color);
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(78, 162, 194, 0.1);
  color: var(--primary-blue);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-blue);
  /* Bleu AutomaClean */
  border-radius: 50%;
  position: relative;
}

.dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-blue);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.container-small {
  max-width: 800px;
  margin: 0 auto;
}

.reservation-hero h1 {
  font-size: 3.5rem;
  margin: 1rem 0;
  background: var(--hero-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reservation-form-section {
  padding-bottom: 8rem;
}

.booking-form-full {
  background: var(--card-bg);
  padding: 3.5rem;
  border-radius: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.form-step {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.form-step:last-of-type {
  border-bottom: none;
}

.form-step h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(78, 162, 194, 0.1);
}

.form-actions {
  text-align: center;
  margin-top: 1rem;
}

.form-notice {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Success Overlay */
.success-overlay {
  background: white;
  border-radius: 30px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--glass-shadow);
  animation: slideUpFade 0.6s ease-out;
}

.success-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.success-content p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: rgba(78, 162, 194, 0.1);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .reservation-hero h1 {
    font-size: 2.5rem;
  }

  .booking-form-full {
    padding: 2rem 1.5rem;
  }

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

  .full-width {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .mousse-decor-container {
    display: none;
  }
}

@media (max-width: 768px) {
  .contact-box {
    padding: 3rem 1.5rem;
  }

  .contact-box h2 {
    font-size: 2.2rem;
  }

  .contact-footer-minimal {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-links-minimal {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* Page Service Template */
.hero-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10rem 10% 5rem;
  background: var(--hero-gradient);
  gap: 4rem;
}

.hero-service-content {
  flex: 1;
}

.hero-service-content h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin: 1.5rem 0;
  background: var(--hero-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-service-visual {
  flex: 1;
  max-width: 500px;
  /* Évite qu'il soit trop immense sur grand écran */
  aspect-ratio: 1 / 1;
  /* Force le format carré */
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.1s ease-out;
  /* Très court pour le suivi, ajusté par JS */
  will-change: transform;
}

.hero-service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
  will-change: transform;
}

/* Spongy Mascot specific styling */
.spongy-hero {
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
  border-radius: 0 !important;
  transform: perspective(1000px) rotateY(-10deg) !important;
}

.spongy-hero img {
  object-fit: contain !important;
}

/* On enlève le hover CSS simple pour laisser la place au JS interactif */
.hero-service:hover .hero-service-visual img {
  transform: none;
}

/* Service Gallery Styles */
.service-gallery {
  padding: 8rem 5% 4rem;
  /* Ajout d'espace généreux en haut */
  background: var(--bg-color);
}

/* Why Us Premium Section */
.why-us-premium {
  padding: 8rem 5%;
  background: #fff;
}

.why-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.why-intro {
  flex: 1;
  position: sticky;
  top: 120px;
}

.why-intro h2 {
  font-size: 3rem;
  margin: 1.5rem 0;
  line-height: 1.1;
  color: var(--text-main);
}

.why-intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 400px;
}

.why-grid-v2 {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.why-item {
  display: flex;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.why-item:last-child {
  border-bottom: none;
}

.why-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  font-family: var(--font-heading);
  opacity: 0.5;
  padding-top: 0.2rem;
}

.why-text h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.why-text p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

@media (max-width: 1024px) {
  .why-container {
    flex-direction: column;
    gap: 3rem;
  }

  .why-intro {
    position: static;
  }

  .why-intro h2 {
    font-size: 2.5rem;
  }
}

/* Pricing Card Enhancements */
.pricing-section {
  padding: 6rem 5%;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.price-card {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 32px;
  border: 1px solid #e2e8f0;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.price-card.featured {
  border-color: var(--primary-blue);
  box-shadow: 0 20px 40px rgba(78, 162, 194, 0.15);
  transform: scale(1.05);
  z-index: 2;
}

.price-header {
  margin-bottom: 2rem;
}

.price-card h3 {
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.duration {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.price-amount {
  font-size: 4rem;
  font-weight: 900;
  margin: 1rem 0 2.5rem;
  color: var(--primary-blue);
  border-top: 1px solid #f1f5f9;
  padding-top: 1.5rem;
}

.price-amount span {
  display: block;
}

.price span {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.price-card ul {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.price-card li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
  padding: 6rem 5%;
  background: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #edf2f7;
}

.faq-item h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

@media (max-width: 900px) {
  .hero-service {
    flex-direction: column;
    text-align: center;
    padding: 8rem 5% 5rem;
    gap: 3rem;
  }

  .hero-service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-service-content br {
    display: none;
  }

  .hero-service-visual {
    width: 100%;
    transform: none;
  }

  .spongy-hero {
    display: none;
  }

  .spongy-page .hero-service {
    padding-bottom: 2rem;
  }

  .spongy-page .why-us-premium {
    padding-top: 2rem;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }
}