/* Antioche Books — Countdown Page */

:root {
  --theme: #036280;
  --theme2: #FF6500;
  --header: #012E4A;
  --text: #4F536C;
  --body-bg: #ffffff;
  --border: #D4DCFF;
  --bg: #D0E1E7;
  --bg2: #F5F5F5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f0f7fa 0%, #e8f4f8 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* Conteneur principal */
.countdown-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

/* Fond animé */
.background-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Livres flottants en arrière-plan */
.floating-books {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-book {
  position: absolute;
  opacity: 0.08;
  filter: blur(1px);
  animation: float 20s infinite ease-in-out;
}

.floating-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.book-1 {
  width: 120px;
  height: 180px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  transform: rotate(-15deg);
}

.book-2 {
  width: 140px;
  height: 210px;
  top: 60%;
  right: 8%;
  animation-delay: 2s;
  transform: rotate(12deg);
}

.book-3 {
  width: 100px;
  height: 150px;
  bottom: 15%;
  left: 10%;
  animation-delay: 4s;
  transform: rotate(-8deg);
}

.book-4 {
  width: 130px;
  height: 195px;
  top: 30%;
  right: 5%;
  animation-delay: 1s;
  transform: rotate(18deg);
}

.book-5 {
  width: 110px;
  height: 165px;
  bottom: 20%;
  right: 15%;
  animation-delay: 3s;
  transform: rotate(-10deg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--theme);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: var(--theme2);
  bottom: 50px;
  left: -80px;
  animation-delay: 3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--header);
  top: 50%;
  right: 10%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

/* Contenu */
.countdown-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(3, 98, 128, 0.1);
}

/* Logo */
.countdown-logo {
  margin-bottom: 40px;
  /* animation: slideDown 0.8s ease-out, glow 3s ease-in-out infinite; */
  padding: 30px;
  /* background: linear-gradient(135deg, rgba(3, 98, 128, 0.08), rgba(255, 101, 0, 0.08)); */
  border-radius: 20px;
  display: inline-block;
  border: 2px solid rgba(3, 98, 128, 0.15);
}

.logo-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(3, 98, 128, 0.2));
  transition: transform 0.3s ease;
}

.countdown-logo:hover .logo-img {
  transform: scale(1.05);
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(3, 98, 128, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 101, 0, 0.2), 0 0 60px rgba(3, 98, 128, 0.15);
  }
}

/* Galerie de livres */
.books-showcase {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  /* margin: 35px 0 40px; */
  perspective: 1000px;
  /* height: 300px; */
  animation: slideUp 0.8s ease-out 0.15s both;
}

.book-card {
  position: relative;
  width: 60px;
  height: 90px;
  background: linear-gradient(135deg, #fff, #f9f9f9);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  transform: translateY(0) rotateY(0deg) rotateZ(0deg);
}

.book-card:hover {
  transform: translateY(-15px) rotateY(-8deg) rotateZ(5deg);
  box-shadow: 0 20px 50px rgba(3, 98, 128, 0.25);
}

.book-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent);
  z-index: 2;
}

.book-card-1 { animation: swingBook 3s ease-in-out infinite; animation-delay: 0s; }
.book-card-2 { animation: swingBook 3.2s ease-in-out infinite; animation-delay: 0.1s; }
.book-card-3 { animation: swingBook 3.4s ease-in-out infinite; animation-delay: 0.2s; z-index: 10; }
.book-card-4 { animation: swingBook 3.2s ease-in-out infinite; animation-delay: 0.1s; }
.book-card-5 { animation: swingBook 3s ease-in-out infinite; animation-delay: 0s; }

@keyframes swingBook {
  0%, 100% { transform: rotateZ(-3deg); }
  50% { transform: rotateZ(3deg); }
}

/* Ligne décorative */
.countdown-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--theme2), var(--theme), transparent);
  border-radius: 2px;
  margin: 20px auto 30px;
  animation: slideDown 0.8s ease-out 0.1s both;
}

/* En-tête */
.countdown-header {
  margin-bottom: 45px;
}

.countdown-subtitle {
  font-size: 1.2rem;
  color: var(--header);
  font-weight: 600;
  animation: slideDown 0.8s ease-out 0.2s both;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Countdown Timer */
.countdown-timer {
  margin: 40px 0;
}

.countdown-label {
  font-size: 1.1rem;
  color: var(--header);
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: slideUp 0.8s ease-out 0.3s both;
}

.countdown-boxes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  animation: slideUp 0.8s ease-out 0.4s both;
}

.countdown-box {
  background: linear-gradient(135deg, var(--theme), #0a7fa3);
  border-radius: 16px;
  padding: 20px 16px;
  min-width: 90px;
  box-shadow: 0 10px 30px rgba(3, 98, 128, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(3, 98, 128, 0.3);
}

.countdown-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
  font-weight: 600;
}

.countdown-separator {
  color: var(--theme);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 -6px;
}

.countdown-date {
  font-size: 1rem;
  color: var(--header);
  font-weight: 600;
  margin-top: 20px;
}

.countdown-date sup {
  font-size: 0.7em;
}

/* Valeurs */
.countdown-values {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 35px 0;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 0.45s both;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg), rgba(3, 98, 128, 0.08));
  border: 2px solid rgba(3, 98, 128, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--theme);
  transition: all 0.3s ease;
}

.value-item:hover .value-icon {
  background: linear-gradient(135deg, var(--theme), #0a7fa3);
  border-color: var(--theme);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(3, 98, 128, 0.2);
}

.value-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--header);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA */
.countdown-cta {
  margin: 45px 0;
  padding: 30px;
  background: linear-gradient(135deg, rgba(3, 98, 128, 0.05), rgba(255, 101, 0, 0.05));
  border-radius: 16px;
  border: 1px solid var(--border);
  animation: slideUp 0.8s ease-out 0.5s both;
}

.countdown-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--header);
  margin-bottom: 20px;
}

.countdown-text strong {
  color: var(--theme);
  font-weight: 700;
}

.countdown-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--theme), #0a7fa3);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(3, 98, 128, 0.25);
  text-decoration: none;
}

.countdown-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(3, 98, 128, 0.35);
  color: #fff;
  text-decoration: none;
}

.countdown-btn:active {
  transform: translateY(-1px);
}

/* WhatsApp Community */
.countdown-whatsapp {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: slideUp 0.8s ease-out 0.6s both;
  scroll-margin-top: 20px;
}

.whatsapp-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(37, 211, 102, 0.03));
  border-radius: 16px;
  padding: 30px;
  border: 2px solid #25D366;
}

.whatsapp-icon {
  font-size: 3rem;
  color: #25D366;
  margin-bottom: 15px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.whatsapp-title {
  font-size: 1.4rem;
  color: var(--header);
  font-weight: 800;
  margin-bottom: 8px;
}

.whatsapp-subtitle {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.6;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, #25D366, #1fb85c);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
  display: inline-flex;
}

.whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  color: #fff;
}

.whatsapp-btn:active {
  transform: translateY(-1px);
}

.whatsapp-note {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 16px;
  margin-bottom: 0;
}

/* Social */
.countdown-social {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.social-label {
  font-size: 0.9rem;
  color: var(--header);
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--theme);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--theme);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(3, 98, 128, 0.2);
}

/* Footer */
.countdown-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}

.countdown-footer a {
  color: var(--theme);
  text-decoration: none;
  transition: color 0.2s;
}

.countdown-footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilities */
.me-2 { margin-right: 8px; }
.ms-2 { margin-left: 8px; }

/* Responsive */
@media (max-width: 600px) {
  .countdown-content {
    padding: 40px 20px;
  }

  .countdown-logo {
    margin-bottom: 30px;
  }

  .logo-img {
    max-width: 180px;
  }

  .books-showcase {
    /* height: 220px; */
    gap: 4px;
  }

  .book-card {
    width: 45px;
    height: 68px;
  }

  .countdown-subtitle {
    font-size: 1rem;
  }

  .countdown-value {
    font-size: 1.6rem;
  }

  .countdown-boxes {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .countdown-box {
    min-width: 55px;
    padding: 12px 8px;
    flex-shrink: 0;
  }

  .countdown-value {
    font-size: 1.3rem;
  }

  .countdown-unit {
    font-size: 0.65rem;
  }

  .countdown-separator {
    font-size: 1rem;
    flex-shrink: 0;
  }

  .countdown-cta {
    padding: 20px;
  }

  .whatsapp-card {
    padding: 20px;
  }

  .countdown-values {
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .value-item {
    flex-shrink: 0;
  }

  .value-icon {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }

  .value-text {
    font-size: 0.8rem;
  }

  .floating-books {
    display: none;
  }
}
