/* Peau commune à toutes les pages habillées : logo, navigation, boutons, pied de page, mouvement.
   Chargée après papier.css et avant la peau propre au gabarit (pack, parcours, blog). */

body { background-color: var(--papier) !important; color: var(--encre); font-family: var(--corps); }
h1, h2, h3, h4 { font-family: var(--titre) !important; letter-spacing: -.01em; }

/* ---------- logo : hibou épuré + Fraunces ---------- */
svg.logo-ee { height: 34px; width: auto; display: block; color: #16323C; overflow: visible; }
svg.logo-ee .yeux { transform-origin: 32px 30px; animation: cligne 7s infinite; }
@keyframes cligne { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
a:hover > svg.logo-ee .yeux { animation-duration: 1.2s; }

/* ---------- navigations des gabarits d'origine ---------- */
.nav, nav.nav, .main-nav, header.nav, .sale-nav {
  background: rgba(246,241,231,.92) !important; backdrop-filter: blur(10px);
  border-bottom: 1.5px solid rgba(34,38,42,.12) !important; box-shadow: none !important;
}

/* ---------- boutons : encre et ombre décalée ---------- */
.btn, .btn-nav, .btn-buy, .nav-cta, .cta-box a, .article-cta a {
  border: 2px solid var(--encre) !important; border-radius: 10px !important;
  box-shadow: 3px 3px 0 var(--encre) !important; transition: transform .14s, box-shadow .14s !important;
}
.btn:hover, .btn-nav:hover, .btn-buy:hover, .cta-box a:hover { transform: translate(-2px, -2px) !important; box-shadow: 5px 5px 0 var(--encre) !important; }
.btn-ghost { background: var(--feuille) !important; color: var(--encre) !important; }
.btn-ambre { background: var(--surligneur) !important; color: var(--encre) !important; }

/* ---------- bandeau promo : ruban de scotch noir ---------- */
.ruban, .bandeau, .promo-bar { font-family: var(--corps); }

/* ---------- pied de page : bas de feuille ---------- */
footer, .main-footer, .legal-footer, .pied {
  background: var(--feuille) !important; border-top: 1.5px dashed #d8ccb4 !important;
}

/* ---------- mouvement ---------- */
/* apparition à la manière d'Apple : le bloc monte de quelques pixels et s'éclaircit, lentement, une seule fois */
.apparait { opacity: 0; translate: 0 28px; transition: opacity 1s cubic-bezier(.16,1,.3,1) var(--retard, 0ms), translate 1.2s cubic-bezier(.16,1,.3,1) var(--retard, 0ms); }
.apparait.vu { opacity: 1; translate: 0 0; }

/* mouvement continu, lent et peu ample : seulement les objets « posés » (post-it, tampons, visuels de haut de page) */
@property --balance { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes balance { 0%, 100% { --balance: -.35deg; } 50% { --balance: .35deg; } }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes ecrit { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: -10px 3px; rotate: -2deg; } 60% { translate: -4px -2px; rotate: 1deg; } }
@keyframes defile { to { stroke-dashoffset: -44; } }

.postit, .highlight, .highlight-box, .upsell, .transverse, .tampon, .note.tampon {
  rotate: calc(var(--penche, 0deg) + var(--balance)); animation: balance 7s ease-in-out infinite; }
.postit:nth-of-type(2n), .tampon:nth-of-type(2n) { animation-duration: 8.5s; animation-delay: -3s; }
.bureau, .fiche-zone, .schema-coefs, .lm-inline { animation: flotte 8s ease-in-out infinite; }
.schema-coefs { animation-duration: 9s; animation-delay: -2s; }
.crayon { animation: ecrit 4.5s ease-in-out infinite; transform-box: fill-box; }
.frise-svg .trait, .schema .trait { animation: defile 2.6s linear infinite; }
.stat:nth-child(2), .is-card:nth-child(2) { animation: flotte 6s ease-in-out infinite; }
.surligne-anim { background-size: 0% 46% !important; transition: background-size .9s cubic-bezier(.65,0,.35,1) .2s; }
.surligne-anim.vu { background-size: 100% 46% !important; }
.brouillon-msg { color: var(--rouge); font-size: 1.3rem; margin: .4rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  svg.logo-ee .yeux { animation: none; }
  .apparait { opacity: 1; translate: none; }
  .postit, .highlight, .highlight-box, .upsell, .transverse, .tampon, .bureau, .fiche-zone, .schema-coefs, .lm-inline,
  .crayon, .frise-svg .trait, .schema .trait, .stat, .is-card { animation: none !important; }
}

/* bouton plein dans la nav de l accueil : texte blanc (la règle des liens de nav le repeignait en encre) */
.nav-liens a.btn-encre { color: #fff !important; }

/* ================= menu unique, présent sur toutes les pages ================= */
[data-nav-origine] { display: none !important; }
.nav-ee { position: sticky; top: 0; z-index: 900; background: rgba(246,241,231,.94); backdrop-filter: blur(10px);
  border-bottom: 1.5px solid rgba(34,38,42,.12); font-family: var(--corps); }
.nav-ee-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 68px; display: flex; align-items: center; gap: 1.6rem; }
.nav-ee-logo { flex: none; text-decoration: none; }
.nav-ee-liens { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; }
.nav-ee-liens a { color: var(--encre); text-decoration: none; font-weight: 600; font-size: .94rem; position: relative; white-space: nowrap; }
.nav-ee-liens a:hover, .nav-ee-liens a.actif { background: linear-gradient(100deg, transparent 0 1%, var(--surligneur) 2% 97%, transparent 99%) no-repeat 0 85% / 100% 45%; }
.nav-ee-liens .nav-ee-connexion { color: var(--teal-dark); border-left: 1.5px solid rgba(34,38,42,.18); padding-left: 1.2rem; }
.nav-ee-droite { display: flex; align-items: center; gap: .8rem; flex: none; }
.btn-ee { display: inline-block; background: var(--teal); color: #fff !important; text-decoration: none; font-weight: 700; font-size: .9rem;
  padding: .55rem 1rem; border: 2px solid var(--encre); border-radius: 10px; box-shadow: 3px 3px 0 var(--encre); white-space: nowrap;
  transition: transform .14s, box-shadow .14s; }
.btn-ee:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--encre); }
.nav-ee-burger { display: none; align-items: center; gap: 4px; flex-direction: column; justify-content: center; background: var(--feuille);
  border: 2px solid var(--encre); border-radius: 10px; width: 46px; height: 42px; cursor: pointer; padding: 0; box-shadow: 2px 2px 0 var(--encre); }
.nav-ee-burger span { display: block; width: 18px; height: 2px; background: var(--encre); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-ee-burger b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-ee.ouvert .nav-ee-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-ee.ouvert .nav-ee-burger span:nth-child(2) { opacity: 0; }
.nav-ee.ouvert .nav-ee-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-ee-in { height: 62px; gap: .8rem; }
  .nav-ee-burger { display: flex; }
  .nav-ee-droite { margin-left: auto; }
  .btn-ee { font-size: .8rem; padding: .45rem .7rem; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  svg.logo-ee { height: 28px; }
  /* la feuille du menu se déplie sous la barre */
  .nav-ee-liens { position: absolute; top: calc(100% + 8px); right: 14px; left: 14px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--feuille); border: 1.5px solid var(--encre); border-radius: 6px; box-shadow: 6px 6px 0 rgba(34,38,42,.16);
    padding: .5rem 1.2rem .7rem 2.4rem; margin: 0;
    background-image: linear-gradient(90deg, transparent 1.5rem, var(--marge) 1.5rem, var(--marge) calc(1.5rem + 1.5px), transparent calc(1.5rem + 1.5px)),
                      repeating-linear-gradient(transparent 0 47px, var(--ligne) 47px 48px);
    opacity: 0; translate: 0 -8px; pointer-events: none; transition: opacity .2s, translate .25s; }
  .nav-ee.ouvert .nav-ee-liens { opacity: 1; translate: 0 0; pointer-events: auto; }
  .nav-ee-liens a { padding: .8rem 0; font-size: 1.05rem; height: 48px; box-sizing: border-box; align-self: flex-start; background-position: 0 70% !important; }
  .nav-ee-liens .nav-ee-connexion { border-left: 0; padding-left: 0; }
}
@media (max-width: 420px) { .btn-ee { display: none; } }

/* ================= mouvement continu présent sur toutes les pages =================
   un reflet traverse les boutons d'achat toutes les 5 s ; les visuels produits flottent ; les quadrillages défilent lentement */
@keyframes reflet { 0%, 72% { translate: -130% 0; } 100% { translate: 230% 0; } }
@keyframes grille { to { background-position: 0 22px, 22px 0; } }
.btn-ee, .pc-btn { position: relative; overflow: hidden; }
/* reflet retiré (trop chargé) */
.btn-ee::after, .pc-btn::after { display: none; content: ''; position: absolute; inset: 0; width: 45%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent); animation: reflet 5s ease-in-out infinite; }
.pc-btn::after { animation-delay: 1.2s; }
.mockup, .hero2-visuel > img { animation: flotte 8s ease-in-out infinite; }
.chip { animation: flotte 6.5s ease-in-out infinite; }
.chip.c2 { animation-delay: -3s; animation-duration: 7.5s; }
.related-card:nth-child(2) { animation: flotte 7s ease-in-out infinite; }
/* frise de Qui suis-je : chaque étape bat doucement, l'une après l'autre */
@keyframes onde-point { 0% { box-shadow: 0 0 0 0 rgba(29,130,134,.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(29,130,134,0); } }
.timeline-dot { animation: onde-point 3s ease-out infinite; }
.timeline-block:nth-child(2) .timeline-dot { animation-delay: .5s; } .timeline-block:nth-child(3) .timeline-dot { animation-delay: 1s; }
.timeline-block:nth-child(4) .timeline-dot { animation-delay: 1.5s; } .timeline-block:nth-child(5) .timeline-dot { animation-delay: 2s; }
footer svg.logo-ee, .pied svg.logo-ee { animation: flotte 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .btn-ee::after, .pc-btn::after { display: none; }
  .mockup, .hero2-visuel > img, .chip, .related-card, .hero, .blog-hero, .timeline-dot { animation: none !important; }
}

/* sobriété : le quadrillage ne défile plus */
.hero, .blog-hero, .pc-vitrine { animation: none !important; }

/* le menu unique résiste aux styles de liens propres à certaines pages (ex. banque de sujets : nav a en pastilles) */
.nav-ee a { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background-color: transparent !important; }
.nav-ee-liens a { padding: 0 !important; }
.nav-ee .btn-ee { background-color: var(--teal) !important; border: 2px solid var(--encre) !important; border-radius: 10px !important; box-shadow: 3px 3px 0 var(--encre) !important; padding: .55rem 1rem !important; }
@media (max-width: 980px) { .nav-ee-liens a { padding: .8rem 0 !important; } .nav-ee .btn-ee { padding: .45rem .7rem !important; } }
@media (min-width: 981px) { .nav-ee-liens .nav-ee-connexion { border-left: 1.5px solid rgba(34,38,42,.18) !important; padding-left: 1.2rem !important; } }

/* ================= menu du bas (téléphone et tablette), repris du site et adapté à la charte ================= */
.barre-ee, .be-feuille { display: none; }
@media (max-width: 1024px) {
  .barre-ee { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; gap: .35rem; align-items: stretch;
    padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom)); background: rgba(255,253,248,.94); backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1.5px solid rgba(34,38,42,.12); font-family: var(--corps); }
  .be-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem; padding: .35rem .2rem;
    color: var(--encre-douce) !important; text-decoration: none; font-size: .68rem; font-weight: 600; border: 0; background: none; border-radius: 10px;
    font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s; }
  .be-item svg { width: 23px; height: 23px; }
  .be-item.actif { color: var(--encre) !important; }
  .be-item.actif span { background: linear-gradient(100deg, transparent 0 2%, var(--surligneur) 4% 96%, transparent 98%) no-repeat 0 85% / 100% 50%; }
  .be-item:active { background: var(--teal-light); }
  .be-cta { flex: 1.35; background: var(--teal) !important; color: #fff !important; border: 2px solid var(--encre); box-shadow: 2px 2px 0 var(--encre); }
  .be-cta.actif span { background: none; }
  /* la feuille Produits : toutes les rubriques, posée au-dessus du menu */
  .be-feuille { display: block; position: fixed; inset: 0; z-index: 940; background: rgba(22,30,32,.35); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .be-feuille.ouverte { opacity: 1; pointer-events: auto; }
  .be-feuille[hidden] { display: block; }
  .be-feuille-in { position: absolute; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; flex-direction: column;
    background: var(--feuille); border: 1.5px solid var(--encre); border-radius: 14px; box-shadow: 6px 6px 0 rgba(34,38,42,.16); padding: .9rem 1.1rem .6rem;
    translate: 0 14px; transition: translate .35s cubic-bezier(.16,1,.3,1); }
  .be-feuille.ouverte .be-feuille-in { translate: 0 0; }
  .be-feuille-in b { font: 700 .7rem var(--corps); letter-spacing: .2em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: .3rem; }
  .be-feuille-in a { padding: .78rem 0; border-bottom: 1px solid var(--ligne); color: var(--encre) !important; text-decoration: none; font-weight: 600; font-size: 1rem; }
  .be-feuille-in a:last-child { border-bottom: 0; }
  .be-feuille-in .be-connexion { color: var(--teal-dark) !important; }
  /* le menu du bas remplace le bouton Menu du haut ; le contenu ne passe plus dessous */
  .nav-ee-burger { display: none !important; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
  #page-wrap { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  #produits-overlay { display: none !important; }
}
@media (max-width: 420px) { .nav-ee .btn-ee { display: inline-block !important; font-size: .76rem !important; max-width: 52vw; } }

/* ================= pied de page unique ================= */
footer.pied-ee { background: #EFE9DD !important; border-top: 1px solid rgba(22,50,60,.1) !important; color: var(--encre-douce); font-family: var(--corps);
  padding: 4rem 20px 2.2rem !important; margin: 0 !important; text-align: left !important; font-size: .92rem; }
.pied-ee-in { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; }
.pied-ee-marque svg.logo-ee { height: 34px; }
.pied-ee-marque p { margin: 1rem 0 0; max-width: 22rem; line-height: 1.6; color: var(--encre-douce); }
.pied-ee-col { display: flex; flex-direction: column; gap: .55rem; }
.pied-ee-col b { font: 600 .72rem var(--corps); letter-spacing: .2em; text-transform: uppercase; color: var(--encre); margin-bottom: .3rem; }
.pied-ee a { color: var(--encre-douce) !important; text-decoration: none; }
.pied-ee a:hover { color: var(--encre) !important; text-decoration: underline; text-underline-offset: 3px; }
.pied-ee-bas { max-width: 1160px; margin: 2.8rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(22,50,60,.1); display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .8rem; color: var(--gris); }
.pied-ee-bas span { margin-right: auto; }
@media (max-width: 760px) { .pied-ee-in { grid-template-columns: 1fr 1fr; } .pied-ee-marque { grid-column: 1 / -1; } footer.pied-ee { padding-top: 3rem !important; } .pied-ee-bas span { width: 100%; } }
