:root{color-scheme:light}
body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}
/* Layout: one stage, three views that zoom into each other (the world, the visitor's country, the garden pool).
   Steps: 0 world, 1-2 country (block pays/<code>.html, swapped with the language of the site), 3 the two pools, 4-10 the seven promises, 11 the end.
   The text sits beside the drawing; in the pool view each problem faces the classic pool and each objective faces the Wolf-floW pool. */
:root{
  --brume:#EEF1EA; --papier:#FFFFFF; --air:#CFE0D8; --eau:#9CCAD9; --ligne:#B4C9BE;
  --roseau:#4C6B42; --mousse:#1D3327; --mousse-douce:#4A564E; --iris:#5B4A9E; --lilas:#E2DDF3; --flamant:#F4A3B8;
  --titre:'Outfit','Helvetica Neue',Arial,sans-serif;
  --texte:'Figtree','Helvetica Neue',Arial,sans-serif;
}
html,body{height:100%}
body{background:var(--brume);color:var(--mousse);font-family:var(--texte);font-size:17px;line-height:1.5}
a{color:var(--mousse)}
a:hover{color:var(--roseau)}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--iris);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.app{min-height:100%;box-sizing:border-box;max-width:1360px;margin:0 auto;display:flex;flex-direction:column;gap:12px;
  padding-block:12px 20px;padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px))}

/* ---- top bar ---- */
.barre{display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px}
.logo{display:block;flex:none}
.logo-complet{width:160px;height:58px}
/* phone header: the logo simple (head, three bubbles, moon); it reaches a little above and below its row so the row keeps its height */
.logo-simple{width:auto;height:54px;margin:-5px 0 -1px;display:none}
.fil{flex:1 1 320px;min-width:0;display:flex;gap:12px}
.acte{flex:var(--n) 1 0;min-width:0;display:flex;flex-direction:column}
.acte-nom{font-size:12px;font-weight:600;line-height:1.3;color:var(--mousse-douce);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the last act is one step wide: its name is shown whole, aligned right, and may reach over the end of the act before it */
.acte:last-child .acte-nom{align-self:flex-end;width:max-content;overflow:visible}
.segs{display:flex;gap:4px}
.seg{flex:1;min-width:0;height:30px;padding:0;border:0;background:none;cursor:pointer;display:flex;align-items:center}
.seg i{display:block;width:100%;height:6px;border-radius:999px;background:var(--ligne);position:relative;overflow:hidden;transition:height .2s ease}
.seg:hover i{background:var(--roseau)}
/* steps already seen and the current one are full; the current one is taller */
.seg.fait i,.seg[aria-current] i{background:var(--mousse)}
.seg[aria-current] i{height:10px}
/* while the story plays, a fine light line inside the current step shows the time left */
.seg i::after{content:"";position:absolute;left:3px;right:3px;top:50%;height:2px;margin-top:-1px;border-radius:999px;background:var(--brume);transform-origin:left center;transform:scaleX(var(--p,0));opacity:0}
.app[data-jeu="oui"] .seg[aria-current] i::after{opacity:1}
.cmd{display:flex;gap:8px;flex:none}
.cmd button{width:44px;height:44px;padding:0;border-radius:999px;border:1.5px solid var(--mousse);background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center}
.cmd button:hover{background:var(--air)}
.cmd #jeu{background:var(--mousse);color:var(--brume)}
.cmd #jeu:hover{background:var(--roseau);border-color:var(--roseau)}
.cmd svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#jeu .ic-lecture{display:none}
.app[data-jeu="non"] #jeu .ic-lecture{display:block}
.app[data-jeu="non"] #jeu .ic-pause{display:none}

/* ---- stacked views and stacked panels ---- */
.vues{flex:1;min-height:0;display:grid;overflow:hidden;border-radius:40px}
.vue{grid-area:1/1;min-width:0;box-sizing:border-box;visibility:hidden;opacity:0;transition:opacity .6s ease,visibility 0s .6s}
.vue.on{visibility:visible;opacity:1;transition:opacity .7s ease .1s,visibility 0s}
.pile{display:grid;min-width:0}
.pile>*{grid-area:1/1;min-width:0;visibility:hidden;opacity:0;transition:opacity .45s ease,visibility 0s .45s}
.pile>.on{visibility:visible;opacity:1;transition:opacity .6s ease .25s,visibility 0s}
.zoom{transition:transform 1.1s cubic-bezier(.3,.7,.2,1)}
.vue.futur .zoom{transform:scale(.45)}
.vue.passe .zoom{transform:scale(2.4)}

/* ---- shared type ---- */
.pastille{display:inline-block;font-size:13px;font-weight:600;line-height:1.3;padding:6px 14px;border-radius:999px;background:var(--air)}
.pastille.etat{background:var(--lilas)}
.chiffre{margin:0;font-family:var(--titre);font-weight:300;line-height:1.04;letter-spacing:-.015em;text-wrap:balance}
.nb{white-space:nowrap}
.petit{margin:0;font-size:13px;line-height:1.4;color:var(--mousse-douce)}

/* ---- context views: the world, then the country ---- */
.duo{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:center;gap:24px 56px;padding:clamp(4px,1.6vw,20px)}
.scene{min-width:0;display:flex;justify-content:center}
.scene svg{display:block;width:100%;height:auto;max-width:620px;max-height:min(70vh,620px);overflow:visible}
.recit{display:flex;flex-direction:column;align-items:flex-start;gap:16px;max-width:520px}
.recit .chiffre{font-size:clamp(44px,6.2vw,84px)}
.recit .dit{margin:0;font-size:clamp(18px,1.7vw,21px);line-height:1.45;color:var(--mousse-douce)}
.recit.contexte{gap:clamp(16px,3vh,30px)}
.cle{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.recit .cle .chiffre{font-size:clamp(30px,3.9vw,52px)}
.recit .cle .dit{font-size:clamp(16px,1.45vw,19px)}
.recit.on .cle{animation:leve .7s var(--d,0s) ease both}

/* ---- pool view ---- */
.vue-piscine{background:var(--papier);padding:clamp(14px,2.2vw,26px) clamp(14px,2.6vw,32px);
  display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-areas:"tete tete" "c pb" "w obj";gap:14px 28px;align-items:stretch;align-content:center}
.tete{grid-area:tete}
.tete>*{display:flex;flex-wrap:wrap;align-items:baseline;align-content:flex-start;gap:6px 18px}
.tete h2{margin:0;font-family:var(--titre);font-weight:300;font-size:clamp(32px,4vw,54px);line-height:1.08;letter-spacing:-.015em}
.tete p{margin:0;flex:1 1 280px;min-width:0;color:var(--mousse-douce)}
.tete .pastille{align-self:center}
.dessin{position:relative;margin:0;width:100%;max-width:calc(33vh * 600 / 214);justify-self:center;align-self:end}
.cadre{position:relative;aspect-ratio:600/214}
.dessin.c{grid-area:c}
.dessin.w{grid-area:w}
.dessin svg{display:block;width:100%;height:100%;overflow:visible}
.dessin figcaption{position:absolute;left:0;bottom:0;font-size:13px;font-weight:600;line-height:1.3;padding:5px 12px;border-radius:999px;background:var(--brume)}
.dessin.w figcaption{background:var(--air)}
.pb{grid-area:pb}
.obj{grid-area:obj}
.bloc{box-sizing:border-box;background:var(--brume);border-radius:24px;padding:14px 18px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.etq{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;line-height:1.3}
.etq svg{flex:none;width:14px;height:14px}
.bloc .chiffre{font-size:clamp(22px,3vw,40px)}
.bloc .dit{margin:0;font-size:15px;line-height:1.4;color:var(--mousse-douce)}

/* points on the drawings */
.pt{position:absolute;left:calc(var(--x) / 600 * 100%);top:calc(var(--y) / 214 * 100%);width:26px;height:26px;margin:-13px 0 0 -13px;padding:0;border-radius:999px;
  border:2px solid var(--mousse);background:var(--papier);font-size:13px;font-weight:600;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:transform .4s ease,opacity .4s ease,background .3s ease,color .3s ease}
.pt::before{content:"";position:absolute;inset:-9px}
.dessin.w .pt{border-color:var(--roseau)}
.vue-piscine.vise .pt{opacity:.4}
.vue-piscine.vise .pt.on{opacity:1;transform:scale(1.25);background:var(--mousse);color:var(--papier)}
.vue-piscine.vise .dessin.w .pt.on{background:var(--roseau)}
.pt.on::after{content:"";position:absolute;inset:-2px;border-radius:999px;border:2px solid currentColor;color:var(--mousse);opacity:0}
.vue-piscine.vise .pt.on::after{animation:onde 1.8s ease-out infinite}
.dessin.w .pt.on::after{color:var(--roseau)}

/* ---- last view ---- */
.vue-fin{position:relative;overflow:hidden;background:var(--lilas);padding:clamp(28px,5vw,64px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:clamp(16px,2.6vh,26px)}
.vue-fin>*{position:relative}
.symbole{--h:clamp(100px,20vh,160px);display:block;width:auto;height:var(--h);overflow:visible}
.symbole .plein{fill:var(--mousse)}
.symbole .anneau{fill:none;stroke:var(--mousse);stroke-width:calc(var(--h) * 2.2 / 184.49);vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:center}
.symbole .a0{opacity:0}
.symbole .a3{fill:var(--mousse);fill-opacity:0}
.symbole .lune{transform-box:fill-box;transform-origin:center}
.vue-fin.on .symbole .lune{animation:logo-lune 3.4s ease-in-out .8s infinite}
.vue-fin.on .symbole .anneau{animation:3.4s ease-in-out .8s infinite}
.vue-fin.on .symbole .a0{animation-name:logo-a0}
.vue-fin.on .symbole .a1{animation-name:logo-a1}
.vue-fin.on .symbole .a2{animation-name:logo-a2}
.vue-fin.on .symbole .a3{animation-name:logo-a3}
.vue-fin h2{margin:0;font-family:var(--titre);font-weight:300;font-size:clamp(32px,4.6vw,60px);line-height:1.06;letter-spacing:-.02em;text-wrap:balance}
.espoir{margin:0;max-width:680px;font-family:var(--titre);font-weight:300;font-size:clamp(19px,2vw,26px);line-height:1.4;text-wrap:pretty}
.espoir.fort{font-weight:500}
.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 16px;margin-top:6px}
.bouton{display:inline-flex;align-items:center;box-sizing:border-box;min-height:48px;font-size:16px;font-weight:600;line-height:1.25;padding:13px 28px;border-radius:999px;border:1.5px solid var(--mousse);background:transparent;cursor:pointer;text-decoration:none}
.bouton.principal{border-color:var(--iris);background:var(--iris);color:var(--papier)}
.bouton.principal:hover{border-color:var(--mousse);background:var(--mousse);color:var(--papier)}
.adresse{font-weight:600;user-select:all}
.bulles-fin{position:absolute;inset:0;pointer-events:none}
.bulles-fin i{position:absolute;left:var(--x);top:var(--y);width:var(--t);height:var(--t);margin-left:calc(var(--t) / -2);box-sizing:border-box;border-radius:999px;border:2px solid var(--papier)}
.vue-fin.on .bulles-fin i{animation:remonte var(--v) linear var(--d) infinite}

/* ---- drawings: common ---- */
.tr{fill:none;stroke:var(--mousse);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.w .tr{stroke:var(--roseau)}
.ap{opacity:0;transition:opacity .6s ease}
.ap.on{opacity:1;transition:opacity .7s ease .3s}
.dis{transition:opacity .7s ease}
.dis.on{opacity:0}
.g{transition:opacity .5s ease}
.vise .g:not(.on){opacity:.28}
.boite{transform-box:fill-box;transform-origin:center}

/* globe */
.mer{fill:var(--eau)}
.terre{fill:var(--papier)}
.zhm{fill:var(--roseau)}
.vue-monde.on .zhm.perdue{animation:part .9s var(--d,0s) ease forwards}
.pop{fill:var(--mousse);transform-origin:440px 444px}
.vue-monde.on .pop{animation:retrecit 2.2s 4.6s cubic-bezier(.5,0,.3,1) forwards}
.an{font-family:var(--texte);font-size:19px;font-weight:600;fill:var(--mousse-douce);text-anchor:middle}
.vue-monde.on .an.tard{animation:vient .6s 6.6s both}

/* shared by the context scenes: a bubble that holds a second drawing, and the dashed trace of what is gone */
.bulle{fill:var(--papier);stroke:var(--ligne);stroke-width:3}
.fantome{fill:none;stroke:var(--mousse-douce);stroke-width:1.5;stroke-linecap:round;stroke-dasharray:2 5}
.insert{transform-box:fill-box;transform-origin:center}
.vue-monde.on .insert,.ap.on .insert{animation:eclot .7s var(--d,0s) cubic-bezier(.3,1.4,.5,1) both}

/* the country */
.sol{fill:var(--papier);stroke:var(--ligne);stroke-width:2;stroke-linejoin:round}
.zh{fill:var(--eau)}
.ap.on .zh.demi{animation:part 1s 1.6s ease forwards}
.mare{fill:var(--roseau)}
.mare.floue{opacity:.4}
.ap.on .mare.perdue{animation:part .8s var(--d,0s) ease forwards}
.pisc{fill:none;stroke:var(--mousse);stroke-width:12;stroke-linecap:round;opacity:0}
.ap.on .pisc{animation:vient .5s var(--d,0s) ease forwards}
.dep{fill:var(--ligne)}
.ap.on .dep.restr{animation:sombre .35s var(--d,0s) ease forwards}

/* pools */
.nappe{fill:var(--eau)}
.nappe-c{transition:transform 1.2s ease}
.nappe-c.on{transform:translateY(20px);transition:transform 2.6s ease .6s}
.repere{fill:none;stroke:var(--mousse);stroke-width:2;stroke-linecap:round;stroke-dasharray:1 7}
.w .repere{stroke:var(--roseau)}
.sp{fill:none;stroke:var(--iris);stroke-width:2.8;stroke-linecap:round;stroke-dasharray:0 8.205}
.sp path{opacity:0}
.sp.on path{animation:vient .5s var(--d,0s) ease forwards}
.bache{fill:var(--mousse);transform-box:fill-box;transform-origin:left center;transform:scaleX(0);transition:transform .8s ease}
.bache.on{transform:scaleX(1);transition:transform 1.8s ease .5s}
.rotor{transform-origin:58px 68px}
.rotor.on{animation:tourne 1s linear infinite}
.flux{fill:none;stroke:var(--eau);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:5 9}
.flux.on{animation:coule .7s linear infinite}
.fl-rose{fill:var(--flamant);stroke:var(--mousse);stroke-width:2.2;stroke-linejoin:round}
.fl-trou{fill:var(--eau);stroke:var(--mousse);stroke-width:1.8}
.fl-bord{fill:none;stroke:var(--mousse);stroke-width:9.4;stroke-linecap:round}
.fl-cou{fill:none;stroke:var(--flamant);stroke-width:5;stroke-linecap:round}
.fl-bec{fill:var(--papier);stroke:var(--mousse);stroke-width:1.8;stroke-linejoin:round}
.fl-noir{fill:var(--mousse)}
.fl-reflet{fill:none;stroke:var(--papier);stroke-width:1.6;stroke-linecap:round}
.bouee{transform-box:fill-box;transform-origin:50% 100%}
.bouee.on{animation:tangue 5s ease-in-out infinite}
.fissure{fill:none;stroke:var(--mousse);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.poches{fill:var(--air)}
.vue-piscine.on .poches{animation:monte 1.6s linear infinite}
.fleur{fill:var(--iris)}
.eclot.on .fleur{animation:eclot .6s var(--d,0s) cubic-bezier(.3,1.5,.5,1) both}
.libellule.on{animation:plane 3.2s ease-in-out infinite}
.aile{fill:var(--air);fill-opacity:.85;stroke:var(--roseau);stroke-width:1.3}
.corps{fill:var(--roseau)}
.ailes{transform-origin:0 0}
.libellule.on .ailes{animation:volette .16s ease-in-out infinite alternate}
.daphnie{fill:var(--roseau)}
.vie.on .daphnie{animation:derive 3.6s var(--d,0s) ease-in-out infinite}
.module.on{animation:descend 1.5s .4s cubic-bezier(.3,.8,.3,1) both}
.pointille{fill:none;stroke:var(--roseau);stroke-width:2;stroke-linecap:round;stroke-dasharray:1 7}
.souffle.on{animation:bat 1.2s ease-in-out infinite}

@keyframes part{to{opacity:0;transform:scale(.2)}}
@keyframes sombre{to{fill:var(--mousse)}}
@keyframes vient{from{opacity:0}to{opacity:1}}
@keyframes retrecit{to{transform:scale(.387)}}
@keyframes tourne{to{transform:rotate(360deg)}}
@keyframes coule{from{stroke-dashoffset:14}to{stroke-dashoffset:0}}
@keyframes monte{from{transform:translateY(0)}to{transform:translateY(-22px)}}
@keyframes eclot{from{transform:scale(0)}to{transform:scale(1)}}
@keyframes volette{from{transform:scaleY(1)}to{transform:scaleY(.7)}}
@keyframes leve{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes logo-a0{0%{opacity:0;transform:translate(-2px,13px) scale(.2)}15%{opacity:1}58%,100%{opacity:1;transform:none}}
@keyframes logo-a1{0%{transform:none}58%,100%{transform:translate(5px,-22px) scale(1.645)}}
@keyframes logo-a2{0%{transform:none}58%,100%{transform:translate(-5px,-27.7px) scale(1.647)}}
@keyframes logo-a3{0%{transform:none;fill-opacity:0}34%{fill-opacity:0}58%,100%{transform:translate(5px,-38.3px) scale(1.893);fill-opacity:1}}
@keyframes logo-lune{0%,54%{transform:none}64%{transform:scale(1.08)}78%,100%{transform:none}}
@keyframes remonte{from{top:106%}to{top:-12%}}
@keyframes tangue{0%,100%{transform:translate(-3px,0) rotate(-2deg)}50%{transform:translate(3px,.8px) rotate(2.5deg)}}
@keyframes plane{0%,100%{transform:translate(0,0)}50%{transform:translate(8px,-6px)}}
@keyframes derive{0%,100%{transform:translate(0,0)}50%{transform:translate(6px,-4px)}}
@keyframes descend{from{transform:translateY(-72px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes bat{0%,100%{transform:scale(1)}50%{transform:scale(1.5)}}
@keyframes onde{from{opacity:.7;transform:scale(1)}to{opacity:0;transform:scale(2)}}

/* ---- narrow screens ---- */
@media (max-width:820px){
  .logo-complet{display:none}
  .logo-simple{display:block}
  .barre{gap:6px 14px}
  .fil{order:3;flex-basis:100%}
  .cmd{margin-left:auto}
  .vues{border-radius:28px}
  .duo{grid-template-columns:minmax(0,1fr);gap:14px;align-content:start}
  .recit{gap:12px}
  .vue-piscine{grid-template-columns:minmax(0,1fr);grid-template-areas:"tete" "c" "pb" "w" "obj";gap:10px;align-content:start}
  .dessin{max-width:none}
  .bloc .chiffre{font-size:26px}
  .pt{width:20px;height:20px;margin:-10px 0 0 -10px;font-size:11px}
  .vue-piscine.vise .pt:not(.on){opacity:0;pointer-events:none}
  .tete p{flex-basis:100%}
  .acte-nom{font-size:11.5px}
  /* phone: each step takes its own height, so that a step fits the screen.
     Views and stacked panels that are not shown leave the flow and only fade over the one that is shown. */
  .vues,.pile{position:relative}
  .vue:not(.on),.pile>:not(.on){position:absolute;inset:0;overflow:hidden}
  /* phone: tighter spacing around and inside the problem and objective boxes */
  .app{gap:8px;padding-block:8px 4px}
  .vue-piscine{padding:8px 12px;gap:6px}
  .tete>*{gap:2px 18px}
  .tete h2{font-size:30px}
  .tete p{font-size:15px;line-height:1.4}
  /* phone: the pool names sit under the pump and under the compressor, left of the pool wall (x = 180 of 600), on two lines if needed */
  .dessin figcaption{max-width:calc(30% - 8px);box-sizing:border-box;padding:3px 8px;border-radius:11px;font-size:11px;line-height:1.25;text-wrap:balance}
  .barre{gap:4px 14px}
  .seg{height:24px}
  .bloc{padding:6px 16px;gap:3px;border-radius:20px}
  .bloc .dit{font-size:14px;line-height:1.38}
  /* phone: context and end steps a little tighter too */
  .scene svg{max-height:30vh}
  .duo{gap:10px}
  .recit.contexte{gap:12px}
  .vue-fin{padding:20px 16px}
}
@media (max-width:380px){ .acte-nom{font-size:11px;letter-spacing:-.01em} }
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01s !important;animation-delay:0s !important;animation-iteration-count:1 !important;transition-duration:.01s !important;transition-delay:0s !important}
}

/* ---- site shell around the story ---- */
.pied{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;font-size:13px;line-height:1.4;color:var(--mousse-douce)}
.pied a{color:inherit}
.sans-js{margin:0;padding:12px 16px;background:var(--lilas);text-align:center}
