/* Femme2DecoTV — thème « atelier folk » : champs de couleur pleins, grosses lettres rétro, frises et fleurs,
   festons découpés. Toutes les valeurs viennent de tokens.css. Le contenu prend la largeur du conteneur
   (= celle de l'en-tête et du hero) sur ordinateur : aucune colonne étroite. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--creme); color: var(--encre);
  font-family: var(--f-texte); font-size: var(--t-corps); line-height: var(--interligne);
  font-feature-settings: "kern", "liga"; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--framboise); text-decoration-thickness: .1em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .18em; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px var(--soleil); }
::selection { background: var(--soleil); color: var(--encre); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--encre); color: var(--creme); padding: .6em 1em; border-radius: 10px; z-index: 50; }
.evitement:focus { left: 8px; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }

/* ---------- motifs folk (SVG en ligne, couleurs de la palette) ---------- */
.frise {
  height: 14px;
  background-color: var(--encre);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='14' viewBox='0 0 84 14'%3E%3Cg fill='%23F27BA8'%3E%3Ccircle cx='7' cy='4' r='2.6'/%3E%3Ccircle cx='7' cy='10' r='2.6'/%3E%3Ccircle cx='4' cy='7' r='2.6'/%3E%3Ccircle cx='10' cy='7' r='2.6'/%3E%3C/g%3E%3Ccircle cx='7' cy='7' r='1.8' fill='%23FFC83D'/%3E%3Cpath d='M28 7l5-5 5 5-5 5z' fill='%2314B3A6'/%3E%3Ccircle cx='49' cy='7' r='2.4' fill='%23F05A3A'/%3E%3Cg fill='%238CC63F'%3E%3Ccircle cx='63' cy='4' r='2.6'/%3E%3Ccircle cx='63' cy='10' r='2.6'/%3E%3Ccircle cx='60' cy='7' r='2.6'/%3E%3Ccircle cx='66' cy='7' r='2.6'/%3E%3C/g%3E%3Ccircle cx='63' cy='7' r='1.8' fill='%23FFF6E6'/%3E%3Cpath d='M75 7l4-4 4 4-4 4z' fill='%23FF9A3C'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
}
.fleur { position: absolute; display: block; aspect-ratio: 1; background: no-repeat center / contain; }
.fleur-a, .fleur-g {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23F27BA8'%3E%3Cellipse cx='50' cy='22' rx='15' ry='23'/%3E%3Cellipse cx='50' cy='22' rx='15' ry='23' transform='rotate(60 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='15' ry='23' transform='rotate(120 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='15' ry='23' transform='rotate(180 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='15' ry='23' transform='rotate(240 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='15' ry='23' transform='rotate(300 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='14' fill='%2314B3A6'/%3E%3Ccircle cx='50' cy='50' r='5' fill='%23FFF6E6'/%3E%3C/svg%3E");
}
.fleur-b {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23F05A3A'%3E%3Ccircle cx='50' cy='20' r='17'/%3E%3Ccircle cx='80' cy='50' r='17'/%3E%3Ccircle cx='50' cy='80' r='17'/%3E%3Ccircle cx='20' cy='50' r='17'/%3E%3Ccircle cx='71' cy='29' r='17'/%3E%3Ccircle cx='71' cy='71' r='17'/%3E%3Ccircle cx='29' cy='71' r='17'/%3E%3Ccircle cx='29' cy='29' r='17'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='19' fill='%23FFC83D'/%3E%3Ccircle cx='50' cy='50' r='7' fill='%2322172E'/%3E%3C/svg%3E");
}
.fleur-c {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%236C9CF5'%3E%3Cpath d='M50 4c10 14 10 30 0 44C40 34 40 18 50 4z'/%3E%3Cpath d='M50 4c10 14 10 30 0 44C40 34 40 18 50 4z' transform='rotate(72 50 50)'/%3E%3Cpath d='M50 4c10 14 10 30 0 44C40 34 40 18 50 4z' transform='rotate(144 50 50)'/%3E%3Cpath d='M50 4c10 14 10 30 0 44C40 34 40 18 50 4z' transform='rotate(216 50 50)'/%3E%3Cpath d='M50 4c10 14 10 30 0 44C40 34 40 18 50 4z' transform='rotate(288 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='10' fill='%23FFC83D'/%3E%3C/svg%3E");
}
.pastille { position: absolute; border-radius: 50%; background: var(--turquoise); }
.festons {
  height: 26px; margin-top: -1px;
  background: radial-gradient(circle at 50% 0, var(--c) 25px, transparent 26px) repeat-x;
  background-size: 52px 26px;
}

/* ---------- en-tête ---------- */
.entete { position: relative; z-index: 20; background: var(--creme); }
.entete-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.marque { display: block; flex: 0 0 auto; }
.marque img { width: clamp(190px, 22vw, 290px); height: auto; }
.tiroir { display: none; }
.nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  --c: var(--soleil);
  display: inline-block; padding: .5em .95em; border-radius: var(--rayon-bouton);
  color: var(--encre); font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: background-color .2s, transform .25s var(--rebond);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--c); transform: rotate(-2deg) scale(1.04); }
.nav li:first-child a { background: var(--encre); color: var(--creme); }
.nav li:first-child a:hover { background: var(--framboise); color: var(--blanc); }

@media (max-width: 979px) {
  .entete-in { min-height: 70px; flex-wrap: wrap; row-gap: 0; }
  /* sans script : la liste reste visible, en ligne sous le logo */
  .nav { flex-basis: 100%; padding-bottom: 12px; }
  .nav ul { justify-content: flex-start; }
  .nav a { font-size: .95rem; padding: .4em .8em; }
  /* avec script : tiroir */
  .js-nav .tiroir {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: 0; font: 700 1rem var(--f-texte);
    background: var(--encre); color: var(--creme); padding: .6em 1.05em; border-radius: var(--rayon-bouton); min-height: 44px;
  }
  .js-nav .entete-in { flex-wrap: nowrap; }
  .tiroir-picto { display: grid; gap: 3px; }
  .tiroir-picto i { display: block; width: 18px; height: 2.5px; background: var(--soleil); border-radius: 2px; }
  .js-nav .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--soleil); padding: 18px var(--gouttiere) 26px; box-shadow: var(--ombre-flottante); }
  .js-nav .nav.ouvert { display: block; }
  .js-nav .nav ul { flex-direction: column; align-items: stretch; }
  .js-nav .nav a { display: block; font-size: 1.15rem; padding: .7em 1em; background: var(--creme); }
}

/* ---------- boutons et liens fléchés ---------- */
.bouton {
  display: inline-flex; align-items: center; min-height: 52px; padding: .8em 1.5em;
  background: var(--encre); color: var(--creme); border-radius: var(--rayon-bouton);
  font-weight: 800; font-size: 1.05rem; text-decoration: none; letter-spacing: .01em;
  transition: transform .3s var(--rebond), background-color .2s;
}
.bouton:hover { background: var(--framboise); color: var(--blanc); transform: translateY(-3px) rotate(-1.5deg); }
.bouton:active { transform: translateY(1px) scale(.97); }
.lien-fleche { color: var(--encre); font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.lien-fleche::after { content: "→"; transition: transform .3s var(--rebond); }
.lien-fleche:hover::after { transform: translateX(6px); }
.lien-fleche:hover { text-decoration: underline; }

/* ---------- accueil : la une ---------- */
.une { --c: var(--soleil); background: var(--c); position: relative; }
.une-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(28px, 5vw, 72px) clamp(36px, 5vw, 64px); }
.une-titre {
  font-family: var(--f-titre); font-weight: 400; font-size: min(7.4vw, 8.6rem); line-height: .92; letter-spacing: -.02em;
  margin-bottom: .32em;
}
.une-titre span { display: block; white-space: nowrap; }
.une-titre .l1 { color: var(--encre); }
.une-titre .l2 { color: var(--framboise); padding-left: .45em; }
.une-chapo { font-size: var(--t-chapo); line-height: 1.45; max-width: 34ch; font-weight: 500; }
.une-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 1.4em 0 0; }
.une-media { position: relative; min-height: 280px; }
.arche { border-radius: var(--arche); overflow: hidden; background: var(--creme-2); }
.media-cadre { border: 10px solid var(--creme); transform: rotate(2.5deg); box-shadow: var(--ombre-flottante); aspect-ratio: 4 / 5; }
.media-cadre picture, .media-cadre img { width: 100%; height: 100%; object-fit: cover; }
.une-bouquet { position: relative; aspect-ratio: 1; }
.une-bouquet .fleur-g { width: 62%; left: 2%; top: 4%; }
.une-bouquet .fleur-b { width: 46%; right: 0; top: 34%; }
.une-bouquet .fleur-c { width: 34%; left: 22%; bottom: 0; }
.une-bouquet .pastille { width: 14%; aspect-ratio: 1; right: 22%; top: 6%; background: var(--tomate); }
.tampon {
  position: absolute; left: -26px; bottom: -18px; width: 132px; aspect-ratio: 1; border-radius: 50%;
  background: var(--tomate); color: var(--encre); display: grid; place-items: center; text-align: center;
  font-family: var(--f-titre); font-size: 1.15rem; line-height: 1; transform: rotate(-12deg);
  outline: 3px dashed var(--encre); outline-offset: -10px;
}
@media (max-width: 759px) {
  .une-grille { grid-template-columns: 1fr; }
  .une-media { order: -1; width: min(78%, 340px); margin-inline: auto; min-height: 0; }
  .une-titre { font-size: 12.4vw; }
  .une-titre .l2 { padding-left: .2em; }
  .tampon { width: 96px; font-size: .9rem; left: -14px; bottom: -10px; }
}

/* ---------- titres de section ---------- */
.titre-section { font-family: var(--f-titre); font-weight: 400; font-size: var(--t-titre); line-height: 1.02; letter-spacing: -.01em; margin-bottom: .7em; }
.bloc-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }

/* ---------- matières (tuiles de couleur, tailles variées) ---------- */
.matieres { padding-block: var(--espace-section) calc(var(--espace-section) * .6); }
.bocal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.bocal li { grid-column: span 4; }
.bocal li:nth-child(1), .bocal li:nth-child(5) { grid-column: span 5; }
.bocal li:nth-child(2), .bocal li:nth-child(4) { grid-column: span 3; }
.bocal a {
  display: flex; flex-direction: column; justify-content: flex-end; gap: .25em; height: 100%; min-height: 190px;
  padding: 22px 24px; background: var(--c); color: var(--encre); text-decoration: none; border-radius: var(--rayon);
  position: relative; overflow: hidden; transition: transform .35s var(--rebond);
}
.bocal li:nth-child(odd) a { border-radius: var(--rayon) var(--rayon) var(--rayon) 90px; }
.bocal li:nth-child(3n) a { border-radius: 90px var(--rayon) var(--rayon) var(--rayon); }
.bocal a::before {
  content: ""; position: absolute; right: -24px; top: -24px; width: 120px; aspect-ratio: 1; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23FFF6E6'%3E%3Cellipse cx='50' cy='22' rx='14' ry='22'/%3E%3Cellipse cx='50' cy='22' rx='14' ry='22' transform='rotate(60 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='14' ry='22' transform='rotate(120 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='14' ry='22' transform='rotate(180 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='14' ry='22' transform='rotate(240 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='14' ry='22' transform='rotate(300 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='12' fill='%2322172E'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .8s var(--courbe);
}
.bocal a:hover { transform: translateY(-6px) rotate(-1.2deg); }
.bocal a:hover::before { transform: rotate(120deg) scale(1.1); }
.m-nom { font-family: var(--f-titre); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1; position: relative; }
.m-accroche { font-weight: 600; position: relative; }
.m-nb { font-size: var(--t-petit); font-weight: 700; position: relative; }
@media (max-width: 759px) {
  .bocal { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bocal li:nth-child(n) { grid-column: 1; }
  .bocal li:nth-child(even) { margin-left: 22px; }
  .bocal li:nth-child(odd) { margin-right: 22px; }
  .bocal a { min-height: 112px; padding: 16px 18px; }
  .bocal a::before { width: 76px; right: -16px; top: -16px; }
  .m-nom { font-size: 1.6rem; padding-right: 48px; }
}

/* ---------- cartes ---------- */
.frais { padding-block: calc(var(--espace-section) * .4) var(--espace-section); }
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.carte { --c: var(--soleil); position: relative; display: flex; flex-direction: column; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; transition: transform .35s var(--rebond); }
.carte:nth-child(3n+2) { transform: rotate(.6deg); }
.carte:nth-child(3n) { transform: rotate(-.5deg); }
.carte:hover { transform: translateY(-6px) rotate(-1deg); }
.carte-visuel { aspect-ratio: 3 / 2; background: var(--c); position: relative; overflow: hidden; }
.carte-visuel img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform .8s var(--courbe); }
.carte:hover .carte-visuel img { transform: scale(1.05); }
.carte-fleur { position: absolute; inset: 18% 30%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23FFF6E6'%3E%3Cellipse cx='50' cy='22' rx='14' ry='22'/%3E%3Cellipse cx='50' cy='22' rx='14' ry='22' transform='rotate(60 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='14' ry='22' transform='rotate(120 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='14' ry='22' transform='rotate(180 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='14' ry='22' transform='rotate(240 50 50)'/%3E%3Cellipse cx='50' cy='22' rx='14' ry='22' transform='rotate(300 50 50)'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='12' fill='%2322172E'/%3E%3C/svg%3E") no-repeat center / contain; }
.carte-corps { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: .35em; flex: 1; }
.carte-matiere { margin: 0; align-self: flex-start; background: var(--c); padding: .15em .7em; border-radius: var(--rayon-bouton); font-size: var(--t-petit); font-weight: 800; }
.carte-titre { font-family: var(--f-titre); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.carte-titre a { color: var(--encre); text-decoration: none; }
.carte-titre a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rayon); }
.carte-titre a:focus-visible { outline: none; box-shadow: none; }
.carte:focus-within { outline: 3px solid var(--encre); outline-offset: 3px; }
.carte-desc { margin: 0; font-size: 1rem; }
.carte-pied { margin: auto 0 0; font-size: var(--t-petit); font-weight: 700; color: var(--encre-douce); }
.vide { font-size: var(--t-chapo); font-weight: 600; background: var(--blanc); padding: 24px 28px; border-radius: var(--rayon); }

/* ---------- section « maison » (texte de l'accueil) ---------- */
.maison { background: var(--turquoise); padding-block: var(--espace-section); position: relative; }
.maison::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 26px; background: radial-gradient(circle at 50% 0, var(--creme) 25px, transparent 26px) repeat-x; background-size: 52px 26px; }
.prose-maison h2 { font-family: var(--f-titre); font-weight: 400; font-size: var(--t-titre); line-height: 1.05; }
.prose-maison a { color: var(--encre); font-weight: 800; }
.prose-maison { columns: 2 340px; column-gap: clamp(28px, 5vw, 72px); }
.prose-maison h2 { column-span: all; margin-bottom: .6em; }
.prose-maison > * { break-inside: avoid; }

/* ---------- hero des pages ---------- */
.tete { --c-fond: var(--c); background: var(--c); position: relative; }
.type-page .tete, .type-liste .tete { --c: var(--rose); }
.type-404 .tete { --c: var(--bleuet); }
.tete-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(20px, 3vw, 40px) clamp(30px, 4vw, 56px); }
.tete-titre { font-family: var(--f-titre); font-weight: 400; font-size: var(--t-h1); line-height: .98; letter-spacing: -.01em; margin: .15em 0 .3em; }
.tete .chapo { font-size: var(--t-chapo); line-height: 1.45; font-weight: 500; max-width: 42ch; }
.tete-matiere { margin: 0; }
.tete-matiere a, .tete-matiere { display: inline-block; background: var(--encre); color: var(--creme); font-weight: 800; padding: .2em .9em; border-radius: var(--rayon-bouton); text-decoration: none; font-size: var(--t-petit); }
.tete-matiere a { padding: 0; }
.tete-img { position: relative; }
.tete-img .arche { border: 10px solid var(--creme); transform: rotate(-2deg); box-shadow: var(--ombre-flottante); aspect-ratio: 4 / 5; }
.tete-img .arche img, .tete-img .arche picture { width: 100%; height: 100%; object-fit: cover; }
.tete-img .fleur-a { width: 110px; right: -18px; bottom: -26px; }
.tete-deco { position: relative; aspect-ratio: 5 / 4; }
.tete-deco .fleur-g { width: 54%; right: 8%; top: 0; }
.tete-deco .fleur-b { width: 38%; left: 6%; bottom: 0; }
.tete-deco .pastille { width: 13%; aspect-ratio: 1; left: 30%; top: 14%; background: var(--creme); }
.code-404 { font-family: var(--f-titre); font-size: clamp(5rem, 3rem + 12vw, 14rem); line-height: .8; margin: 0; color: var(--creme); -webkit-text-stroke: 3px var(--encre); }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2em .5em; margin: 0 0 .4em; padding: 0; font-size: var(--t-petit); font-weight: 700; }
.ariane li + li::before { content: "✿"; margin-right: .5em; }
.ariane a { color: var(--encre); }
.meta-tuto { display: flex; flex-wrap: wrap; gap: .3em 1.2em; font-size: var(--t-petit); font-weight: 700; margin: 0; }
@media (max-width: 759px) {
  .tete-grille { grid-template-columns: 1fr; }
  .tete-img { width: min(82%, 360px); margin: 6px auto 0; }
  .tete-deco { display: none; }
  .tete-404 .tete-deco { display: none; }
}

/* ---------- corps de page : pleine largeur du conteneur ---------- */
.corps { padding-block: clamp(36px, 5vw, 72px); }
.prose { font-size: var(--t-corps); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--f-titre); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.08; margin: 1.6em 0 .55em; scroll-margin-top: 24px; }
.prose h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 800; line-height: 1.25; margin: 1.5em 0 .45em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--framboise); font-weight: 800; }
.prose strong { font-weight: 800; }
.prose blockquote { margin: 1.4em 0; padding: 18px 24px; background: var(--rose-pale); border-radius: var(--rayon); font-size: var(--t-chapo); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4em 0; font-size: 1rem; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; }
.prose th, .prose td { text-align: left; padding: .75em 1em; vertical-align: top; }
.prose th { background: var(--encre); color: var(--creme); font-weight: 800; }
.prose tr:nth-child(even) td { background: var(--creme-2); }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--rayon); width: 100%; }
.prose figcaption { font-size: var(--t-petit); font-weight: 600; margin-top: .5em; color: var(--encre-douce); }
.prose hr { border: 0; height: 14px; margin: 2em 0; background: inherit; }
.prose .tableau-defile { overflow-x: auto; }

/* tuto : rail des étapes + corps, ensemble = largeur du conteneur */
.tuto { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(36px, 5vw, 72px); align-items: start; }
.tuto:not(:has(.etapes)) { grid-template-columns: minmax(0, 1fr); }
.tuto:not(:has(.etapes)) .tuto-rail { display: none; }
.tuto-rail { position: sticky; top: 20px; }
.etapes { background: var(--blanc); border-radius: var(--rayon); padding: 20px 22px; }
.etapes-titre { font-family: var(--f-titre); font-size: 1.35rem; line-height: 1.05; margin-bottom: .6em; }
.etapes ol { list-style: none; counter-reset: e; margin: 0; padding: 0; font-size: .98rem; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 2em 1fr; gap: .3em; margin-bottom: .5em; line-height: 1.3; }
.etapes li::before { content: counter(e); display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--c); font-weight: 800; font-size: .85em; }
.etapes a { color: var(--encre); text-decoration: none; font-weight: 600; }
.etapes a:hover { text-decoration: underline; }
@media (max-width: 979px) {
  .tuto { grid-template-columns: minmax(0, 1fr); }
  .tuto-rail { position: static; }
}

/* le tuto en un clin d'œil */
.clin { background: var(--c); border-radius: var(--rayon) var(--rayon) var(--rayon) 70px; padding: 22px 26px 18px; margin: 0 0 2em; }
.clin-titre { font-family: var(--f-titre); font-size: 1.45rem; line-height: 1.05; margin-bottom: .5em; }
.clin ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .4em 1.6em; }
.clin li { padding-left: 1.5em; position: relative; font-weight: 600; }
.clin li::before { content: "✿"; position: absolute; left: 0; top: 0; }

/* le petit secret d'atelier (encadré) */
.secret { background: var(--soleil); border-radius: var(--rayon); padding: 24px 28px 20px; margin: 2em 0; position: relative; transform: rotate(-.6deg); }
.secret::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; translate: -50% 0; rotate: 3deg; background: rgba(255, 246, 230, .8); border-radius: 3px; }
.secret-titre { font-family: var(--f-titre); font-size: 1.4rem; line-height: 1.1; display: flex; align-items: center; gap: .4em; }
.secret-fleur { width: 1.4em; aspect-ratio: 1; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23F05A3A'%3E%3Ccircle cx='50' cy='20' r='17'/%3E%3Ccircle cx='80' cy='50' r='17'/%3E%3Ccircle cx='50' cy='80' r='17'/%3E%3Ccircle cx='20' cy='50' r='17'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='16' fill='%2322172E'/%3E%3C/svg%3E") no-repeat center / contain; }
.secret-corps > :last-child { margin-bottom: 0; }

/* vous nous avez demandé (FAQ) */
.demandes { margin: 2.4em 0; }
.demandes h2 { margin-top: 0; }
.demandes details { background: var(--blanc); border-radius: var(--rayon); margin-bottom: 10px; }
.demandes details:nth-child(odd) { background: var(--rose-pale); }
.demandes summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 800; font-size: 1.1rem; list-style: none; position: relative; }
.demandes summary::-webkit-details-marker { display: none; }
.demandes summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--encre); color: var(--creme); display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s var(--rebond); }
.demandes details[open] summary::after { transform: rotate(45deg); }
.demandes details p { padding: 0 22px 20px; margin: 0; }

/* le poste de télé (bloc « faire expliquer par une IA ») */
.poste { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--tomate); border-radius: 38px; padding: 18px; margin: 2.6em 0 1em; }
.poste-ecran { background: var(--encre); color: var(--creme); border-radius: 26px; padding: 20px 24px; }
.poste-titre { font-family: var(--f-titre); font-size: 1.35rem; line-height: 1.1; color: var(--soleil); margin-bottom: .6em; }
.poste-chaines { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 .6em; padding: 0; }
.poste-chaines a { display: inline-block; padding: .45em 1em; border-radius: var(--rayon-bouton); background: var(--creme); color: var(--encre); font-weight: 800; text-decoration: none; transition: transform .25s var(--rebond), background-color .2s; }
.poste-chaines li:nth-child(5n+1) a:hover { background: var(--rose); }
.poste-chaines li:nth-child(5n+2) a:hover { background: var(--turquoise); }
.poste-chaines li:nth-child(5n+3) a:hover { background: var(--soleil); }
.poste-chaines li:nth-child(5n+4) a:hover { background: var(--pomme); }
.poste-chaines li:nth-child(5n+5) a:hover { background: var(--abricot); }
.poste-chaines a:hover { transform: translateY(-2px) rotate(-2deg); }
.poste-note { font-size: var(--t-petit); margin: 0; color: var(--creme-2); }
.poste-boutons { display: grid; gap: 10px; justify-items: center; }
.poste-md, .poste-copie { display: grid; place-items: center; text-align: center; width: 132px; min-height: 132px; padding: 12px; border-radius: 50%; background: var(--creme); color: var(--encre); font: 800 .9rem/1.2 var(--f-texte); text-decoration: none; border: 0; cursor: pointer; transition: transform .4s var(--rebond); }
.poste-copie { width: 96px; min-height: 96px; font-size: .8rem; background: var(--soleil); }
.poste-md:hover, .poste-copie:hover { transform: rotate(-25deg); }
@media (max-width: 639px) {
  .poste { grid-template-columns: 1fr; border-radius: 30px; }
  .poste-boutons { grid-auto-flow: column; justify-content: start; }
  .poste-md { width: auto; min-height: 0; border-radius: var(--rayon-bouton); padding: .7em 1.2em; }
  .poste-copie { width: auto; min-height: 0; border-radius: var(--rayon-bouton); padding: .7em 1.2em; }
}

/* encore des idées */
.encore { padding-block: var(--espace-section); background: var(--creme-2); }

/* listes de tutos, filtres */
.liste-tutos { padding-block: clamp(24px, 3vw, 40px) var(--espace-section); }
.filtres { margin-bottom: 26px; }
.filtres-titre { font-weight: 800; margin-bottom: .5em; }
.filtres-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.filtres-boutons button { font: 700 1rem var(--f-texte); color: var(--encre); background: var(--blanc); border: 0; border-radius: var(--rayon-bouton); padding: .55em 1.1em; cursor: pointer; transition: transform .25s var(--rebond), background-color .2s; }
.filtres-boutons button[aria-pressed="true"] { background: var(--encre); color: var(--creme); }
.filtres-boutons button:hover { transform: rotate(-2deg) scale(1.04); }
.carte[hidden] { display: none; }
.bocal-404 { margin-top: 28px; }

/* ---------- pied de page ---------- */
.pied { background: var(--encre); color: var(--creme); margin-top: 0; }
.pied-in { padding-block: clamp(40px, 6vw, 90px) 32px; }
.pied-cri { font-family: var(--f-titre); font-size: clamp(3.2rem, 1rem + 11vw, 12rem); line-height: .9; color: var(--soleil); margin: 0 0 .25em; letter-spacing: -.01em; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.pied-marque img { width: min(300px, 100%); margin-bottom: 1em; }
.pied-titre { font-family: var(--f-titre); font-size: 1.35rem; color: var(--rose); margin-bottom: .4em; }
.pied-liste { list-style: none; margin: 0; padding: 0; }
.pied-liste li { margin-bottom: .35em; }
.pied a { color: var(--creme); text-decoration: none; font-weight: 600; }
.pied a:hover { color: var(--soleil); text-decoration: underline; }
.pied-bas { margin-top: 40px; padding-top: 22px; font-size: var(--t-petit); color: var(--creme-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; }
.pied-bas p { margin: 0; max-width: 70ch; }
.frise-pied { background-color: var(--encre); }
@media (max-width: 759px) { .pied-grille { grid-template-columns: 1fr 1fr; } .pied-marque { grid-column: 1 / -1; } }

/* ---------- mouvement (seulement si l'appareil l'accepte) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .revele { opacity: 0; transform: translateY(26px) rotate(.4deg); transition: opacity var(--duree) var(--courbe), transform var(--duree) var(--courbe); transition-delay: var(--d, 0ms); }
  .js .revele.vu { opacity: 1; transform: none; }
  .js .carte.revele.vu:nth-child(3n+2) { transform: rotate(.6deg); }
  .js .carte.revele.vu:nth-child(3n) { transform: rotate(-.5deg); }
  .js .carte.revele.vu:hover { transform: translateY(-6px) rotate(-1deg); }
  .une-titre span, .tete-titre { animation: monte .9s var(--rebond) both; }
  .une-titre .l2 { animation-delay: .12s; }
  .une-chapo, .une-actions, .tete .chapo { animation: apparait .8s var(--courbe) .25s both; }
  .fleur, .carte-fleur { animation: tourne 28s linear infinite; }
  .fleur-b { animation-duration: 36s; animation-direction: reverse; }
  .fleur-c { animation-duration: 22s; }
  .tampon { animation: balance 5s ease-in-out infinite; }
  .media-anime img { animation: zoom-lent 22s ease-in-out infinite alternate; transform-origin: 62% 40%; }
  .media-cadre { animation: pose 1s var(--rebond) .1s both; }
}
@keyframes monte { from { opacity: 0; transform: translateY(.35em) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tourne { to { rotate: 360deg; } }
@keyframes balance { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(-4deg) scale(1.04); } }
@keyframes zoom-lent { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, 1.5%); } }
@keyframes pose { from { transform: rotate(9deg) translateY(30px) scale(.94); } to { transform: rotate(2.5deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* impression */
@media print { .entete, .pied, .poste, .tuto-rail, .encore, .festons, .frise { display: none !important; } .tete { background: none; } }
