* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow-x: hidden; }
.section-hero, .section-nuages, .section-separator, .section-gradient, .section-white-bottom { margin-bottom: -3px; }
.section-hero { position: relative; width: 100%; height: 100svh; min-height: 560px; overflow: hidden; background: #C8E8F5; }
body.admin-bar .section-hero { height: calc(100svh - var(--wp-admin-offset)); }
.hero-stage-host { position: absolute; top: var(--header-h); right: 0; bottom: 0; left: 0; overflow: hidden; z-index: 2; }
.hero-stage { --scene-w: 1500; --scene-h: 900; position: absolute; left: 50%; top: 50%; width: calc(var(--scene-w) * 1px); height: calc(var(--scene-h) * 1px); transform: translate(-50%,-50%) scale(var(--hero-scale,1)); transform-origin: center; }
.hero-bottom-cloud { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; }
.hero-bottom-cloud svg { display: block; width: 100%; height: auto; }
.hero-deco { position: absolute; pointer-events: none; z-index: 5; }
.hero-deco img, .hero-deco svg { display: block; width: 100%; height: auto; }
.hero-deco-earth { left: 450px; top: 224px; width: 600px; z-index: 3; }
.hero-deco-plane { left: 325px; top: 650px; width: 250px; }
.nav-cloud { pointer-events: auto; cursor: pointer; text-decoration: none; transition: transform .2s ease; }
.nav-cloud:hover { transform: scale(1.06); outline: none; }
.nav-cloud:focus-visible { transform: scale(1.06); outline: 3px solid var(--color-primary); outline-offset: 5px; border-radius: 45%; }
.nav-cloud svg { filter: drop-shadow(0 4px 16px rgba(0,0,0,.15)); }
.nav-cloud-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #2BB5C8; font-family: 'Nunito',sans-serif; font-weight: 800; text-align: center; line-height: 1.05; text-transform: uppercase; letter-spacing: .5px; pointer-events: none; white-space: nowrap; font-size: 22px; }
.nav-cloud-text.multiline { white-space: normal; }
.nav-cloud-4a { left: 217px; top: 475px; width: 220px; }
.nav-cloud-4b { left: 580px; top: 9px; width: 340px; }
.nav-cloud-4c { left: 1086px; top: 456px; width: 220px; }
.nav-cloud-4d { left: 925px; top: 700px; width: 240px; }
.nav-cloud-5a { left: 323px; top: 195px; width: 190px; }
.nav-cloud-5b { left: 310px; top: 717px; width: 250px; }
.nav-cloud-5c { left: 981px; top: 209px; width: 170px; }
@media (min-width:768px) and (orientation:portrait) {
  .hero-stage { --scene-w: 900; --scene-h: 1000; }
  .hero-deco-earth { left: 240px; top: 265px; width: 420px; }
  .hero-deco-plane { left: 345px; top: 785px; width: 210px; }
  .nav-cloud-4a { left: 35px; top: 431px; width: 190px; }
  .nav-cloud-4b { left: 285px; top: 60px; width: 330px; }
  .nav-cloud-4c { left: 691px; top: 418px; width: 180px; }
  .nav-cloud-4d { left: 568px; top: 597px; width: 210px; }
  .nav-cloud-5a { left: 108px; top: 214px; width: 180px; }
  .nav-cloud-5b { left: 101px; top: 612px; width: 220px; }
  .nav-cloud-5c { left: 610px; top: 233px; width: 150px; }
  .nav-cloud-text { font-size: 20px; }
}
@media (max-width:767px) {
  .hero-stage { --scene-w: 390; --scene-h: 620; }
  .nav-cloud { display: none; }
  .hero-deco-earth { left: 30px; top: 70px; width: 330px; }
  .hero-deco-plane { left: 35px; top: 455px; width: 125px; }
}
@media (prefers-reduced-motion:reduce) { .nav-cloud { transition:none; } }

  /* ===== SECTION 2 — NUAGES PARALLAX ===== */
  .section-nuages {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #80d9e6;
  }

  .cloud-layer {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
  }

  .cloud-layer svg {
    display: block;
    width: 100%;
    height: auto;
  }

  .layer-d { z-index: 1; top: 135px; }
  .layer-c { z-index: 2; top: 136px; }
  .layer-b { z-index: 3; top: 122px; }
  .layer-a { z-index: 4; top: 0px;   }

  .section-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #2a6b8a;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.3;
  }

  /* ===== SECTION 3 — SÉPARATEUR VAGUE ===== */
  .section-separator {
    position: relative;
    width: 100%;
    background: #fff;
    line-height: 0;
    margin-top: -1px;
    margin-bottom: -1px;
  }

  .sep-wave-svg {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Buissons hors-box à droite de la vague */
  .section-separator { overflow: visible; }
  .m-sep-bush {
    position: absolute;
    bottom: 0;
    pointer-events: none;
    height: auto;
    z-index: 5;
    transform-origin: bottom center;
  }
  .m-sep-bush--a {
    right: clamp(.5rem, 2vw, 3rem);
    width: clamp(210px, 24vw, 400px);
    z-index: 5;
  }
  .m-sep-bush--b {
    right: clamp(7rem, 13vw, 17rem);
    width: clamp(110px, 13vw, 200px);
    z-index: 6;
  }
  @media (max-width: 767px) {
    .m-sep-bush--a { right: .25rem; width: 170px; }
    .m-sep-bush--b { right: 2.2rem; width: 85px; }
  }

  /* ===== SECTION 4 — DÉGRADÉ AVEC NUAGES EN BAS ===== */
  .section-gradient {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #fff 0%, #9ae1eb 100%);
  }

  /* ===== SECTION 5 — BLANCHE (masque les bord inférieurs des nuages) ===== */
  .section-white-bottom {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    background: #fff;
  }

  .bottom-cloud-layer {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
  }

  .bottom-cloud-layer svg {
    display: block;
    width: 100%;
    height: auto;
  }

  .bottom-layer-d { z-index: 1; bottom: 150px; transform: scaleY(-1) scale(1.05); }
  .bottom-layer-c { z-index: 2; bottom: 15px; transform: scaleY(-1) scale(0.75); left: auto; right: 0; width: 50%; transform-origin: right center; }
  .bottom-layer-b { z-index: 3; bottom: -70px; transform: scaleY(-1) scale(0.80); width: 50%; transform-origin: left center; }
  .bottom-layer-a { z-index: 4; bottom: -15px; transform: scale(1.05); }

  /* ===== CONFIGURATEUR PARALLAX ===== */
  .controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 230px;
    font-family: sans-serif;
    font-size: 13px;
  }
  .controls h3 { font-size: 13px; font-weight: 700; color: #333; }
  .ctrl-row { display: flex; align-items: center; gap: 8px; }
  .ctrl-row label { width: 65px; font-weight: 600; display:flex; align-items:center; gap:4px; }
  .ctrl-row input[type=range] { flex: 1; }
  .ctrl-row span { width: 32px; text-align: right; color: #666; font-size:12px; }
  .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
  .note { font-size: 11px; color: #999; margin-top: 2px; }
