/* Peau « papier » posée sur les pages de vente existantes (pack-*.html).
   Ne change aucun texte : seulement la matière. Chargée après les styles d'origine. */

:root { --fond: var(--papier); --teal-light: #e3f1f1; --texte: var(--encre); --blanc: #FFFDF8; }
body { background-color: var(--papier) !important; color: var(--encre); }

/* titres : Fraunces partout, petit trait de stylo sous les h2 */
h1, h2, h3, .product-name { font-family: var(--titre) !important; letter-spacing: -.01em; }
.sale-section h2 { position: relative; padding-bottom: .5rem; }
.sale-section h2::after {
  content: ''; display: block; width: 120px; height: 10px; margin-top: .4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M2 6 C 30 2, 60 9, 90 5 S 115 4, 118 6' fill='none' stroke='%23C8452C' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.sale-section.sombre h2::after { filter: brightness(1.6); }

/* hero sur cahier à petits carreaux */
.sale-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;
}
.sale-hero h1 span, .sale-hero h1 em { background: linear-gradient(100deg, transparent 0 1%, var(--surligneur) 2% 97%, transparent 99%) no-repeat 0 78% / 100% 42%; color: inherit !important; }
.badge { background: var(--encre) !important; border-radius: 4px !important; }

/* sections : bureau, puis feuille lignée en alternance */
.sale-section { background: transparent; }
.sale-section.alt {
  background-color: 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;
}
.sale-section.sombre { background: #1f3b3c !important; }

/* les paragraphes qui ouvrent sur un mot en gras deviennent des fiches posées */
.sale-section p:has(> strong:first-child) {
  background: var(--feuille); padding: 1rem 1.2rem 1rem 1.4rem; border-radius: 3px; box-shadow: var(--ombre);
  border-left: 3px solid var(--rouge); position: relative;
}
.sale-section p:has(> strong:first-child):nth-of-type(odd) { transform: rotate(-.35deg); }
.sale-section p:has(> strong:first-child):nth-of-type(even) { transform: rotate(.3deg); }
.sale-section p > strong:first-child { background: linear-gradient(100deg, transparent 0 1%, var(--surligneur) 2% 97%, transparent 99%) no-repeat 0 80% / 100% 40%; }

/* encadrés : post-it */
.highlight {
  background: #fff3a8 !important; border: none !important; border-radius: 2px !important;
  box-shadow: 0 12px 20px -10px rgba(60,45,20,.4) !important; transform: rotate(-.6deg); position: relative;
}
.highlight::before {
  content: ''; position: absolute; top: -10px; left: 50%; width: 86px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: var(--scotch);
}
.warning { background: #ffd6dd !important; border: none !important; box-shadow: 0 12px 20px -10px rgba(60,45,20,.4) !important; transform: rotate(.5deg); }

/* cartes de contenu : feuilles avec scotch */
.content-card {
  background: var(--feuille) !important; border: none !important; border-radius: 3px !important; box-shadow: var(--ombre) !important; position: relative;
}
/* la pile de fiches garde sa mécanique d'origine (cartes en absolu, rotations par data-pos) */
.fcard { border-radius: 4px !important; }
.fcard p:has(> strong:first-child) { background: none; padding: 0; box-shadow: none; border-left: 0; transform: none !important; }

/* livre : couverture posée à plat sur le bureau, plus de 3D (perspective instable selon la largeur) */
.mockup-hero { perspective: none !important; }
.book-scene, .book { transform-style: flat !important; }
.book { transform: rotate(-2.5deg) !important; }
.mockup-hero:hover .book { transform: rotate(-1deg) translateY(-4px) !important; }
.book-back, .book-edge, .book-edge-top, .book-spine { display: none !important; }
.book-cover { transform: none !important; border-radius: 3px !important; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 22px 34px -14px rgba(40,30,15,.45) !important; }
.book-cover::before { display: none; }
.book-scene::after {
  content: ''; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%) rotate(-4deg);
  background: var(--scotch); z-index: 5;
}
.book-shadow { display: none !important; }
.content-card::after {
  content: ''; position: absolute; top: -10px; left: 24px; width: 70px; height: 20px; transform: rotate(-6deg); background: var(--scotch-jaune);
}
.contents-grid .content-card:nth-child(odd) { transform: rotate(-.7deg); }
.contents-grid .content-card:nth-child(even) { transform: rotate(.6deg); }

/* listes : coches au stylo */
.benefit-list li::before { content: '✓' !important; font-family: var(--main) !important; font-size: 1.55rem !important; color: var(--teal) !important; top: -.2rem !important; }

/* tableaux : tracés à la main, en-tête surligné */
table.compare, table.epreuves { border-collapse: separate !important; border-spacing: 0; border: 2px solid var(--encre) !important; border-radius: 6px; overflow: hidden; background: var(--feuille) !important; box-shadow: 5px 5px 0 rgba(34,38,42,.12); }
table.compare th, table.epreuves th { background: var(--surligneur) !important; color: var(--encre) !important; font-family: var(--corps); }
table.compare td, table.epreuves td { border-bottom: 1px dashed #d8ccb4 !important; }
table.compare th.toi, table.compare td:nth-child(2) { background: #e3f1f1 !important; }

/* boutons : encre et décalage */
.btn-buy, .nav-cta, .flock-cta {
  border: 2px solid var(--encre) !important; box-shadow: 4px 4px 0 var(--encre) !important; border-radius: 10px !important; transition: transform .12s, box-shadow .12s !important;
}
.btn-buy:hover, .nav-cta:hover { transform: translate(-2px, -2px) !important; box-shadow: 6px 6px 0 var(--encre) !important; }
.sale-nav { background: rgba(246,241,231,.92) !important; border-bottom: 1.5px solid rgba(34,38,42,.12) !important; }

/* tag APSA : étiquettes */
.apsa-tag { border: 1.5px solid var(--encre) !important; background: var(--feuille) !important; border-radius: 4px !important; box-shadow: 2px 2px 0 rgba(34,38,42,.15); }

/* schéma inséré */
.schema-coefs { margin: 2rem 0; padding: 1.4rem 1.4rem 1rem; }
.schema-coefs svg text { font-family: var(--main); }

/* post-it sur fond sombre : l'encre reste foncée, sinon le texte clair disparaît sur le jaune */
.sale-section.sombre .highlight, .sale-section.sombre .highlight p, .sale-section.sombre .highlight strong { color: var(--encre) !important; }
.sale-section.sombre .highlight { background: #fff3a8 !important; border: none !important; }

/* ================= Qui suis-je : une illustration au trait par étape du parcours ================= */
.timeline-block { position: relative; }
.illu { float: right; width: 230px; margin: -.4rem 0 .8rem 1.6rem; text-align: center; shape-outside: margin-box; }
.illu svg { width: 100%; height: auto; display: block; background: var(--feuille); border: 1.5px solid var(--encre); border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(34,38,42,.14); padding: 6px; }
.illu figcaption { font-family: var(--main); font-size: 1.25rem; color: var(--rouge); margin-top: .35rem; line-height: 1.1; }
.timeline-block:nth-child(even) .illu svg { rotate: .8deg; } .timeline-block:nth-child(odd) .illu svg { rotate: -.8deg; }
@media (max-width: 700px) { .illu { float: none; width: min(300px, 100%); margin: .2rem auto 1rem; } }
/* un détail bouge dans chaque dessin, doucement */
@keyframes illu-pousse { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
@keyframes illu-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes illu-lueur { 0%, 100% { opacity: .3; } 50% { opacity: .6; } }
@keyframes illu-soleil { to { transform: rotate(360deg); } }
@keyframes illu-rebond { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-16px); } 60% { transform: translateY(0); } }
.illu .pousse { transform-box: fill-box; transform-origin: 0% 100%; animation: illu-pousse 4s ease-in-out infinite; }
.illu .flotte-lent, .illu .envol { animation: illu-flotte 5s ease-in-out infinite; }
.illu .lueur { animation: illu-lueur 3.5s ease-in-out infinite; }
.illu .soleil { transform-box: fill-box; transform-origin: center; animation: illu-soleil 30s linear infinite; }
.illu .ballon { animation: illu-rebond 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .illu * { animation: none !important; } }
