/* Global styles for Sérénisoin (Tailwind via CDN) */
:root {
  /* Couleurs de marque Sérénisoin */
  --brand-primary: #34b5b2; /* S (turquoise) */
  --brand-secondary: #b52295; /* Colombe (magenta) */
  --eucalyptus: var(--brand-primary);
  --lightblue: var(--brand-secondary);
  --softgray: #F5F5F5;
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "liga" 1, "kern" 1; }

/* Respecter les préférences utilisateur (réduction d'animation) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page, .leaving { animation: none !important; }
}

/* Authentic photo presentation */
.photo-auth { border-radius: 1rem; border: 1px solid #eef2f7; box-shadow: 0 8px 24px rgba(0,0,0,0.06); overflow: hidden; background: #fff; }
.photo-caption { font-size: .875rem; color: #6b7280; margin-top: .5rem; }

/* Header visibility + nav */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.98); border-bottom: 1px solid #e5e7eb; backdrop-filter: saturate(180%) blur(8px); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.site-header.elevated { box-shadow: 0 6px 18px rgba(0,0,0,0.08); border-bottom-color: rgba(52,181,178,0.30); }
.nav-link { color: #374151; padding: .5rem .75rem; border-radius: .75rem; transition: background-color .2s ease, color .2s ease; }
.nav-link:hover { background-color: rgba(52,181,178,0.10); color: var(--brand-primary); }
nav a.active { color: var(--brand-primary); background-color: rgba(52,181,178,0.12); }

/* Reusable components (paired with Tailwind utilities) */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  background: var(--brand-primary); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: opacity .2s ease, transform .2s ease;
}
.btn-primary:hover { opacity: .95; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  background: var(--brand-secondary); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: opacity .2s ease;
}
.btn-secondary:hover { opacity: .95; }

.btn-tertiary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; border-radius: 9999px;
  border: 1px solid #e5e7eb; color: inherit; background: transparent;
  transition: color .2s ease, border-color .2s ease;
}
.btn-tertiary:hover { color: var(--brand-primary); border-color: var(--brand-primary); }

.btn-link { text-decoration: none; }
.link { color: var(--brand-primary); text-decoration: none; }
.link:hover { text-decoration: underline; }

.card { 
  background: #fff; border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border: 1px solid #f3f4f6; padding: 1.5rem;
}
.card--compact { padding: 1rem; }
.card-title { font-size: 1.125rem; font-weight: 600; color: #111827; }
.card-text { margin-top: .5rem; color: #374151; }

.service-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; }
.service-title { font-size: 1.125rem; font-weight: 600; color: #111827; }
.service-text { color: #374151; flex: 1 1 auto; }
.icon-wrap { height: 3rem; width: 3rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.icon-wrap--brand { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.icon { height: 1.5rem; width: 1.5rem; display:block; }

.social { color: #6b7280; transition: color .2s ease; }
.social:hover { color: var(--brand-primary); }

.form-label { display: block; font-size: .875rem; font-weight: 500; color: #374151; margin-bottom: .25rem; }
.form-input {
  width: 100%; border-radius: .75rem; border: 1px solid #d1d5db;
  padding: .625rem 1rem; outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.form-input:focus { box-shadow: 0 0 0 3px rgba(52,181,178,0.35); border-color: var(--brand-primary); }

/* Page transitions */
.page { animation: fadeIn .5s ease both; }
.leaving { animation: fadeOut .28s ease both; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }
@keyframes fadeOut { from { opacity: 1; transform: translateY(0);} to { opacity: 0; transform: translateY(4px);} }

/* Active nav highlight (JS adds .active) */
nav a.active { color: var(--brand-primary); }

/* Cookie banner */
.cookie-banner { position: fixed; inset-inline: 0; bottom: 0; display: flex; justify-content: center; padding: 0.75rem; z-index: 60; }
.cookie-banner .cb-inner { background: #ffffff; border: 1px solid #eef2f7; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 1rem; width: min(960px, calc(100% - 1rem)); display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-banner .cb-text { color: #374151; margin: 0; }
.cookie-banner .cb-actions { display: flex; gap: .5rem; align-items: center; }
.is-hidden { display: none !important; }

/* Map placeholder */
.map-placeholder { position: relative; width: 100%; height: 360px; background: #f9fafb; display: grid; place-items: center; }
.map-overlay { padding: 1.25rem; text-align: center; }

/* Global override for Tailwind color utilities mapped to brand variables */
.text-eucalyptus { color: var(--brand-primary) !important; }
.bg-eucalyptus { background-color: var(--brand-primary) !important; }
.border-eucalyptus { border-color: var(--brand-primary) !important; }
.ring-eucalyptus { box-shadow: 0 0 0 3px rgba(52,181,178,0.35) !important; }

.text-lightblue { color: var(--brand-secondary) !important; }
.bg-lightblue { background-color: var(--brand-secondary) !important; }
.border-lightblue { border-color: var(--brand-secondary) !important; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; background: #111827; color: #fff; padding: .5rem .75rem; border-radius: .5rem; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.skip-link:focus { left: .75rem; top: .75rem; z-index: 60; }
.service-card { transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }

/* Fallback gradients and brand utilities (work without Tailwind) */
.brand-gradient-br {
  /* Fallback gradient without color-mix */
  background-image: linear-gradient(
    135deg,
    rgba(52,181,178,0.20) 0%,
    rgba(181,34,149,0.20) 50%,
    #ffffff 100%
  );
}
.brand-gradient-r {
  background-image: linear-gradient(
    90deg,
    rgba(52,181,178,0.15) 0%,
    rgba(181,34,149,0.15) 100%
  );
}

/* Image-based fallbacks (for hosts that strip gradients) */
.brand-gradient-br-img { background-image: url('brand-gradient-br.svg'); background-size: cover; background-repeat: no-repeat; }
.brand-gradient-r-img { background-image: url('brand-gradient-r.svg'); background-size: cover; background-repeat: no-repeat; }

/* Subtle title highlight chip behind text */
.title-gradient {
  background-image: url('brand-gradient-chip.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: .5rem;
  padding: .125rem .375rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Stronger hero overlay (stacks with SVG fallback) */
.hero-boost {
  background-color: rgba(52,181,178,0.12);
  background-image: linear-gradient(
    135deg,
    rgba(52,181,178,0.30) 0%,
    rgba(181,34,149,0.30) 55%,
    rgba(255,255,255,0.00) 100%
  );
}

/* Lighter variant just for the home hero */
.hero-boost-light {
  background-image: linear-gradient(
    135deg,
    rgba(52,181,178,0.14) 0%,
    rgba(181,34,149,0.14) 52%,
    rgba(255,255,255,0.00) 100%
  );
}
/* Fallback for bg-eucalyptus/90 and hover:bg-eucalyptus */
.bg-eucalyptus\/90 { background-color: rgba(52,181,178,0.90) !important; }
.hover\:bg-eucalyptus:hover { background-color: var(--brand-primary) !important; }

/* Typographic and spacing harmony */
/* Slightly tighter headings + consistent spacing */
:where(h1,h2,h3){ letter-spacing: -0.01em; margin-bottom: .5rem; }
:where(p,ul,ol){ line-height: 1.7; }
.lead { font-size: 1.125rem; color: #374151; }

/* Buttons: consistent emphasis */
.btn-primary, .btn-secondary, .btn-tertiary { font-weight: 600; letter-spacing: .005em; }

/* Nav links: subtle tracking */
.nav-link { letter-spacing: .005em; }

/* Focus visibility for keyboard users */
:where(a,button):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-primary) 60%, transparent);
  outline-offset: 2px;
  border-radius: .5rem;
}

