/* Tricoti — le pays où tout est en laine.
   Couleurs du vrai logo tricoté (rose, jaune, bleu, vert, violet, orange), texte brun chaud, mailles en SVG. */

@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --creme: #fff8ee;
  --lin: #f8eddf;
  --sable: #efdfc8;
  --papier: #fffdf8;
  --cacao: #43261a;
  --texte: #57402f;
  --doux: #7a5f4e;
  --trait: #ead9c2;

  --rose: #f2a3c2;  --rose-f: #c94f80;
  --jaune: #f6d47a; --jaune-f: #b98415;
  --bleu: #94bdee;  --bleu-f: #3f74c4;
  --vert: #a3d68c;  --vert-f: #4f9a3a;
  --violet: #bfa5ec; --violet-f: #7f5cc6;
  --orange: #f6b277; --orange-f: #c66c22;
  --rouge: #d9473b; --rouge-f: #a8302a;
  --corail: #f5a597; --corail-f: #c4513f;
  --brume: #b9cfe8; --brume-f: #5a7fae;
  --pre: #7cbf5e;
  --ciel: #d4e9fa;
  --nuit: #1f3a73;

  --titre: 'Fraunces', 'Georgia', serif;
  --corps: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 28px;
  --ombre: 0 18px 40px -18px rgba(67, 38, 26, .35), 0 4px 12px -6px rgba(67, 38, 26, .18);
  --ombre-douce: 0 10px 30px -16px rgba(67, 38, 26, .28);
  --maille: url('/assets/img/maille.svg');
  --large: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--creme); color: var(--texte);
  font: 400 17px/1.65 var(--corps); font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--rose-f); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--cacao); }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 600; color: var(--cacao); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: var(--cacao); font-weight: 650; }
::selection { background: var(--jaune); color: var(--cacao); }
:focus-visible { outline: 3px solid var(--bleu-f); outline-offset: 3px; border-radius: 8px; }

.conteneur { width: min(var(--large), 100% - 40px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 40px); margin-inline: auto; }
.moyen { width: min(1000px, 100% - 40px); margin-inline: auto; }
.visuel-seul { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.passer { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cacao); color: #fff; padding: 10px 16px; border-radius: 12px; }
.passer:focus { top: 12px; color: #fff; }

/* ---------- la laine : mailles, coutures, côtes ---------- */
.tricot {
  background-color: var(--c, var(--rose));
  background-image: var(--maille);
  background-size: 22px 20px;
  box-shadow: inset 0 -10px 22px rgba(67, 38, 26, .10), inset 0 8px 16px rgba(255, 255, 255, .35);
}
.couture { position: relative; }
.couture::after {
  content: ''; position: absolute; inset: var(--couture, 9px); pointer-events: none;
  border: 2px dashed rgba(255, 255, 255, .82); border-radius: calc(var(--rayon, var(--r)) - var(--couture, 9px));
}
.cotes {
  background-color: var(--c, var(--sable));
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 7px, rgba(67,38,26,.07) 7px 9px, rgba(255,255,255,0) 9px 14px);
}

/* ---------- surtitres, pastilles, boutons ---------- */
.surtitre {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 600 .82rem/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--doux);
}
.surtitre::before {
  content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--jaune) var(--maille) center/11px 10px; box-shadow: inset 0 -3px 5px rgba(67,38,26,.18), 0 0 0 3px #fff;
}
.chapo { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--texte); max-width: 38em; }

.bouton {
  --c: var(--jaune); --f: var(--jaune-f);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 650 1rem/1.1 var(--corps); color: var(--cacao); text-decoration: none; letter-spacing: .005em;
  background: var(--c) var(--maille) 0 0/22px 20px;
  box-shadow: inset 0 -5px 0 rgba(67,38,26,.14), inset 0 4px 8px rgba(255,255,255,.45), 0 6px 0 -1px var(--f), 0 14px 22px -10px rgba(67,38,26,.45);
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .18s, filter .18s;
}
.bouton::after { content: ''; position: absolute; inset: 5px; border: 1.5px dashed rgba(255,255,255,.85); border-radius: 999px; pointer-events: none; }
.bouton:hover { transform: translateY(-2px) rotate(-.6deg); color: var(--cacao); filter: saturate(1.08); }
.bouton:active { transform: translateY(3px); box-shadow: inset 0 -3px 0 rgba(67,38,26,.14), 0 2px 0 -1px var(--f), 0 8px 14px -10px rgba(67,38,26,.45); }
.bouton svg { width: 20px; height: 20px; flex: none; }
.bouton-rouge { --c: var(--rouge); --f: var(--rouge-f); color: #fff; }
.bouton-rouge:hover { color: #fff; }
.bouton-rouge::after { border-color: rgba(255,255,255,.6); }
.bouton-rose { --c: var(--rose); --f: var(--rose-f); }
.bouton-bleu { --c: var(--bleu); --f: var(--bleu-f); }
.bouton-vert { --c: var(--vert); --f: var(--vert-f); }
.bouton-violet { --c: var(--violet); --f: var(--violet-f); }
.bouton-clair { --c: #fff; --f: var(--sable); background-image: url('/assets/img/maille-creme.svg'); }
.bouton-clair::after { border-color: var(--trait); }
.bouton-petit { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 14px; margin-top: 30px; }

.etiquette {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font: 650 .78rem/1 var(--corps); letter-spacing: .04em; color: var(--cacao);
  background: var(--c, var(--vert)) var(--maille) 0 0/22px 20px; box-shadow: inset 0 -2px 0 rgba(67,38,26,.12);
}
.etiquette-bientot { --c: var(--jaune); }
.etiquette-prepa { --c: var(--violet); }
.etiquette-dispo { --c: var(--vert); }
.etiquette-nouveau { --c: var(--rose); }

/* ---------- en-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--creme) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.entete.defile { border-color: var(--trait); box-shadow: 0 10px 30px -22px rgba(67,38,26,.5); }
.entete-int { display: flex; align-items: center; gap: 24px; height: 84px; }
.marque { display: block; flex: none; margin-right: auto; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.marque:hover { transform: rotate(-2deg) scale(1.03); }
.marque img { width: 150px; height: auto; filter: drop-shadow(0 4px 6px rgba(67,38,26,.18)); }
.menu ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font: 600 .97rem/1 var(--corps); color: var(--cacao); transition: background .15s;
}
.menu a:hover { background: var(--lin); color: var(--cacao); }
.menu a[aria-current='page'] { background: var(--c, var(--jaune)) var(--maille) 0 0/22px 20px; box-shadow: inset 0 -2px 0 rgba(67,38,26,.12); }
.entete .bouton { min-height: 46px; padding: 10px 18px; font-size: .93rem; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--lin); cursor: pointer; color: var(--cacao); }
.burger svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 1020px) {
  .burger { display: grid; place-items: center; }
  .entete .bouton-yt { display: none; }
  .menu {
    position: fixed; inset: 84px 0 auto 0; padding: 18px 20px 28px; background: var(--creme);
    border-bottom: 1px solid var(--trait); box-shadow: 0 30px 40px -30px rgba(67,38,26,.5);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .menu.ouvert { transform: none; opacity: 1; visibility: visible; }
  .menu ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .menu a { padding: 15px 18px; font-size: 1.1rem; }
  .menu .menu-yt { display: block; margin-top: 10px; }
}
@media (min-width: 1021px) { .menu .menu-yt { display: none; } }

/* ---------- héros de l'accueil ---------- */
.heros { position: relative; padding: clamp(28px, 4vw, 64px) 0 clamp(90px, 9vw, 140px); overflow: hidden; }
.heros::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(246, 212, 122, .35), transparent 70%),
    radial-gradient(50% 50% at 5% 90%, rgba(242, 163, 194, .25), transparent 70%),
    url('/assets/img/maille-creme.svg') 0 0/22px 20px;
}
.heros-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(30px, 5vw, 72px); align-items: center; }
.heros h1 em { font-style: normal; position: relative; white-space: nowrap; color: var(--rose-f); }
.heros h1 em::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .2em; z-index: -1; border-radius: 99px;
  background: var(--jaune) var(--maille) 0 0/14px 13px; transform: rotate(-1.5deg);
}
.reperes { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--doux); font-size: .95rem; }
.reperes li { display: flex; align-items: baseline; gap: 8px; }
.reperes strong { font: 600 1.7rem/1 var(--titre); color: var(--cacao); }

.scene { position: relative; padding: 18px 10px 40px 26px; }
.fenetre { --c: var(--rose); --rayon: 38px; --couture: 9px; border-radius: 38px; padding: 16px; box-shadow: var(--ombre), inset 0 -10px 22px rgba(67,38,26,.12), inset 0 8px 16px rgba(255,255,255,.35); transform: rotate(1.2deg); }
.fenetre .ecran { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ciel); box-shadow: inset 0 0 0 2px rgba(67,38,26,.08); }
.fenetre video, .fenetre .ecran > img { width: 100%; height: 100%; object-fit: cover; }
.scene .tico-sort { position: absolute; left: -9%; bottom: -9%; width: 22%; z-index: 2; filter: drop-shadow(0 18px 18px rgba(67,38,26,.28)); transform-origin: 50% 100%; animation: balance 4.2s ease-in-out infinite; }
.scene .pip-sort { position: absolute; right: -4%; top: -14%; width: 16%; z-index: 2; filter: drop-shadow(0 14px 14px rgba(67,38,26,.25)); transform-origin: 50% 100%; animation: balance 3.6s ease-in-out -1.2s infinite; }
.pelote-deco { position: absolute; right: 8%; bottom: -2%; width: 74px; z-index: 1; }
@keyframes balance { 0%, 100% { transform: rotate(-2.5deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(-6px); } }
.lecture-anim {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.88); color: var(--cacao); box-shadow: 0 6px 14px -6px rgba(0,0,0,.4);
}
.lecture-anim svg { width: 18px; height: 18px; }

/* festons : bord ondulé comme une bordure au crochet */
.feston-bas { position: relative; }
.feston-bas::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; pointer-events: none;
  background: radial-gradient(circle at 18px 26px, var(--suite, var(--lin)) 17px, transparent 18px) 0 0/36px 26px repeat-x;
}

/* ---------- sections ---------- */
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section-lin { background: var(--lin); }
.section-sable { background: var(--sable); }
.section-papier { background: var(--papier); }
.tete-section { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(34px, 4vw, 56px); }
.tete-section > div { max-width: 640px; }
.tete-section p { margin: 0; color: var(--doux); font-size: 1.08rem; }
.centre { text-align: center; }
.centre .tete-section { justify-content: center; text-align: center; }

/* le pays de laine */
.pays { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.pays figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre-douce); background: var(--papier); }
.pays figure:nth-child(1) { grid-column: span 3; }
.pays figure:nth-child(2) { grid-column: span 3; }
.pays figure:nth-child(n+3) { grid-column: span 2; }
.pays img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pays figure:hover img { transform: scale(1.04); }
.pays figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px; display: inline-block; width: fit-content; max-width: calc(100% - 28px);
  padding: 10px 16px; border-radius: 16px; background: rgba(255, 253, 248, .93); color: var(--cacao);
  font: 600 1.06rem/1.25 var(--titre); box-shadow: 0 8px 20px -12px rgba(67,38,26,.5);
}

/* la famille en rang (vraies tailles) */
.famille { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(2px, 1.2vw, 18px); padding: 40px 10px clamp(24px, 4vw, 56px); }
.famille::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 0; border-radius: 48% 52% 36px 36px / 46% 40% 36px 36px;
  background: var(--pre) var(--maille) 0 0/22px 20px; box-shadow: inset 0 14px 26px rgba(255,255,255,.28), inset 0 -16px 30px rgba(40,70,20,.18);
}
.famille a { position: relative; z-index: 1; display: block; text-decoration: none; transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.famille a:hover { transform: translateY(-14px) rotate(-2deg); }
.famille { --u: min(330px, 27vw); }
.famille img { height: calc(var(--u) * var(--k)); width: auto; filter: drop-shadow(0 16px 12px rgba(30, 50, 15, .35)); }
.famille .nom {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 6px); opacity: 0; white-space: nowrap;
  padding: 7px 12px; border-radius: 12px; background: var(--cacao); color: #fff; font: 600 .86rem/1 var(--corps); transition: .2s; pointer-events: none;
}
.famille a:hover .nom, .famille a:focus-visible .nom { opacity: 1; transform: translate(-50%, 0); }

.persos-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin-top: 70px; }
.carte-perso {
  --c: var(--rose); position: relative; display: flex; flex-direction: column; padding: 18px 18px 22px; border-radius: var(--r);
  text-decoration: none; background: var(--papier); box-shadow: var(--ombre-douce); color: var(--texte); transition: transform .25s, box-shadow .25s;
}
.carte-perso:hover { transform: translateY(-6px); box-shadow: var(--ombre); color: var(--texte); }
.carte-perso .patch { --rayon: 22px; --couture: 7px; border-radius: 22px; aspect-ratio: 1; display: grid; place-items: end center; overflow: hidden; margin-bottom: 16px; }
.carte-perso .patch img { width: 86%; margin-bottom: -6%; transition: transform .4s cubic-bezier(.3,1.6,.5,1); filter: drop-shadow(0 12px 10px rgba(67,38,26,.25)); }
.carte-perso:hover .patch img { transform: translateY(-6px) scale(1.04); }
.carte-perso h3 { margin: 0 0 4px; }
.carte-perso p { margin: 0; font-size: .95rem; color: var(--doux); }

/* ---------- cartes chansons ---------- */
.chansons-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 30px 26px; }
.carte-chanson { display: flex; position: relative; flex-direction: column; text-decoration: none; color: var(--texte); }
.carte-chanson .vignette { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sable); box-shadow: var(--ombre-douce); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.carte-chanson .vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.carte-chanson:hover .vignette { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--ombre); }
.carte-chanson:hover .vignette img { transform: scale(1.04); }
.carte-chanson .etiquette { position: absolute; left: 12px; top: 12px; }
.carte-chanson .num { font: 600 .8rem/1 var(--corps); letter-spacing: .12em; text-transform: uppercase; color: var(--doux); margin: 18px 0 8px; }
.carte-chanson h3 { margin: 0 0 8px; transition: color .2s; }
.carte-chanson:hover h3 { color: var(--rose-f); }
.carte-chanson p { margin: 0; color: var(--doux); font-size: .98rem; }
.carte-chanson .sortie { margin-top: 10px; font-size: .9rem; color: var(--jaune-f); font-weight: 600; }
.carte-chanson .sortie[hidden] { display: none; }

.une { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); align-items: center; margin-bottom: 70px; }
.une .fenetre { --c: var(--bleu); transform: rotate(-.8deg); }

/* ---------- l'écosystème Tricoti ---------- */
.univers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pilier { --rayon: 32px; --couture: 10px; position: relative; display: flex; flex-direction: column; border-radius: 32px; padding: 30px 28px 32px; color: var(--cacao); overflow: hidden; min-height: 100%; }
.pilier .visuel { margin: -6px -4px 24px; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255,255,255,.4); display: grid; place-items: end center; }
.pilier .visuel video, .pilier .visuel > img.plein { width: 100%; height: 100%; object-fit: cover; }
.pilier .visuel .peluches { display: flex; align-items: flex-end; justify-content: center; gap: 0; width: 100%; padding: 0 6%; }
.pilier .visuel .peluches { --u: min(240px, 52vw); }
.pilier .visuel .peluches img { height: calc(var(--u) * var(--k)); width: auto; margin: 0 -2.5%; filter: drop-shadow(0 12px 10px rgba(67,38,26,.3)); }
.pilier .etiquette { align-self: flex-start; }
.pilier h3 { margin: 12px 0 10px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.pilier p { color: var(--cacao); opacity: .86; }
.pilier .bouton { margin-top: auto; align-self: flex-start; }

/* ---------- bandeau parents ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.duo-inverse > :first-child { order: 2; }
.valeurs { display: grid; gap: 16px; margin: 26px 0 0; padding: 0; list-style: none; }
.valeurs li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.valeurs .pastille { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; box-shadow: inset 0 -4px 8px rgba(67,38,26,.15), inset 0 3px 6px rgba(255,255,255,.5); }
.valeurs strong { display: block; font: 600 1.15rem/1.2 var(--titre); margin-bottom: 3px; }
.valeurs span { color: var(--doux); font-size: .98rem; }

/* ---------- pages intérieures ---------- */
.tete-page { position: relative; padding: clamp(40px, 6vw, 90px) 0 clamp(70px, 8vw, 110px); overflow: hidden; }
.tete-page::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 90% 10%, color-mix(in srgb, var(--c, var(--jaune)) 45%, transparent), transparent 70%), url('/assets/img/maille-creme.svg') 0 0/22px 20px; }
.tete-page .chapo { margin-top: 10px; }
.fil-ariane { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--doux); }
.fil-ariane li + li::before { content: '›'; margin-right: 6px; color: var(--trait); }
.fil-ariane a { color: var(--doux); text-decoration: none; }
.fil-ariane a:hover { color: var(--cacao); text-decoration: underline; }

/* page d'une chanson */
.chanson-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(26px, 4vw, 64px); align-items: center; }
.lecteur { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--ombre); }
.lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecteur .facade { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.lecteur .facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; }
.lecteur .facade:hover img { transform: scale(1.02); filter: brightness(1.04); }
.lecteur .rond {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 94px; height: 94px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rouge) var(--maille) 0 0/22px 20px; color: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.55), 0 18px 30px -10px rgba(0,0,0,.55);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.lecteur .facade:hover .rond, .lecteur .facade:focus-visible .rond { transform: scale(1.08); }
.lecteur .rond svg { width: 34px; height: 34px; margin-left: 5px; }
.lecteur .bientot { position: absolute; inset: auto 14px 14px 14px; padding: 14px 18px; border-radius: 16px; background: rgba(255,253,248,.95); color: var(--cacao); font-weight: 600; text-align: center; }
.lecteur .bientot[hidden] { display: none; }
.note-lecteur { margin-top: 12px; font-size: .84rem; color: var(--doux); }
.infos-chanson { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.infos-chanson li { padding: 8px 14px; border-radius: 999px; background: var(--papier); box-shadow: inset 0 0 0 1px var(--trait); font-size: .9rem; color: var(--doux); }

.colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.gestes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: g; }
.gestes li { counter-increment: g; position: relative; padding: 16px 18px 16px 66px; border-radius: 18px; background: var(--papier); box-shadow: var(--ombre-douce); }
.gestes li::before {
  content: counter(g); position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 600 1rem/1 var(--titre); color: var(--cacao); background: var(--c, var(--jaune)) var(--maille) 0 0/14px 13px; box-shadow: inset 0 -3px 5px rgba(67,38,26,.16);
}
.paroles { --rayon: 30px; position: relative; columns: 2 300px; column-gap: 56px; padding: clamp(26px, 4vw, 48px); border-radius: 30px; background: var(--papier) url('/assets/img/maille-creme.svg') 0 0/22px 20px; box-shadow: var(--ombre-douce); }
.paroles::before { content: ''; position: absolute; inset: 10px; border: 2px dashed var(--trait); border-radius: 22px; pointer-events: none; }
.paroles .strophe { position: relative; break-inside: avoid; margin: 0 0 1.4em; font-size: 1.08rem; line-height: 1.75; color: var(--cacao); }
.paroles .strophe-refrain { padding-left: 18px; border-left: 4px solid var(--c, var(--rose)); font-weight: 560; }
.paroles .strophe-refrain::before { content: 'Refrain'; display: block; font: 650 .72rem/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin-bottom: 8px; }
.paroles .repond { color: var(--rose-f); font-weight: 600; }
.paroles-outils { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.paroles-outils h2 { margin: 0; }

.suivantes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; }

/* fiches personnages */
.fiche { --c: var(--rose); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); align-items: center; padding: clamp(50px, 6vw, 90px) 0; }
.fiche + .fiche { border-top: 2px dashed var(--trait); }
.fiche:nth-of-type(even) > .fiche-visuel { order: 2; }
.fiche-visuel { position: relative; }
.fiche-visuel .patch { --rayon: 50%; --couture: 14px; aspect-ratio: 1; border-radius: 50%; position: relative; }
.fiche-visuel .patch::after { border-radius: 50%; }
.fiche-visuel img { position: absolute; left: 50%; bottom: -4%; width: 82%; translate: -50% 0; filter: drop-shadow(0 26px 22px rgba(67,38,26,.32)); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.fiche-visuel:hover img { transform: translateY(-10px) rotate(-1.5deg); }
.fiche .role { font: 650 .82rem/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin-bottom: 14px; }
.fiche h2 { margin-bottom: 18px; }
.bulle { position: relative; display: inline-block; margin: 8px 0 18px; padding: 14px 20px; border-radius: 22px 22px 22px 6px; background: var(--c) var(--maille) 0 0/22px 20px; color: var(--cacao); font: 600 1.12rem/1.3 var(--titre); box-shadow: inset 0 -4px 8px rgba(67,38,26,.12); }
.vu-dans { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.vu-dans a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--papier); box-shadow: inset 0 0 0 1.5px var(--trait); color: var(--cacao); text-decoration: none; font-size: .9rem; font-weight: 550; }
.vu-dans a:hover { box-shadow: inset 0 0 0 2px var(--c); }

/* peluches */
.vitrine { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 26px; }
.peluche { position: relative; border-radius: var(--r); background: var(--papier); box-shadow: var(--ombre-douce); padding: 16px 16px 22px; text-align: center; }
.peluche .socle { --rayon: 22px; --couture: 7px; border-radius: 22px; aspect-ratio: 4 / 5; display: grid; place-items: end center; overflow: hidden; margin-bottom: 16px; }
.peluche .socle img { width: 90%; margin-bottom: 4%; filter: drop-shadow(0 16px 12px rgba(67,38,26,.28)); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.peluche:hover .socle img { transform: translateY(-8px) rotate(2deg); }
.peluche h3 { margin: 0 0 6px; font-size: 1.35rem; }
.peluche p { margin: 0; color: var(--doux); font-size: .92rem; }
.peluche .etiquette { position: absolute; top: 26px; right: 26px; z-index: 2; }

.engagements { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.engagements li { padding: 26px 24px; border-radius: 24px; background: var(--papier); box-shadow: var(--ombre-douce); }
.engagements .pastille { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; box-shadow: inset 0 -4px 8px rgba(67,38,26,.15), inset 0 3px 6px rgba(255,255,255,.5); }
.engagements h3 { font-size: 1.25rem; margin-bottom: 8px; }
.engagements p { margin: 0; color: var(--doux); font-size: .97rem; }

/* jeux éducatifs */
.activites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.activites li { --rayon: 24px; --couture: 8px; border-radius: 24px; padding: 26px 22px 24px; color: var(--cacao); min-height: 170px; }
.activites .ico { font-size: 2rem; line-height: 1; margin-bottom: 14px; display: block; }
.activites strong { display: block; font: 600 1.2rem/1.2 var(--titre); margin-bottom: 6px; }
.activites span { font-size: .95rem; opacity: .88; }
.ecrans { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 10px; }
.ecran-appareil { background: var(--cacao); padding: 10px; border-radius: 22px; box-shadow: var(--ombre); }
.ecran-appareil .dalle { border-radius: 14px; overflow: hidden; background: var(--ciel); display: grid; place-items: end center; }
.ecran-pc { width: 56%; } .ecran-pc .dalle { aspect-ratio: 16 / 10; }
.ecran-tablette { width: 30%; border-radius: 20px; } .ecran-tablette .dalle { aspect-ratio: 3 / 4; }
.ecran-tel { width: 15%; border-radius: 18px; padding: 6px; } .ecran-tel .dalle { aspect-ratio: 9 / 19; border-radius: 12px; }
.ecran-appareil video, .ecran-appareil .dalle > img { width: 100%; height: 100%; object-fit: cover; }

/* textes longs (parents, légal) */
.texte h2 { margin-top: 1.6em; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.texte h2:first-child { margin-top: 0; }
.texte ul { padding-left: 1.2em; }
.texte li { margin-bottom: .45em; }
.texte li::marker { color: var(--rose-f); }
.encart { --rayon: 26px; position: relative; padding: 26px 28px; border-radius: 26px; background: var(--papier); box-shadow: var(--ombre-douce); margin: 26px 0; }
.encart > :last-child { margin-bottom: 0; }

.contact-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.contact-cartes article { --rayon: 28px; --couture: 9px; border-radius: 28px; padding: 32px 28px; color: var(--cacao); }
.contact-cartes h3 { margin-bottom: 10px; }
.contact-cartes p { opacity: .9; }

.appel { --c: var(--jaune); --rayon: 40px; --couture: 12px; border-radius: 40px; padding: clamp(36px, 6vw, 70px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; overflow: hidden; position: relative; }
.appel h2 { margin-bottom: 10px; }
.appel p { margin: 0; color: var(--cacao); opacity: .85; font-size: 1.1rem; max-width: 34em; }
.appel .actions { margin: 0; }

/* ---------- pied de page ---------- */
.pied { position: relative; margin-top: 0; background: #4a2d20; color: #f4e6d6; padding: 0 0 36px; }
.pied::before { content: ''; display: block; height: 30px; background-color: #5b3828; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 8px, rgba(0,0,0,.18) 8px 10px, rgba(255,255,255,0) 10px 16px); box-shadow: inset 0 -6px 10px rgba(0,0,0,.2); }
.pied-grille { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding: 60px 0 40px; }
.pied img { width: 170px; margin-bottom: 18px; }
.pied p { color: #e9d5c0; font-size: .95rem; }
.pied h3 { color: #fff; font: 650 .82rem/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; margin: 8px 0 18px; }
.pied ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pied a { color: #f4e6d6; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px dashed rgba(255,255,255,.2); font-size: .86rem; color: #d7c0aa; }

/* ---------- apparition douce ---------- */
.apparait { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.apparait.vu { opacity: 1; transform: none; }
.sans-js .apparait { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.perdu { text-align: center; padding: clamp(60px, 10vw, 140px) 0; }
.perdu .actions { justify-content: center; }
.perdu img { width: min(280px, 60vw); margin: 0 auto 30px; filter: drop-shadow(0 20px 18px rgba(67,38,26,.3)); animation: balance 4s ease-in-out infinite; transform-origin: 50% 100%; }

/* ---------- tablettes et téléphones ---------- */
@media (max-width: 1020px) {
  .heros-grille, .chanson-tete, .une, .duo, .colonnes, .fiche { grid-template-columns: minmax(0, 1fr); }
  .heros-grille .scene { order: -1; max-width: 680px; margin-inline: auto; width: 100%; }
  .fiche:nth-of-type(even) > .fiche-visuel { order: 0; }
  .fiche-visuel { max-width: 420px; width: 100%; margin-inline: auto; }
  .duo-inverse > :first-child { order: 0; }
  .univers { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .appel { grid-template-columns: minmax(0, 1fr); }
  .pays figure:nth-child(n) { grid-column: span 3; }
  .pays figure:nth-child(5) { grid-column: span 6; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .conteneur, .etroit, .moyen { width: calc(100% - 32px); }
  .entete-int { height: 72px; }
  .menu { inset: 72px 0 auto 0; }
  html { scroll-padding-top: 84px; }
  .marque img { width: 124px; }
  .scene { padding: 10px 4px 30px 14px; }
  .fenetre { padding: 11px; --couture: 6px; border-radius: 30px; --rayon: 30px; }
  .fenetre .ecran { border-radius: 19px; }
  .pays { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pays figure:nth-child(n) { grid-column: auto; }
  .famille { gap: 0; padding-top: 30px; }
  .persos-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 50px; }
  .carte-perso { padding: 12px 12px 16px; border-radius: 22px; }
  .carte-perso h3 { font-size: 1.15rem; }
  .carte-perso p { font-size: .85rem; }
  .pied-grille { grid-template-columns: 1fr; gap: 26px; }
  .actions .bouton { flex: 1 1 100%; }
  .pilier { padding: 22px 20px 26px; }
  .gestes li { padding-left: 60px; }
  .ecran-tel { width: 18%; }
  .scene .tico-sort { left: -3%; bottom: -5%; width: 25%; }
  .scene .pip-sort { right: -1%; top: -9%; width: 17%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .apparait { opacity: 1; transform: none; }
}

@media print {
  .entete, .pied, .lecteur, .note-lecteur, .actions, .suivantes, .tete-page::before, .paroles-outils .bouton, .ne-pas-imprimer { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .paroles { box-shadow: none; background: #fff; }
  .section { padding: 12pt 0; }
}

/* couleurs par classe, en dernier pour l'emporter sur les couleurs par défaut des composants ; (pas de style en ligne : la politique de sécurité du site les interdit) */
.c-rose { --c: var(--rose); --f: var(--rose-f); } .c-jaune { --c: var(--jaune); --f: var(--jaune-f); }
.c-bleu { --c: var(--bleu); --f: var(--bleu-f); } .c-vert { --c: var(--vert); --f: var(--vert-f); }
.c-violet { --c: var(--violet); --f: var(--violet-f); } .c-orange { --c: var(--orange); --f: var(--orange-f); }
.c-corail { --c: var(--corail); --f: var(--corail-f); } .c-brume { --c: var(--brume); --f: var(--brume-f); }
.c-pre { --c: var(--pre); --f: var(--vert-f); }
.d1 { --d: .08s; } .d2 { --d: .16s; } .d3 { --d: .24s; } .d4 { --d: .32s; } .d5 { --d: .4s; } .d6 { --d: .48s; } .d7 { --d: .56s; }
/* vraies tailles des personnages (hauteur du modèle 3D, Papa = 1) */
.k-papa { --k: 1; } .k-filou { --k: .926; } .k-maman { --k: .9; } .k-mamie { --k: .839; } .k-tico { --k: .597; } .k-pip { --k: .459; } .k-pistache { --k: .284; }

