/* Page d'accueil générale UNIVERSE et pages des univers.
   Couleurs uniquement via les variables de app/styles.css (--accent, --pro, --life, --student, --kids…). */

body.accueil, body.branche { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

/* Ciel étoilé discret */
.ciel {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, var(--text), transparent),
    radial-gradient(1px 1px at 28% 72%, var(--accent-clair), transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, var(--text), transparent),
    radial-gradient(1px 1px at 63% 38%, var(--text), transparent),
    radial-gradient(1px 1px at 78% 16%, var(--accent-clair), transparent),
    radial-gradient(1.5px 1.5px at 88% 58%, var(--text), transparent),
    radial-gradient(1px 1px at 6% 52%, var(--text), transparent),
    radial-gradient(1px 1px at 54% 86%, var(--accent-clair), transparent),
    radial-gradient(1px 1px at 93% 88%, var(--text), transparent),
    radial-gradient(ellipse 70% 50% at 70% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 40% at 15% 10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    var(--bg);
  opacity: .9;
}

/* ---------- En-tête de l'accueil : logo, slogan, horizon ---------- */
.accueil-tete { position: relative; display: grid; justify-items: center; text-align: center;
  padding: calc(var(--gap) * 2.5) var(--gap) 0; overflow: hidden; }
.accueil-tete .logo-grand { width: min(560px, 86vw); }
.accueil-tete .logo-grand .ul { width: 100%; height: auto; }
.slogan { display: flex; align-items: center; gap: clamp(8px, 2vw, 14px); margin: calc(var(--gap) * .5) 0 0; white-space: nowrap;
  font-size: clamp(.68rem, 2.2vw, 1.05rem); letter-spacing: clamp(.14em, .9vw, .32em); text-transform: uppercase; color: var(--text); }
.slogan::before, .slogan::after { content: ""; width: clamp(16px, 8vw, 120px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent)); }
.slogan::after { transform: scaleX(-1); }
.horizon { width: 160%; height: clamp(60px, 12vw, 140px); margin-top: calc(var(--gap) * 1.5);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 2px solid var(--accent-clair);
  background: radial-gradient(ellipse 60% 100% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 75%);
  box-shadow: 0 -6px 30px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 95%); mask-image: linear-gradient(to bottom, #000 25%, transparent 95%); }

/* ---------- Les quatre cartes ---------- */
.grille-univers { display: grid; gap: calc(var(--gap) * 1.25); grid-template-columns: 1fr;
  max-width: 1320px; margin: calc(var(--gap) * 1.5) auto 0; padding: 0 var(--gap); }
@media (min-width: 640px) { .grille-univers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .grille-univers { grid-template-columns: repeat(4, 1fr); max-width: 1440px; }
  .carte-atouts > span { font-size: .72rem; padding-inline: 2px; } .carte-atouts svg { width: 24px; height: 24px; } }

.carte {
  display: grid; grid-template-rows: auto 1fr auto; text-decoration: none; color: var(--text);
  border-radius: 22px; border: 2px solid var(--c); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, var(--bg)), var(--bg) 70%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 24px color-mix(in srgb, var(--c) 18%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.carte:hover, .carte:focus-visible { transform: translateY(-4px);
  box-shadow: 0 0 30px color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 30px color-mix(in srgb, var(--c) 25%, transparent); }
.carte:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; }
.carte-tete { display: block; padding: 18px 18px 10px; }
.carte-tete .ul { height: 40px; width: auto; max-width: 100%; }
.carte-scene { position: relative; display: block; margin: 0 14px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--c) 22%, var(--bg)), color-mix(in srgb, var(--c) 6%, var(--bg)) 80%);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.scene-svg { display: block; width: 100%; height: auto; color: var(--c);
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--c) 80%, transparent)); }
.scene-svg .fin { stroke-width: 2; opacity: .85; }
.scene-svg .epais { stroke-width: 8; }
.scene-svg .fond { fill: currentColor; fill-opacity: .1; stroke: none; }
.scene-svg .plein { fill: currentColor; stroke: none; }
.carte-etat { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--bg); background: var(--c); }
.carte-atouts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 14px; }
.carte-atouts > span { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 6px 4px;
  text-align: center; font-size: .78rem; line-height: 1.2; }
.carte-atouts > span + span { border-left: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.carte-atouts svg { width: 28px; height: 28px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.carte-atouts b { font-weight: 500; }
/* Univers pas encore ouvert : visible, mais en retrait et non cliquable */
.carte.ferme { cursor: default; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 25%, transparent);
  border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.carte.ferme:hover { transform: none; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 25%, transparent); }
.carte.ferme .carte-scene, .carte.ferme .carte-atouts { opacity: .55; filter: saturate(.7); }

/* ---------- Ordinateur : toute la page tient dans l'écran, du petit portable au grand écran ----------
   Les tailles suivent la hauteur (vh) et la largeur (vw) de la fenêtre ; les cartes restent rectangulaires. */
@media (min-width: 1180px) {
  body.accueil { padding-bottom: 0; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
  body.accueil main { max-width: none; width: 100%; padding: 0; }
  .accueil-tete { padding-top: 2vh; }
  .accueil-tete .logo-grand { width: min(640px, 56vh); }
  .slogan { margin-top: .5vh; }
  .horizon { height: 7vh; margin-top: 2vh; }
  .grille-univers { width: 100%; max-width: 1600px; margin: 2.5vh auto 3vh; }
  .carte { height: min(17vw, 44vh, 270px); grid-template-rows: auto minmax(0, 1fr) auto; }
  .carte-tete { padding: 12px 16px 8px; }
  .carte-tete .ul { height: clamp(28px, 4vh, 38px); }
  .carte-scene { min-height: 0; display: grid; place-items: center; }
  .carte-scene .scene-svg { height: 100%; width: auto; max-width: 100%; }
  .carte-atouts { margin: 8px 12px 10px; }
  .accueil-pied { position: absolute; top: 6px; right: 16px; margin: 0; padding: 0; gap: 0 18px; font-size: .8rem; }
}

.accueil-pied { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: calc(var(--gap) * 3) auto 0; padding: 0 var(--gap);
  font-size: .85rem; color: var(--muted); }
.accueil-pied a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.accueil-pied a:hover { color: var(--accent); }

/* Apparition après l'animation du logo */
@media (prefers-reduced-motion: no-preference) {
  .slogan { animation: monte .7s 3.2s both; }
  .horizon { animation: horizon 1.2s 2.6s both; }
  .carte { animation: monte .7s both; animation-delay: calc(3.5s + var(--i) * .12s); }
}
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes horizon { from { opacity: 0; transform: scaleX(.6); } to { opacity: 1; transform: none; } }

/* ---------- Page d'un univers ---------- */
.retour { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  text-decoration: none; color: var(--text); border: 1px solid var(--border); font-size: .92rem; }
.retour:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 480px) { .retour .long { display: none; } }
.univers { display: grid; gap: calc(var(--gap) * 2); padding-top: calc(var(--gap) * 1.5); }
.univers-tete { display: grid; gap: calc(var(--gap) * 1.5); align-items: center; }
@media (min-width: 820px) { .univers-tete { grid-template-columns: 1fr 1fr; } }
.univers-scene { border-radius: 22px; border: 2px solid var(--c); overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--c) 22%, var(--bg)), color-mix(in srgb, var(--c) 6%, var(--bg)) 80%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--c) 45%, transparent); }
.univers h1 { font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: .06em; }
.univers h1 span { color: var(--c); }
.univers-etat { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  color: var(--bg); background: var(--c); }
.univers-essai { background: var(--c); color: var(--bg); text-align: center; padding-block: 8px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.univers-atelier { display: grid; gap: 10px; padding: 22px; border-radius: 22px; text-decoration: none; color: var(--text);
  border: 2px solid var(--c); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 16%, var(--surface)), var(--surface) 70%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 30%, transparent); }
.univers-atelier:hover, .univers-atelier:focus-visible { box-shadow: 0 0 32px color-mix(in srgb, var(--c) 55%, transparent); }
.univers-atelier { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.atelier-texte { display: grid; gap: 10px; justify-items: center; }
@media (min-width: 640px) {
  .univers-atelier { grid-template-columns: auto 1fr; align-items: center; gap: 26px; justify-items: start; text-align: left; }
  .atelier-texte { justify-items: start; }
}
/* Icône de l'atelier : tuile façon appli, cartes en éventail qui s'ouvrent au survol */
.atelier-icone { display: grid; justify-items: center; gap: 6px; }
.atelier-icone em { font-style: normal; font-weight: 800; font-size: .95rem; color: var(--c); letter-spacing: .02em; }
.ai-svg { width: clamp(110px, 18vw, 150px); height: auto; overflow: visible; animation: ai-flotte 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--kids) 55%, transparent)); }
.ai-fond-a { stop-color: var(--kids); }
.ai-fond-b { stop-color: var(--pro); }
.ai-bulle { fill: var(--text); opacity: .55; }
.ai-carte > rect:first-child { fill: var(--text); }
.ai-carte { transform-box: view-box; transform-origin: 53px 96px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ai-c1 { transform: rotate(-16deg); } .ai-c1 .ai-haut { fill: var(--life); } .ai-rond { fill: var(--accent); }
.ai-c2 { transform: rotate(-3deg); }  .ai-c2 .ai-haut { fill: var(--student); } .ai-coeur { fill: var(--alerte); }
.ai-c3 { transform: rotate(11deg); }  .ai-c3 .ai-haut { fill: var(--accent); } .ai-etoile { fill: var(--student); }
.ai-crayon { transform-box: view-box; transform-origin: 85px 70px; transform: rotate(18deg); transition: transform .35s ease; }
.ai-crayon > rect:first-child { fill: var(--student); } .ai-mine { fill: var(--surface); } .ai-gomme { fill: var(--alerte); }
:is(.univers-atelier, .atout-actif):is(:hover, :focus-visible) .ai-c1 { transform: rotate(-28deg) translateX(-4px); }
:is(.univers-atelier, .atout-actif):is(:hover, :focus-visible) .ai-c3 { transform: rotate(22deg) translateX(4px); }
:is(.univers-atelier, .atout-actif):is(:hover, :focus-visible) .ai-crayon { transform: rotate(30deg) translateY(-4px); }
@keyframes ai-flotte { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .ai-svg { animation: none; } .ai-carte, .ai-crayon { transition: none; } }
.univers-atelier h2 { margin: 0; font-size: 1.5rem; }
.univers-atelier p { margin: 0; color: var(--text); }
.univers-atelier b { color: var(--c); }
.metiers-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.metiers-pastilles span { padding: 5px 12px; border-radius: 999px; font-size: .88rem; border: 1px solid color-mix(in srgb, var(--c) 50%, var(--border)); background: var(--bg); }
.univers-promesse { font-size: clamp(1.15rem, 2.6vw, 1.5rem); color: var(--text); font-weight: 600; }
.univers-atouts { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.atout { padding: 20px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--border));
  background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.atout svg { width: 32px; height: 32px; fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.atout h2 { font-size: 1.1rem; margin: 0 0 4px; }
.atout p { margin: 0; font-size: .92rem; }
/* Kids : la vignette active est pleine et cliquable ; les vignettes prévues se fondent dans le fond */
/* Vignette de l'atelier : fond clair, décor dessin animé (cartes à gros contour, une carte qui sourit, confettis) */
.atout-actif { --encre: var(--accent-text); position: relative; overflow: hidden; display: grid; align-content: start; gap: 6px;
  text-decoration: none; color: var(--encre); border: 3px solid var(--encre);
  background: radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--student) 30%, white), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--kids) 16%, white), color-mix(in srgb, var(--accent) 12%, white));
  box-shadow: 0 5px 0 var(--encre), 0 0 22px color-mix(in srgb, var(--c) 35%, transparent); transition: transform .2s, box-shadow .2s; }
.atout-actif:is(:hover, :focus-visible) { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 8px 0 var(--encre), 0 0 30px color-mix(in srgb, var(--c) 55%, transparent); }
.atout-actif .aa-decor { display: block; width: 100%; height: 104px; margin: -6px 0 0; fill: initial; stroke: none; pointer-events: none; overflow: visible; }
.aa-contenu { position: relative; display: grid; justify-items: start; gap: 2px; }
.atout-actif h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--encre); }
.atout-actif p { color: color-mix(in srgb, var(--encre) 80%, white); font-weight: 600; }
.atout-actif b { margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: var(--encre); color: white; font-size: .9rem; }
.da-carte rect:first-child { fill: white; stroke: var(--encre); stroke-width: 3; }
.da-carte .da-haut { stroke: var(--encre); stroke-width: 3; }
.da-c1 .da-haut { fill: var(--life); } .da-c2 .da-haut { fill: var(--accent); } .da-heros .da-haut { fill: var(--kids); }
.da-motif { fill: var(--student); stroke: var(--encre); stroke-width: 2; stroke-linejoin: round; }
.da-coeur { fill: var(--alerte); }
.da-oeil { fill: var(--encre); } .da-reflet { fill: white; }
.da-sourire { fill: none; stroke: var(--encre); stroke-width: 3; stroke-linecap: round; }
.da-joue { fill: var(--code-evf); opacity: .6; }
.da-eclat { fill: none; stroke: var(--encre); stroke-width: 2.5; stroke-linecap: round; }
.da-confetti { stroke: var(--encre); stroke-width: 1.5; }
.da-jaune { fill: var(--student); } .da-rose { fill: var(--code-evf); } .da-bleu { fill: var(--accent); } .da-vert { fill: var(--life); }
.da-heros { animation: da-danse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.da-c1, .da-c2 { transition: translate .3s cubic-bezier(.3, 1.6, .5, 1); }
.atout-actif:is(:hover, :focus-visible) .da-c1 { translate: -6px 4px; }
.atout-actif:is(:hover, :focus-visible) .da-c2 { translate: 6px 4px; }
@keyframes da-danse { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .da-heros { animation: none; } }
/* Une vignette « en préparation » qu'on peut ouvrir pour voir les coulisses : fond plein, car elle se clique */
.atout-coulisses { display: grid; align-content: start; gap: 4px; text-decoration: none; color: var(--text);
  border: 2px dashed var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); transition: transform .2s, box-shadow .2s; }
.atout-coulisses:is(:hover, :focus-visible) { transform: translateY(-2px); box-shadow: 0 0 24px color-mix(in srgb, var(--c) 45%, transparent); }
.atout-coulisses b { margin-top: 6px; color: var(--c); font-size: .85rem; }
.atout-prevu { background: transparent; border: 1px dashed color-mix(in srgb, var(--c) 30%, var(--border)); opacity: .8; }
.atout-prevu small { display: inline-block; margin-top: 8px; font-size: .78rem; color: var(--muted); }
.univers-note { font-size: .9rem; border-left: 3px solid var(--c); padding-left: 14px; }

/* Paramètres (caché) : la roue en bas de l'accueil ouvre les grandes étapes de la construction */
.accueil-param { min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 1rem; opacity: .55; cursor: pointer; }
.accueil-param:hover, .accueil-param:focus-visible { opacity: 1; }
.fenetre-param { width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.fenetre-param::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.fenetre-param header { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gap); background: var(--surface); border-bottom: 1px solid var(--border); }
.fenetre-param h2 { margin: 0; font-size: 1.1rem; }
.fenetre-param .fermer { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--text); font-size: 1.6rem; cursor: pointer; }
.fenetre-param section { padding: var(--gap); }
.et-titre { margin: 0 0 var(--gap); font-size: 1rem; color: var(--accent); }
.etapes { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--border); }
.et-jour { margin: var(--gap) 0 6px -27px; }
.et-jour:first-child { margin-top: 0; }
.et-jour time { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: .8rem; font-weight: 700; }
.et-etape { margin: 0 0 12px; }
.et-etape h3 { margin: 0 0 4px; font-size: .95rem; }
.et-etape ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* ===== Accueil UNIVERSE Kids (kids/) : fond violet nuit, le monde cliquable, quatre grandes cartes. Ne touche pas aux autres univers. ===== */
body.branche[data-univers="kids"] { background: #0d0828; }
body.branche[data-univers="kids"] .ciel { background: radial-gradient(ellipse 80% 50% at 70% 0%, rgba(176, 124, 255, .3), transparent 70%), radial-gradient(ellipse 60% 40% at 10% 10%, rgba(31, 182, 255, .14), transparent 70%), linear-gradient(180deg, #170c3d 0%, #0d0828 55%, #070519 100%); opacity: 1; }
.kids-accueil { max-width: min(1480px, max(560px, calc((100svh - 270px) * 1.6))); margin: 0 auto; padding: 8px clamp(10px, 2vw, 28px) 40px; color: #eaf4ff; }
.monde { position: relative; border-radius: clamp(18px, 2.4vw, 36px); overflow: hidden; box-shadow: 0 0 0 1.5px rgba(176, 124, 255, .4), 0 24px 60px rgba(0, 0, 0, .5); aspect-ratio: 1586 / 992; background: #1a0f4a; }
.monde > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ile, .monde-jouer { position: absolute; display: block; border-radius: 38%; color: #fff; text-decoration: none; transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.ile:is(:hover, :focus-visible), .monde-jouer:is(:hover, :focus-visible) { background: radial-gradient(ellipse at 50% 55%, rgba(255, 235, 150, .32), transparent 70%); box-shadow: 0 0 46px rgba(255, 220, 120, .55); transform: scale(1.03); outline: none; }
.ile:focus-visible, .monde-jouer:focus-visible { outline: 3px solid #ffd528; outline-offset: 2px; }
.ile-nom { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 4px clamp(10px, 1.4vw, 22px); border-radius: 999px; background: rgba(20, 12, 56, .82); border: 1.5px solid rgba(201, 165, 255, .6); font: 700 clamp(12px, 1.6vw, 24px)/1.2 "Fredoka", ui-rounded, system-ui, sans-serif; white-space: nowrap; }
.ile-nom i { font: 600 .7em "Fredoka", ui-rounded, sans-serif; font-style: normal; padding: 1px 9px; border-radius: 999px; background: #ffd528; color: #1d1450; }
.ile-bientot { cursor: default; }
.monde-jouer { display: grid; place-items: end center; border-radius: 50%; }
.monde-jouer span { margin-bottom: 4%; padding: clamp(6px, 1vw, 14px) clamp(20px, 3.4vw, 54px); border-radius: 999px; background: #ffd528; color: #1d1450; font: 700 clamp(18px, 3.2vw, 48px)/1 "Fredoka", ui-rounded, system-ui, sans-serif; box-shadow: 0 8px 26px rgba(255, 213, 40, .5), 0 0 0 4px rgba(255, 255, 255, .25); animation: kids-pouls 2.6s ease-in-out infinite; }
@keyframes kids-pouls { 50% { transform: scale(1.06); } }
.monde-titre { position: absolute; left: 0; right: 0; bottom: 5%; text-align: center; pointer-events: none; }
.monde-titre h1 { margin: 0; font: 700 clamp(26px, 5.2vw, 84px)/1.05 "Fredoka", ui-rounded, system-ui, sans-serif; color: #fff; text-shadow: 0 0 30px rgba(176, 124, 255, .8), 0 4px 0 rgba(0, 0, 0, .3); }
.monde-titre h1 span { color: #ffd528; }
.monde-titre p { margin: 4px 0 0; font: 600 clamp(14px, 2vw, 30px) "Fredoka", ui-rounded, system-ui, sans-serif; color: #d9ccff; }
.kids-cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); margin-top: clamp(22px, 3vw, 44px); }
.kc { display: grid; gap: 12px; align-content: start; padding: 12px 12px 16px; border-radius: 28px; border: 1.5px solid rgba(176, 124, 255, .4); background: linear-gradient(160deg, rgba(70, 46, 138, .78), rgba(24, 14, 64, .9) 70%); color: #eaf4ff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.kc:is(:hover, :focus-visible) { transform: translateY(-5px); border-color: #c9a5ff; box-shadow: 0 20px 38px rgba(0, 0, 0, .5), 0 0 30px rgba(176, 124, 255, .4); }
a.kc:focus-visible { outline: 3px solid #ffd528; outline-offset: 3px; }
.kc-photo { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 2; background: #2c2060; }
.kc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kc-bientot { position: absolute; right: 10px; top: 10px; padding: 3px 12px; border-radius: 999px; background: #ffd528; color: #1d1450; font: 700 .8rem "Fredoka", ui-rounded, sans-serif; font-style: normal; }
.kc-ferme { cursor: default; opacity: .8; filter: saturate(.7); }
.kc-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px; }
.kc-textes { display: grid; gap: 4px; min-width: 0; }
.kc-textes b { font: 700 clamp(19px, 1.7vw, 28px)/1.15 "Fredoka", ui-rounded, system-ui, sans-serif; color: #fff; }
.kc-textes small { font: 500 clamp(13px, 1.1vw, 16px)/1.3 "Fredoka", ui-rounded, system-ui, sans-serif; color: #b9b0e0; }
.kc-ico { flex: none; width: clamp(46px, 3.4vw, 64px); height: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.kids-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; margin-top: clamp(28px, 4vw, 56px); color: #b9b0e0; text-align: center; }
.kids-pied p { margin: 0; font-weight: 600; }
.kids-parents { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(201, 165, 255, .5); color: #d9ccff; text-decoration: none; opacity: .75; cursor: default; }
.kids-coulisses { color: #8f86b8; font-size: .85rem; }
@media (max-width: 900px) { .kids-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kc { border-radius: 22px; padding: 9px 9px 13px; } .kc-photo { border-radius: 15px; } .kc-textes small { display: none; } }
@media (prefers-reduced-motion: reduce) { .monde-jouer span { animation: none; } .ile, .kc { transition: none; } }

/* Kids : tout tient sur un écran — le monde se règle sur la hauteur, cartes et pied plus compacts */
.kids-accueil { max-width: 1480px; }
.monde { width: min(100%, max(520px, calc((100svh - 430px) * 1.6))); margin-inline: auto; }
.kids-cartes { margin-top: clamp(12px, 1.6vw, 22px); }
.kc { gap: 8px; padding: 9px 9px 11px; }
.kc-photo { aspect-ratio: 5 / 2; }
.kc-textes small { display: none; }
.kids-pied { margin-top: 14px; gap: 6px 20px; }
.kids-accueil { padding-bottom: 16px; }
.monde { container-type: inline-size; }
.monde-titre { bottom: 3%; }
.monde-titre h1 { font-size: clamp(18px, 5.2cqw, 84px); }
.monde-titre p { font-size: clamp(12px, 2cqw, 30px); }
.monde-jouer span { font-size: clamp(16px, 3.2cqw, 48px); }

/* ===== Kids v2 : titre en haut, quatre mondes de même hauteur, explication au centre au survol ===== */
.kids-accueil { max-width: 1280px; padding-bottom: 12px; }
.kids-haut { text-align: center; padding: clamp(6px, 1.6svh, 18px) 0 clamp(10px, 2svh, 22px); }
.kids-haut h1 { margin: 0; font: 700 clamp(30px, 6svh, 64px)/1.05 "Fredoka", ui-rounded, system-ui, sans-serif; color: #fff; text-shadow: 0 0 30px rgba(176, 124, 255, .8), 0 4px 0 rgba(0, 0, 0, .3); }
.kids-haut h1 span { color: #ffd528; }
.kids-haut p { margin: 4px 0 0; font: 600 clamp(15px, 2.6svh, 24px) "Fredoka", ui-rounded, system-ui, sans-serif; color: #d9ccff; }
.kids-rang { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 26px); }
.kr { position: relative; display: block; height: clamp(230px, calc(100svh - 395px), 560px); border-radius: 28px; overflow: hidden; border: 2px solid rgba(176, 124, 255, .45); background: #2c2060; color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.kr-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kr::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(16, 8, 48, .85)); pointer-events: none; }
.kr-nom { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kr-nom b { font: 700 clamp(20px, 2vw, 32px)/1.1 "Fredoka", ui-rounded, system-ui, sans-serif; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.kr .kc-ico { width: clamp(44px, 3.6vw, 64px); }
.kr-phrase { display: none; position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 64px; font: 500 15px/1.3 "Fredoka", ui-rounded, sans-serif; color: #eee6ff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
a.kr:is(:hover, :focus-visible) { transform: translateY(-6px); border-color: #ffd528; box-shadow: 0 22px 40px rgba(0, 0, 0, .5), 0 0 34px rgba(255, 213, 40, .45); outline: none; }
.kr-ferme { cursor: default; }
.kr-ferme .kr-photo { filter: saturate(.75); }
.kr .kc-bientot { z-index: 2; }
.kids-bulle { margin: clamp(12px, 2.4svh, 24px) auto 0; min-height: 2.6em; max-width: 34em; text-align: center; font: 600 clamp(16px, 2.6svh, 24px)/1.3 "Fredoka", ui-rounded, system-ui, sans-serif; color: #b9b0e0; transition: color .2s; }
.kids-bulle.vive { color: #fff; }
.kids-pied { margin-top: 8px; }
@media (max-width: 900px) { .kids-rang { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kr { height: clamp(190px, 34svh, 320px); border-radius: 22px; } .kr-phrase { display: block; bottom: 56px; font-size: 13px; } .kids-bulle { display: none; } }
@media (prefers-reduced-motion: reduce) { .kr { transition: none; } }

/* Kids v3 : la photo entière dans un second cadre, le nom dessous */
.kids-rang { align-items: start; }
.kr { height: auto; display: grid; gap: 10px; padding: 10px 10px 14px; background: linear-gradient(160deg, rgba(70, 46, 138, .78), rgba(24, 14, 64, .92) 70%); }
.kr::after { display: none; }
.kr-photo { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .55); background: #1a0f4a; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25); }
.kr-nom { position: static; padding: 0 6px; }
.kr .kc-bientot { top: 18px; right: 18px; }
.kr-phrase { position: static; display: none; padding: 0 6px; text-shadow: none; }
.kids-haut { padding-bottom: clamp(18px, 5svh, 56px); }
.kids-rang { margin-top: clamp(0px, 3svh, 30px); }
@media (max-width: 900px) { .kr { height: auto; } .kr-phrase { display: block; } }
.kids-accueil { max-width: min(1480px, calc((100svh - 120px) * 2.2)); }

/* Kids : bandeau « Nouveau » sous les quatre mondes */
.kids-une { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); width: min(100%, 760px); margin: clamp(14px, 3svh, 30px) auto 0; padding: 8px 18px 8px 8px; border-radius: 26px; border: 1.5px solid rgba(255, 213, 40, .55); background: linear-gradient(100deg, rgba(70, 46, 138, .85), rgba(24, 14, 64, .92)); color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.kids-une:is(:hover, :focus-visible) { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 26px rgba(255, 213, 40, .35); outline: none; }
.kids-une img { flex: none; width: clamp(96px, 14vw, 150px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .55); }
.ku-textes { display: grid; gap: 2px; min-width: 0; flex: 1; font-family: "Fredoka", ui-rounded, system-ui, sans-serif; }
.ku-textes i { justify-self: start; padding: 1px 10px; border-radius: 999px; background: #ffd528; color: #1d1450; font: 700 .75rem "Fredoka", ui-rounded, sans-serif; font-style: normal; }
.ku-textes b { font-size: clamp(17px, 2vw, 24px); line-height: 1.15; }
.ku-textes small { font-size: clamp(12px, 1.2vw, 15px); color: #cfc4f5; }
.ku-go { flex: none; padding: 8px 22px; border-radius: 999px; background: #ffd528; color: #1d1450; font: 700 clamp(16px, 1.6vw, 20px) "Fredoka", ui-rounded, sans-serif; }
@media (max-width: 560px) { .ku-go { display: none; } }
.kids-accueil { max-width: min(1480px, calc((100svh - 200px) * 2.2)); }
.kids-haut { padding-bottom: clamp(8px, 2svh, 24px); }
.kids-rang { margin-top: 0; }
.kids-bulle { margin-top: 10px; min-height: 1.4em; }
.kids-une { margin-top: 12px; }
.kids-pied { margin-top: 6px; }
/* Kids : le pied de page est repoussé tout en bas de l'écran */
.kids-accueil { display: flex; flex-direction: column; min-height: calc(100svh - 132px); }
.kids-pied { margin-top: auto; padding-top: 12px; }
/* Kids : seconde partie aérée */
.kids-bulle { margin-top: clamp(14px, 3svh, 32px); }
.kids-une { margin-top: clamp(18px, 4svh, 44px); }
/* Kids : l'explication est une bulle rattachée à la vignette survolée (flèche vers le haut) */
.kids-bulle { position: relative; width: min(100%, 560px); padding: 10px 20px; border-radius: 18px; border: 1.5px solid rgba(176, 124, 255, .45); background: rgba(40, 24, 96, .6); transition: border-color .2s, background .2s; }
.kids-bulle::before { content: ""; position: absolute; top: -9px; left: var(--fx, 50%); width: 16px; height: 16px; margin-left: -8px; transform: rotate(45deg); background: rgb(48, 30, 108); border-left: 1.5px solid rgba(176, 124, 255, .45); border-top: 1.5px solid rgba(176, 124, 255, .45); }
.kids-bulle.vive { border-color: #ffd528; background: rgba(60, 38, 130, .85); }
.kids-bulle.vive::before { border-color: #ffd528; background: rgb(60, 38, 130); }
.kids-bulle b { color: #ffd528; margin-right: 4px; }
.kids-bulle b::after { content: " :"; }
.kids-bulle { width: min(100%, 760px); min-height: 0; display: flex; align-items: center; justify-content: center; height: 3.4em; box-sizing: border-box; padding-block: 6px; font-size: clamp(15px, 2.2svh, 21px); }
.kids-une { margin-top: clamp(12px, 2svh, 24px); }
.kids-haut { padding-top: 0; }

/* Kids : le code couleur est le violet de la marque (--kids), plus de jaune */
.kids-haut h1 span, .kids-bulle b { color: var(--kids, #b07cff); }
a.kr:is(:hover, :focus-visible) { border-color: var(--kids, #b07cff); box-shadow: 0 22px 40px rgba(0, 0, 0, .5), 0 0 34px rgba(176, 124, 255, .55); }
.kids-bulle.vive, .kids-bulle.vive::before { border-color: var(--kids, #b07cff); }
.kids-une { border-color: rgba(176, 124, 255, .7); }
.kids-une:is(:hover, :focus-visible) { box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 28px rgba(176, 124, 255, .5); }
.ku-textes i, .ku-go, .kc-bientot { background: var(--kids, #b07cff); color: #fff; }
.ku-go { box-shadow: 0 6px 18px rgba(176, 124, 255, .45); }
.kr-nom b, .ku-textes b { color: #fff; }
/* Kids : quatre cartes strictement de même hauteur */
.kids-rang { align-items: stretch; }
.kr { grid-template-rows: auto 1fr; }
.kr-nom { min-height: clamp(48px, 4.4vw, 68px); align-self: center; }
.kr .kc-ico { width: clamp(44px, 3.6vw, 64px); height: clamp(44px, 3.6vw, 64px); object-fit: contain; }
.kids-bulle { margin-top: clamp(10px, 2.4svh, 28px); }

/* Kids : un fil électrique relie la vignette survolée à sa bulle */
.kids-accueil { position: relative; }
.kids-bulle::before { display: none; }
.kids-fil { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .2s; }
.kids-fil.actif { opacity: 1; }
.kids-fil path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fil-halo { stroke: rgba(176, 124, 255, .45); stroke-width: 9; filter: blur(5px); }
.fil-arc { stroke: #fff; stroke-width: 3; stroke-dasharray: 14 10; filter: drop-shadow(0 0 4px var(--kids, #b07cff)) drop-shadow(0 0 10px var(--kids, #b07cff)); animation: kids-fil 0.7s linear infinite; }
@keyframes kids-fil { to { stroke-dashoffset: -24; } }
@media (max-width: 900px) { .kids-fil { display: none; } }
@media (prefers-reduced-motion: reduce) { .fil-arc { animation: none; } }
.kids-bulle { width: 100%; }
.kids-bulle { max-width: none; }
.kids-accueil { max-width: min(1480px, calc((100svh - 270px) * 2.2)); }
.kids-bulle { margin-top: clamp(30px, 6svh, 56px); }

/* Kids v4 : la phrase s'ouvre en bulle de verre sur la photo au survol (plus de fil, plus de bulle en bas) */
.kids-fil, .kids-bulle { display: none; }
.kids-accueil { max-width: min(1480px, calc((100svh - 150px) * 2.2)); }
.kr-vue { position: relative; display: block; }
.kr-bulle { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 3px; padding: 10px 14px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(40, 20, 100, .55); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 22px rgba(176, 124, 255, .4); color: #fff; font: 500 clamp(13px, 1.25vw, 17px)/1.3 "Fredoka", ui-rounded, system-ui, sans-serif; opacity: 0; transform: translateY(14px) scale(.94); transform-origin: 50% 100%; transition: opacity .22s ease, transform .28s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
.kr-bulle b { color: #d9c2ff; font-size: 1.1em; }
.kr:is(:hover, :focus-visible) .kr-bulle { opacity: 1; transform: none; }
.kr-phrase { display: none !important; }
@media (max-width: 900px) { .kr-bulle { display: none; } .kr-phrase { display: block !important; } }
@media (prefers-reduced-motion: reduce) { .kr-bulle { transition: none; } }
.kr .kc-bientot { z-index: 3; }

/* Kids : le bas de page respire */
.kids-rang { margin-bottom: 0; }
.kids-une { margin-top: clamp(28px, 7svh, 72px); padding: 12px 24px 12px 12px; width: min(100%, 820px); }
.kids-pied { margin-top: auto; padding-top: clamp(28px, 6svh, 60px); padding-bottom: clamp(6px, 2svh, 22px); gap: 14px 34px; }
.kids-pied p { font-size: 1.05rem; }
.kids-parents { min-height: 48px; padding: 0 24px; }

/* Kids : bulle fondue — l'arrière de la photo se floute en dégradé, texte soigné */
.kr-bulle { inset: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px 16px 14px; border: 0; border-radius: inherit; background: linear-gradient(to top, rgba(28, 12, 80, .78) 0%, rgba(28, 12, 80, .5) 45%, rgba(28, 12, 80, 0) 85%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%); mask-image: linear-gradient(to top, #000 55%, transparent 100%); box-shadow: none; transform: none; transition: opacity .35s ease; text-align: left; }
.kr-vue { border-radius: 18px; overflow: hidden; }
.kr-bulle b { font: 700 clamp(18px, 1.9vw, 26px)/1.1 "Fredoka", ui-rounded, system-ui, sans-serif; color: #fff; text-shadow: 0 2px 10px rgba(120, 60, 255, .9), 0 0 2px rgba(0, 0, 0, .5); letter-spacing: .01em; }
.kr-bulle { font: 500 clamp(13px, 1.2vw, 16px)/1.3 "Fredoka", ui-rounded, system-ui, sans-serif; color: #f1e9ff; text-shadow: 0 1px 6px rgba(20, 8, 60, .9); }
.kr-bulle b { margin-bottom: 1px; }
.kids-accueil { max-width: min(1480px, calc((100svh - 215px) * 2.2)); }
.kids-accueil { max-width: min(1480px, calc((100svh - 260px) * 2.2)); }
.kids-accueil { max-width: min(1480px, calc((100svh - 275px) * 2.2)); }

/* Kids : ouverture « chaîne » — page vide, le logo UNIVERSE s'anime, Kids s'allume, la phrase s'écrit dessous */
.kids-ouv { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #05030f; cursor: pointer; transition: opacity .8s ease, visibility .8s; }
.kids-ouv.fin { opacity: 0; visibility: hidden; pointer-events: none; }
.ko-bloc { display: grid; justify-items: center; gap: clamp(6px, 1.4svh, 16px); width: min(92vw, 820px); }
.ko-logo { display: block; width: min(86vw, 780px); }
.ko-logo svg { display: block; width: 100%; height: auto; }
.ko-k { margin: 0; font: 700 clamp(40px, 9svh, 96px)/1 "Fredoka", ui-rounded, system-ui, sans-serif; color: var(--kids, #b07cff); opacity: 0; transform: scale(.6); filter: blur(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.3, 1.5, .5, 1), filter .5s ease; }
.ko-k.on { opacity: 1; transform: none; filter: none; text-shadow: 0 0 30px rgba(176, 124, 255, 1), 0 0 80px rgba(176, 124, 255, .7); }
.ko-phrase { margin: 0; min-height: 1.4em; font: 600 clamp(18px, 3.4svh, 32px)/1.3 "Fredoka", ui-rounded, system-ui, sans-serif; color: #d9ccff; letter-spacing: .04em; text-shadow: 0 0 16px rgba(176, 124, 255, .6); }
body.kids-ouvre { overflow: hidden; }
.kr-nom { justify-content: center; text-align: center; } .kr-nom b { font-size: clamp(22px, 2.2vw, 34px); }
/* ouverture : « Kids » en pastille de notification accrochée au logo, plus petite */
.ko-bloc { position: relative; }
.ko-k { position: absolute; top: 5%; left: calc(50% + clamp(34px, 7vw, 74px)); padding: .08em .5em .12em; border-radius: 999px; background: var(--kids, #b07cff); color: #fff; font-size: clamp(18px, 3.6svh, 36px); text-shadow: none; box-shadow: 0 0 0 3px #05030f, 0 0 26px rgba(176, 124, 255, .9); transform: scale(.4); transform-origin: 0 100%; filter: none; }
.ko-k.on { transform: none; text-shadow: none; }
.ko-phrase { margin-top: clamp(4px, 1svh, 12px); }
.ko-k { left: calc(50% + clamp(60px, 9.4vw, 112px)); top: 2%; }

/* Kids : le sous-titre reprend le slogan de l'accueil UNIVERSE (majuscules espacées, filet fin de chaque côté) en violet Kids */
.kids-haut p, .ko-phrase { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 18px); white-space: nowrap; text-transform: uppercase; font: 500 clamp(.72rem, 1.9vw, 1.05rem)/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: clamp(.16em, .9vw, .32em); color: #eaf4ff; text-shadow: none; }
.kids-haut p::before, .kids-haut p::after, .ko-phrase:not(:empty)::before, .ko-phrase:not(:empty)::after { content: ""; flex: none; width: clamp(24px, 8vw, 120px); height: 1px; background: linear-gradient(90deg, transparent, var(--kids, #b07cff)); box-shadow: 0 0 8px rgba(176, 124, 255, .7); }
.kids-haut p::after, .ko-phrase:not(:empty)::after { transform: scaleX(-1); }

/* Kids : logo de la barre du haut et titre UNIVERSE Kids plus petits */
body.branche[data-univers="kids"] .brand .marque .ul { height: 21px; }
body.branche[data-univers="kids"] .kids-haut h1 { font-size: clamp(24px, 4.4svh, 46px); }
body.branche[data-univers="kids"] .kids-haut { padding-bottom: clamp(8px, 2svh, 22px); }
@media (max-width: 480px) { body.branche[data-univers="kids"] .brand .marque .ul { height: 18px; } }

/* Kids : en-tête = logo comme Pro, la phrase, puis « Bonjour » et le prénom réglable */
body.branche[data-univers="kids"] .topbar .brand { visibility: hidden; }
body.branche[data-univers="kids"] .kids-haut h1.kh-logo { margin: 0; display: flex; justify-content: center; font-size: 0; text-shadow: none; }
body.branche[data-univers="kids"] .kh-logo .ul { height: clamp(34px, 6.4svh, 64px); width: auto; }
.kh-bonjour { display: flex; align-items: baseline; justify-content: center; gap: .3em; margin-top: clamp(10px, 2.4svh, 26px); font: 700 clamp(30px, 6.4svh, 62px)/1.1 "Fredoka", ui-rounded, system-ui, sans-serif; color: #fff; text-shadow: 0 0 26px rgba(176, 124, 255, .7), 0 3px 0 rgba(0, 0, 0, .3); }
.kh-point { margin-left: -.15em; }
.kh-prenom { position: relative; display: inline-block; }
.kh-prenom input { width: 8ch; max-width: 70vw; padding: 0 .08em; border: 0; border-bottom: 3px dashed rgba(176, 124, 255, .7); border-radius: 0; background: none; color: var(--kids, #b07cff); font: inherit; text-shadow: inherit; text-align: center; outline: none; transition: border-color .2s, background .2s; }
.kh-prenom input::placeholder { color: rgba(176, 124, 255, .55); font-weight: 600; }
.kh-prenom input:hover, .kh-prenom input:focus { border-bottom-style: solid; border-color: var(--kids, #b07cff); background: rgba(176, 124, 255, .12); border-radius: 10px 10px 0 0; }
.kh-prenom.vide + .kh-point { display: none; }
body.branche[data-univers="kids"] .kids-accueil { max-width: min(1480px, calc((100svh - 330px) * 2.2)); }
body.branche[data-univers="kids"] .kh-logo .ul { height: clamp(60px, 11.5svh, 104px); }
.kh-point { margin-left: -.42em; }
body.branche[data-univers="kids"] .kids-accueil { max-width: min(1480px, calc((100svh - 440px) * 2.2)); }
body.branche[data-univers="kids"] .kh-bonjour { margin-top: clamp(6px, 1.6svh, 18px); font-size: clamp(28px, 5.6svh, 54px); }
body.branche[data-univers="kids"] .kids-accueil { max-width: min(1480px, max(900px, calc((100svh - 370px) * 2.2))); }
body.branche[data-univers="kids"] .kr-nom b { font-size: clamp(18px, 1.7vw, 28px); white-space: nowrap; }
body.branche[data-univers="kids"] .kids-une { margin-top: clamp(10px, 2svh, 22px); padding: 6px 20px 6px 6px; }
body.branche[data-univers="kids"] .kids-une img { width: clamp(80px, 9vw, 112px); }
body.branche[data-univers="kids"] .kids-pied { padding-top: clamp(10px, 2.4svh, 26px); }

/* Kids : prénom — largeur exacte, pointillé seulement tant qu'il manque ou qu'on édite, bleu (garçon) ou rose (fille) */
.kh-bonjour { --nom: var(--kids, #b07cff); position: relative; }
.kh-bonjour[data-genre="bleu"] { --nom: #4aa8ff; }
.kh-bonjour[data-genre="rose"] { --nom: #ff7ab8; }
.kh-prenom { position: relative; display: inline-block; }
.kh-prenom input { width: 6ch; padding: 0; max-width: 80vw; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--nom); text-align: left; text-shadow: 0 0 22px color-mix(in srgb, var(--nom) 60%, transparent), 0 3px 0 rgba(0, 0, 0, .3); }
.kh-prenom.vide input { border-bottom: 3px dashed color-mix(in srgb, var(--nom) 70%, transparent); }
.kh-prenom input:focus { border-bottom: 3px dashed var(--nom); background: none; border-radius: 0; }
.kh-prenom input:hover { background: none; border-radius: 0; }
.kh-prenom:not(.vide) input:not(:focus):hover { border-bottom: 3px dashed color-mix(in srgb, var(--nom) 45%, transparent); }
.kh-prenom input::placeholder { color: color-mix(in srgb, var(--nom) 55%, transparent); }
.kh-mesure { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; font: inherit; }
.kh-genre { display: inline-flex; gap: 8px; align-self: center; margin-left: 10px; opacity: 0; transition: opacity .2s; }
.kh-bonjour:hover .kh-genre, .kh-bonjour:focus-within .kh-genre, .kh-bonjour:not(.rempli) .kh-genre, .kh-bonjour:not([data-genre=""]):not([data-genre]) .kh-genre { opacity: 1; }
.kh-bonjour.rempli:not(:hover):not(:focus-within)[data-genre="bleu"] .kh-genre, .kh-bonjour.rempli:not(:hover):not(:focus-within)[data-genre="rose"] .kh-genre { opacity: 0; }
.kh-genre button { width: clamp(22px, 3.2svh, 30px); height: clamp(22px, 3.2svh, 30px); padding: 0; border: 2.5px solid rgba(255, 255, 255, .5); border-radius: 50%; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.kh-genre .g-bleu { background: #4aa8ff; }
.kh-genre .g-rose { background: #ff7ab8; }
.kh-genre button[aria-pressed="true"] { border-color: #fff; transform: scale(1.18); box-shadow: 0 0 14px currentColor; }
.kh-genre .g-bleu[aria-pressed="true"] { box-shadow: 0 0 14px #4aa8ff; }
.kh-genre .g-rose[aria-pressed="true"] { box-shadow: 0 0 14px #ff7ab8; }
.kh-genre button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.kh-prenom.vide + .kh-point { display: none; }
/* palette libre : la couleur du prénom se choisit parmi six couleurs de la marque */
.kh-bonjour[data-genre] { --nom: var(--cc, var(--kids, #b07cff)); }
.kh-bonjour[data-genre="violet"] { --cc: #b07cff; }
.kh-bonjour[data-genre="bleu"] { --cc: #4aa8ff; }
.kh-bonjour[data-genre="rose"] { --cc: #ff7ab8; }
.kh-bonjour[data-genre="menthe"] { --cc: #4fe3b0; }
.kh-bonjour[data-genre="orange"] { --cc: #ffa04d; }
.kh-bonjour[data-genre="jaune"] { --cc: #ffd84d; }
.kh-genre { gap: 7px; }
.kh-genre button { background: var(--c); }
.kh-genre button[aria-pressed="true"] { box-shadow: 0 0 14px var(--c); }
.kh-bonjour.rempli:not(:hover):not(:focus-within)[data-genre]:not([data-genre=""]) .kh-genre { opacity: 0; }
/* retour au haut d'avant : logo dans la barre, titre UNIVERSE Kids, phrase à filets ; Bonjour + prénom dessous */
body.branche[data-univers="kids"] .topbar .brand { visibility: visible; }
body.branche[data-univers="kids"] .kids-accueil { max-width: min(1480px, max(900px, calc((100svh - 350px) * 2.2))); }
/* Bonjour + prénom retirés : retour à la mise en page d'avant */
body.branche[data-univers="kids"] .kids-accueil { max-width: min(1480px, calc((100svh - 275px) * 2.2)); }
body.branche[data-univers="kids"] .kids-accueil { max-width: min(1480px, calc((100svh - 205px) * 2.2)); }

/* Kids : Bonjour + prénom sous le bandeau Nouveau, bien aéré ; ligne du bas toute petite */
body.branche[data-univers="kids"] .kids-accueil { max-width: min(1480px, max(880px, calc((100svh - 330px) * 2.2))); }
body.branche[data-univers="kids"] .kids-une { margin-top: clamp(14px, 3svh, 32px); }
body.branche[data-univers="kids"] .kh-bonjour { margin-top: clamp(16px, 3.6svh, 40px); font-size: clamp(26px, 5svh, 46px); }
body.branche[data-univers="kids"] .kids-pied { gap: 4px 16px; padding-top: clamp(14px, 3svh, 34px); padding-bottom: 0; font-size: .72rem; opacity: .85; }
body.branche[data-univers="kids"] .kids-pied p { font-size: .72rem; font-weight: 500; }
body.branche[data-univers="kids"] .kids-parents { min-height: 28px; padding: 0 12px; font-size: .72rem; }
body.branche[data-univers="kids"] .kids-coulisses { font-size: .72rem; }
/* ouverture : « Kids » comme « Pro » — pastille pleine à droite de l'étoile, contour sombre autour, texte sombre */
.ko-k { top: 0; left: 50%; padding: .04em .42em .1em; color: #140800; font-weight: 700; transform: scale(.4); transform-origin: 0 50%; box-shadow: 0 0 0 .1em #05030f, 0 0 .9em rgba(176, 124, 255, .75); line-height: 1.1; }
.ko-k.on { transform: none; }
/* Kids : le vrai logo (emblème + UNIVERSE + Kids) à la place du titre texte, à hauteur égale pour garder la taille des vignettes ; le logo de la barre est masqué pour éviter le doublon */
body.branche[data-univers="kids"] .topbar .brand { visibility: hidden; }
body.branche[data-univers="kids"] .kids-haut h1.kh-titre { margin: 0; display: flex; justify-content: center; font-size: 0; line-height: 0; text-shadow: none; }
body.branche[data-univers="kids"] .kh-titre .ul { height: clamp(26px, 4.6svh, 44px); width: auto; }
body.branche[data-univers="kids"] .kids-accueil { max-width: min(1480px, max(880px, calc((100svh - 262px) * 2.2))); }
/* Kids : plus de phrase sous le logo dans l'en-tête → les vignettes regagnent de la largeur */
body.branche[data-univers="kids"] .kids-accueil { max-width: min(1480px, max(880px, calc((100svh - 232px) * 2.2))); }
body.branche[data-univers="kids"] .kids-haut { padding-bottom: clamp(10px, 2.4svh, 26px); }

/* Kids : l'équilibre de la page Pro — emblème + pastille Kids en haut, Bonjour juste dessous, puis les vignettes */
body.branche[data-univers="kids"] .kids-haut { padding: 0 0 clamp(14px, 3svh, 32px); }
body.branche[data-univers="kids"] .kids-haut h1.kh-logo { margin: 0; display: flex; justify-content: center; font-size: 0; line-height: 0; }
body.branche[data-univers="kids"] .kh-logo .ul { height: clamp(48px, 8.4svh, 82px); width: auto; }
body.branche[data-univers="kids"] .kh-bonjour { margin-top: clamp(4px, 1.2svh, 14px); }
body.branche[data-univers="kids"] .kids-accueil { max-width: min(1480px, max(880px, calc((100svh - 295px) * 2.2))); }
body.branche[data-univers="kids"] .kids-une { margin-top: clamp(16px, 3.6svh, 40px); }
/* Bonjour + prénom toujours centré : les pastilles de couleur flottent à droite, hors de la ligne */
body.branche[data-univers="kids"] .kh-bonjour { position: relative; width: fit-content; margin-inline: auto; }
body.branche[data-univers="kids"] .kh-genre { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 14px; }

/* ===== Accueil UNIVERSE Kids, version validée (maquette v3) : tout centré, rangée « Reprendre », quatre tuiles colorées, ciel étoilé ===== */
body.branche[data-univers="kids"] { --kids: #b07cff; display: flex; flex-direction: column; min-height: 100svh; }
body.branche[data-univers="kids"] .topbar { position: relative; z-index: 2; }
body.branche[data-univers="kids"] .topbar .brand { visibility: visible; }
.k3 { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(14px, 4svh, 44px) clamp(12px, 2vw, 28px) 10px; color: #eaf4ff; font-family: "Fredoka", ui-rounded, system-ui, sans-serif; }
.k3-haut { display: flex; flex-direction: column; align-items: center; width: 100%; }
.k3 .kh-logo { margin: clamp(4px, 1.6svh, 18px) 0 0; display: flex; justify-content: center; width: 100%; font-size: 0; line-height: 0; text-shadow: none; }
.k3 .kh-logo .ul { height: clamp(54px, 9svh, 88px); width: auto; flex: none; max-width: none; }
.k3 .kh-bonjour { margin-top: clamp(6px, 1.6svh, 16px); }
.k3-mot { margin: clamp(6px, 1.4svh, 14px) 0 0; font-size: clamp(.95rem, 2.4svh, 1.25rem); color: #cbbdf2; text-align: center; }
.k3-reprendre { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(14px, 2vw, 26px); margin-top: clamp(22px, 5.2svh, 56px); }
.k3-reprise { display: flex; align-items: center; gap: 12px; padding: 6px 24px 6px 6px; border: 1.5px solid #b07cff; border-radius: 999px; background: linear-gradient(100deg, rgba(138, 99, 255, .18), rgba(176, 124, 255, .08)), rgba(12, 7, 38, .78); color: #fff; font: 700 1.1rem "Fredoka", ui-rounded, sans-serif; text-decoration: none; box-shadow: 0 0 0 1px rgba(176, 124, 255, .25), 0 0 18px rgba(176, 124, 255, .55), inset 0 0 18px rgba(176, 124, 255, .22); transition: transform .2s, box-shadow .2s; }
.k3-reprise img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); }
.k3-reprise small { display: block; font: 500 .8rem "Fredoka", ui-rounded, sans-serif; opacity: .88; }
.k3-reprise:hover, .k3-reprise:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(176, 124, 255, .4), 0 0 28px rgba(176, 124, 255, .85), inset 0 0 22px rgba(176, 124, 255, .3); outline: none; }
.k3-acces { display: grid; grid-template-columns: repeat(3, 156px); gap: 10px; }
.k3-acces a { display: flex; align-items: center; gap: 8px; width: 156px; height: 58px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--c); border-radius: 999px; background: rgba(12, 7, 38, .78); color: #eaf4ff; font: 600 .88rem "Fredoka", ui-rounded, sans-serif; text-decoration: none; box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 12px color-mix(in srgb, var(--c) 18%, transparent); transition: transform .2s, box-shadow .2s; }
.k3-acces a:hover, .k3-acces a:focus-visible { transform: translateY(-2px); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 75%, transparent), inset 0 0 14px color-mix(in srgb, var(--c) 28%, transparent); outline: none; }
.k3-acces .i { flex: none; width: 40px; height: 40px; padding: 6px; border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, #0c0726); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 55%, transparent); display: grid; place-items: center; }
.k3-acces .i img { width: 100%; height: 100%; object-fit: contain; }
.k3-tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); width: 100%; margin-block: auto; padding-top: clamp(10px, 2.4svh, 28px); }
.k3-tuile { position: relative; display: grid; gap: 4px; padding: 7px 7px 10px; border: 2px solid var(--c); border-radius: 24px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 24%, #1a0f4a), #140a38 78%); color: #fff; text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.k3-tuile img { display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 36svh; object-fit: contain; margin-inline: auto; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .5); background: #1a0f4a; }
.k3-tuile b { font: 700 clamp(18px, 1.8vw, 26px)/1.1 "Fredoka", ui-rounded, sans-serif; }
.k3-tuile small { color: #cbbdf2; font-size: .82rem; line-height: 1.2; }
a.k3-tuile:hover, a.k3-tuile:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 28px color-mix(in srgb, var(--c) 55%, transparent); outline: none; }
.k3-ferme { cursor: default; }
.k3-bientot { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 2px 12px; border-radius: 999px; background: var(--kids); color: #fff; font: 700 .78rem "Fredoka", ui-rounded, sans-serif; font-style: normal; }
.k3-neuf { position: absolute; top: -12px; left: -10px; z-index: 3; padding: 3px 14px 4px; border-radius: 999px; background: #ff5d8f; color: #fff; font: 700 .84rem "Fredoka", ui-rounded, sans-serif; box-shadow: 0 0 0 3px #0d0828, 0 6px 16px rgba(255, 93, 143, .55); transform: rotate(-6deg); }
.k3-pied { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding-top: 10px; margin: 0; color: #8f86b8; font-size: .72rem; text-align: center; }
.k3-pied a { color: inherit; }
@media (max-width: 760px) { .k3-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .k3-acces { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; } .k3-acces a { width: auto; } .k3-acces a span:last-child { font-size: .78rem; } }

/* le ciel étoilé : étoiles qui scintillent, éclats colorés qui flottent, étoile filante */
.k3-etoiles { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.k3-etoiles i { position: absolute; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .6); animation: k3-scintille 3s ease-in-out infinite; }
.k3-etoiles b { position: absolute; font-weight: 400; opacity: .55; text-shadow: 0 0 12px currentColor; animation: k3-flotte 10s ease-in-out infinite; }
.k3-etoiles s { position: absolute; left: -10%; width: 110px; height: 2px; background: linear-gradient(90deg, transparent, #fff); border-radius: 2px; opacity: 0; transform: rotate(18deg); animation: k3-filante 14s linear infinite; }
@keyframes k3-scintille { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes k3-flotte { 0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: .35; } 50% { transform: translate(14px, -18px) rotate(25deg) scale(1.2); opacity: .85; } }
@keyframes k3-filante { 0%, 88% { opacity: 0; transform: translate(0, 0) rotate(18deg); } 90% { opacity: 1; } 100% { opacity: 0; transform: translate(130vw, 42vw) rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { .k3-etoiles i, .k3-etoiles b, .k3-etoiles s { animation: none; } .k3-etoiles s { display: none; } }
/* Kids : tout un peu plus haut, vignettes du bas plus larges et plus hautes */
.k3 { max-width: 1480px; padding-top: clamp(6px, 2svh, 22px); }
.k3 .kh-logo { margin-top: 0; }
.k3-reprendre { margin-top: clamp(14px, 3.4svh, 36px); }
.k3-tuiles { gap: clamp(14px, 2vw, 28px); padding-top: clamp(8px, 1.6svh, 18px); }
.k3-tuile img { max-height: 44svh; }
.k3-tuile { padding: 8px 8px 12px; }
.k3-tuile img { aspect-ratio: 4 / 3; max-height: none; object-fit: cover; }
.k3-pied { margin-top: 0; padding-bottom: clamp(6px, 1.6svh, 16px); }
/* Kids : proportions — la hauteur se répartit régulièrement (haut, rangée Reprendre, vignettes, pied en bas) et les vignettes suivent la hauteur de la fenêtre */
.k3 { padding-top: clamp(10px, 3.2svh, 40px); padding-bottom: clamp(8px, 1.6svh, 18px); }
.k3 .kh-logo .ul { height: clamp(54px, 9.5svh, 110px); }
.k3-mot { margin-top: clamp(8px, 1.8svh, 22px); }
.k3-reprendre { margin-top: clamp(22px, 5.4svh, 72px); }
.k3-tuiles { margin-block: 0; margin-top: clamp(22px, 5.4svh, 72px); padding-top: 0; }
.k3-tuile img { aspect-ratio: 4 / 3; max-height: 31svh; object-fit: cover; }
.k3-pied { margin-top: auto; padding-top: clamp(14px, 3svh, 36px); }
/* Kids : le conteneur de la page remplit la hauteur ; l'espace restant se répartit également entre les blocs */
body.branche[data-univers="kids"] #page { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.k3 { min-height: 0; }
.k3-reprendre { margin-top: auto; padding-top: clamp(18px, 4svh, 56px); }
.k3-tuiles { margin-top: auto; padding-top: clamp(18px, 4svh, 56px); }
.k3-pied { margin-top: auto; padding-top: clamp(14px, 2.6svh, 32px); }
/* Kids : le pied de page descend tout en bas, à la hauteur du badge de version */
body.branche[data-univers="kids"] { padding-bottom: 0; }
.k3 { padding-bottom: 20px; }
.k3-pied { padding-top: clamp(14px, 2.6svh, 32px); line-height: 1; }
/* Kids : toutes les pastilles de la rangée ont la même hauteur (« Reprendre » est seulement plus large) */
.k3-reprise { height: 58px; padding: 4px 22px 4px 4px; gap: 10px; font-size: 1rem; }
.k3-reprise img { width: 46px; height: 46px; }
.k3-reprise small { font-size: .76rem; }
/* Kids : le haut remonte ; le reste de la hauteur aère le bas (entre les vignettes et le pied de page) */
.k3 { padding-top: clamp(2px, .8svh, 10px); }
.k3 .kh-logo { margin-top: 0; }
.k3-mot { margin-top: clamp(4px, 1.2svh, 14px); }
.k3-reprendre { margin-top: clamp(16px, 4.4svh, 52px); padding-top: 0; }
.k3-tuiles { margin-top: clamp(16px, 4.4svh, 52px); padding-top: 0; }
.k3-pied { margin-top: auto; padding-top: clamp(18px, 4svh, 48px); }
/* « Reprendre » sans sous-titre : même taille exacte que les trois autres pastilles */
.k3-reprise { width: 156px; height: 58px; padding: 4px 12px 4px 4px; gap: 8px; font: 600 .88rem "Fredoka", ui-rounded, sans-serif; }
.k3-reprise img { width: 40px; height: 40px; flex: none; }
@media (max-width: 760px) { .k3-reprise { width: auto; } }
/* Kids : les vignettes du bas descendent d'un poil */
.k3-tuiles { margin-top: clamp(22px, 6.4svh, 72px); }

/* Kids : l'explication en fondu (arrière flouté) au survol d'une vignette, et « Reprendre » avec l'affiche du jeu en fond */
.k3-vue { position: relative; display: block; border-radius: 16px; overflow: hidden; }
.k3-vue img { border-radius: 16px; }
.k3-bulle { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(to top, rgba(28, 12, 80, .78) 0%, rgba(28, 12, 80, .5) 45%, rgba(28, 12, 80, 0) 85%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%); mask-image: linear-gradient(to top, #000 55%, transparent 100%); color: #f1e9ff; font: 500 clamp(12px, 1.1vw, 15px)/1.3 "Fredoka", ui-rounded, system-ui, sans-serif; text-align: left; text-shadow: 0 1px 6px rgba(20, 8, 60, .9); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.k3-bulle b { font: 700 clamp(17px, 1.7vw, 24px)/1.1 "Fredoka", ui-rounded, system-ui, sans-serif; color: #fff; text-shadow: 0 2px 10px rgba(120, 60, 255, .9), 0 0 2px rgba(0, 0, 0, .5); }
.k3-tuile:is(:hover, :focus-visible) .k3-bulle { opacity: 1; }
@media (hover: none) { .k3-bulle { display: none; } }
@media (prefers-reduced-motion: reduce) { .k3-bulle { transition: none; } }
.k3-reprise { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(12, 7, 38, .88) 0%, rgba(12, 7, 38, .5) 55%, rgba(12, 7, 38, .15) 100%), var(--aff) center / cover no-repeat; padding: 4px 14px 4px 6px; gap: 10px; }
.k3-reprise .k3-play { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #6a32c8; font-size: 1rem; box-shadow: 0 0 14px rgba(176, 124, 255, .8); }
.k3-reprise span:last-child { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); font-weight: 700; }
.k3-reprise { background: linear-gradient(90deg, rgba(12, 7, 38, .8) 0%, rgba(12, 7, 38, .42) 50%, rgba(12, 7, 38, 0) 100%), var(--aff) center / cover no-repeat; }
/* « Reprendre » : au survol, une carte avec l'affiche du jeu agrandie annonce ce qu'on va reprendre */
.k3-reprise { overflow: visible; }
.k3-apercu { position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 16px); width: 270px; display: grid; gap: 3px; padding: 8px 8px 12px; border: 2px solid #b07cff; border-radius: 22px; background: linear-gradient(160deg, #2a1a66, #150b3d 80%); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 30px rgba(176, 124, 255, .65); text-align: center; opacity: 0; transform: translate(-50%, 10px) scale(.92); transform-origin: 50% 100%; transition: opacity .25s ease, transform .3s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; text-shadow: none; }
.k3-apercu::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; margin-left: -8px; transform: rotate(45deg); background: #150b3d; border-right: 2px solid #b07cff; border-bottom: 2px solid #b07cff; }
.k3-apercu img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 15px; border: 2px solid rgba(255, 255, 255, .5); }
.k3-apercu b { font: 700 1.05rem/1.15 "Fredoka", ui-rounded, sans-serif; color: #fff; }
.k3-apercu small { font: 500 .8rem "Fredoka", ui-rounded, sans-serif; color: #cbbdf2; }
.k3-reprise:is(:hover, :focus-visible) .k3-apercu { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (hover: none) { .k3-apercu { display: none; } }
@media (prefers-reduced-motion: reduce) { .k3-apercu { transition: none; } }
.k3-reprise .k3-apercu img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 15px; border: 2px solid rgba(255, 255, 255, .5); object-fit: cover; flex: none; }
.k3-reprise .k3-apercu { text-shadow: none; font-weight: 500; }
/* Kids : la pastille « Kids » du logo décalée pour ne plus toucher le cercle, sans contour noir */
.k3 .kh-logo svg { overflow: visible; }
.k3 .kh-logo .ul-suffixe { transform: translate(30px, -3px); }
.k3 .kh-logo .ul-suffixe rect { stroke: none; }
/* Kids : le logo reprend la forme des cartes de l'accueil général — l'emblème avec « Kids » écrit à sa droite, en violet, sans pastille */
.k3 .kh-logo .ul-suffixe { transform: none; }
.k3 .kh-logo svg { overflow: visible; }
.k3 .kh-logo .ul { height: clamp(48px, 8.4svh, 84px); }
/* « Reprendre » : le texte reste lisible sur l'affiche (voile plus marqué derrière les lettres) */
.k3-reprise { background: linear-gradient(90deg, rgba(12, 7, 38, .92) 0%, rgba(12, 7, 38, .8) 55%, rgba(12, 7, 38, .45) 100%), var(--aff) center / cover no-repeat; }
.k3-reprise span:nth-child(2) { text-shadow: 0 1px 8px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .9); }
/* ouverture : le logo « U Kids » seul, grand ; la phrase dessous */
.ko-logo { width: min(82vw, 600px); }
.ko-phrase { margin-top: clamp(10px, 2.4svh, 26px); }
/* « Reprendre » : retour au voile léger d'avant (l'affiche se voit) ; la lisibilité vient de l'ombre du texte ; carte d'aperçu plus petite */
.k3-reprise { background: linear-gradient(90deg, rgba(12, 7, 38, .8) 0%, rgba(12, 7, 38, .42) 50%, rgba(12, 7, 38, 0) 100%), var(--aff) center / cover no-repeat; }
.k3-reprise span:nth-child(2) { text-shadow: 0 1px 4px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, 1); }
.k3-apercu { width: 210px; padding: 6px 6px 9px; border-radius: 18px; bottom: calc(100% + 14px); }
.k3-reprise .k3-apercu img { border-radius: 12px; }
.k3-apercu b { font-size: .92rem; }
.k3-apercu small { font-size: .72rem; }
/* ouverture : retour au grand logo UNIVERSE (emblème + mot espacé) ; « Kids » arrive ensuite, plus petit, à droite du mot */
.ko-logo { width: min(86vw, 780px); }
.ko-k { font-size: clamp(14px, 2.6svh, 30px); }

/* Accueil UNIVERSE : les illustrations des cartes sont les images 3D douces (Pro, Life, Student, Kids), fondues sur les bords dans le fond de la carte */
.carte-scene .scene-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 55%, transparent 100%); }
@media (min-width: 900px) and (min-height: 540px) { .carte-scene .scene-img { height: 100%; width: 100%; aspect-ratio: auto; object-fit: contain; } }
@media (min-width: 900px) and (min-height: 540px) { .carte-scene .scene-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } }
@media (min-width: 900px) and (min-height: 540px) { .carte-scene .scene-img { object-fit: cover; object-position: 50% 52%; transform: scale(1.06); -webkit-mask-image: radial-gradient(ellipse 58% 78% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 58% 78% at 50% 50%, #000 60%, transparent 100%); } }
/* les sujets en entier dans le panneau large : l'image est contenue (rien n'est coupé en haut), puis agrandie autour de son centre pour que le sujet remplisse la hauteur */
@media (min-width: 900px) and (min-height: 540px) { .carte-scene .scene-img { object-fit: contain; object-position: 50% 50%; transform: scale(1.36); transform-origin: 50% 51%; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); } }
/* cartes un peu plus hautes pour que l'illustration respire (le sujet entier, sans coupe en haut) */
@media (min-width: 900px) and (min-height: 540px) { .carte { height: min(22vw, 38vh, 310px); } .carte-scene { min-height: 96px; } }
.k3-reprise[hidden] { display: none !important; }

/* Le macaron « Sur la télé » : un mode d'utilisation, à part des raccourcis (rond, séparé, d'une autre forme) */
.k3-mode { display: grid; place-items: center; padding-left: clamp(12px, 2vw, 26px); border-left: 1px solid rgba(255, 255, 255, .16); }
.k3-tele { display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: #cfc4ee; cursor: pointer; font: 600 .72rem "Fredoka", ui-rounded, system-ui, sans-serif; }
.k3-tele-rond { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, rgba(176, 124, 255, .45), rgba(40, 24, 96, .85)); border: 2px solid rgba(176, 124, 255, .65); box-shadow: 0 0 16px rgba(176, 124, 255, .35); transition: transform .15s, box-shadow .15s; }
.k3-tele-rond > img:first-child { width: 78%; height: 78%; object-fit: contain; }
.k3-tele-etat { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; }
.k3-tele:hover .k3-tele-rond, .k3-tele:focus-visible .k3-tele-rond { transform: scale(1.06); box-shadow: 0 0 24px rgba(176, 124, 255, .7); outline: none; }
.k3-tele.on .k3-tele-rond { border-color: #4fe3b0; box-shadow: 0 0 22px rgba(79, 227, 176, .65); }
.k3-tele.on { color: #bff5de; }
@media (max-width: 760px) { .k3-mode { border-left: 0; padding-left: 0; width: 100%; } }

/* ===== Accueil Kids, réglé par le fondateur (20 nov. 2026) : bandeau commun en bas, macaron rond « Sur la télé » en haut à gauche, macarons de 50 px au-dessus des vignettes ovales qui défilent (4 s, 3 à l'écran), fond noir + violet sans étoiles ===== */
.k3 { padding-bottom: 96px; }
.k3-mode { position: absolute; top: 8px; left: 14px; z-index: 5; display: block; padding: 0; border: 0; }
.k3-tele-rond { width: 70px; height: 70px; }
.k3-acces { grid-template-columns: repeat(3, auto); }
.k3-acces a { width: auto; height: 64px; padding: 5px 18px 5px 5px; }
.k3-acces .i { width: 50px; height: 50px; }
.k3-reprise { height: 64px; }
.k3-defile { position: relative; width: 100%; margin-top: clamp(22px, 5svh, 56px); }
.k3-piste { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 16px 6px 18px; scrollbar-width: none; }
.k3-piste::-webkit-scrollbar { display: none; }
.k3-defile .k3-tuile { flex: 0 0 min(calc((100% - 36px - 12px) / 3), 340px); scroll-snap-align: start; }
.k3-ovale { padding: 12px 14px 12px; border-radius: 999px / 58%; align-content: center; }
.k3-ovale .k3-vue, .k3-ovale .k3-vue img { border-radius: 999px / 58%; }
.k3-defile .k3-tuile img { aspect-ratio: 4 / 3; max-height: none; object-fit: cover; }
.k3-defile .k3-tuile > b { padding-bottom: 6px; }
.k3-defile .k3-neuf { top: 4px; left: 8%; } .k3-defile .k3-bientot { top: 10px; right: 10%; }
.k3-fl { position: absolute; z-index: 3; top: 44%; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1.3rem; cursor: pointer; }
.k3-fl.g { left: -8px; } .k3-fl.d { right: -8px; }
.k3-points { display: flex; justify-content: center; gap: 7px; margin-top: -6px; }
.k3-points i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .3); } .k3-points i.on { background: #fff; }
.k3-bandeau { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: rgba(8, 5, 28, .9); border-top: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.k3-bandeau button { padding: 2px 14px; border: 0; background: none; cursor: pointer; }
.k3-bandeau img { display: block; width: 50px; height: 50px; object-fit: contain; transition: transform .2s; }
.k3-bandeau button:is(:hover, :focus-visible) img { transform: scale(1.14) rotate(-4deg); }
.k3-bandeau button:focus-visible { outline: 2px solid #fff; border-radius: 14px; }
.k3-toast { position: fixed; z-index: 45; left: 50%; bottom: 84px; transform: translateX(-50%); margin: 0; padding: 8px 20px; border-radius: 999px; background: #fff; color: #1d1450; font: 700 1rem "Fredoka", ui-rounded, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.k3-toast[hidden] { display: none; }
@media (max-width: 760px) {
  .k3-defile .k3-tuile { flex-basis: 78%; }
  .k3-fl { display: none; }
  .k3-mode { top: 4px; left: 8px; } .k3-tele-rond { width: 56px; height: 56px; }
  .k3-acces { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .k3-acces a { padding: 4px 8px 4px 4px; } .k3-acces .i { width: 40px; height: 40px; }
}
.k3-defile .k3-tuile img { aspect-ratio: 3 / 2; max-height: 27svh; }
.k3-defile .k3-tuile { flex-basis: min(calc((100% - 36px - 12px) / 3), 300px); }
@media (max-width: 760px) { .k3-defile .k3-tuile { flex-basis: 74%; } .k3-defile .k3-tuile img { max-height: 24svh; } }
.k3-defile .k3-tuile { flex-basis: calc((100% - 36px - 12px) / 3); max-width: 420px; }
@media (max-width: 760px) { .k3-defile .k3-tuile { flex-basis: 74%; } }
@media (max-width: 760px) {
  .k3 { padding-top: 78px; }
  .k3-mode { width: auto; }
  body.branche[data-univers="kids"] .kh-bonjour { flex-wrap: wrap; justify-content: center; width: 100%; }
  body.branche[data-univers="kids"] .kh-genre { position: static; transform: none; margin: 8px 0 0; width: 100%; display: flex; justify-content: center; flex-wrap: wrap; }
}

/* Accueil : plus de grand logo au centre ; bandeau d'icônes au-dessus, ligne d'écriture tout en bas ; 4 vignettes ou moins = toutes visibles */
.k3 { padding-bottom: 120px; padding-top: 18px; }
.k3-bandeau { bottom: 30px; border-top: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 6px; }
.k3-pied { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0; padding: 5px 10px calc(5px + env(safe-area-inset-bottom)); background: rgba(8, 5, 28, .96); font-size: .72rem; line-height: 1.2; }
.k3-toast { bottom: 128px; }
.k3-defile.k3-fixe .k3-piste { overflow: visible; scroll-snap-type: none; justify-content: center; }
.k3-defile.k3-fixe .k3-tuile { flex: 1 1 0; max-width: 300px; min-width: 0; }
.k3-defile.k3-fixe .k3-fl, .k3-defile.k3-fixe .k3-points { display: none; }
@media (max-width: 760px) {
  .k3 { padding-top: 78px; padding-bottom: 130px; }
  .k3-defile.k3-fixe .k3-piste { flex-wrap: wrap; }
  .k3-defile.k3-fixe .k3-tuile { flex: 0 0 calc(50% - 9px); max-width: none; }
  .k3-defile.k3-fixe .k3-tuile img { max-height: 16svh; }
  .k3-toast { bottom: 132px; }
}

/* Accueil 2 « Qui joue ? » */
.k3-qui { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; align-items: center; background: radial-gradient(ellipse at 50% 30%, #1a0f44, #05030f 70%); color: #fff; transition: opacity .45s; overflow-y: auto; }
.k3-qui.fin { opacity: 0; pointer-events: none; }
.qui-haut { padding: clamp(14px, 3svh, 30px) 16px 0; } .qui-haut .ul { height: clamp(44px, 7svh, 70px); width: auto; }
.qui-corps { flex: 1; display: grid; align-content: center; justify-items: center; gap: clamp(18px, 4svh, 40px); padding: 16px 16px 40px; width: 100%; }
.qui-corps h2 { margin: 0; font: 600 clamp(1.8rem, 5svh, 3rem) "Fredoka", ui-rounded, sans-serif; }
.qui-liste { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 3vw, 34px); }
.qui-enfant { display: grid; justify-items: center; gap: 10px; padding: 8px; border: 0; background: none; color: #fff; font: 600 1.15rem "Fredoka", ui-rounded, sans-serif; cursor: pointer; text-decoration: none; }
.qui-av { flex: none; display: grid; place-items: center; width: clamp(86px, 15svh, 130px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--c, #8a63ff) 70%, #fff), var(--c, #8a63ff)); border: 3px solid rgba(255, 255, 255, .7); box-shadow: 0 0 22px color-mix(in srgb, var(--c, #8a63ff) 60%, transparent); transition: transform .15s; }
.qui-av img { width: 100%; height: 100%; object-fit: cover; } .qui-av b { font-size: 2.6rem; }
.qui-plus .qui-av { background: none; border-style: dashed; color: #cfc4ee; }
.qui-enfant:is(:hover, :focus-visible) .qui-av { transform: scale(1.08); } .qui-enfant:focus-visible { outline: none; }
.qui-sans { padding: 10px 18px; border: 0; background: none; color: #b9aee0; font: 500 1rem "Fredoka", ui-rounded, sans-serif; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) {
  .k3-bandeau { bottom: 50px; }
  .k3-pied { font-size: .68rem; gap: 2px 12px; }
  .k3 { padding-bottom: 150px; }
  .k3-toast { bottom: 152px; }
}
.k3-pied { padding-left: 124px; padding-right: 124px; }
@media (max-width: 760px) { .k3-pied { padding-left: 118px; padding-right: 12px; } }

/* Macaron de l'enfant en haut à droite (remplace « Tous les univers ») */
.k3-moi { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, .75); background: radial-gradient(circle at 35% 28%, #c7a8ff, #8a63ff); color: #fff; text-decoration: none; font: 700 1.4rem "Fredoka", ui-rounded, sans-serif; box-shadow: 0 0 14px rgba(138, 99, 255, .55); }
.k3-moi img { width: 100%; height: 100%; object-fit: cover; }
.k3-moi.plus { background: none; border-style: dashed; color: #cfc4ee; box-shadow: none; }
.k3-moi:is(:hover, :focus-visible) { transform: scale(1.08); outline: none; }

/* Disposition A (écrans larges) : macarons Reprendre / Ma famille… au-dessus des vignettes ; en bas, la barre messages · agenda · carnet · réglages avec « Sur la télé » à droite */
@media (min-width: 761px) {
  .k3-large .k3-bandeau { gap: 14px; justify-content: center; }
  .k3-large .k3-bandeau .k3-mode { position: static; display: block; margin-left: 18px; padding: 0 0 0 22px; border-left: 1px solid rgba(255, 255, 255, .18); }
  .k3-large .k3-tele-rond { width: 52px; height: 52px; }
  .k3-large .k3-tele { grid-auto-flow: column; align-items: center; gap: 8px; }
  .k3-large .k3-tele-lib { display: block; font-size: .8rem; }
  .k3-large .k3-toast { left: 50%; transform: translateX(-50%); top: auto; bottom: 128px; }
}
/* Macaron « Sur la télé » à part : rond, seul, en bas à droite à la hauteur de la barre */
@media (min-width: 761px) {
  .k3-large .k3-mode { position: fixed; z-index: 41; top: auto; left: auto; right: 24px; bottom: 40px; margin: 0; padding: 0; border: 0; }
  .k3-large .k3-tele { grid-auto-flow: row; }
  .k3-large .k3-tele-rond { width: 64px; height: 64px; }
  .k3-large .k3-tele-lib { display: block; font-size: .72rem; }
}
@media (min-width: 761px) {
  .k3-large .k3-mode { z-index: 46; bottom: calc(52px + env(safe-area-inset-bottom)); right: 20px; }
  .k3-large .k3-tele-lib { display: none; }
}
@media (min-width: 761px) { .k3-large .k3 { z-index: auto; } }
/* Macaron télé en haut à droite, sous le macaron de l'enfant */
@media (min-width: 761px) {
  .k3-large .k3-mode { top: 72px; bottom: auto; right: 22px; z-index: 5; }
  .k3-large .k3-tele-lib { display: block; font-size: .72rem; }
}
/* Barre d'icônes remontée, entre les vignettes et la ligne d'écriture (écrans larges) */
@media (min-width: 761px) {
  .k3-large .k3-bandeau { left: 50%; right: auto; transform: translateX(-50%); bottom: clamp(54px, 10svh, 96px); width: auto; padding: 6px 22px; gap: 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(8, 5, 28, .7); }
  .k3-large .k3-toast { bottom: clamp(120px, 18svh, 170px); }
}
/* Macaron de l'enfant : même hauteur que « Sur la télé », à gauche (écrans larges) */
@media (min-width: 761px) {
  .k3-large .k3-moi { position: fixed; top: 72px; left: 22px; right: auto; width: 64px; height: 64px; font-size: 1.9rem; z-index: 5; }
}
/* Pastille de version : sur la ligne d'écriture du bas, même typo, simplement à part (à gauche) */
body.branche[data-univers="kids"] .maj-version { z-index: 47; left: 14px; bottom: calc(5px + env(safe-area-inset-bottom)); min-height: 0; padding: 0; border: 0; background: none; color: #8f86b8; font: inherit; font-size: .72rem; line-height: 1.2; gap: 6px; }
body.branche[data-univers="kids"] .maj-version i { width: 7px; height: 7px; }
@media (max-width: 760px) { body.branche[data-univers="kids"] .maj-version { bottom: calc(26px + env(safe-area-inset-bottom)); left: 12px; } }
body.branche[data-univers="kids"] .maj-version { font-family: "Fredoka", ui-rounded, system-ui, sans-serif; }
/* Téléphone en paysage (l'appli est toujours en paysage sur téléphone et tablette) : tout se resserre en hauteur */
@media (min-width: 761px) and (max-height: 520px) {
  .k3 { padding-bottom: 104px; padding-top: 6px; }
  .k3-large .k3-bandeau { bottom: 28px; padding: 3px 18px; gap: 14px; }
  .k3-large .k3-bandeau img { width: 36px; height: 36px; }
  .k3-large .k3-toast { bottom: 80px; }
  body.branche[data-univers="kids"] .kh-bonjour { font-size: 28px; margin-top: 2px; }
  .k3-mot { font-size: .95rem; margin: 0 0 6px; }
  .k3-acces a { height: 46px; } .k3-acces .i { width: 36px; height: 36px; }
  .k3-large .k3-moi, .k3-large .k3-tele-rond { width: 52px; height: 52px; }
  .k3-large .k3-moi, .k3-large .k3-mode { top: 58px; }
  .k3-large .k3-tele-lib { display: none; }
  .k3-defile { margin-top: 10px; }
  .k3-defile .k3-tuile img { max-height: 20svh; }
}
/* Ligne du bas sortie du fond : bande noire pleine comme la barre du haut ; la version en fin de ligne (à droite) */
.k3-pied { background: var(--bg); border-top: 1px solid var(--border); }
body.branche[data-univers="kids"] .maj-version { left: auto; right: 14px; }
@media (min-width: 761px) { .k3-pied { padding-left: 170px; padding-right: 170px; } }
@media (max-width: 760px) { .k3-pied { padding-left: 12px; padding-right: 12px; } body.branche[data-univers="kids"] .maj-version { right: 12px; left: auto; } }
/* Bande du bas : sans trait, plus aérée */
.k3-pied { border-top: 0; padding-top: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
body.branche[data-univers="kids"] .maj-version { bottom: calc(14px + env(safe-area-inset-bottom)); }
.k3-bandeau { bottom: 50px; }
@media (min-width: 761px) { .k3-large .k3-bandeau { bottom: clamp(70px, 12svh, 110px); } }
@media (min-width: 761px) and (max-height: 520px) { .k3-large .k3-bandeau { bottom: 48px; } .k3 { padding-bottom: 120px; } }
@media (max-width: 760px) { body.branche[data-univers="kids"] .maj-version { bottom: calc(14px + env(safe-area-inset-bottom)); } .k3-bandeau { bottom: 66px; } .k3 { padding-bottom: 166px; } }
/* Version à la suite de la ligne d'écriture */
body.branche[data-univers="kids"] .k3-pied .maj-version { position: static; z-index: auto; display: inline-flex; margin: 0; padding: 0; }
@media (min-width: 761px) { .k3-pied { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 760px) { .k3-pied { padding-left: 12px; padding-right: 12px; } }
/* Ouverture d'une vignette : elle s'agrandit en plein écran */
.k3-plein { position: fixed; z-index: 200; overflow: hidden; border-radius: 999px / 58%; background: #05030f; box-shadow: 0 0 0 3px var(--c, #8a63ff); transition: left .5s cubic-bezier(.5, 0, .2, 1), top .5s cubic-bezier(.5, 0, .2, 1), width .5s cubic-bezier(.5, 0, .2, 1), height .5s cubic-bezier(.5, 0, .2, 1), border-radius .5s; }
.k3-plein img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k3-plein.grand { left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; border-radius: 0; box-shadow: none; }
/* Vignettes au format de l'image (16:9) : rien n'est coupé, ni dans la vignette ni en plein écran */
.k3-ovale { border-radius: 22px; padding: 10px 10px 8px; align-content: start; }
.k3-ovale .k3-vue, .k3-ovale .k3-vue img { border-radius: 14px; }
.k3-defile .k3-tuile img { aspect-ratio: 16 / 9; max-height: none; object-fit: contain; width: 100%; height: auto; }
.k3-plein { border-radius: 14px; }
.k3-plein img { object-fit: contain; }
.k3-plein.grand { border-radius: 0; background: #05030f; }
.k3-defile.k3-fixe .k3-tuile { max-width: 340px; }
@media (min-width: 761px) and (max-height: 520px) { .k3-defile.k3-fixe .k3-tuile { max-width: 220px; } }
/* Nouveaux macarons (images de la série mc-*) */
.k3-reprise .k3-play { width: 44px; height: 44px; padding: 0; background: none; border-radius: 0; }
.k3-reprise .k3-play img, .k3-acces .i img { width: 100%; height: 100%; object-fit: contain; display: block; }
.k3-tele-rond > img:first-child { width: 100%; height: 100%; }
/* Titre écrit sur la vignette en plein écran */
.k3-plein-t { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; color: #fff; font: 700 clamp(2rem, 9vh, 5rem) "Fredoka", ui-rounded, sans-serif; text-shadow: 0 4px 22px rgba(0, 0, 0, .75), 0 0 2px #000; opacity: 0; transform: translateY(14px); transition: opacity .3s .3s, transform .3s .3s; }
.k3-plein.grand .k3-plein-t { opacity: 1; transform: none; }
/* Macarons sans nom écrit (réglable dans les paramètres) : image seule */
.k3-acces a > span:not(.i), .k3-reprise > span:not(.k3-play):not(.k3-apercu) { display: none; }
.k3-acces a { width: auto; height: auto; padding: 4px; gap: 0; }
.k3-reprise { padding: 4px; gap: 0; width: auto; height: auto; }
.k3-acces .i { width: 56px; height: 56px; }
.k3-reprise .k3-play { width: 56px; height: 56px; }
@media (max-width: 760px) { .k3-acces { display: flex; justify-content: center; gap: 12px; } .k3-acces a { padding: 3px; } .k3-acces .i { width: 52px; height: 52px; } }
@media (min-width: 761px) and (max-height: 520px) { .k3-acces .i, .k3-reprise .k3-play { width: 44px; height: 44px; } .k3-acces a { height: auto; } }
@media (min-width: 761px) { .k3-large .k3-reprendre .k3-acces a, .k3-large .k3-reprise { height: auto; } .k3-acces a { height: auto; } }
/* « Sur la télé » : l'image seule, sans rond autour */
.k3-tele-rond { background: none; border: 0; box-shadow: none; border-radius: 0; }
.k3-tele.on .k3-tele-rond { border: 0; box-shadow: none; }
.k3-tele:hover .k3-tele-rond, .k3-tele:focus-visible .k3-tele-rond { box-shadow: none; transform: scale(1.08); }
.k3-tele.on .k3-tele-rond > img:first-child { filter: drop-shadow(0 0 10px rgba(79, 227, 176, .9)); }
/* Macarons plus espacés ; plus de carré de lueur derrière « Reprendre » */
.k3-reprise .k3-play { box-shadow: none; filter: none; border-radius: 50%; }
.k3-reprise { border-radius: 50%; background-image: none; }
.k3-reprendre { gap: 30px; }
.k3-acces, .k3-reprendre .k3-acces { gap: 30px; }
@media (max-width: 760px) { .k3-reprendre, .k3-acces, .k3-reprendre .k3-acces { gap: 22px; } }
/* Prénom de l'enfant : plus de halo / léger fond derrière le nom */
.kh-prenom input, .kh-prenom input:hover, .kh-prenom input:focus { background: none; box-shadow: none; text-shadow: none; }

/* Réglages du fondateur branchés (classes posées par appliquerReglages) */
.k3-noms .k3-acces a > span:not(.i), .k3-noms .k3-reprise > span:not(.k3-play):not(.k3-apercu) { display: inline; }
.k3-noms .k3-acces a { padding: 5px 18px 5px 5px; gap: 8px; }
.k3-sans-moi .k3-moi { display: none; }
.k3-sans-version .maj-version { display: none; }
.k3-gros .k3-acces .i, .k3-gros .k3-reprise .k3-play { width: 70px; height: 70px; }
.k3-gros .k3-bandeau img { width: 62px; height: 62px; }
.k3-gros .k3-tele-rond { width: 84px; height: 84px; }
@media (min-width: 761px) {
  .k3-moi-d.k3-large .k3-moi { left: auto; right: 22px; }
  .k3-moi-d.k3-large .k3-mode { right: auto; left: 22px; }
}
.k3-sans-version .maj-version { display: none !important; }
/* Fenêtre de « Reprendre » : elle s'ouvre vers le bas (sous le macaron), donc reste dans l'écran */
.k3-apercu, .k3-reprise .k3-apercu { bottom: auto; top: calc(100% + 14px); }
.k3-apercu::after { bottom: auto; top: -9px; border: 0; border-left: 2px solid #b07cff; border-top: 2px solid #b07cff; }
/* La fenêtre de « Reprendre » passe devant tout le reste (vignettes, barres) */
.k3-reprendre { position: relative; z-index: 60; }
.k3-reprise, .k3-reprise:hover, .k3-reprise:focus-visible { z-index: 61; }
.k3-reprise .k3-apercu { z-index: 70; }
.k3-defile { z-index: 1; }
/* Pendant l'ouverture (logo) et « Qui joue ? », rien de la page des activités ne doit passer devant */
.kids-ouv { z-index: 300; }
body.kids-ouvre .k3-reprendre, body.kids-ouvre .k3-mode, body.kids-ouvre .k3-moi, body.kids-ouvre .k3-bandeau, body.kids-ouvre .k3-pied { visibility: hidden; }
.k3-qui { z-index: 250; }
/* Le prénom de l'enfant écrit dans son rond */
.k3-moi .nm { max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1; font-weight: 700; }
.k3-moi .nm { font-size: calc(var(--nm, .3) * 64px); }
@media (max-width: 760px) { .k3-moi .nm { font-size: calc(var(--nm, .3) * 46px); } }
/* Le rond de l'enfant prend la couleur du thème de la page (violet sur l'accueil, bleu sur Jeux…) ; vide en pointillés s'il n'y a pas d'enfant */
.k3-moi { background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--pg, #8a63ff) 60%, #fff), var(--pg, #8a63ff)); box-shadow: 0 0 14px color-mix(in srgb, var(--pg, #8a63ff) 55%, transparent); }
.k3-moi.plus { background: none; box-shadow: none; }

/* Le rond de l'enfant : le disque en relief, le portrait (ou le prénom) posé dans son centre ; le halo reste de la couleur du thème de la page */
.k3-moi:not(.plus) { border: 0; overflow: visible; background: url("../kids/images-accueil/mc-macaron-vide.png?v=1") center / contain no-repeat; box-shadow: none; filter: drop-shadow(0 0 9px color-mix(in srgb, var(--pg, #8a63ff) 65%, transparent)); }
.k3-moi:not(.plus) img { position: absolute; left: 14%; top: 14.5%; width: 72%; height: 72%; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.k3-moi:not(.plus) .nm { position: absolute; left: 14%; right: 14%; top: 14.5%; bottom: 13.5%; display: grid; place-items: center; max-width: none; color: #fff; }
@media (max-width: 760px) { .k3-moi:not(.plus) { position: relative; } }

/* titre du plein écran : gros, contour de la couleur du jeu, lueur, sur un voile sombre en bas pour rester lisible sur toute image */
.k3-plein::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(5, 3, 15, .82), transparent); opacity: 0; transition: opacity .3s .25s; pointer-events: none; }
.k3-plein.grand::after { opacity: 1; }
.k3-plein-t { z-index: 2; bottom: 7%; padding: 0 5%; line-height: 1.08; text-wrap: balance; font-size: clamp(2.2rem, 11vh, 5.6rem); letter-spacing: .01em; -webkit-text-stroke: clamp(6px, 1.6vh, 12px) var(--c, #8a63ff); paint-order: stroke fill; text-shadow: 0 0 28px var(--c, #8a63ff), 0 6px 20px rgba(0, 0, 0, .6); }

/* Connexion parent (Kids) : lien discret en bas de « Qui joue ? », fenêtre de saisie du code. Rien de tout cela n'apparaît côté enfant tant que le parent n'est pas connecté. */
.qui-corps { padding-bottom: 6px; }
.qui-pied { padding: 0 16px calc(6px + env(safe-area-inset-bottom)); text-align: center; font: 400 .78rem "Fredoka", ui-rounded, sans-serif; }
.qui-pied a { color: #8f86b3; text-decoration: none; padding: 8px 10px; display: inline-block; }
.qui-pied a:is(:hover, :focus-visible) { color: #cfc4ee; text-decoration: underline; outline: none; }
.qui-bandeau-parent { color: #a89fcc; }
.kp-voile { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 12px; background: rgba(5, 3, 15, .8); }
.kp-boite { width: min(340px, 100%); max-height: 100%; overflow-y: auto; display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: #14102e; border: 1px solid rgba(255, 255, 255, .18); color: #fff; font: 400 1rem "Fredoka", ui-rounded, sans-serif; }
.kp-boite h2 { margin: 0; font-size: 1.2rem; } .kp-aide, .kp-msg { margin: 0; color: #cfc4ee; font-size: .9rem; } .kp-msg { min-height: 1.2em; color: #ffb4a8; }
.kp-code { font: 600 1.6rem ui-monospace, monospace; letter-spacing: .4em; text-align: center; padding: 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: #05030f; color: #fff; }
.kp-actions { display: flex; gap: 10px; justify-content: flex-end; }
.kp-actions button { padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: none; color: #fff; font: inherit; cursor: pointer; }
.kp-actions .kp-ok { background: #6a4bff; border-color: #6a4bff; }
.kp-oubli { justify-self: center; border: 0; background: none; color: #8f86b3; font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }

/* couleur du prénom : un petit « + » ouvre le nuancier commun ; une couleur libre (#rrggbb) s'applique par variables */
.kh-bonjour[data-genre="libre"] { --nom: var(--cc); }
.kh-genre .g-plus { background: #fff; color: #8a63ff; font: 700 1rem/1 "Fredoka", ui-rounded, sans-serif; display: grid; place-items: center; }

/* les grandes étapes : chiffres du jour, images, macaron de la genèse */
.et-stats { margin-left: 10px; font-size: .78rem; font-weight: 500; opacity: .75; }
.et-stats b { color: var(--accent, #6ea8ff); }
.et-images { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.et-images figure { margin: 0; text-align: center; font-size: .72rem; opacity: .9; }
.et-images img { display: block; height: 84px; width: auto; max-width: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); background: #111; }
.et-macaron { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 18px; background: rgba(110, 168, 255, .07); }
.et-macaron summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.et-macaron summary::-webkit-details-marker { display: none; }
.et-mac { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #7fb4ff, #2a4cc8); border: 3px solid #fff; box-shadow: 0 0 14px #3b82ff88; color: #fff; line-height: 1; text-align: center; }
.et-mac b { font-size: 1.05rem; } .et-mac small { font-size: .55rem; }
.et-mac-titre { font-weight: 700; }
.et-macaron ul { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.et-macaron ul li b { color: var(--accent, #6ea8ff); margin-right: 4px; }
.et-macaron p { margin: 6px 0 0; font-size: .85rem; }
.et-note { opacity: .6; font-size: .75rem !important; }
.et-sous { display: block; font-weight: 500; font-size: .75rem; opacity: .7; }
.et-periode { margin: 8px 0 0; font-size: .82rem; }

/* Premier lancement (côté parent) : même écran que « Qui joue ? », en texte */
.pl-texte { width: min(560px, 100%); display: grid; gap: 12px; color: #e9e3ff; font: 400 1.05rem/1.5 "Fredoka", ui-rounded, system-ui, sans-serif; }
.pl-texte p { margin: 0; } .pl-texte ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.pl-accord { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; background: rgba(255, 255, 255, .06); cursor: pointer; }
.pl-accord input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: #8a63ff; }
.pl-bouton { padding: 14px 28px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #8a63ff, #5a3ad0); color: #fff; font: 600 1.15rem "Fredoka", ui-rounded, sans-serif; cursor: pointer; box-shadow: 0 5px 0 #3a2290, 0 10px 24px rgba(90, 58, 208, .45); }
.pl-bouton:disabled { opacity: .4; cursor: default; box-shadow: none; }
.pl-msg { margin: 0; min-height: 1.3em; color: #ffd9a0; font: 500 .95rem "Fredoka", ui-rounded, sans-serif; text-align: center; }

.qui-bloc { display: grid; justify-items: center; gap: 4px; }
.qui-suppr { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: none; color: #ffb4a8; font: 500 .9rem "Fredoka", ui-rounded, sans-serif; cursor: pointer; }
.qui-suppr[hidden] { display: none; }
.qui-visiteur { margin: 0; color: #b9aee0; font: 500 .9rem "Fredoka", ui-rounded, sans-serif; text-align: center; }

/* « Qui joue ? » : on arrive de l'ouverture de Kids, le logo monte doucement, la phrase s'écrit pareil, puis l'enfant (ou le +) apparaît dessous, bien centré */
.qui-haut { width: 100%; display: grid; justify-items: center; padding: clamp(8px, 2.4svh, 26px) 16px 0; }
.qui-ko { margin: 0; animation: qui-monte 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.qui-ko .ko-logo { width: min(66vw, 420px); }
.qui-ko .ko-k { font-size: clamp(14px, 2.6svh, 26px); }
.qui-ko .ko-phrase { margin-top: clamp(6px, 1.6svh, 16px); min-height: 1.6em; }
@keyframes qui-monte { from { transform: translateY(22svh) scale(1.55); } to { transform: none; } }
.qui-corps { align-content: start; gap: clamp(16px, 4svh, 38px); padding-top: clamp(14px, 4svh, 40px); opacity: 0; animation: qui-apparait .7s .8s ease both; }
@keyframes qui-apparait { to { opacity: 1; } }
.qui-liste { gap: clamp(20px, 4vw, 48px); }
.qui-av { width: clamp(104px, 20svh, 170px); border-width: 4px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 0 34px color-mix(in srgb, var(--c, #8a63ff) 65%, transparent), 0 14px 30px rgba(0, 0, 0, .45); }
.qui-av b { font-size: clamp(2.6rem, 7svh, 4.4rem); font-weight: 700; }
.qui-enfant { font-size: clamp(1.15rem, 2.6svh, 1.6rem); gap: 14px; }
.qui-plus .qui-av { border: 4px dashed rgba(217, 204, 255, .85); background: radial-gradient(circle at 50% 40%, rgba(138, 99, 255, .35), rgba(138, 99, 255, .08) 70%); color: #fff; box-shadow: 0 0 34px rgba(138, 99, 255, .45); }
.qui-plus .qui-av b { font-size: clamp(3rem, 9svh, 5rem); line-height: 1; font-weight: 600; }
.qui-sans { padding: 12px 26px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #e6defc; text-decoration: none; font-size: 1.05rem; }
.qui-sans:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .14); outline: none; }
.qui-visiteur { margin-top: -4px; }
@media (max-height: 520px) {
  .qui-ko .ko-logo { width: min(40vw, 250px); } .qui-ko .ko-phrase { font-size: 15px; margin-top: 2px; min-height: 1.3em; }
  .qui-corps { gap: 10px; padding-top: 6px; } .qui-av { width: 74px; } .qui-enfant { font-size: 1rem; gap: 6px; padding: 2px; } .qui-sans { padding: 6px 16px; font-size: .9rem; }
  @keyframes qui-monte { from { transform: translateY(16svh) scale(1.4); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .qui-ko, .qui-corps { animation: none; opacity: 1; } }
.qui-haut .ko-logo .ul, .qui-haut .ko-logo svg { height: auto !important; width: 100% !important; display: block; }
.qui-haut { justify-items: center; }

/* Qui joue ? : la pastille Kids au bout de « UNIVERSE », et plus d'air autour du logo, du titre et du + */
.qui-lg { position: relative; display: block; width: fit-content; margin: 0 auto; }
.qui-ko .qui-lg .ko-k { position: absolute; left: calc(96.6% + 8px); right: auto; top: 86.9%; bottom: auto; transform: translateY(-50%); } /* « Kids » juste après le dernier E de UNIVERSE, à la hauteur des lettres */
.qui-ko .qui-lg .ko-k.on { transform: translateY(-50%); }
.qui-haut { padding-top: clamp(22px, 8svh, 80px); }
.qui-ko .ko-phrase { margin-top: clamp(18px, 5svh, 48px); }
.qui-corps { padding-top: clamp(28px, 8svh, 80px); }
@media (max-height: 520px) { .qui-haut { padding-top: 10px; } .qui-ko .ko-phrase { margin-top: 8px; } .qui-corps { padding-top: 12px; } }

/* Qui joue ? : logo en haut, le + dessous, tout sur un seul écran (téléphone en paysage compris) ; la carte d'accès de l'enfant viendra sous le logo */
.k3-qui { display: flex; flex-direction: column; height: 100svh; overflow: hidden; }
.k3-qui .qui-haut { flex: none; padding-top: clamp(10px, 4svh, 48px); }
.k3-qui .qui-corps { flex: 1; align-content: center; padding: 0 16px; gap: clamp(8px, 2.4svh, 22px); }
.k3-qui .qui-ko .ko-logo { width: min(40vw, 56svh, 360px); }
.k3-qui .qui-ko .ko-phrase { margin-top: clamp(6px, 2svh, 22px); }
.k3-qui .qui-av { width: clamp(64px, 14svh, 110px); }
.k3-qui .qui-plus .qui-av b { font-size: clamp(2rem, 6svh, 3.2rem); }
.k3-qui .qui-enfant { font-size: clamp(.95rem, 2.2svh, 1.3rem); gap: 8px; }
.k3-qui .qui-sans { padding: 7px 18px; font-size: clamp(.85rem, 2svh, 1rem); }
.k3-qui .qui-visiteur { font-size: clamp(.72rem, 1.7svh, .85rem); margin: 0; }
.k3-qui .qui-pied { flex: none; }

/* Le macaron « Présentation » (4e de la rangée) et la fenêtre des réglages de Kids */
.k3-acces { grid-template-columns: repeat(3, auto); }
@media (max-width: 760px) { .k3-acces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.k3-reglages { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(5, 3, 15, .72); padding: 16px; }
.kr-boite { width: min(92vw, 460px); display: grid; gap: 14px; padding: 22px; border-radius: 26px; background: #120a36; border: 2px solid rgba(255, 255, 255, .18); color: #f3f1ff; font-family: "Fredoka", ui-rounded, sans-serif; }
.kr-boite h2 { margin: 0; font-size: 1.6rem; }
.kr-ligne { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 999px; border: 1.5px solid #ffd23c; background: rgba(255, 210, 60, .08); color: inherit; text-decoration: none; }
.kr-ligne .i { flex: none; width: 54px; height: 54px; } .kr-ligne .i img { width: 100%; height: 100%; object-fit: contain; }
.kr-ligne b { display: block; font-size: 1.1rem; } .kr-ligne small { display: block; color: #b9aee0; font-size: .85rem; }
.kr-fermer { justify-self: end; padding: 9px 22px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: none; color: #e6defc; font: 600 1rem "Fredoka", ui-rounded, sans-serif; cursor: pointer; }

/* Le macaron « Présentation » sur l'écran « Qui joue ? » : en haut à droite, toujours à portée */
.qui-prez { position: absolute; right: clamp(12px, 3vw, 34px); top: clamp(10px, 3svh, 28px); z-index: 3; display: grid; justify-items: center; gap: 4px; color: #f3f1ff; text-decoration: none; font: 600 clamp(10px, 2.4svh, 13px) "Fredoka", ui-rounded, sans-serif; text-shadow: 0 2px 6px #000; }
.qui-prez img { width: clamp(44px, 11svh, 70px); height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); transition: transform .15s; }
.qui-prez:is(:hover, :focus-visible) img { transform: scale(1.08); } .qui-prez:focus-visible { outline: none; }

/* La carte de l'enfant dans « Qui joue ? » : sa taille suit la hauteur de l'écran (tout tient sans défiler) */
.qui-cartehote { display: block; width: clamp(150px, min(44vw, calc((100svh - 262px) * 1.6)), 330px); } .qui-enfant:has(.qui-cartehote) > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* le prénom est sur la carte */
.qui-enfant[role="button"] { cursor: pointer; } .qui-enfant[role="button"]:focus-visible { outline: none; }
.qui-enfant:has(.qui-cartehote):is(:hover, :focus-visible) .uc-av { transform: translateY(-5px); } .uc-av { transition: transform .15s; }

/* Macaron de l'enfant : toujours en haut à gauche, même taille que « Sur la télé » (à droite), plus gros, avec halo et relief (23 nov. 2026) */
@media (min-width: 761px) {
  .k3-large .k3-moi { left: 22px; right: auto; width: 90px; height: 90px; }
  .k3-large .k3-mode { right: 22px; left: auto; }
  .k3-large .k3-tele-rond { width: 85px; height: 85px; }
}
@media (max-width: 760px) { .k3-moi, .k3-large .k3-moi { width: 70px; height: 70px; } .k3-large .k3-tele-rond { width: 66px; height: 66px; } }
.k3-moi:not(.plus) { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--pg, #8a63ff) 80%, transparent)) drop-shadow(0 5px 6px rgba(0, 0, 0, .55)); transition: transform .15s; }
.k3-moi:not(.plus):is(:hover, :focus-visible) { transform: scale(1.06); }
.k3-moi.plus { width: 90px; height: 90px; box-shadow: 0 0 14px rgba(176, 124, 255, .45), inset 0 2px 6px rgba(255, 255, 255, .2); border-color: rgba(176, 124, 255, .8); }

/* Les macarons du bas (messages, agenda, carnet, réglages) grossissent comme ceux du haut (23 nov. 2026) */
@media (min-width: 761px) {
  .k3-large .k3-bandeau img, .k3-bandeau img { width: 66px; height: 66px; }
  .k3-large .k3-bandeau { gap: 22px; padding: 4px 28px; }
}
@media (min-width: 761px) and (max-height: 640px) { .k3-large .k3-bandeau img, .k3-bandeau img { width: 50px; height: 50px; } }
@media (max-width: 760px) { .k3-bandeau img { width: 60px; height: 60px; } }

/* L'agenda ouvert dans Kids */
.k3-agenda { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 9000; background: #0d0a24; opacity: 0; transform: scale(.97); transition: opacity .35s, transform .35s; } .k3-agenda.ouvert { opacity: 1; transform: none; } .k3-agenda iframe { width: 100%; flex: 1; min-height: 0; border: 0; display: block; }
.k3-agenda .topbar { position: relative; flex: none; } .k3-agenda .topbar .brand { visibility: visible !important; }
.k3-agenda-ferme { background: linear-gradient(#ffd76b, #f0a21c); color: #4a2b00; border: 0; border-radius: 999px; padding: .5em 1.3em; font: 800 .95rem system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.7); } .k3-agenda-ferme:hover { filter: brightness(1.08); }
/* Le calendrier de l'avent dans le bandeau (1er déc. – 6 janv.) : provisoire, l'aperçu du sapin en vignette arrondie, en attendant son bouton dessiné */
.k3-bandeau .k3-avent img { object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255, 215, 107, .85), 0 2px 8px rgba(0, 0, 0, .45); }
