/* ============================================================
   KIT DE MARQUE APPAU ÉDITIONS — commun à tous les jeux
   Couleurs des boîtes, cursive scolaire, nuage + personnage,
   arc-en-ciel, pastilles jaunes et framboise, cartes à pince.
   Un jeu change sa couleur de fond avec --fond (couleur de sa boîte).
   ============================================================ */
@font-face{font-family:"Cursive standard";src:url(../assets/cursive-standard.ttf) format("truetype");font-display:block}
:root{
  /* couleurs des boîtes */
  --violet:#8366A7; --violet-d:#6E5293; --rasp:#DF1C56; --green:#35BC82; --orange-box:#FFB500; --sky-box:#96C5FF;
  /* accents */
  --yellow:#FFCC00; --gold:#E0A800; --navy:#281F45; --blue:#2C7CC1; --sky:#2C7CC1; --orange:#F39200; --red:#E5312B;
  --lav:#D9CDEB; --panel:rgba(255,255,255,.78);
  --fond:var(--violet); --fond-d:var(--violet-d);
  --f-cur:"Cursive standard","Segoe Script",cursive;
  --f-bold:"Nunito",system-ui,sans-serif;
  --f-scr:"Andika","Nunito",system-ui,sans-serif;
  color-scheme:light;
}
[hidden]{display:none!important}
html,body{height:100%}
body{margin:0;background:var(--fond);color:var(--navy);font-family:var(--f-bold);font-size:17px;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));overflow-x:hidden}
.wrap{max-width:560px;margin:0 auto;padding-block:10px 36px;display:flex;flex-direction:column;gap:16px;position:relative}
.in{padding-block:0}
p{margin:0;line-height:1.5}
button{font:inherit}
.cur{font-family:var(--f-cur);font-weight:400}

/* --- en-tête : arc-en-ciel + personnage dans le nuage + logo à droite --- */
.hero{position:relative;padding-top:104px}
/* arc-en-ciel en arche : ses deux pieds plongent derrière le nuage */
.rainbow{position:absolute;left:2%;width:96%;top:22px;height:auto;pointer-events:none;z-index:0;overflow:visible}
.hero .kid{position:absolute;left:10px;top:6px;height:168px;width:auto;z-index:1;transform-origin:50% 100%}
.hero .logo{position:absolute;right:0;top:6px;z-index:3;background:#fff;border-radius:22px;padding:10px 16px;box-shadow:0 4px 0 rgba(40,31,69,.18)}
.hero .logo img{display:block;height:74px;width:auto}
.kid.hop{animation:hop .55s}
@keyframes hop{30%{transform:translateY(-12px) rotate(-5deg)}60%{transform:translateY(0) rotate(3deg)}}
.cloud{position:relative;z-index:2;padding:44px 34px 46px;text-align:center;min-height:110px;display:flex;flex-direction:column;justify-content:center;gap:0}
.cloud > svg{position:absolute;left:-10px;right:-8px;top:-4px;bottom:-16px;width:calc(100% + 18px);height:calc(100% + 20px);z-index:-1;overflow:visible}
.cloud .l1{font-family:var(--f-cur);font-size:1.8rem;color:var(--navy);line-height:1.4}
.cloud .l2{font-family:var(--f-cur);font-size:2.3rem;color:var(--rasp);line-height:1.4}
.cloud .say{font-family:var(--f-cur);font-size:1.75rem;color:var(--navy);line-height:1.4;text-wrap:balance}
.cloud .say.ok{color:var(--rasp)}
.sayrow{display:flex;align-items:center;justify-content:center;gap:12px}
.hero.small{padding-top:84px}
.hero.small .kid{height:138px;top:10px;left:10px}
.hero.small .cloud{padding:38px 30px 40px;min-height:90px}

/* --- pastilles --- */
.pill{display:inline-flex;align-items:center;font-family:var(--f-cur);font-size:1.35rem;line-height:1;
  background:var(--yellow);color:var(--navy);border-radius:999px;padding:8px 16px 6px;white-space:nowrap}

/* --- panneau clair (dos de boîte) --- */
.panel{background:var(--panel);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
label,.label{font-family:var(--f-cur);font-size:1.5rem;color:var(--navy);line-height:1.4}
.hintline{font-family:var(--f-cur);font-size:1.2rem;color:var(--navy);opacity:.85;line-height:1.45}
.white{color:#fff;opacity:1}
.notice{font-family:var(--f-cur);font-size:1.35rem;color:var(--rasp);line-height:1.4;text-align:center}
textarea,input[type=text]{width:100%;box-sizing:border-box;font-family:var(--f-cur);font-size:1.7rem;color:var(--navy);background:#fff;
  border:2.5px solid var(--rasp);border-radius:12px;padding:6px 14px;line-height:1.75}
textarea{min-height:250px;resize:vertical}
textarea:focus,input:focus{outline:3px solid var(--yellow);outline-offset:1px}
.select{flex:1;min-width:0;font-family:var(--f-bold);font-weight:700;font-size:1rem;color:var(--navy);background:#fff;border:2.5px solid var(--rasp);border-radius:12px;padding:10px 12px}
.select:focus{outline:3px solid var(--yellow);outline-offset:1px}

/* --- profils enfants --- */
.kids{display:flex;flex-wrap:wrap;gap:10px}
.kpill{font-family:var(--f-cur);font-size:1.5rem;border:2.5px solid var(--rasp);background:#fff;color:var(--rasp);border-radius:999px;padding:6px 16px 4px;cursor:pointer;line-height:1.3;display:inline-flex;align-items:center;gap:8px}
.kpill small{font-family:var(--f-bold);font-weight:900;font-size:.85rem;color:var(--gold)}
.kpill.on{background:var(--rasp);color:#fff}
.kpill.on small{color:var(--yellow)}
.kpill.add{border-style:dashed;color:var(--navy);border-color:var(--navy);font-family:var(--f-bold);font-weight:800;font-size:1rem;padding:8px 16px}
.addrow{display:flex;gap:8px;align-items:center}
.addrow input{flex:1;min-width:0}
.kidtools{display:flex;gap:16px;flex-wrap:wrap}
.link{background:none;border:none;color:var(--navy);font-family:var(--f-bold);font-weight:700;font-size:.9rem;text-decoration:underline;cursor:pointer;padding:2px 0}
.link.danger{color:var(--rasp)}
.link.white{color:#fff}
.clear{border:2px solid var(--rasp);background:#fff;color:var(--rasp);border-radius:999px;padding:6px 14px;font-family:var(--f-bold);font-weight:800;font-size:.9rem;cursor:pointer}
.lrow{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}

/* --- tiroirs : anciennes listes, historique --- */
.drawer{background:var(--panel);border-radius:18px;padding:2px 18px}
.drawer summary{font-family:var(--f-cur);font-size:1.6rem;color:var(--navy);cursor:pointer;padding:10px 0;list-style:none}
.drawer summary::-webkit-details-marker{display:none}
.drawer summary::after{content:" ▾";font-family:var(--f-bold);font-size:1rem}
.drawer[open] summary::after{content:" ▴"}
.item{background:#fff;border:2.5px solid var(--rasp);border-radius:12px;padding:10px 14px;margin-bottom:10px;display:flex;flex-direction:column;gap:6px}
.item .date{font-family:var(--f-bold);font-weight:800;font-size:.8rem;color:var(--violet-d);text-transform:uppercase;letter-spacing:.06em}
.item .words{font-family:var(--f-cur);font-size:1.35rem;color:var(--navy);line-height:1.45}
.item .score2{font-family:var(--f-bold);font-weight:800;color:var(--navy)}
.item .score2 b{color:var(--gold)}
.item .miss{font-family:var(--f-cur);font-size:1.3rem;color:var(--rasp);line-height:1.45}
.item .miss.ok{color:var(--green)}
.item .row .btn{padding:10px 16px;font-size:1rem}
.empty{font-family:var(--f-cur);font-size:1.25rem;color:var(--navy);opacity:.8;padding-bottom:14px}

/* --- étapes d'un jeu (présentation au parent) --- */
.steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.step{background:#fff;border:2.5px solid var(--rasp);border-radius:12px;padding:8px 12px;display:flex;gap:10px;align-items:flex-start}
.step:last-child:nth-child(odd){grid-column:1/-1}
.step i{flex:none;width:28px;height:28px;margin-top:6px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-family:var(--f-bold);font-weight:900;font-size:.95rem}
.step b{display:block;font-family:var(--f-cur);font-weight:400;font-size:1.35rem;color:var(--rasp);line-height:1.4}
.step span{display:block;font-family:var(--f-cur);font-size:1.12rem;line-height:1.4;color:var(--navy)}

/* --- boutons (pastilles des boîtes) --- */
.btn{font-family:var(--f-bold);font-weight:900;font-size:1.15rem;border:none;border-radius:999px;padding:15px 24px;cursor:pointer;
  background:var(--rasp);color:#fff;box-shadow:0 5px 0 #A3103C;transition:transform .08s}
.btn:active{transform:translateY(4px);box-shadow:0 1px 0 #A3103C}
.btn.yellow{background:var(--yellow);color:var(--navy);box-shadow:0 5px 0 #C99F00}
.btn.ghost{background:#fff;color:var(--navy);box-shadow:0 5px 0 rgba(40,31,69,.3)}
.btn:disabled{opacity:.45;cursor:default}
.btn:focus-visible,.tile:focus-visible,.key:focus-visible,.round:focus-visible,.speak:focus-visible,.kpill:focus-visible,.gate button:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.row{display:flex;gap:10px;flex-wrap:wrap}
.row .btn{flex:1 1 auto}
.round{width:44px;height:44px;border-radius:50%;border:none;background:#fff;color:var(--navy);font-size:1.2rem;font-weight:900;cursor:pointer;flex:none;box-shadow:0 3px 0 rgba(40,31,69,.25)}
.parentbtn{align-self:center;background:rgba(255,255,255,.18);border:2px solid rgba(255,255,255,.6);color:#fff;border-radius:999px;padding:8px 18px;font-family:var(--f-bold);font-weight:800;font-size:.95rem;cursor:pointer}
.foot{text-align:center;font-family:var(--f-bold);font-weight:800;font-size:.85rem;color:#fff;opacity:.85;letter-spacing:.02em}
.speak{width:66px;height:66px;border-radius:50%;border:none;background:var(--yellow);font-size:1.6rem;cursor:pointer;box-shadow:0 4px 0 #C99F00}
.speak:active{transform:translateY(3px);box-shadow:0 1px 0 #C99F00}
.speak.mini{width:46px;height:46px;font-size:1.15rem;flex:none;box-shadow:0 3px 0 #C99F00}

/* --- porte de l'espace parent --- */
.gate{background:#fff;border-radius:22px;padding:24px 18px;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;box-shadow:0 6px 0 var(--fond-d)}
.gate .q{font-family:var(--f-bold);font-weight:900;font-size:2.2rem;color:var(--navy)}
.gate .answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
.gate .answers button{font-family:var(--f-bold);font-weight:900;font-size:1.6rem;padding:14px 0;border-radius:14px;border:2.5px solid var(--rasp);background:#fff;color:var(--navy);cursor:pointer}

/* --- coque de jeu : barre du haut, carte blanche --- */
.top{display:flex;align-items:center;gap:10px}
.top .pill{flex:none}
.bar{flex:1;height:14px;border-radius:99px;background:rgba(255,255,255,.35);overflow:hidden;min-width:40px}
.bar i{display:block;height:100%;width:0;border-radius:99px;transition:width .45s;
  background:linear-gradient(90deg,var(--red),var(--orange),var(--yellow),var(--green),var(--sky))}
.score{flex:none;background:#fff;border-radius:999px;padding:5px 12px;font-family:var(--f-bold);font-weight:900;color:var(--navy);font-variant-numeric:tabular-nums;font-size:1.05rem}
.score b{color:var(--gold)}
.score.pop{animation:pop .5s}
@keyframes pop{40%{transform:scale(1.35)}}
.stage{background:#fff;border-radius:22px;padding:20px 16px 24px;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;box-shadow:0 6px 0 var(--fond-d)}
.pic{font-size:4rem;line-height:1;min-height:4rem}
.stage{position:relative}
.navarrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:38px;height:38px;border-radius:50%;border:2.5px solid var(--lav);background:#fff;color:var(--fond-d);
  display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 3px 0 var(--lav);transition:top .2s}
.navarrow.prev{left:8px}.navarrow.next{right:8px}
.navarrow:active{transform:translateY(calc(-50% + 2px));box-shadow:0 1px 0 var(--lav)}
.stage:has(.navarrow){padding-left:54px;padding-right:54px}
.navarrow:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.shake{animation:shake .35s}
@keyframes shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}

/* --- fin de partie --- */
.trio{position:relative;height:140px;margin-bottom:-58px;z-index:1}
.trio img{position:absolute;bottom:0;height:136px;width:auto}
.trio img:nth-child(1){left:0;transform:rotate(-6deg)}
.trio img:nth-child(2){left:calc(50% - 56px);height:146px}
.trio img:nth-child(3){right:0;transform:rotate(6deg)}
.endcloud{z-index:2}
.results{display:flex;flex-direction:column;gap:8px}
.res{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fff;border:2.5px solid var(--rasp);border-radius:12px;padding:4px 14px}
.res .w{font-family:var(--f-cur);font-size:1.8rem;color:var(--navy);line-height:1.7;min-width:0;overflow-wrap:anywhere}
.stars{color:var(--yellow);font-size:1.5rem;letter-spacing:2px;white-space:nowrap;-webkit-text-stroke:1px #C99F00}
.stars .off{color:#EEE9F3;-webkit-text-stroke:1px #D9D2E5}
.total{align-self:center;background:#fff;border-radius:999px;padding:6px 18px;font-family:var(--f-bold);font-weight:900;color:var(--navy)}
.total b{color:var(--gold)}
#fx{position:fixed;inset:0;pointer-events:none;z-index:20;width:100%;height:100%}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media (max-width:420px){
  .steps{grid-template-columns:1fr}
  .cloud{padding:42px 26px 44px}
  .cloud .l1{font-size:1.55rem}.cloud .l2{font-size:2rem}.cloud .say{font-size:1.5rem}
  .hero .kid{height:150px;top:6px}.hero{padding-top:94px}
  .hero .logo img{height:62px}
  .hero.small .kid{height:124px;top:10px}.hero.small{padding-top:76px}
}

/* --- catalogue des jeux : une tuile par jeu, à la couleur de sa boîte --- */
.cattop{display:flex;justify-content:space-between;align-items:center;gap:10px}
.gtiles{display:flex;flex-direction:column;gap:14px}
.gtile{position:relative;display:flex;align-items:flex-end;gap:12px;min-height:128px;padding:14px 16px 14px 0;border:none;border-radius:22px;cursor:pointer;
  background:var(--tile);box-shadow:0 6px 0 rgba(40,31,69,.22);text-align:left;overflow:hidden;transition:transform .08s}
.gtile:active{transform:translateY(4px);box-shadow:0 2px 0 rgba(40,31,69,.22)}
.gtile:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.gtile img{flex:none;height:124px;width:auto;margin-bottom:-14px;align-self:flex-end}
.gtile .gtxt{flex:1;min-width:0;background:#fff;border-radius:16px;padding:10px 14px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;align-self:center}
.gtile .gtxt .pill{font-size:1.1rem;padding:6px 12px 4px}
.gtile .l1{font-family:var(--f-cur);font-size:1.3rem;color:var(--navy);line-height:1.35}
.gtile .l2{font-family:var(--f-cur);font-size:1.65rem;color:var(--rasp);line-height:1.35}
.gtile .gstars{position:absolute;top:10px;right:12px;background:#fff;border-radius:999px;padding:3px 10px;font-family:var(--f-bold);font-weight:900;font-size:.9rem;color:var(--navy)}
.gtile .gstars b,.cattop .score b{color:var(--gold)}
#catalog .foot{color:var(--navy);opacity:.7}
#catalog .panel{background:#fff;box-shadow:0 4px 0 var(--fond-d)}
.res .resimg{flex:none;width:46px;height:46px;object-fit:contain}
.res .w{flex:1}
.backcat{align-self:flex-start;background:rgba(255,255,255,.9);border:none;border-radius:999px;padding:8px 16px;font-family:var(--f-bold);font-weight:900;font-size:.95rem;color:var(--navy);cursor:pointer;box-shadow:0 3px 0 rgba(40,31,69,.2)}
.backcat:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
@media (max-width:420px){.gtile img{height:104px}.gtile .l2{font-size:1.4rem}}

/* --- modes d'un jeu en grandes cases illustrées (2 × 2) --- */
#modes.row{flex-direction:column}
.mtiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mtile{--mc:var(--rasp);--mi:#fff;position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 8px 12px;
  background:var(--mc);border:4px solid #fff;border-radius:22px;cursor:pointer;box-shadow:0 6px 0 rgba(40,31,69,.25);
  transition:transform .12s;color:var(--mi);font:inherit;min-width:0}
.mtile:hover{transform:translateY(-3px) rotate(-1deg)}
.mtile:nth-child(even):hover{transform:translateY(-3px) rotate(1deg)}
.mtile:active{transform:translateY(4px);box-shadow:0 2px 0 rgba(40,31,69,.25)}
.mtile:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.mtile:disabled{opacity:.5;cursor:default;transform:none}
.mtile .mnum{position:absolute;top:-10px;left:-8px;width:36px;height:36px;border-radius:50%;background:var(--yellow);color:var(--navy);
  display:grid;place-items:center;font-family:var(--f-bold);font-weight:900;font-size:1.15rem;box-shadow:0 3px 0 #C99F00;border:3px solid #fff}
.mtile .mart{display:grid;place-items:center;width:100%;min-height:96px}
.mtile .mlab{font-family:var(--f-cur);font-size:1.45rem;line-height:1.25;text-align:center;text-wrap:balance}
@media (prefers-reduced-motion:reduce){.mtile:hover{transform:none}}
@media (max-width:360px){.mtiles{grid-template-columns:1fr}}

/* sous-menu des modes : bouton retour + titre, sur toute la largeur */
.mtiles .mhead{grid-column:1/-1;display:flex;align-items:center;gap:10px}
.mtile .mtag{position:absolute;top:-10px;right:-6px;background:#fff;color:var(--navy);border-radius:999px;padding:4px 10px 2px;
  font-family:var(--f-cur);font-size:1.05rem;line-height:1.2;box-shadow:0 3px 0 rgba(40,31,69,.2);transform:rotate(6deg)}
.mtile.hassub .mlab::after{content:" ›";font-family:var(--f-bold);font-weight:900}
.mtiles:has(> .mtile:nth-child(2):last-child) .mtile{min-height:200px}
/* une case seule sur la dernière ligne prend toute la largeur */
.mtiles .mhead ~ .mtile:last-child:nth-child(even),
.mtiles:not(:has(.mhead)) > .mtile:last-child:nth-child(odd):not(:first-child){grid-column:1/-1;justify-self:center;width:calc(50% - 6px)}

/* cases de modes sur fond blanc : seules les petites cartes illustrées gardent leurs couleurs */
.mtile{background:#fff;color:var(--navy);border:3px solid #fff;box-shadow:0 6px 0 var(--fond-d)}
.mtile:active{box-shadow:0 2px 0 var(--fond-d)}
.mtile .mlab{color:var(--navy)}
.mtile .mtxt{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.mtile .mhint{font-family:var(--f-cur);font-size:1.1rem;color:var(--rasp);line-height:1.3}
.mtile .mtag{background:var(--yellow)}
.mtiles .mtile,.mrows .mtile{animation:min .35s both}
@keyframes min{0%{opacity:0;transform:translateY(18px) scale(.96)}100%{opacity:1;transform:none}}

/* dans un sous-menu : le panneau « Qui joue ? » s'efface, l'écran change */
#home.insub > .panel{display:none}
#home.insub .cloud .l2{font-size:2.6rem}

/* dernier niveau : une grande carte par ligne, image à gauche, nom à droite */
.mrows{display:flex;flex-direction:column;gap:14px}
.mrows .mhead{display:flex}
.mrows .mtile{flex-direction:row;align-items:center;gap:14px;padding:14px 16px 14px 22px;min-height:120px;text-align:left}
.mrows .mtile .mart{flex:0 0 46%;min-height:0;padding:0}
.mrows .mtile .mtxt{flex:1;align-items:flex-start}
.mrows .mtile .mlab{font-size:1.75rem;text-align:left}
.mrows .mtile:hover{transform:translateX(4px)}
@media (max-width:380px){.mrows .mtile .mlab{font-size:1.45rem}.mrows .mtile .mart{flex-basis:42%}}
@media (prefers-reduced-motion:reduce){.mtiles .mtile,.mrows .mtile{animation:none}}
/* l'accueil garde toute sa largeur, même quand le panneau « Qui joue ? » est masqué */
#home{width:100%;box-sizing:border-box}

/* espace parent : corriger la prononciation */
.pronlist{display:flex;flex-direction:column;gap:6px}
.pronrow{display:flex;align-items:center;gap:8px;background:#fff;border:2.5px solid var(--rasp);border-radius:12px;padding:4px 10px}
.pronrow .pw,.pronrow .ps{font-family:var(--f-cur);font-size:1.4rem}
.pronrow .ps{flex:1;color:var(--rasp)}
.pronadd{display:grid;grid-template-columns:1fr 1fr auto auto;gap:6px;align-items:center}
.pronadd input{font-size:1.3rem;padding:4px 10px;min-width:0}
@media (max-width:420px){.pronadd{grid-template-columns:1fr 1fr}}

/* écran « Demander un accès » */
#access .panel{background:#fff;box-shadow:0 4px 0 var(--fond-d)}
#access .foot{color:var(--navy);opacity:.7}
#access input[type=email]{width:100%;box-sizing:border-box;font-family:var(--f-cur);font-size:1.7rem;color:var(--navy);background:#fff;border:2.5px solid var(--rasp);border-radius:12px;padding:6px 14px;line-height:1.75}
#access a.btn{text-decoration:none;text-align:center}

/* « Jouer en ligne » (catalogue et demande d'accès) : les 4 enfants des boîtes sortent du nuage */
.hero.hero4{padding-top:112px}
.kids4{position:absolute;left:0;top:4px;width:calc(100% - 132px);height:150px;z-index:1;pointer-events:none}
.kids4 img{position:absolute;bottom:0;height:132px;width:auto;transform-origin:50% 100%}
.kids4 img:nth-child(1){left:0;transform:rotate(-6deg)}
.kids4 img:nth-child(2){left:22%;height:124px;bottom:6px}
.kids4 img:nth-child(3){left:44%;height:136px;transform:rotate(4deg)}
.kids4 img:nth-child(4){left:66%;height:120px;bottom:4px;transform:rotate(7deg)}
@media (max-width:420px){.kids4{width:calc(100% - 112px);height:130px}.kids4 img{height:112px}.kids4 img:nth-child(2){height:104px}.kids4 img:nth-child(3){height:116px}.kids4 img:nth-child(4){height:100px}.hero.hero4{padding-top:96px}}

/* « Jouer en ligne » : nuage sans trait noir, arc-en-ciel plus haut */
.hero.hero4 .cloud{--cloud-line:transparent}
.hero.hero4 .rainbow{top:-4px}
/* l'arc-en-ciel passe au-dessus des têtes : enfants un peu plus bas, arc en haut */
.hero.hero4{padding-top:150px}
.hero.hero4 .kids4{top:40px}
.hero.hero4 .rainbow{top:0;left:-2%;width:104%}
@media (max-width:420px){.hero.hero4{padding-top:128px}.hero.hero4 .kids4{top:30px}}

/* les 4 enfants (portraits carrés) : un peu plus serrés */
.kids4 img{height:128px}
.kids4 img:nth-child(1){left:0}.kids4 img:nth-child(2){left:21%}.kids4 img:nth-child(3){left:43%}.kids4 img:nth-child(4){left:64%}
@media (max-width:420px){.kids4 img,.kids4 img:nth-child(n){height:96px}}
/* les 4 enfants côte à côte, sans se chevaucher, sur toute la largeur, sous le logo */
.hero.hero4{--kh:clamp(80px,21vw,124px);padding-top:calc(58px + var(--kh) - 8px)}
.hero.hero4 .logo{padding:6px 12px}
.hero.hero4 .logo img{height:46px}
.hero.hero4 .kids4{left:0;right:0;width:auto;top:58px;height:var(--kh);display:flex;justify-content:space-between;align-items:flex-end;gap:4px}
.hero.hero4 .kids4 img,.hero.hero4 .kids4 img:nth-child(n){position:static;height:var(--kh);width:auto;max-width:24%;object-fit:contain;transform:none;flex:0 1 auto}
.hero.hero4 .rainbow{top:30px}
@media (max-width:420px){.hero.hero4 .logo img{height:40px}}
.hero.hero4{padding-top:calc(58px + var(--kh) - 40px)}
.hero.hero4 .rainbow{top:44px}
