/* Site public Sikôlo'o. Les jetons et les composants de base vivent dans socle.css. */

.cadre { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.cadre-etroit { width: min(780px, calc(100% - 2.5rem)); }

.passer {
  position: absolute; left: 1rem; top: -5rem; z-index: 60; padding: 0.6rem 1rem; border-radius: 999px;
  background: var(--jaune); color: var(--violet); font-weight: 600;
}
.passer:focus { top: 0.6rem; }

/* Barre ---------------------------------------------------------------- */
.barre {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent; transition: box-shadow var(--pose), border-color var(--pose);
}
.barre.defile { border-color: var(--ligne); box-shadow: 0 6px 20px rgba(60, 23, 102, 0.07); }
.barre-ligne { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.marque { display: inline-flex; margin-right: auto; }
.marque img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav-lien {
  display: inline-flex; align-items: center; gap: 0.25rem; min-height: 44px; padding: 0.4rem 0.85rem;
  border: 0; border-radius: 999px; background: none; color: var(--encre);
  font: 600 0.93rem/1.2 var(--texte); text-decoration: none; cursor: pointer;
  transition: background-color var(--vif), color var(--vif);
}
.nav-lien:hover, .nav-lien[aria-expanded="true"] { background: var(--lilas); color: var(--violet); }
.nav-lien[aria-current="page"] { color: var(--violet); box-shadow: inset 0 -3px 0 var(--jaune); border-radius: 8px 8px 0 0; }
.nav-lien .ico { width: 1em; height: 1em; transition: transform var(--vif); }
.nav-lien[aria-expanded="true"] .ico { transform: rotate(180deg); }
.deroule { position: relative; }
.sous {
  display: none; position: absolute; top: 100%; left: 0; z-index: 35; min-width: 15rem; padding-top: 8px;
}
.sous-corps { display: grid; padding: 0.5rem; border: 1px solid var(--ligne); border-radius: var(--rayon); background: #fff; box-shadow: var(--ombre); }
.deroule.ouvert .sous { display: block; }
.deroule.ouvert .sous-corps { animation: entree var(--vif) var(--courbe); }
.sous a {
  display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.4rem 0.7rem; border-radius: 10px;
  color: var(--encre); font-weight: 500; font-size: 0.93rem; text-decoration: none;
}
.sous a:hover { background: var(--brume); color: var(--violet); }
.sous a .ico { color: var(--violet-vif); }
.bouton-menu { display: none; }

/* Ouverture ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--brume); }
.hero-fond { position: absolute; inset: 0; pointer-events: none; }
.hero-grille {
  position: relative; display: grid; gap: 2.5rem; align-items: center;
  width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; padding-block: clamp(2.2rem, 6vw, 4.6rem);
}
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); margin: 1rem 0 1.1rem; }
.hero h1 em { position: relative; z-index: 0; font-style: normal; color: var(--rose); }
.hero-pont { max-width: 34rem; font-size: 1.1rem; color: var(--muet); margin-bottom: 1.6rem; }
.reperes { display: flex; flex-wrap: wrap; gap: 0.8rem; list-style: none; padding: 0; margin: 1.8rem 0 0; }
.reperes li { display: grid; padding: 0.6rem 1rem; border-radius: var(--rayon-s); background: #fff; border: 1px solid var(--ligne); min-width: 6.5rem; }
.reperes strong { font: 800 1.5rem/1.1 var(--titre); color: var(--violet); }
.reperes span { font-size: 0.8rem; color: var(--muet); }
.reperes-clairs li { background: #fff; }
.hero-visuel { position: relative; justify-self: center; width: min(100%, 400px); }
.hero-couverture { border-radius: 24px; overflow: hidden; transform: rotate(1.5deg) rotateX(var(--ix, 0deg)) rotateY(var(--iy, 0deg)); transition: transform 320ms var(--courbe); box-shadow: var(--ombre-forte); background: var(--violet); }
.hero-couverture img { width: 100%; }
.hero-carte {
  position: absolute; left: -0.6rem; bottom: -1.2rem; display: grid; gap: 0.45rem; justify-items: start; width: min(17rem, 80%);
  padding: 1rem 1.1rem; border-radius: var(--rayon); background: var(--violet-nuit); color: #fff; text-decoration: none;
  box-shadow: var(--ombre-forte); transition: transform var(--pose) var(--courbe);
}
.hero-carte:hover { transform: translateY(-4px); }
.hero-carte strong { font: 700 1.05rem/1.25 var(--titre); }
.hero-carte-suite { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--jaune); font-weight: 600; }

.decor { position: absolute; display: block; pointer-events: none; }
.decor-anneau { width: 240px; height: 240px; right: -70px; top: -80px; border-radius: 50%; border: 34px solid var(--cyan-pale); }
.decor-disque { width: 64px; height: 64px; left: 46%; bottom: 9%; border-radius: 50%; background: var(--jaune); }
.decor-points {
  width: 150px; height: 110px; left: -30px; top: 16%;
  background-image: radial-gradient(var(--rose) 2.2px, transparent 2.6px); background-size: 18px 18px; opacity: 0.35;
}

/* Tuiles du nom -------------------------------------------------------- */
.bande-nom { padding: 1.6rem 0 0.4rem; }
.bande-nom-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.9rem; }
.lien-fleche { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.lien-fleche .ico, .suite .ico { transition: transform var(--vif) var(--courbe); }
.lien-fleche:hover .ico, a:hover .suite .ico, .fiche:hover .suite .ico { transform: translateX(4px); }
.tuiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.7rem; list-style: none; padding: 0; margin: 0; }
.tuile {
  position: relative; display: grid; padding: 0.65rem 1rem 0.75rem; margin-bottom: 12px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--cyan); color: var(--cyan);
  transition: transform var(--vif) var(--courbe), box-shadow var(--vif);
}
/* Chaque tuile est une bulle : le mot est dit dans sa langue. */
.tuile::after {
  content: ""; position: absolute; left: 18px; bottom: -9px; width: 14px; height: 14px; background: #fff;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) skew(8deg, 8deg);
}
.tuile:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.tuile-jaune { border-color: #e2cf1f; color: #e2cf1f; }
.tuile-rose { border-color: var(--rose); color: var(--rose); }
.tuile strong { font: 800 1.25rem/1.15 var(--titre); color: var(--violet); }
.tuile span { font-size: 0.78rem; color: var(--muet); }

/* Blocs ---------------------------------------------------------------- */
.bloc { padding-block: clamp(2.6rem, 6vw, 4.4rem); scroll-margin-top: 80px; }
.bloc-brume { background: var(--brume); }
.bloc-tete { padding-top: clamp(1.6rem, 4vw, 2.6rem); }
.tete { margin-bottom: 1.5rem; }
.tete h1, .tete h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); margin-top: 0.7rem; max-width: 26ch; }
.tete h1::after, .tete h2::after {
  content: ""; display: block; width: 78px; height: 7px; margin-top: 0.8rem;
  background: radial-gradient(circle at 3.5px 50%, var(--cyan) 3.5px, transparent 4px), linear-gradient(90deg, transparent 14px, var(--jaune) 14px, var(--jaune) 50px, transparent 50px), radial-gradient(circle at 74.5px 50%, var(--rose) 3.5px, transparent 4px);
  border-radius: 4px;
}
.tete .chapo, .chapo { color: var(--muet); max-width: 42rem; margin: 0.9rem 0 0; }
.tete-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.tete-ligne .tete { margin-bottom: 0; }
.bloc-suite { margin: 1.5rem 0 0; }
.grille-3, .grille-4 { display: grid; gap: 1.2rem; }

.etape { padding: 1.4rem; border-radius: var(--rayon); background: var(--brume); border: 1px solid var(--ligne); }
.etape-rang { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50% 50% 50% 8px; background: var(--cyan); color: var(--violet-nuit); font: 800 1.05rem var(--titre); }
.etape:nth-child(3n + 2) .etape-rang { background: var(--jaune); }
.etape:nth-child(3n) .etape-rang { background: var(--rose); color: #fff; }
.etape { background: #fff; }
.etape h3 { font-size: 1.12rem; margin: 0.9rem 0 0.4rem; }
.etape p { margin: 0.7rem 0 0; font-size: 0.95rem; color: var(--muet); }
.etape h3 + p { margin-top: 0; }
.etape-nuit { background: var(--violet); border-color: var(--violet); }
.etape-nuit h3 { color: #fff; }
.etape-nuit p { color: rgba(255, 255, 255, 0.86); }
.etape-nuit .etape-rang { background: var(--jaune); color: var(--violet); }

.axe { display: grid; gap: 1.4rem; align-items: center; margin-top: 1.2rem; padding: 1.1rem; border-radius: 24px; background: #fff; border: 1px solid var(--ligne); }
.axe-visuel { margin: 0; }
.axe-visuel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.axe-texte { padding: 0.2rem 0.4rem 0.6rem; }
.axe-texte h3 { font-size: 1.6rem; }
.axe-texte .chapo { font-weight: 500; color: var(--encre); margin: 0.6rem 0 0.8rem; }
.axe-texte p { color: var(--muet); }

.signature, .fiche {
  position: relative; display: grid; align-content: start; overflow: hidden; border-radius: var(--rayon); background: #fff;
  border: 1px solid var(--ligne); color: var(--encre); text-decoration: none;
  transition: transform var(--pose) var(--courbe), box-shadow var(--pose);
}
.signature:hover, .fiche:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.signature-visuel { display: block; background: var(--lilas); }
.signature-visuel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.signature-corps { display: grid; gap: 0.6rem; justify-items: start; padding: 1rem 1.1rem 1.2rem; }
.signature-texte { font-size: 0.92rem; color: var(--muet); }
.suite { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; color: var(--violet); }

.fiche-visuel { position: relative; aspect-ratio: 16 / 10; background: var(--lilas); }
.fiche-visuel img { width: 100%; height: 100%; object-fit: cover; }
.fiche-visuel .etiquette { position: absolute; left: 0.7rem; top: 0.7rem; }
.fiche-visuel .fiche-une { left: auto; right: 0.7rem; }
.fiche-corps { display: grid; padding: 1rem 1.1rem 1.1rem; }
.fiche-meta { margin: 0 0 0.3rem; font-size: 0.78rem; color: var(--muet); }
.fiche h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.fiche h3 a { color: inherit; text-decoration: none; }
.fiche h3 a::after { content: ""; position: absolute; inset: 0; }
.fiche-corps > p { font-size: 0.92rem; color: var(--muet); }
.fiche-pied { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.2rem 0 0; }
.compteurs { display: inline-flex; gap: 0.8rem; font-size: 0.8rem; color: var(--muet); }
.compteurs span { display: inline-flex; align-items: center; gap: 0.25rem; }
.compteurs .ico { width: 1rem; height: 1rem; }

.onglets + [data-panneau], .onglets + .grille-3 { margin-top: 1.2rem; }
[data-onglets] > .grille-3 { margin-top: 1.2rem; }

/* Vitrine du feuilleton ------------------------------------------------ */
.vitrine {
  position: relative; overflow: hidden; display: grid; gap: 2rem; align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem); border-radius: 28px; background: var(--violet); color: rgba(255, 255, 255, 0.9);
}
.vitrine h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0.8rem 0 0.7rem; }
.vitrine-couverture { margin: 0; justify-self: center; width: min(100%, 300px); transform: rotate(-3deg); }
.vitrine-couverture img { width: 100%; border-radius: var(--rayon); box-shadow: var(--ombre-forte); }
.vitrine-texte { position: relative; }
.apercus { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0; }
.apercu {
  position: relative; width: 62px; height: 82px; overflow: hidden; border-radius: 10px; background: #fff;
  transition: transform var(--vif) var(--courbe);
}
.apercu:hover { transform: translateY(-4px) rotate(-2deg); }
.apercu img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.apercu span, .vignette span {
  position: absolute; right: 3px; bottom: 3px; min-width: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--violet-nuit); color: #fff; font: 700 0.68rem/18px var(--titre); text-align: center;
}
.prix { display: flex; align-items: baseline; gap: 0.5rem; margin: 0 0 1rem; }
.prix strong { font: 800 1.6rem var(--titre); color: var(--jaune); }
.prix span { font-size: 0.85rem; opacity: 0.8; }

/* Échanges ------------------------------------------------------------- */
.duo { display: grid; gap: 1.4rem; align-items: start; }
.mur { display: grid; gap: 0.8rem; }
.parole { margin: 0; padding: 1rem 1.1rem; border-radius: var(--rayon); background: #fff; border: 1px solid var(--ligne); }
.parole p { margin: 0 0 0.7rem; overflow-wrap: anywhere; }
.parole footer { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; color: var(--muet); }
.parole footer strong { color: var(--encre); }
.pastille { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lilas); color: var(--violet); font: 700 0.85rem var(--titre); }
.carte-form { padding: 1.2rem; border-radius: var(--rayon); background: #fff; border: 1px solid var(--ligne); box-shadow: 0 6px 18px rgba(60, 23, 102, 0.05); }
.aide { display: flex; align-items: flex-start; gap: 0.4rem; margin: 0; }
.aide .ico { margin-top: 0.15em; }
.decompte { justify-self: end; font-weight: 400; font-size: 0.78rem; color: var(--muet); }

.echanges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; padding: 1.2rem 0; border-top: 1px solid var(--ligne); scroll-margin-top: 90px; }
.aime .compte { min-width: 1.6rem; padding: 0 0.45rem; border-radius: 999px; background: var(--lilas); font-size: 0.8rem; line-height: 1.5rem; text-align: center; }
.aime[aria-pressed="true"] { background: var(--rose-pale); border-color: var(--rose); color: #a3155a; }
.aime[aria-pressed="true"] .ico { fill: currentColor; }
.aime[aria-pressed="true"] .compte { background: #fff; }
.aime.battement .ico { animation: battement 320ms var(--courbe); }
.paroles { margin-top: 0.6rem; scroll-margin-top: 90px; }
.paroles > h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.4rem; margin-bottom: 1rem; }
.paroles > h2 .compte { padding: 0 0.6rem; border-radius: 999px; background: var(--lilas); font-size: 0.85rem; line-height: 1.7rem; }

.appel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.3rem, 4vw, 2.4rem); border-radius: 24px; background: var(--jaune-pale);
}
.appel h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: 0.7rem; }

/* Salle ---------------------------------------------------------------- */
.recherche { display: flex; gap: 0.5rem; flex: 1 1 18rem; max-width: 28rem; }
.recherche .saisie { flex: 1; min-width: 0; }
.puces { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.7rem 0 1.5rem; }
.puce {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0.3rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--ligne); background: #fff; color: var(--muet); font: 500 0.86rem var(--texte); text-decoration: none; cursor: pointer;
  transition: background-color var(--vif), border-color var(--vif), color var(--vif);
}
.puce:hover { border-color: var(--violet-vif); color: var(--violet); }
.puce[aria-current="true"], .puce[aria-pressed="true"] { background: var(--lilas); border-color: var(--violet-vif); color: var(--violet); font-weight: 600; }
.puce .ico { width: 1rem; height: 1rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; color: var(--muet); }

/* Lecture -------------------------------------------------------------- */
.lien-retour { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin-bottom: 0.6rem; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.lien-retour:hover .ico { transform: translateX(-3px); }
.lien-retour .ico { transition: transform var(--vif); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; }
a.etiquette { text-decoration: none; }
.article h1, .feuilleton h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0.9rem 0 1.1rem; font-size: 0.88rem; color: var(--muet); }
.meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.article .chapo { font-size: 1.15rem; font-weight: 500; color: var(--encre); margin: 0 0 1.2rem; max-width: none; }
.figure-large { margin: 1.4rem 0; }
.figure-large img { width: 100%; max-height: 30rem; object-fit: cover; border-radius: var(--rayon); }
.prose { font-size: 1.04rem; line-height: 1.75; }
.prose h3 { font-size: 1.3rem; margin: 1.7rem 0 0.6rem; }
.prose a { overflow-wrap: anywhere; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.origines { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.7rem; list-style: none; padding: 0 !important; }
.origines li { display: grid; padding: 0.7rem 0.9rem; border-radius: 14px; background: var(--brume); border-top: 4px solid var(--jaune); }
.origines li:nth-child(3n + 1) { border-top-color: var(--cyan); }
.origines li:nth-child(3n) { border-top-color: var(--rose); }
.origines strong { font: 800 1.1rem var(--titre); color: var(--violet); }
.origines span { font-size: 0.8rem; color: var(--muet); }

.ecran { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin: 1.2rem 0 0.5rem; border-radius: var(--rayon); background: var(--violet-nuit); }
.ecran > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.ecran iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ecran-bouton {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.7rem; width: 100%;
  border: 0; background: none; color: #fff; font: 600 1rem var(--texte); cursor: pointer;
}
.ecran-rond { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--jaune); color: var(--violet); transition: transform var(--pose) var(--courbe); }
.ecran-rond .ico { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.ecran-bouton:hover .ecran-rond { transform: scale(1.08); }
.audio { margin: 1rem 0 1.4rem; padding: 1rem 1.1rem; border-radius: var(--rayon); background: var(--brume); border: 1px solid var(--ligne); }
.audio-titre { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.6rem; font-weight: 600; color: var(--violet); }
.audio audio { width: 100%; }
.vitesses { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.vitesses > span { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; color: var(--muet); margin-right: 0.3rem; }

.page-duo { display: grid; gap: 2rem; align-items: start; }
.page-visuel { position: relative; margin: 0; }
.page-visuel img { position: relative; width: 100%; border-radius: 24px; box-shadow: var(--ombre); }
.page-visuel .decor-points { left: auto; right: -18px; top: -22px; }

.produit { display: grid; gap: 1.8rem; align-items: center; margin-top: 1.2rem; padding: clamp(1.2rem, 3vw, 2.2rem); border-radius: 24px; background: var(--brume); }
.produit-visuel { margin: 0; justify-self: center; width: min(100%, 340px); }
.produit-visuel img { width: 100%; border-radius: var(--rayon); box-shadow: var(--ombre-forte); }
.produit-texte h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.produit-texte .reperes { margin: 1.1rem 0; }

.coordonnees { display: grid; gap: 0.8rem; list-style: none; padding: 0; margin: 0; }
.coordonnees li { display: flex; align-items: flex-start; gap: 0.9rem; padding: 1rem 1.1rem; border-radius: var(--rayon); background: var(--brume); }
.coordonnees .ico { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; color: var(--violet-vif); }
.coordonnees strong { display: block; color: var(--violet); font-size: 0.85rem; }

.repli { margin-top: 1.4rem; border: 1px solid var(--ligne); border-radius: var(--rayon); background: #fff; }
.repli summary { display: flex; align-items: center; gap: 0.5rem; min-height: 50px; padding: 0.6rem 1rem; font-weight: 600; color: var(--violet); cursor: pointer; list-style: none; }
.repli summary::-webkit-details-marker { display: none; }
.repli-fleche { margin-left: auto; transition: transform var(--vif); }
.repli[open] .repli-fleche { transform: rotate(180deg); }
.repli .prose { padding: 0 1rem 0.6rem; }

/* Livre feuilletable --------------------------------------------------- */
.lecteur { margin-top: 1.2rem; padding: clamp(0.8rem, 2.4vw, 1.5rem); border-radius: 24px; background: var(--violet-nuit); color: #fff; }
.lecteur-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; }
.compteur { margin: 0; font: 700 1rem var(--titre); }
.lecteur .bouton-discret { color: #fff; }
.lecteur .bouton-discret:hover, .lecteur .bouton-discret[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); }
.vignettes { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.7rem 0.1rem; animation: entree var(--pose) var(--courbe); }
.vignette { position: relative; flex: none; width: 58px; height: 78px; padding: 0; overflow: hidden; border-radius: 8px; border: 3px solid transparent; background: #fffdf8; cursor: pointer; }
.vignette img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vignette[aria-current="true"] { border-color: var(--jaune); }
.scene-livre { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding-block: 0.9rem; }
.tourne {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.2rem; min-height: 48px; padding: 0.4rem 0.9rem;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.13); color: #fff; font: 600 0.9rem var(--texte); cursor: pointer;
  transition: background-color var(--vif), color var(--vif), transform var(--vif);
}
.tourne:hover:not([disabled]) { background: var(--jaune); color: var(--violet); }
.tourne:active:not([disabled]) { transform: scale(0.96); }
.tourne[disabled] { opacity: 0.3; cursor: default; }

.livre { display: grid; gap: 1rem; width: min(100%, 440px); margin-inline: auto; }
.page { position: relative; padding: 1rem; border-radius: 10px; background: #fffdf8; color: var(--encre); scroll-margin-top: 90px; }
.page-dessin { margin: 0 0 0.6rem; }
.page-dessin img { width: 100%; }
.page-texte { padding: 0.5rem 0.75rem; border: 2px solid var(--encre); border-radius: 14px; background: #fff; font-size: 0.86rem; line-height: 1.45; }
.page-texte p { margin: 0; }
.page-texte p + p { margin-top: 0.4rem; }
.page-texte-seul { border: 0; background: none; font-size: 1rem; }
.folio { position: absolute; right: 5%; bottom: 2%; font: 600 0.68rem var(--titre); color: var(--muet); }
.page-fin { display: grid; place-content: center; justify-items: center; gap: 0.5rem; padding: 1.4rem; text-align: center; background: var(--violet); color: rgba(255, 255, 255, 0.88); }
.page-fin h2 { color: #fff; font-size: 1.25rem; }
.page-fin p { margin: 0 0 0.4rem; font-size: 0.9rem; }
.page-fin-logo { width: min(62%, 190px); margin-bottom: 0.4rem; }
.page-fin .actions { justify-content: center; }
.page-fin .bouton { min-height: 44px; padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.page-fin .bouton-ligne { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.page-fin .bouton-ligne:hover { background: rgba(255, 255, 255, 0.12); }

.livre.pret { position: relative; display: block; perspective: 2400px; transition: transform 520ms var(--courbe); }
.livre.pret.simple { width: min(100%, 430px, calc(70dvh * 0.7167)); aspect-ratio: 43 / 60; }
.livre.pret.double { width: min(100%, 900px, calc(70dvh * 1.4333)); aspect-ratio: 86 / 60; }
.livre.double.ferme-debut { transform: translateX(-25%); }
.livre.double.ferme-fin { transform: translateX(25%); }
.feuille {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform-style: preserve-3d; transform-origin: left center;
  transition: transform 640ms cubic-bezier(0.3, 0.05, 0.2, 1); cursor: pointer;
}
.double .feuille { left: 50%; width: 50%; }
.feuille.tournee { transform: rotateY(-180deg); }
.simple .feuille.tournee { pointer-events: none; }
.livre.sans-anim, .livre.sans-anim .feuille { transition: none; }
.face {
  position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  container-type: inline-size; background: #fffdf8; border-radius: 4px 12px 12px 4px;
  box-shadow: inset 14px 0 20px -14px rgba(42, 15, 74, 0.28), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.verso { transform: rotateY(180deg); border-radius: 12px 4px 4px 12px; box-shadow: inset -14px 0 20px -14px rgba(42, 15, 74, 0.28), 0 8px 24px rgba(0, 0, 0, 0.25); }
.verso .folio { right: auto; left: 5%; }
.pret .page { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.5rem; height: 100%; padding: 4.5% 5% 7.5%; border-radius: 0; }
.pret .page-dessin { margin: 0; min-height: 0; height: 100%; }
.pret .page-dessin img { width: 100%; height: 100%; object-fit: contain; }
.pret .page-texte { max-height: 100%; overflow: auto; font-size: 0.8rem; font-size: clamp(0.72rem, 3.5cqi, 0.95rem); }
.pret .page-texte-seul { align-self: center; grid-row: 1 / -1; font-size: clamp(0.85rem, 4.4cqi, 1.15rem); }
.pret .page-fin { grid-template-rows: none; }
.page-blanche { background: #fffdf8; }

.progression { height: 5px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }
.progression span { display: block; height: 100%; border-radius: 3px; background: var(--jaune); transform-origin: left; transform: scaleX(var(--part, 0)); transition: transform 300ms var(--courbe); }
.lecteur-aide { margin-top: 0.7rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); }
.lecteur:fullscreen { display: grid; align-content: center; border-radius: 0; padding: 1rem clamp(1rem, 4vw, 3rem); overflow: auto; }
.lecteur:fullscreen .livre.pret.simple { width: min(100%, calc(80dvh * 0.7167)); }
.lecteur:fullscreen .livre.pret.double { width: min(100%, calc(80dvh * 1.4333)); }

/* Pied ----------------------------------------------------------------- */
.pied { background: var(--violet-nuit); color: rgba(255, 255, 255, 0.82); font-size: 0.93rem; }
.pied-grille { padding-top: 2.4rem; }
.pied-grille { display: grid; gap: 2rem; }
.pied h2 { margin-bottom: 0.8rem; font: 700 0.74rem var(--titre); letter-spacing: 0.14em; text-transform: uppercase; color: var(--jaune); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied nav li a { display: inline-flex; align-items: center; min-height: 36px; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied-marque img { width: 210px; height: auto; aspect-ratio: 375 / 132; }
.pied-marque p { margin-top: 1rem; max-width: 24rem; }
.pied-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pied-form .saisie { flex: 1 1 11rem; border-color: transparent; }
.pied .aide { margin: 0.6rem 0 1rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.62); }
.pied-contact li { display: flex; align-items: center; gap: 0.5rem; min-height: 34px; }
.pied-contact .ico { color: var(--jaune); }
.pied-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 2.2rem; padding-block: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.84rem; }
.pied-bas p { margin: 0; }
.pied-bas a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; color: rgba(255, 255, 255, 0.75); }

/* Annonces brèves ------------------------------------------------------ */
.annonces { position: fixed; left: 50%; bottom: 1rem; z-index: 70; display: grid; gap: 0.4rem; justify-items: center; width: max-content; max-width: calc(100% - 2rem); transform: translateX(-50%); }
.annonce { margin: 0; padding: 0.65rem 1.1rem; border-radius: 999px; background: var(--violet-nuit); color: #fff; font-weight: 500; font-size: 0.92rem; box-shadow: var(--ombre-forte); animation: entree var(--pose) var(--courbe); }
.annonce-erreur { background: var(--danger); }
.annonce.sortie { opacity: 0; transition: opacity var(--pose); }

/* Révélation au défilement --------------------------------------------- */
.js [data-revele] { opacity: 0; transform: translateY(16px); transition: opacity 320ms var(--courbe), transform 320ms var(--courbe); }
.js [data-revele].vu { opacity: 1; transform: none; }
.js [data-revele]:nth-child(2) { transition-delay: 60ms; }
.js [data-revele]:nth-child(3) { transition-delay: 120ms; }
.js [data-revele]:nth-child(4) { transition-delay: 180ms; }

@keyframes battement { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Motifs propres à Sikôlo'o ---------------------------------------------- */
.bloc, .hero { position: relative; overflow: hidden; overflow: clip; }
.bloc > .cadre { position: relative; z-index: 1; }
.motifs { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6; }
.motif { position: absolute; display: block; will-change: transform; }
.motif-corps { display: block; width: 100%; height: 100%; }
.motif svg, .objet svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ton-jaune, .objet-ampoule { color: var(--jaune); }
.ton-cyan, .objet-ankh { color: var(--cyan); }
.ton-rose, .objet-yin { color: var(--rose); }
.ton-lilas { color: #d9c9ec; }
.ton-blanc { color: rgba(255, 255, 255, 0.35); }

/* Éclat : les rayons de l'ampoule du logo */
/* Bulle de bande dessinée : trois points qui s'animent, comme une parole en train de naître */
/* Onde sonore des podcasts */
/* Passerelle : elle se construit quand la section arrive à l'écran */
.motif-passerelle .trace { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .motif-passerelle .trace { stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms 200ms var(--courbe); }
.js .motifs.vu .motif-passerelle .trace { stroke-dashoffset: 0; }
.js .motif-passerelle .haubans { opacity: 0; transition: opacity 600ms 1300ms; }
.js .motifs.vu .motif-passerelle .haubans { opacity: 1; }
/* Avion en papier */
/* Cases de bande dessinée */
.motifs-a .motif-eclat { width: 170px; height: 170px; right: -70px; top: -70px; }
.motifs-b .motif-passerelle { width: 340px; height: 94px; right: -40px; bottom: -6px; }
.motifs-c .motif-bulle { width: 72px; height: 62px; right: 3%; top: 30px; }
.bloc-tete > .motifs-a .motif-eclat { right: -90px; top: -90px; }
.motifs-hero .motif-passerelle { width: 360px; height: 100px; left: 30%; bottom: -12px; }
.motifs-hero .motif-ampoule { width: 46px; height: 50px; right: 3%; top: 26px; }
.motifs-hero .motif-ankh { width: 26px; height: 44px; left: 50%; top: 18%; }
.motifs-hero .motif-yin { width: 40px; height: 40px; left: 47%; bottom: 16%; }
.vitrine .motifs { border-radius: inherit; overflow: hidden; opacity: 0.35; }
.motifs-nuit .motif-eclat { width: 220px; height: 220px; right: -90px; bottom: -90px; }
.vitrine > figure, .vitrine > .vitrine-texte { position: relative; z-index: 1; }

/* Trame : disque de points */
.motif-trame .motif-corps { border-radius: 50%; background-image: radial-gradient(currentColor 3px, transparent 3.5px); background-size: 17px 17px; background-position: center; }
.motifs-a .motif-trame { width: 190px; height: 190px; left: -50px; bottom: -40px; }
.motifs-b .motif-trame { width: 170px; height: 170px; left: 3%; top: -50px; }
.motifs-c .motif-trame { width: 180px; height: 180px; left: -60px; bottom: 12%; }
.motifs-hero .motif-trame { width: 210px; height: 210px; right: -50px; bottom: -60px; }
.motifs-nuit .motif-trame { width: 150px; height: 150px; right: 32%; top: -60px; }
.bloc-tete > .motifs .motif-trame { left: auto; right: 4%; bottom: auto; top: 60%; }

/* Motifs animés : mouvements lents et de faible amplitude, à l'écran seulement. */
.motif-eclat .motif-corps { animation: tourne 60s linear infinite; }
.motif-trame .motif-corps { animation: trame 16s ease-in-out infinite; }
.motif-bulle .motif-corps { animation: flotte 9s ease-in-out infinite; }
.point-bulle { transform-box: fill-box; transform-origin: center; animation: sautille 2.4s ease-in-out infinite; }
.point-bulle:nth-child(2) { animation-delay: 0.25s; }
.point-bulle:nth-child(3) { animation-delay: 0.5s; }
.motif-ankh .motif-corps { animation: flotte 8s ease-in-out infinite; }
.motif-ampoule .motif-corps { animation: lueur 5s ease-in-out infinite; }
.motif-yin .motif-corps { animation: tourne 32s linear infinite; }
.motif-passerelle .motif-corps { animation: respire 14s ease-in-out infinite; }
.js .motifs:not(.actif) .motif-corps, .js .motifs:not(.actif) .point-bulle { animation-play-state: paused; }

/* Verre discret : quelques surfaces laissent deviner ce qui passe derrière. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .barre { background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
  .sous-corps { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .hero-carte { background: rgba(42, 15, 74, 0.74); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .reperes li { background: rgba(255, 255, 255, 0.6); border-color: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(60, 23, 102, 0.06); }
  .fiche-visuel .etiquette { background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .fiche-visuel .fiche-une { background: rgba(253, 230, 241, 0.82); }
  .retour-haut { background: rgba(60, 23, 102, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .vitrine .apercu span, .ecran-bouton > span:last-child { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .etape { background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .annonce { background: rgba(42, 15, 74, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (max-width: 980px) {
  .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Motifs identitaires ---------------------------------------------------- */
/* Frise géométrique : losanges et chevrons, aux couleurs du logo. */
.frise { display: block; height: 18px; background: var(--violet-nuit) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2264%22 height=%2218%22 viewBox=%220 0 64 18%22%3E%3Crect width=%2264%22 height=%2218%22 fill=%22%232a0f4a%22/%3E%3Cpath d=%22M16 2l9 7-9 7-9-7z%22 fill=%22none%22 stroke=%22%23f6e544%22 stroke-width=%221.8%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M16 6.2l3.6 2.8-3.6 2.8-3.600-2.800z%22 fill=%22%23e93389%22/%3E%3Cpath d=%22M34 3l7 6-7 6M42 3l7 6-7 6%22 fill=%22none%22 stroke=%22%231fa9dc%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2258%22 cy=%229%22 r=%221.800%22 fill=%22%23f6e544%22/%3E%3C/svg%3E") repeat-x center / 64px 18px; }
/* Le nom, dans les langues qui l'ont fait naître. */
.filigrane {
  margin: 2rem 0 0; white-space: nowrap;
  font: 800 clamp(1rem, 2.85vw, 2.15rem)/1.15 var(--titre); letter-spacing: 0.03em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}
@media (max-width: 700px) {
  /* Sur petit écran, les mots passent à la ligne plutôt que d'être coupés. */
  .filigrane { white-space: normal; font-size: 1.35rem; }
}
.filigrane span + span::before { content: "\00a0·\00a0"; }

/* Mouvement ------------------------------------------------------------- */
.hero h1 .mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero h1 .mot > span { display: inline-block; animation: monte 760ms var(--courbe) both; }
.hero h1 .mot:nth-child(2) > span { animation-delay: 120ms; }
.hero h1 .mot:nth-child(3) > span { animation-delay: 240ms; }
.hero h1 .mot:nth-child(4) > span { animation-delay: 360ms; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; z-index: -1; height: 0.26em; border-radius: 3px;
  background: var(--jaune); transform-origin: left; animation: trait 620ms 760ms var(--courbe) both;
}
.hero-texte > .etiquette { animation: entree 520ms var(--courbe) both; }
.hero-pont { animation: entree 620ms 380ms var(--courbe) both; }
.hero .actions { animation: entree 620ms 500ms var(--courbe) both; }
.hero .reperes { animation: entree 620ms 620ms var(--courbe) both; }
.hero-visuel { z-index: 0; perspective: 900px; animation: arrive 900ms 180ms var(--courbe) both; }
.hero-carte { animation: surgit 520ms 980ms var(--courbe) both; }
.vitrine-couverture { perspective: 900px; }
.vitrine-couverture > span { display: block; transform: rotateX(var(--ix, 0deg)) rotateY(var(--iy, 0deg)); transition: transform 320ms var(--courbe); }

.objet { display: inline-block; width: 26px; height: 26px; }
.objet-ankh { width: 17px; height: 28px; }

.defilement {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--jaune), var(--rose));
  transform-origin: left; transform: scaleX(var(--part, 0));
}
.retour-haut {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: inline-flex; align-items: center; gap: 0.3rem;
  min-height: 46px; padding: 0.4rem 0.95rem; border-radius: 999px; background: var(--violet); color: #fff;
  font-weight: 600; font-size: 0.88rem; text-decoration: none; box-shadow: var(--ombre-forte);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity var(--pose), transform var(--pose) var(--courbe), background-color var(--vif);
}
.retour-haut.visible { opacity: 1; transform: none; pointer-events: auto; }
.retour-haut:hover { background: var(--violet-vif); }
.retour-haut:hover .ico { transform: translateY(-3px); }
.retour-haut .ico { transition: transform var(--vif) var(--courbe); }

.js .tete h1::after, .js .tete h2::after { transform: scaleX(0); transform-origin: left; transition: transform 620ms 220ms var(--courbe); }
.js .tete.vu h1::after, .js .tete.vu h2::after { transform: none; }
.js [data-revele="gauche"] { transform: translateX(-30px); }
.js [data-revele="droite"] { transform: translateX(30px); }
.js [data-revele="zoom"] { transform: scale(0.95); }
.js [data-revele]:nth-child(5) { transition-delay: 240ms; }
.js [data-revele]:nth-child(6) { transition-delay: 300ms; }

.marque img { transition: transform 320ms var(--courbe); }
.marque:hover img { transform: scale(1.03); }
.bouton .ico { transition: transform var(--vif) var(--courbe); }
.bouton:hover .ico { transform: translateX(2px); }

.fiche-visuel, .signature-visuel { overflow: hidden; }
.fiche-visuel img, .signature-visuel img, .axe-visuel img { transition: transform 700ms var(--courbe); }
.fiche:hover .fiche-visuel img, .signature:hover .signature-visuel img { transform: scale(1.04); }
.axe-visuel { overflow: hidden; border-radius: var(--rayon); }
.axe:hover .axe-visuel img { transform: scale(1.04); }
.fiche::before, .signature::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 4px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left; transition: transform 360ms var(--courbe);
}
.fiche:nth-child(3n + 2)::before, .signature:nth-child(3n + 2)::before { background: var(--jaune); }
.fiche:nth-child(3n)::before, .signature:nth-child(3n)::before { background: var(--rose); }
.fiche:hover::before, .signature:hover::before { transform: none; }

.etapes { position: relative; }
.etape { position: relative; z-index: 1; transition: transform var(--pose) var(--courbe), box-shadow var(--pose), opacity 320ms var(--courbe); }
.etape:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.js .etape .etape-rang { transform: scale(0.6); opacity: 0; transition: transform 320ms 200ms var(--courbe), opacity 320ms 200ms; }
.js .etape.vu .etape-rang { transform: none; opacity: 1; }
.parole { transition: transform var(--pose) var(--courbe), box-shadow var(--pose); }
.parole:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.js .vitrine .apercu { opacity: 0; transform: translateY(12px) rotate(-5deg); transition: opacity 360ms var(--courbe), transform 360ms var(--courbe); }
.js .vitrine.vu .apercu { opacity: 1; transform: none; }
.js .vitrine.vu .apercu:hover { transform: translateY(-4px) rotate(-2deg); }
.vitrine .apercu:nth-child(1) { transition-delay: 300ms; }
.vitrine .apercu:nth-child(2) { transition-delay: 370ms; }
.vitrine .apercu:nth-child(3) { transition-delay: 440ms; }
.vitrine .apercu:nth-child(4) { transition-delay: 510ms; }
.vitrine .apercu:nth-child(5) { transition-delay: 580ms; }
.vitrine .apercu:nth-child(6) { transition-delay: 650ms; }
.aime { position: relative; }
.aime.battement::after {
  content: ""; position: absolute; left: 1.15rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  border: 2px solid var(--rose); pointer-events: none; animation: onde 520ms var(--courbe) forwards;
}

/* Passage d'une page à l'autre */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease-out both passe-sort; }
::view-transition-new(root) { animation: 300ms var(--courbe) both passe-entre; }

@keyframes monte { from { transform: translateY(110%); } to { transform: none; } }
@keyframes trait { from { transform: scaleX(0); } to { transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateX(36px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes surgit { from { opacity: 0; transform: translateY(18px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes respire { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04) rotate(2deg); } }
@keyframes sautille { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-7px); } }
@keyframes pulse-son { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.4); } }
@keyframes plane { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(16px, -14px) rotate(4deg); } }
@keyframes flotte { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
@keyframes trame { 0%, 100% { transform: none; } 50% { transform: translate(8px, -10px) scale(1.04); } }
@keyframes lueur { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.75; } 50% { transform: translateY(-6px) scale(1.06); opacity: 1; } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes defile { to { transform: translateX(-50%); } }
@keyframes onde { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.8); opacity: 0; } }
@keyframes passe-sort { to { opacity: 0; } }
@keyframes passe-entre { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .js .motif-passerelle .trace { stroke-dashoffset: 0; }
  .js .motif-passerelle .haubans { opacity: 1; }
  .js .etape .etape-rang, .js .vitrine .apercu { transform: none; opacity: 1; }
}
@media (max-width: 860px) {
  .motif-passerelle, .motif-bulle, .motifs-hero .motif-ankh, .motifs-hero .motif-yin { display: none; }
  .motif-trame { width: 120px !important; height: 120px !important; }
  .motif-eclat { width: 120px !important; height: 120px !important; }
  .motifs-hero .motif-ampoule { width: 36px; height: 40px; right: 5%; top: 1.2rem; }
}

/* Paliers -------------------------------------------------------------- */
@media (min-width: 640px) {
  .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .hero-grille { grid-template-columns: 1.1fr 0.9fr; }
  .duo { grid-template-columns: 1fr 1fr; }
  .axe { grid-template-columns: 0.85fr 1.15fr; padding: 1.3rem; gap: 2rem; }
  .vitrine { grid-template-columns: 300px 1fr; gap: 3rem; }
  .produit { grid-template-columns: 340px 1fr; gap: 2.6rem; }
  .page-duo { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .page-visuel { position: sticky; top: 100px; }
  .pied-grille { grid-template-columns: 1.3fr 0.7fr 0.7fr 1.4fr; }
}
@media (min-width: 1000px) {
  .etapes::before { content: ""; position: absolute; left: 6%; right: 6%; top: calc(1.4rem + 20px); z-index: 0; border-top: 3px dashed var(--ligne); }
  .grille-3 { grid-template-columns: repeat(3, 1fr); }
  .grille-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .bouton-menu { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0.2rem;
    max-height: calc(100dvh - 72px); overflow: auto; padding: 0.8rem 1.25rem 1.4rem; background: #fff;
    border-bottom: 1px solid var(--ligne); box-shadow: 0 18px 30px rgba(60, 23, 102, 0.12);
  }
  .nav.ouvert { display: flex; animation: entree var(--vif) var(--courbe); }
  .nav-lien { justify-content: space-between; padding-inline: 0.6rem; font-size: 1rem; }
  .deroule .sous { position: static; display: block; padding: 0; }
  .deroule .sous-corps { grid-template-columns: repeat(2, 1fr); padding: 0 0 0.4rem; border: 0; box-shadow: none; animation: none; }
  .deroule .nav-lien { pointer-events: none; color: var(--muet); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; min-height: 34px; }
  .deroule .nav-lien .ico { display: none; }
  .tuiles { grid-template-columns: repeat(3, 1fr); }
  .hero .decor-points { display: none; }
}
@media (max-width: 640px) {
  .marque img { height: 38px; }
  .barre-appel { display: none; }
  .hero-carte { left: 0.4rem; }
  .hero .decor-points, .hero .decor-disque { display: none; }
  /* Sur téléphone, les séries de cartes défilent de côté plutôt que d'allonger la page. */
  .accueil .grille-3, .accueil .grille-4 {
    display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.6rem;
    margin-inline: -1.25rem; padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; scrollbar-width: none;
  }
  .accueil .grille-3::-webkit-scrollbar, .accueil .grille-4::-webkit-scrollbar { display: none; }
  .accueil .grille-3 > *, .accueil .grille-4 > * { flex: 0 0 82%; scroll-snap-align: start; }
  .js .accueil .grille-3 > [data-revele], .js .accueil .grille-4 > [data-revele] { opacity: 1; transform: none; }
  .decor-anneau { width: 170px; height: 170px; border-width: 24px; }
  .scene-livre { grid-template-columns: 1fr 1fr; }
  .scene-livre .livre { grid-column: 1 / -1; grid-row: 1; }
  .tourne[data-prev] { justify-self: start; }
  .tourne[data-next] { justify-self: end; }
  .recherche { max-width: none; }
  .deroule .sous-corps { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .tuiles { grid-template-columns: repeat(2, 1fr); }
  .cadre, .hero-grille { width: calc(100% - 2rem); }
}

/* Vidéo hébergée sur le site */
.video { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 1.2rem 0 0.8rem; border-radius: var(--rayon); background: var(--violet-nuit); }
