/**
 * Easter Eggs CSS — Dominique Jolivet
 * Styles pour les 7 micro-interactions cachées
 * v1.1.0 — 2026-03-28
 */

/* ============================================================
   GLOBAL
   ============================================================ */
.ee-fade-out {
  opacity: 0 !important;
  transition: opacity 0.8s ease !important;
  pointer-events: none !important;
}

/* ============================================================
   1. RESPIRATION SYNCHRONISÉE
   ============================================================ */
@keyframes ee-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.965; }
}

body.ee-breathing {
  animation: ee-breathe 4s ease-in-out infinite;
}

/* ============================================================
   2. SCROLL CHROMATIQUE
   ============================================================ */
html {
  transition: filter 0.15s linear;
  will-change: filter;
}

/* ============================================================
   3. MOT LIBERTÉ
   ============================================================ */
#ee-liberty {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#ee-liberty.ee-liberty-show {
  opacity: 1;
  pointer-events: auto;
}

.ee-liberty-word {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 10vw, 7rem);
  color: #d4a24c;
  letter-spacing: 0.15em;
  text-shadow: 0 4px 30px rgba(212, 162, 76, 0.5);
  animation: ee-liberty-in 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.ee-liberty-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.8rem;
  opacity: 0;
  animation: ee-liberty-sub-in 0.5s 0.4s ease forwards;
}

@keyframes ee-liberty-in {
  from { transform: scale(0.5) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes ee-liberty-sub-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   4. KONAMI STOP
   ============================================================ */
#ee-stop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#ee-stop.ee-stop-show {
  opacity: 1;
}

.ee-stop-smoke {
  position: absolute;
  inset: 0;
  background: rgba(180, 180, 180, 0.85);
  animation: ee-smoke-clear 2s 0.5s ease-out forwards;
}

@keyframes ee-smoke-clear {
  from { background: rgba(180, 180, 180, 0.85); }
  to   { background: rgba(0, 0, 0, 0.65); }
}

.ee-stop-content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  animation: ee-stop-text-in 0.8s 1s ease forwards;
}

.ee-stop-word {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}

.ee-stop-msg {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1rem;
}

.ee-stop-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2d2a26;
  background: #d4a24c;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ee-stop-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 162, 76, 0.4);
  color: #2d2a26;
}

@keyframes ee-stop-text-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   5. HORLOGE DE CONSCIENCE
   ============================================================ */
#ee-clock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
  opacity: 1;
}

#ee-clock.ee-clock-show {
  transform: translateY(0);
}

.ee-clock-inner {
  background: linear-gradient(135deg, #1a3a35 0%, #2a9d8f 100%);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 1rem 1.5rem;
  text-align: center;
  line-height: 1.6;
}

.ee-clock-time {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: #d4a24c;
}

.ee-clock-inner a {
  color: #d4a24c;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.3rem;
}

.ee-clock-inner a:hover {
  text-decoration: underline;
}

.ee-clock-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
}

.ee-clock-close:hover {
  color: #fff;
}

/* ============================================================
   6. SPIRALE / ILLUSION D'OPTIQUE (page Hypnose)
   Subtle floating spiral — smaller, right-aligned, elegant
   ============================================================ */
#ee-spiral-wrap {
  position: relative;
  float: right;
  margin: 0.5rem 0 1.5rem 2rem;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: visible;
  shape-outside: circle(50%);
}

#ee-spiral-canvas {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  opacity: 0.2;
  transition: opacity 2s ease;
}

#ee-spiral-wrap:hover #ee-spiral-canvas {
  opacity: 0.4;
}

.ee-spiral-tooltip {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: linear-gradient(135deg, #1a3a35, #2a9d8f);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  width: max-content;
  max-width: 340px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  z-index: 99997;
}

.ee-spiral-tooltip::before {
  display: none;
}

.ee-spiral-tooltip a {
  color: #d4a24c;
  font-weight: 600;
  text-decoration: none;
}

.ee-spiral-tooltip a:hover {
  text-decoration: underline;
}

.ee-spiral-tooltip-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   7. DOUBLE-TAP RÉVÉLATEUR (flip card)
   ============================================================ */
.ee-flip-wrap {
  perspective: 1000px;
  position: relative;
  cursor: default;
}

.ee-flip-front,
.ee-flip-back {
  backface-visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 12px;
}

.ee-flip-front {
  position: relative;
  z-index: 1;
}

.ee-flip-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a3a35 0%, #2a9d8f 100%);
  border-radius: 12px;
}

.ee-flip-wrap.ee-flipped .ee-flip-front {
  transform: rotateY(-180deg);
}

.ee-flip-wrap.ee-flipped .ee-flip-back {
  transform: rotateY(0);
  z-index: 2;
}

.ee-flip-back-content {
  text-align: center;
  padding: 2rem;
  color: #fff;
}

.ee-flip-msg {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.ee-flip-msg strong {
  color: #d4a24c;
}

.ee-flip-cta {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: #d4a24c;
  color: #2d2a26;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ee-flip-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 162, 76, 0.4);
  color: #2d2a26;
}

/* ============================================================
   MOBILE ADJUSTMENTS
   ============================================================ */
@media (max-width: 768px) {
  .ee-liberty-word {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .ee-stop-word {
    font-size: clamp(3rem, 15vw, 6rem);
  }

  #ee-spiral-wrap {
    width: 120px;
    height: 120px;
    margin: 0.3rem 0 1rem 1rem;
  }

  #ee-spiral-canvas {
    width: 120px;
    height: 120px;
  }

  .ee-spiral-tooltip {
    max-width: 280px;
    font-size: 0.85rem;
    bottom: 1.5rem;
  }

  .ee-clock-inner {
    font-size: 0.85rem;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
  }

  .ee-clock-time {
    font-size: 1.1rem;
  }
}
