/* Ostevia — page d'accueil du site vitrine
   Sans framework ni police externe : CSS, SVG inline et une photo WebP. */

:root {
  --ink: #0F1E33;          /* texte principal */
  --ink-soft: #4A5A6B;     /* texte secondaire */
  --navy: #1D4373;
  --teal: #2A8A9A;
  --green: #53B787;
  --green-text: #3FA37C;   /* vert assez foncé pour rester lisible en texte */
  --bg: #F3F8F9;
  --glass: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .8);
  --radius: 24px;
  --topbar: 5.25rem;       /* hauteur de l'en-tête */
  --brand-gradient: linear-gradient(90deg, var(--navy) 0%, var(--green) 100%);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Conteneur ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--topbar));
  min-height: calc(100svh - var(--topbar));
  display: grid;
  align-items: center;
  justify-items: start;
  padding: clamp(4rem, 9vh, 6rem) clamp(1rem, 6vw, 6.5rem) clamp(7rem, 15vh, 9rem);
  background: var(--bg);
}

/* ---------- Fond ---------- */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Voile clair : dense à gauche sous le texte, léger à droite sur le praticien */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(243, 248, 249, .96) 0%,
      rgba(243, 248, 249, .86) 36%,
      rgba(243, 248, 249, .38) 60%,
      rgba(243, 248, 249, .22) 100%),
    linear-gradient(180deg, rgba(243, 248, 249, 0) 70%, rgba(243, 248, 249, .7) 100%);
}

.photo-float {
  transform-box: fill-box;
  transform-origin: 55% 60%;
  animation: levitate 18s ease-in-out infinite alternate;
}

.care-glow,
.care-pulse {
  transform-box: fill-box;
  transform-origin: center;
}
.care-glow {
  fill: #7FE3CF;
  animation: breathe 4s ease-in-out infinite;
}
.care-pulse {
  fill: none;
  stroke: rgba(255, 255, 255, .55);
  stroke-width: 2;
  animation: pulse 4s ease-out infinite;
}
.care-pulse--late { animation-delay: 2s; }

.bg-waves {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(130px, 18vw, 240px);
  display: block;
  opacity: .22;
}
.wave {
  fill: url(#wave-gradient);
  transform-box: fill-box;
  animation: wave-drift linear infinite;
}
.wave--back  { fill-opacity: .5; animation-duration: 28s; }
.wave--mid   { fill-opacity: .7; animation-duration: 36s; animation-direction: reverse; }
.wave--front { animation-duration: 44s; }

/* ---------- Carte en verre ---------- */

.hero-card {
  position: relative;
  width: 100%;
  max-width: 40rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 30px 60px -24px rgba(15, 30, 51, .28);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

/* Sans flou d'arrière-plan, on garde un fond assez opaque pour la lisibilité */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-card { background: rgba(255, 255, 255, .9); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.5rem;
  padding: .5rem 1.05rem;
  font-size: .95rem;
  font-weight: 600;
  color: #0E6E7E;
  background: linear-gradient(90deg, #D3F4F7 0%, #D6F5E6 100%);
  border-radius: 999px;
}
.badge svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.04em;
  text-wrap: balance;
}

/* Dégradé bleu nuit → teal → vert, comme sur Kinevia */
.gradient-text {
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 50%, var(--green-text) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: transparent;
}

.lead {
  margin: 1.5rem 0 2.25rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 3.5rem;
  padding: .95rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 650;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, var(--navy) 0%, #24697F 50%, #3A9A76 100%);
  border-radius: 10px;
  box-shadow: 0 16px 30px -14px rgba(29, 67, 115, .7);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cta svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 20px 36px -14px rgba(29, 67, 115, .75);
}
.cta:hover .cta-arrow { transform: translateX(3px); }
.cta:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.trust svg {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: #1FA39A;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Animations ---------- */

@keyframes wave-drift {
  to { transform: translateX(-50%); }
}

@keyframes levitate {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.04) translateY(-8px); }
}

@keyframes pulse {
  0%   { transform: scale(.5); opacity: .8; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes breathe {
  0%, 100% { transform: scale(.8); opacity: .12; }
  50%      { transform: scale(1.15); opacity: .3; }
}

/* ---------- Tablette : le texte occupe plus de place ---------- */

@media (max-width: 1100px) and (min-width: 761px) {
  .hero-bg::after {
    background:
      linear-gradient(90deg,
        rgba(243, 248, 249, .95) 0%,
        rgba(243, 248, 249, .85) 50%,
        rgba(243, 248, 249, .45) 75%,
        rgba(243, 248, 249, .3) 100%),
      linear-gradient(180deg, rgba(243, 248, 249, 0) 70%, rgba(243, 248, 249, .7) 100%);
  }
}

/* ---------- Mobile et écrans en hauteur : la photo en haut, la carte en dessous ---------- */

@media (max-width: 760px), (max-aspect-ratio: 4/3) {
  .hero {
    align-items: start;
    justify-items: center;
    padding: 38vh 1rem 7rem;
    padding: 38svh 1rem 7rem;
  }
  .bg-photo {
    inset: 0 auto auto 50%;
    width: auto;
    height: 58svh;
    aspect-ratio: 1408 / 768;
    transform: translateX(-53%);
  }
  .hero-bg::after {
    background: linear-gradient(180deg,
      rgba(243, 248, 249, .1) 0,
      rgba(243, 248, 249, .2) 26vh,
      rgba(243, 248, 249, .9) 48vh,
      var(--bg) 57vh);
  }
  .hero-card { text-align: center; }
  .lead { margin-inline: auto; }
  .cta {
    width: 100%;
    gap: .5rem;
    padding: .9rem 1rem;
    font-size: 1rem;
  }
  .cta-spark { display: none; }
  .trust {
    flex-direction: column;
    align-items: center;
  }
  .trust li { min-width: 12rem; }
}

/* ---------- Icônes ---------- */

.sprite { display: none; }

.i,
.notice-icon,
.mod-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
}

/* ---------- En-tête ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  /* Fond blanc opaque : le logo PNG a un fond blanc, qui se verrait sur un en-tête translucide */
  background: #fff;
  border-bottom: 1px solid rgba(29, 67, 115, .1);
}
.topbar-inner {
  max-width: 80rem;
  height: var(--topbar);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img {
  display: block;
  height: 3.5rem;
  width: auto;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.link-ghost,
.btn-gradient { white-space: nowrap; }
.link-ghost {
  padding: .5rem .75rem;
  font-size: .95rem;
  font-weight: 500;
  color: #4B5563;
  text-decoration: none;
  border-radius: 8px;
}
.link-ghost:hover { color: var(--navy); background: rgba(29, 67, 115, .06); }

.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, var(--navy) 0%, #2F7A8A 60%, #3A9A76 100%);
  border-radius: 10px;
  box-shadow: 0 10px 24px -10px rgba(29, 67, 115, .55);
  transition: filter .2s ease;
}
.btn-gradient:hover { filter: brightness(1.08); }

.link-ghost:focus-visible,
.btn-gradient:focus-visible,
.btn-white:focus-visible,
.footer a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* ---------- Sections ---------- */

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 1.5rem);
}

main h2 {
  margin: 0;
  letter-spacing: -.02em;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid;
  border-radius: 1rem;
}
.notice h2 { font-size: 1rem; }
.notice p  { margin: .3rem 0 0; font-size: .9rem; line-height: 1.55; }
.notice-icon { flex: none; width: 2rem; height: 2rem; }
.notice--amber { background: #FFFBEB; border-color: #FDE68A; color: #78350F; }
.notice--amber .notice-icon { color: #D97706; }
.notice--blue  { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }
.notice--blue .notice-icon { color: #2563EB; }

.section-head {
  text-align: center;
  padding-bottom: 2rem;
}
.section-head h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.6rem); }
.section-head p  { margin: .5rem 0 0; color: #6B7280; }

/* ---------- Bandeau défilant des modules ---------- */

.modules {
  padding: 3rem 0;
  background: linear-gradient(180deg, #fff 0%, rgba(236, 254, 255, .6) 100%);
  overflow: hidden;
}
.carousel {
  position: relative;
  overflow-x: auto;
}
.carousel.is-animated { overflow: hidden; }
/* Fondu sur les bords */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 6rem;
  pointer-events: none;
}
.carousel::before { left: 0;  background: linear-gradient(90deg, rgba(236, 254, 255, .9), transparent); }
.carousel::after  { right: 0; background: linear-gradient(-90deg, rgba(236, 254, 255, .9), transparent); }

.carousel-track {
  display: flex;
  width: max-content;
}
.carousel.is-animated .carousel-track { animation: scroll-x 45s linear infinite; }
.carousel.is-animated:hover .carousel-track { animation-play-state: paused; }

.carousel-set {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: .5rem 1rem 1.5rem 0;
  list-style: none;
}
.carousel-set:empty { display: none; }

.mod {
  flex: none;
  width: 18rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(29, 67, 115, .1);
  border-radius: 1rem;
  box-shadow: 0 10px 24px -12px rgba(29, 67, 115, .18);
}
.mod h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: .75rem 0 .25rem;
  font-size: 1rem;
  color: #111827;
}
.mod p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.55;
  color: #6B7280;
}
.tag {
  padding: .1rem .5rem;
  font-size: .75rem;
  font-weight: 500;
  color: #15803D;
  background: #DCFCE7;
  border-radius: 999px;
}

.mod-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: #fff;
  border-radius: .75rem;
  box-shadow: 0 6px 14px -6px rgba(15, 30, 51, .35);
}
.mod-icon svg { width: 1.5rem; height: 1.5rem; }
.g-brand   { background: linear-gradient(135deg, var(--navy), var(--green)); }
.g-sky     { background: linear-gradient(135deg, #0EA5E9, #3B82F6); }
.g-emerald { background: linear-gradient(135deg, #10B981, #0D9488); }
.g-indigo  { background: linear-gradient(135deg, #6366F1, #9333EA); }
.g-amber   { background: linear-gradient(135deg, #F59E0B, #EA580C); }
.g-violet  { background: linear-gradient(135deg, #8B5CF6, #C026D3); }

/* ---------- Chiffres ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.stat {
  padding: 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(29, 67, 115, .1);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 30, 51, .05);
}
.stat strong {
  display: block;
  font-size: 1.9rem;
  background: linear-gradient(90deg, var(--navy), var(--green-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: .25rem;
  font-size: .875rem;
  color: #6B7280;
}

/* ---------- Fonctionnalités ---------- */

.features { padding-top: 3rem; padding-bottom: 3rem; }
.features h2 {
  margin-bottom: 3rem;
  text-align: center;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 1.9rem);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(29, 67, 115, .1);
  border-radius: 1rem;
  box-shadow: 0 12px 28px -14px rgba(15, 30, 51, .2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -14px rgba(15, 30, 51, .28);
}
.feature h3 {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  color: #111827;
}
.feature p {
  margin: .5rem 0 0;
  font-size: .9rem;
  line-height: 1.6;
  color: #6B7280;
}

/* ---------- Appel final ---------- */

.final-cta {
  margin: 2.5rem 0;
  padding: clamp(2rem, 6vw, 3rem);
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, #2A7F8A 55%, #3A9A76 100%);
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px -24px rgba(29, 67, 115, .5);
}
.final-cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 1.9rem); }
.final-cta p {
  max-width: 40rem;
  margin: 1rem auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #E0F7F5;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  background: #fff;
  border-radius: 10px;
  transition: background .2s ease;
}
.btn-white:hover { background: #EEF4FA; }

/* ---------- Pied de page ---------- */

.footer {
  padding: 2rem 1rem;
  text-align: center;
  font-size: .875rem;
  color: #6B7280;
  border-top: 1px solid rgba(29, 67, 115, .1);
}
.footer p { margin: 0; }
.footer p + p { margin-top: .5rem; }
.footer a { color: inherit; }
.footer a:hover { color: var(--navy); }

@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ---------- Petits écrans ---------- */

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --topbar: 4.25rem; }
  .brand img { height: 2.2rem; }
  .topbar-actions { gap: .25rem; }
  .link-ghost { padding: .5rem .4rem; font-size: .9rem; }
  .btn-gradient { padding: .55rem .75rem; font-size: .9rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stats { gap: 1rem; }
  .carousel::before,
  .carousel::after { width: 2rem; }
}

@media (max-width: 420px) {
  .btn-gradient .i { display: none; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .care-pulse { opacity: 0; }
  .care-glow  { opacity: .2; }
  /* Bandeau des modules : défilement à la main, sans la copie */
  .carousel.is-animated { overflow-x: auto; }
  .carousel-set[aria-hidden="true"] { display: none; }
  .feature:hover { transform: none; }
}
