/* ===========================================
   LABORATOIRE LE COLISÉE - MAIN STYLESHEET
   =========================================== */

/* Base Styles */
:root {
  --primary-cyan: #06b6d4;
  --primary-cyan-light: #22d3ee;
  --primary-cyan-dark: #0891b2;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
}

/* Intro overlay rideau (curtain) animation */
@media (prefers-reduced-motion: reduce) {
  #intro-overlay,
  #logo-overlay,
  #intro-logo,
  .curtain {
    animation: none !important;
    transition: none !important;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

.content-hidden {
  overflow: hidden;
}

/* Keep overlays visible during intro: support both intro-overlay and logo-overlay */
body.content-hidden > :not(#intro-overlay):not(#logo-overlay) {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* Tighter vertical spacing for a more compact, professional layout */
section {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* Slightly narrower max container to reduce empty side space */
.max-w-7xl {
  max-width: 1100px;
}

/* Floating WhatsApp button styles if injected by JS */
#floating-whatsapp {
  backdrop-filter: blur(6px);
  overflow: hidden;
}

#floating-whatsapp img {
  width: 3.25rem;
  height: 3.25rem;
  display: block;
}

#intro-overlay,
#logo-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ecfeff 0%, #06b6d4 48%, #0f766e 100%);
  z-index: 9999;
  overflow: hidden;
  transform: translateY(-100%);
  will-change: transform, opacity;
}

#intro-overlay > *,
#logo-overlay > * {
  display: none !important;
}

#intro-overlay::before,
#logo-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.34) 45%, transparent 54% 100%);
  transform: translateX(-28%);
  animation: introSheen 680ms ease-out forwards;
}

.curtain {
  display: none;
}

#intro-overlay.closing,
#logo-overlay.closing {
  animation: curtainDropIn 260ms cubic-bezier(.22, .9, .28, 1) forwards;
}

#intro-overlay.opening,
#logo-overlay.opening {
  animation: curtainDropOut 340ms cubic-bezier(.65, 0, .35, 1) forwards;
}

@keyframes curtainDropIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes curtainDropOut {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 1; }
}

@keyframes introSheen {
  from { transform: translateX(-34%); opacity: 0.75; }
  to { transform: translateX(34%); opacity: 0.35; }
}

/* Shared transparent header and mobile sidebar */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  z-index: 50;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6.5rem;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.36), rgba(15, 118, 110, 0));
  pointer-events: none;
}

.site-header.inner-header::before {
  height: 6.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0));
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header-inner {
  padding: 0.75rem 1rem;
}

.site-title,
.site-header #main-nav a {
  color: #fff;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
}

.site-logo {
  display: block;
  transform-origin: left center;
}

.site-header.inner-header .site-logo {
  filter: none;
}

.site-header.inner-header .site-title,
.site-header.inner-header #main-nav > a,
.site-header.inner-header #main-nav > .service-dropdown > a {
  color: #0e7490;
  text-shadow: none;
}

.site-header.inner-header #burger span {
  background: #0e7490;
  box-shadow: none;
}

#mobile-nav {
  position: fixed;
  top: 5.25rem;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(23rem, calc(100vw - 1rem));
  max-width: none;
  max-height: calc(100vh - 6rem);
  padding: 0.75rem;
  background: #0e7490;
  backdrop-filter: blur(18px);
  color: #fff;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  overflow-y: auto;
  transform: translate(-50%, -0.75rem) scale(0.98);
  opacity: 0;
  visibility: hidden;
  transition: transform 260ms ease, opacity 220ms ease, visibility 220ms ease;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(8, 47, 73, 0.3);
}

#mobile-nav.show {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  visibility: visible;
}

#mobile-nav a,
#mobile-nav button {
  color: inherit;
}

#mobile-nav > div:first-child {
  border-color: rgba(255, 255, 255, 0.18);
  position: static;
  width: 100%;
  padding: 0.35rem 0.5rem 0.7rem;
}

#mobile-nav > div:first-child span {
  color: #fff;
}

#mobile-nav a {
  width: 100%;
  border-radius: 999px;
  margin: 0 auto;
  text-align: center;
  justify-content: center;
}

#mobile-nav > a {
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.08);
}

#mobile-nav > div:not(:first-child) {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#mobile-nav a:hover,
#mobile-nav button:hover {
  background: rgba(255, 255, 255, 0.12);
}

#mobile-nav .border-t {
  border-color: rgba(255, 255, 255, 0.18);
}

#mobile-nav button {
  border-radius: 999px;
  text-align: center;
}

.mobile-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.mobile-dropdown-arrow {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 180ms ease;
}

.mobile-dropdown-toggle[aria-expanded="true"] .mobile-dropdown-arrow {
  transform: translateY(0.08rem) rotate(225deg);
}

.mobile-dropdown-panel {
  width: 100%;
  display: grid;
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-dropdown-panel.hidden {
  display: none;
}

.mobile-dropdown-panel a,
.mobile-dropdown-panel button {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  font-size: 0.95rem;
}

.mobile-language-panel {
  grid-template-columns: 1fr;
}

#close-mobile-nav {
  font-size: 2rem;
  color: #a5f3fc;
  background: none;
  border: none;
  cursor: pointer;
}

body > .site-header + section {
  padding-top: 7rem;
}

/* Custom styles for modern design */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
}

.hero-text-shadow {
  text-shadow: 0 4px 18px rgba(8, 47, 73, 0.72);
}

.hero-copy-shadow {
  text-shadow: 0 2px 12px rgba(8, 47, 73, 0.68);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-cyan-light));
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.nav-link {
  transition: color 0.3s ease;
}

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

.site-header #main-nav a:hover {
  color: #a5f3fc;
}

.site-header.inner-header #main-nav > a:hover,
.site-header.inner-header #main-nav > .service-dropdown > a:hover {
  color: #0891b2;
}

.service-dropdown {
  position: relative;
}

.service-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-dropdown-arrow {
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 180ms ease;
}

.service-dropdown:hover .service-dropdown-arrow,
.service-dropdown:focus-within .service-dropdown-arrow {
  transform: translateY(0.06rem) rotate(225deg);
}

.service-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 18rem;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(8, 47, 73, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.service-dropdown:hover .service-dropdown-menu,
.service-dropdown:focus-within .service-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header #main-nav .service-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  color: #155e75;
  text-shadow: none;
  font-size: 0.92rem;
}

.site-header #main-nav .service-dropdown-menu a:hover {
  color: #0891b2;
  background: #ecfeff;
}

.feature-card,
.service-preview-card,
.advice-card,
.info-card {
  border: 1px solid rgba(14, 116, 144, 0.12);
  box-shadow: 0 18px 48px rgba(8, 47, 73, 0.08);
}

.why-intro {
  max-width: 42rem;
}

.why-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.why-card {
  position: relative;
  min-height: 15rem;
  padding: 1.5rem;
  overflow: hidden;
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 254, 255, 0.92));
  border: 0;
  color: #334155;
  box-shadow: 0 18px 46px rgba(8, 47, 73, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.why-card::before {
  content: "";
  position: absolute;
  right: -2.25rem;
  top: -2.25rem;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), rgba(20, 184, 166, 0));
}

.why-card:hover {
  transform: translateY(-0.25rem);
  background:
    linear-gradient(145deg, #ffffff, #ecfeff);
  box-shadow: 0 24px 60px rgba(8, 47, 73, 0.18);
}

.feature-icon,
.service-icon,
.advice-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: #0891b2;
  font-size: 1.45rem;
}

.why-card .feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  background: linear-gradient(135deg, #0891b2, #14b8a6);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 26px rgba(8, 145, 178, 0.24);
}

.service-preview-card {
  position: relative;
  overflow: hidden;
  min-height: 14rem;
  background: linear-gradient(145deg, #ffffff, #f0fdff);
  border: 0;
  box-shadow: 0 18px 44px rgba(8, 47, 73, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-preview-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.22rem;
  background: linear-gradient(90deg, #06b6d4, #14b8a6, #67e8f9);
}

.service-preview-card::after {
  content: "";
  position: absolute;
  right: -2.6rem;
  bottom: -2.6rem;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.13), transparent 66%);
  pointer-events: none;
}

.service-preview-card:hover {
  transform: translateY(-0.3rem);
  background: linear-gradient(145deg, #ffffff, #ecfeff);
  box-shadow: 0 26px 58px rgba(8, 47, 73, 0.13);
}

.service-preview-card .service-icon,
.service-preview-card h3,
.service-preview-card p {
  position: relative;
  z-index: 1;
}

.service-preview-card .service-icon {
  background: linear-gradient(135deg, #0891b2, #14b8a6);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.2);
}

.service-title-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.service-title-link::after {
  content: "\203A";
  font-size: 1.25rem;
  line-height: 1;
  color: #14b8a6;
  transform: translateY(-0.02rem);
  transition: transform 160ms ease;
}

.service-title-link:hover,
.service-title-link:focus-visible {
  color: #0e7490;
}

.service-title-link:hover::after,
.service-title-link:focus-visible::after {
  transform: translate(0.18rem, -0.02rem);
}

.service-title-link:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.advice-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(236, 254, 255, 0.92), #ffffff);
  border: 0;
  box-shadow: 0 16px 40px rgba(8, 47, 73, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.advice-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: linear-gradient(180deg, #06b6d4, #14b8a6);
}

.advice-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 22px 52px rgba(8, 47, 73, 0.11);
}

.advice-card .advice-icon,
.advice-card h3,
.advice-card p,
.advice-card a {
  position: relative;
  z-index: 1;
}

.advice-card .advice-icon {
  background: #ffffff;
  color: #0891b2;
  font-size: 1.35rem;
  border: 1px solid rgba(14, 116, 144, 0.12);
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.13);
}

.section-bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 249, 251, 0.9));
}

/* Carousel Styles */
.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dot {
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header-inner {
    padding: 0.65rem 1rem;
  }

  .site-title {
    max-width: 13rem;
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .site-logo {
    height: 4.25rem;
  }

  .site-header.inner-header::before {
    height: 6.75rem;
  }

  .why-card-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .why-card {
    min-height: auto;
    padding: 1.15rem;
  }

  .why-card .feature-icon {
    width: 2.4rem;
    height: 2.4rem;
  }

  .service-preview-card {
    min-height: auto;
  }

  body > .site-header + section {
    padding-top: 7.25rem !important;
  }

  .p-10 {
    padding: 1.25rem !important;
  }

  h1 {
    line-height: 1.15;
  }

  .glass-card {
    margin: 0;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-text-shadow {
    font-size: 2rem;
  }

  #intro-logo {
    width: 120px;
  }
}

@media (max-width: 640px) {
  .site-title {
    max-width: 11rem;
    font-size: 1.05rem;
  }

  #mobile-nav {
    width: min(22rem, calc(100vw - 1rem));
    padding-inline: 0.75rem;
  }

  .hero-text-shadow {
    font-size: 1.5rem;
  }

  .glass-card {
    padding: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn-primary:focus,
.nav-link:focus,
.carousel-dot:focus {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .curtain,
  #intro-overlay,
  .carousel-dot,
  .btn-primary {
    display: none !important;
  }

  .glass-card {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
  }
}
