/* =========================================================
   FONT & BASE
========================================================= */

@font-face {
  font-family: "PostBinaire";
  src: url("ma-police.woff2") format("woff2"),
       url("ma-police.woff") format("woff");
}

@font-face {
  font-family: "AdelpheFlorealBold";
  src: url("Adelphe-Trouble-FlorealBold.otf") format("opentype");
}

.font-fructidor {
  font-family: "AdelpheFructidorBold", serif;
}

@font-face {
  font-family: "AdelpheFructidorBold";
  src: url("Adelphe-Trouble-FructidorBold.woff2") format("woff2");
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: PostBinaire, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  background-color: #ff2fa3;
  color: #000;
}

.post-binaire-texte {
  font-feature-settings: "liga" 1, "dlig" 1, "salt" 1;
}

.normal {
  font-style: normal;
}

/* =========================================================
   STRUCTURE GÉNÉRALE
========================================================= */

.page {
  max-width: 680px;
  margin: 120px auto 40px auto;
  padding: 48px;
  background-color: #ffffff;
  border: 6px solid #000000;
  box-shadow: 12px 12px 0 #000;
  overflow: visible;
  position: relative;
}

.titre {
  font-size: 48px;
  line-height: 1.05;
  margin: 0;
  color: #ff2fa3;
}

.texte {
  font-size: 22px;
  color: #ff2fa3;
}

.texte-hors-cadre {
  color: #ffffff;
  max-width: 680px;
  margin: 40px auto 80px auto;
  font-size: 18px;
  line-height: 1.7;
}

.emoji {
  font-size: 0.8em;
  margin-left: 0.005em;
}

/* =========================================================
   LIENS (CLIGNOTEMENT)
========================================================= */

a {
  animation: arrow-pulse 3s steps(5) infinite;
}

a:hover {
  animation: none;
  color: hotpink;
}

@keyframes arrow-pulse {
  0% { color: hotpink; }
  50% { color: white; }
  100% { color: hotpink; }
}

/* =========================================================
   PAGE À PROPOS
========================================================= */

.apropos-subtitle {
  margin-top: 4px;
  margin-bottom: 28px;
  font-size: 16px;
  font-style: italic;
  color: #ff2fa3;
  opacity: 0.85;
}

.apropos-content {
  overflow: visible;
}

.apropos-texte {
  font-size: 16px;
  line-height: 1.5;
  color: #ff2fa3;
}

.apropos-legende {
  clear: both;
  margin-top: 12px;
  font-size: 12px;
  font-style: italic;
  opacity: 0.8;
}

.apropos-legende a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* =========================================================
   POST-IT BLEU (TEXTE)
========================================================= */

#postit-pop {
  position: absolute;
  width: 330px;
  z-index: 20;
  cursor: grab;
}

#postit-pop.dragging {
  cursor: grabbing;
  user-select: none;
}

.postit-bar {
  background:#00a8ff;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  border:4px solid #00a8ff;
  border-bottom:none;
  box-shadow:10px 10px 0 #00a8ff;
}

#close-postit {
  background:#fff;
  border:2px solid #00a8ff;
  color:#00a8ff;
  width:22px;
  height:22px;
  line-height:18px;
  margin-right:4px;
  font-size:16px;
  cursor:pointer;
}

.postit-content {
  background:#ffffff;
  border:4px solid #00a8ff;
  box-shadow:10px 10px 0 #00a8ff;
  padding:18px;

  font-family: "AdelpheFructidorBold", serif;
  font-size: 15px;
  line-height: 1.45;

  color: #00a8ff;
  text-align: left;

  font-feature-settings: "liga" 1, "dlig" 1;
}

.postit-source {
  display:block;
  margin-top:12px;
  font-size:11px;
  font-style:italic;
  opacity:.85;
  text-align:right;
}

/* =========================================================
   POST-IT JAUNE (PHOTO)
========================================================= */

#postit-photo {
  position:absolute;
  width:200px;
  border:4px solid #EFFF0F;
  background:#fff;
  box-shadow:16px 16px 0 #EFFF0F;
  cursor:grab;
  z-index:15;
}

#postit-photo.dragging {
  cursor: grabbing;
  user-select: none;
}

#postit-photo .postit-bar {
  background:#EFFF0F;
  border-color:#EFFF0F;
  box-shadow:16px 16px 0 #EFFF0F;
}

#postit-photo .close-photo {
  background:#fff;
  border:2px solid #EFFF0F;
  color:#EFFF0F;
  width:22px;
  height:22px;
  line-height:18px;
  margin-right:4px;
  font-size:16px;
  cursor:pointer;
}

#postit-photo img {
  width:100%;
  display:block;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  #postit-pop,
  #postit-photo {
    position: static;
    width: 100%;
    margin: 24px 0;
  }

}

/* =========================================================
   FOOTER (RESTAURÉ)
========================================================= */

.site-footer {
  color: #ffffff;
  padding: 48px 40px 16px 40px;
  font-size: 13px;
  opacity: 0.9;
  clear: both;
}

.footer-inner.two-lines {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  align-items: center;
  column-gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.footer-left,
.footer-center,
.footer-right {
  justify-self: center;
}

.footer-mail {
  font-style: italic;
}

.footer-bottom {
  margin: 0;
  opacity: 0.8;
  text-align: center;
}

.site-footer a,
.site-footer a:visited {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.site-footer a:hover {
  opacity: 0.7;
}
#glitch-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.2s steps(2);
}

#glitch-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}

#glitch-screen.active {
  opacity: 1;
  pointer-events: all;
}
#glitch-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.align-right {
  text-align: right;
}

.full-love {
  display: block;
  margin-top: 18px;
  line-height: 2.6em;
  font-weight: bold;
  font-size: 1.4em;   /* ⬅️ ICI : taille du slogan */
  white-space: nowrap;
}


/* lettres individuelles */
.full-love .letter {
  display: inline-block;
  color: hotpink;
  animation: christmas-flicker 1.8s infinite;
  animation-delay: var(--delay);
}

/* animation guirlande */
@keyframes christmas-flicker {
  0%   { opacity: 1; transform: translateY(0); }
  40%  { opacity: 0.25; transform: translateY(-1px); }
  60%  { opacity: 0.9; transform: translateY(1px); }
  100% { opacity: 1; transform: translateY(0); }
}
