/* Peau « papier » des pages Séquences EPS : catalogue (parcours.html) et pages activité (parcours-*.html).
   L'idée : le classeur du prof d'EPS. Intercalaires de couleur, fiches cartonnées, tampons. */

:root { --bordure: #e2d8c4; --teal-mist: #eef6f4; --teal-light: #eaf3ef; }
h1 { color: var(--encre) !important; }
h2 { color: var(--encre) !important; }

/* ================= catalogue : la vitrine, dans la charte papier du site =================
   Le Pack Complet en tête, sur une feuille quadrillée ; chaque activité montre sa couverture
   (même charte : toile teal, étiquette feuille, surligneur, stylo rouge, nouveau hibou). */
.pc-vitrine { position: relative; overflow: hidden; color: var(--encre); background-color: var(--feuille);
  background-image: linear-gradient(var(--ligne) 1px, transparent 1px), linear-gradient(90deg, var(--ligne) 1px, transparent 1px);
  background-size: 22px 22px; border-bottom: 1.5px dashed #d8ccb4; animation: grille 16s linear infinite; }
.pc-in { max-width: 1080px; margin: 0 auto; padding: 4.6rem 1.5rem 4.4rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.pc-sur { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-dark);
  background: var(--teal-light); border: 1.5px solid var(--encre); border-radius: 4px; padding: .3rem .7rem; margin-bottom: 1.2rem; box-shadow: 2px 2px 0 var(--encre); }
.pc-vitrine h2 { color: var(--encre) !important; font-size: clamp(2.5rem, 5.4vw, 4rem) !important; line-height: 1.04; font-weight: 700; letter-spacing: -.025em; margin-bottom: 1.3rem; }
.pc-vitrine h2 .surligne { background: linear-gradient(100deg, transparent 0 1%, var(--surligneur) 2% 97%, transparent 99%) no-repeat 0 82% / 100% 42%; }
.pc-texte > p { color: var(--encre-douce); font-size: 1.08rem; max-width: 32rem; margin-bottom: 1.6rem; }
.pc-prix { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: 1.7rem; }
.pc-prix b { white-space: nowrap; font-family: var(--titre); font-size: 3rem; font-weight: 700; color: var(--encre); line-height: 1; }
.pc-prix span { font-size: .9rem; color: var(--gris); border-left: 1.5px solid rgba(34,38,42,.2); padding-left: 1rem; }
.pc-prix .annot { font-family: var(--main); font-style: normal; font-size: 1.6rem; color: var(--rouge); rotate: -2deg; width: 100%; }
.pc-btn { display: inline-block; background: var(--teal); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  padding: .95rem 1.9rem; border: 2px solid var(--encre); border-radius: 12px; box-shadow: 4px 4px 0 var(--encre); transition: transform .15s, box-shadow .15s; }
.pc-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--encre); }
.pc-micro { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 1.4rem 0 0; padding: 0; font-size: .86rem; color: var(--encre-douce); }
.pc-micro li::before { content: '✓'; font-family: var(--main); font-size: 1.3rem; color: var(--teal); margin-right: .4rem; }

/* le coffret : la couverture du Pack Complet devant, deux activités en éventail derrière */
.pc-visuel { position: relative; display: block; height: 480px; animation: flotte 9s ease-in-out infinite; }
.pc-visuel img { position: absolute; top: 50%; left: 50%; height: 440px; width: auto; filter: drop-shadow(0 26px 24px rgba(40,30,15,.28)); transition: translate .5s; }
.pc-face { translate: -50% -50%; z-index: 3; }
.pc-dos { z-index: 1; height: 390px !important; }
.pc-dos.d1 { translate: -92% -49%; rotate: -9deg; }
.pc-dos.d2 { translate: -10% -47%; rotate: 8deg; }
.pc-visuel:hover .d1 { translate: -100% -50%; }
.pc-visuel:hover .d2 { translate: -2% -48%; }

/* l'en-tête des activités seules */
.vitrine .haut { background: none !important; border: 0 !important; text-align: center; padding: 4.4rem 0 1rem !important; }
.vitrine .haut h1 { font-size: clamp(2.3rem, 5vw, 3.4rem) !important; font-weight: 700; letter-spacing: -.025em; }
.vitrine .haut .lead { color: var(--encre-douce); }

/* chaque champ = un rayon : étiquette surlignée, titre en Fraunces, filet tiré à l'encre */
.vitrine .champ { margin-top: 4rem !important; padding: 0; background: none; box-shadow: none; }
.vitrine .champ > h2 { text-transform: none !important; letter-spacing: -.015em !important; font-family: var(--titre) !important; color: var(--encre) !important;
  display: flex; align-items: center; gap: 1rem; font-size: clamp(1.5rem, 3vw, 2rem) !important; font-weight: 700;
  padding-bottom: .9rem !important; margin-bottom: 1.8rem !important; border-bottom: 1.5px solid var(--encre) !important; }
.vitrine .champ > h2 span { white-space: nowrap; font-family: var(--corps); font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--encre); background: var(--surligneur); border: 1.5px solid var(--encre); border-radius: 3px; padding: .2rem .5rem; }

/* chaque activité = sa couverture posée sur une fiche bristol */
.vitrine .cat { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)) !important; gap: 2.4rem 1.4rem !important; }
.vitrine .cat a { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: .9rem !important;
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; text-decoration: none; color: var(--encre) !important; }
.vitrine .cat a:hover { transform: none !important; box-shadow: none !important; }
.vitrine .couv { display: flex; align-items: flex-end; justify-content: center; height: 236px; border-radius: 8px; padding: 22px 0 18px;
  background: var(--feuille); border: 1.5px solid var(--encre); box-shadow: 3px 3px 0 rgba(34,38,42,.14); transition: box-shadow .2s, translate .2s; }
.vitrine .couv img { height: 100%; width: auto; filter: drop-shadow(0 12px 10px rgba(40,30,15,.22)); transition: scale .35s cubic-bezier(.22,1,.36,1); }
.vitrine .cat a:hover .couv { translate: -2px -2px; box-shadow: 5px 5px 0 var(--encre); }
.vitrine .cat a:hover .couv img { scale: 1.05; }
.vitrine .cat a > span:last-child { display: flex; flex-direction: column; gap: .15rem; padding: 0 .3rem; }
.vitrine .cat a b { font-family: var(--titre); font-weight: 700; font-size: 1.12rem; }
.vitrine .cat small { font-size: .86rem; color: var(--gris); }
.vitrine .cat s { color: var(--rouge); text-decoration-thickness: 2px; margin-left: .2rem; }
.vitrine ~ footer { margin-top: 5rem; }

@media (max-width: 860px) {
  .pc-in { grid-template-columns: 1fr; padding: 3.2rem 1.4rem; gap: 1rem; text-align: center; }
  .pc-texte > p { margin-left: auto; margin-right: auto; }
  .pc-prix, .pc-micro { justify-content: center; }
  .pc-visuel { order: -1; height: 340px; }
  .pc-visuel img { height: 310px; } .pc-dos { height: 270px !important; }
}
@media (max-width: 520px) {
  .vitrine .cat { grid-template-columns: repeat(2, 1fr) !important; gap: 1.8rem .9rem !important; }
  .vitrine .couv { height: 190px; }
}

/* mouvement continu de la vitrine : les couvertures respirent en vague, l'éventail du coffret s'ouvre et se referme */
@keyframes vague { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes eventail-g { 0%, 100% { rotate: -9deg; } 50% { rotate: -12deg; } }
@keyframes eventail-d { 0%, 100% { rotate: 8deg; } 50% { rotate: 11deg; } }
.vitrine .couv img { animation: vague 6s ease-in-out infinite; }
.vitrine .cat a:nth-child(5n+2) .couv img { animation-delay: -1.2s; }
.vitrine .cat a:nth-child(5n+3) .couv img { animation-delay: -2.4s; }
.vitrine .cat a:nth-child(5n+4) .couv img { animation-delay: -3.6s; }
.vitrine .cat a:nth-child(5n+5) .couv img { animation-delay: -4.8s; }
.pc-dos.d1 { animation: eventail-g 7s ease-in-out infinite; }
.pc-dos.d2 { animation: eventail-d 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pc-visuel, .vitrine .couv img, .pc-dos, .pc-vitrine { animation: none !important; } }

/* ================= page activité ================= */
.hero { background-color: var(--feuille) !important;
  background-image: linear-gradient(var(--ligne) 1px, transparent 1px), linear-gradient(90deg, var(--ligne) 1px, transparent 1px) !important;
  background-size: 22px 22px !important; animation: grille 16s linear infinite; }
.hero h1 { color: var(--encre) !important; }
.pill { background: var(--encre) !important; color: #fff !important; border-radius: 4px !important; border: none !important; }
.pill * { color: #fff !important; }

/* chiffres clés = étiquettes punaisées */
.stat { background: #fff !important; border: 1.5px solid var(--encre) !important; border-radius: 6px !important; backdrop-filter: none !important;
  box-shadow: 3px 3px 0 rgba(34,38,42,.14); }
.stat:nth-child(1) { rotate: -1.2deg; } .stat:nth-child(2) { rotate: .8deg; } .stat:nth-child(3) { rotate: -.5deg; }
.stat b { font-family: var(--titre); color: var(--teal-dark) !important; }

/* le texte d'accroche sur feuille lignée */
.narrow.rv:first-of-type, section > .narrow > p:first-child { font-size: 1.05rem; }
.imagine li { border-left: 3px solid var(--rouge) !important; font-family: var(--main); font-size: 1.45rem !important; font-style: normal !important; line-height: 1.3; }

/* paliers = intercalaires : l'onglet coloré à gauche, la feuille à droite */
.palier-card { background: var(--feuille) !important; border: 1.5px solid var(--encre) !important; border-radius: 6px !important;
  box-shadow: 5px 5px 0 rgba(34,38,42,.12) !important; }
.palier-tete { background: var(--teal-dark) !important; position: relative;
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(255,255,255,.08) 31px 32px) !important; }
.palier-card:nth-of-type(3n+2) .palier-tete { background-color: #2b6f5a !important; }
.palier-card:nth-of-type(3n+3) .palier-tete { background-color: #16323C !important; }
.palier-tete h3 { font-size: 1.5rem !important; }
.peur { font-family: var(--main); font-style: normal !important; font-size: 1.3rem !important; color: #ffe9a8 !important; line-height: 1.2 !important; }
.palier-corps { background-image: repeating-linear-gradient(transparent 0 31px, var(--ligne) 31px 32px); background-position: 0 1.4rem; }
.checks li::before { content: '✓' !important; font-family: var(--main) !important; font-size: 1.5rem !important; color: var(--teal) !important;
  background: none !important; border: none !important; top: -.25rem !important; }

.transverse { background: #fff3a8 !important; border: none !important; border-radius: 2px !important; --penche: -.3deg;
  box-shadow: 0 14px 22px -12px rgba(60,45,20,.45) !important; }

/* aperçu de fiche : feuille scotchée */
.fiche { border-radius: 4px !important; }
.fiche-zone { position: relative; }
.fiche-zone::before { content: ''; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; translate: -50% 0; rotate: -2deg; background: var(--scotch); z-index: 9; }

/* documents fournis = fiches bristol */
.doc { background: #fff !important; border: 1.5px solid var(--encre) !important; border-radius: 6px !important; box-shadow: 3px 3px 0 rgba(34,38,42,.12) !important; }
.doc .ic { background: transparent !important; border: 1.5px dashed var(--teal); border-radius: 50% !important; }
.etape { background: var(--feuille) !important; border: 1.5px solid var(--encre) !important; border-radius: 6px !important; }

/* bandeaux sombres : tableau noir */
.bandeau, .pivot, .final { background: #1f3b3c !important;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px) !important; background-size: 6px 6px !important; }
.pivot h2, .final h2 { color: #fff !important; }

/* l'offre = pochette avec son tampon */
.offre-card { background: var(--feuille) !important; border: 2px solid var(--encre) !important; border-radius: 6px !important;
  box-shadow: 8px 8px 0 rgba(34,38,42,.16) !important; }
.offre-card .prix, .prix { font-family: var(--titre); }
.mockup { filter: drop-shadow(0 26px 22px rgba(40,30,15,.28)) !important; }

.teinte { background: var(--feuille) !important; background-image: repeating-linear-gradient(transparent 0 31px, var(--ligne) 31px 32px) !important;
  border-top: 1.5px dashed #d8ccb4; border-bottom: 1.5px dashed #d8ccb4; }
.faq summary { color: var(--encre) !important; font-family: var(--titre); }
.cta-box { background: var(--feuille) !important; border: 2px solid var(--encre) !important; border-radius: 6px !important; box-shadow: 6px 6px 0 rgba(34,38,42,.14) !important; }
.chip { border: 1.5px solid var(--encre) !important; border-radius: 4px !important; box-shadow: 2px 2px 0 rgba(34,38,42,.15); }

/* ================= plus de livres : tablettes et téléphones (studio.css) ================= */
/* vitrine du Pack Complet : la tablette remplace l'éventail de couvertures */
.pc-visuel { height: auto !important; animation: none !important; text-decoration: none; }
.pc-visuel .studio-tab { max-width: 470px; }

/* vignettes du catalogue : une petite tablette allumée sur l'activité */
.vitrine .couv { height: auto !important; padding: 18px 16px 20px !important; align-items: center !important;
  background: radial-gradient(80% 70% at 50% 30%, #fffdf9, #efe9de) !important; border: 1px solid #e4dccd !important; border-radius: 18px !important; box-shadow: none !important; }
.mini-tab { display: block; width: 100%; max-width: 150px; aspect-ratio: 3 / 4; margin: 0 auto; border-radius: 14px; padding: 7px;
  background: linear-gradient(145deg, #2e363a, #0f1416); box-shadow: 0 0 0 1px #4d585e inset, 0 18px 24px -14px rgba(30,25,15,.5);
  transition: translate .5s cubic-bezier(.16,1,.3,1), box-shadow .5s cubic-bezier(.16,1,.3,1); }
.mt-ecr { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 8px; overflow: hidden; background: #FFFDF8; padding: 12px 11px; text-align: left; }
.mt-ecr::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 20px; background: #16323C; }
.mt-ecr::after { content: ''; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.22), rgba(255,255,255,0) 40%); pointer-events: none; }
.mt-ecr i { position: relative; z-index: 1; font: 700 6.5px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #9fb6ba; font-style: normal; margin: -7px 0 18px; }
.mt-ecr b { font: 600 15px/1.1 Fraunces, Georgia, serif !important; color: #16323C; letter-spacing: -.01em; }
.mt-pal { display: flex; gap: 3px; margin: auto 0 6px; }
.mt-pal u { flex: 1; height: 5px; border-radius: 3px; background: #1D8286; text-decoration: none; }
.mt-pal u:nth-child(2) { opacity: .65; } .mt-pal u:nth-child(3) { opacity: .4; } .mt-pal u:nth-child(4) { opacity: .25; }
.mt-ecr small { font-size: 8px !important; color: #8a9497 !important; }
.vitrine .cat a:hover .mini-tab { translate: 0 -6px; box-shadow: 0 0 0 1px #4d585e inset, 0 28px 30px -16px rgba(30,25,15,.55); }
.vitrine .cat a:hover .couv { translate: none !important; box-shadow: none !important; }
.vitrine .couv img, .vitrine .cat a:hover .couv img { animation: none; }

/* pages activité : les étiquettes de chiffres flottantes cèdent la place à la tablette */
.hero-visuel:has(.studio-tab) .chip, .hero2-visuel:has(.studio-tab) .chip { display: none; }
