/* ======================
   STYLE DOUX ET LUMINEUX
   ====================== */

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* BODY : fond doux, centrage horizontal, scroll vertical OK */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #faf7f2, #e6eef2);
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;      /* centre horizontalement */
  align-items: flex-start;      /* contenu commence en haut pour permettre le scroll */
  padding: 4rem 1rem 6rem;
  position: relative;
  overflow-x: hidden;           /* pas de scroll horizontal */
}

/* Halo pastel doux en arrière-plan */
.bg-glow {
  position: fixed;
  inset: 0 auto auto 0;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(173, 216, 230, 0.5) 0%,
    rgba(250, 247, 242, 0.2) 60%,
    transparent 80%
  );
  filter: blur(90px);
  opacity: 0.6;
  animation: floatGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatGlow {
  0% {
    transform: translate(-100px, -80px);
  }
  100% {
    transform: translate(80px, 60px);
  }
}

/* Carte principale */
.card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e0dedb;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  padding: 2.5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Profil */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #bcd4e6;
  box-shadow: 0 0 15px rgba(173, 216, 230, 0.5);
  object-fit: cover;
  background-color: #f9f9f9;
}

.name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2f4858;
  margin: 1rem 0 0.25rem;
}

.subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: #5e6d7a;
  margin: 0;
}

/* Réseaux sociaux */
.social-section {
  margin-bottom: 2.5rem;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-item {
  width: 100%;
}

.social-link {
  width: 100%;
  background: #f6f5f3;
  border: 1px solid #e0dedb;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: #2f4858;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.social-link i {
  font-size: 1.4rem;
  width: 1.8rem;
  min-width: 1.8rem;
  text-align: center;
  color: #7da0b5;
  transition: color 0.25s ease, filter 0.25s ease;
}

.social-texts {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.social-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2f4858;
}

.social-alias {
  font-size: 0.8rem;
  color: #8a9aa4;
}

/* Hover pastel général par défaut */
.social-link:hover {
  background: #eaf3f8;
  border-color: #bcd4e6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(173, 216, 230, 0.3);
}

/* Couleurs de marque au hover */

/* Instagram */
.social-link[href*="instagram.com"]:hover {
  border-color: #e1306c33;
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.25);
  background: #fff5f8;
}
.social-link[href*="instagram.com"]:hover i.fab.fa-instagram {
  color: #e1306c;
  filter: drop-shadow(0 0 4px rgba(225, 48, 108, 0.4));
}

/* YouTube */
.social-link[href*="youtube.com"]:hover {
  border-color: #ff000033;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.25);
  background: #fff5f5;
}
.social-link[href*="youtube.com"]:hover i.fab.fa-youtube {
  color: #ff0000;
  filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.4));
}

/* Facebook */
.social-link[href*="facebook.com"]:hover {
  border-color: #1877f233;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.25);
  background: #f5f8ff;
}
.social-link[href*="facebook.com"]:hover i.fab.fa-facebook {
  color: #1877f2;
  filter: drop-shadow(0 0 4px rgba(24, 119, 242, 0.4));
}

/* LinkedIn */
.social-link[href*="linkedin.com"]:hover {
  border-color: #0077b533;
  box-shadow: 0 6px 20px rgba(0, 119, 181, 0.25);
  background: #f5fbff;
}
.social-link[href*="linkedin.com"]:hover i.fab.fa-linkedin {
  color: #0077b5;
  filter: drop-shadow(0 0 4px rgba(0, 119, 181, 0.4));
}

/* Amazon Author */
.social-link[href*="amazon."]:hover {
  border-color: #ff990033;
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.25);
  background: #fffaf2;
}
.social-link[href*="amazon."]:hover i.fab.fa-amazon {
  color: #ff9900;
  filter: drop-shadow(0 0 4px rgba(255, 153, 0, 0.4));
}

/* Section Livres */
.books-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.books-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2f4858;
  margin-bottom: 1rem;
  text-align: left;
}

/* Slider wrapper :
   On isole le slider et on positionne les flèches en absolu */
.books-slider-wrapper {
  position: relative;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  padding: 0 3rem; /* espace réservé pour les flèches gauche/droite */
  box-sizing: border-box;
}

/* Boutons du slider (précédent / suivant) */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #f6f5f3;
  border: 1px solid #d6d2ce;
  color: #2f4858;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 16px rgba(49, 112, 142, 0.15);
  z-index: 2;
}
.nav-btn:hover {
  background: #d9ecf2;
  color: #31708e;
  box-shadow: 0 8px 16px rgba(49, 112, 142, 0.25);
}

.prev-btn {
  left: 0.5rem;
}

.next-btn {
  right: 0.5rem;
}

/* Fenêtre du slider (zone visible) */
.books-slider {
  overflow: hidden;
  flex: 1;
  position: relative;
  min-height: 380px;  /* évite que le contenu soit coupé */
  padding: 0;
  background: transparent;
}

/* Bande qui translate horizontalement */
.books-track {
  display: flex;
  flex-wrap: nowrap;            /* tout sur une seule ligne */
  transition: transform 0.4s ease;
  width: 100%;
}

/* Slide (un livre = une carte) */
.book-card {
  flex: 0 0 100%;               /* chaque slide prend exactement 100% de la largeur visible */
  max-width: 100%;
  box-sizing: border-box;

  background: #fff;
  border-radius: 16px;
  border: 1px solid #eae6e1;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.book-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2f4858;
  margin-bottom: 0.6rem;
}

/* Image du livre agrandie */
.book-img-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.book-img {
  width: 180px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d6d2ce;
  background-color: #f9f9f9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Description du livre */
.book-desc {
  font-size: 0.85rem;
  color: #5e6d7a;
  margin: 0 0 1rem;
  line-height: 1.4rem;
  max-width: 320px;
  text-align: center;
}

/* Bouton "Commander" */
.book-link {
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #5fa8d3, #84c7d0);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(95, 168, 211, 0.3);
  transition: all 0.25s ease;
}
.book-link:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(95, 168, 211, 0.5);
}

/* Message vide / erreur */
.books-empty {
  font-size: 0.8rem;
  color: #8a9aa4;
  text-align: center;
}

/* Indicateurs (petits points du slider) */
.dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background: #5fa8d3;
  box-shadow: 0 0 8px rgba(95, 168, 211, 0.6);
}

/* Footer */
.footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #8a9aa4;
  text-align: center;
  line-height: 1.4rem;
}

/* Responsive */
@media (min-width: 480px) {
  .card {
    max-width: 420px;
    padding: 2.5rem 2rem 4rem;
  }
}

/* Option : si l'écran est très grand en hauteur,
   on peut centrer verticalement la carte */
@media (min-height: 900px) {
  body {
    align-items: center;
  }
}

/* Option mobile très étroit :
   réduire un peu l'espace latéral réservé aux flèches */
@media (max-width: 360px) {
  .books-slider-wrapper {
    padding: 0 2rem;
  }

  .prev-btn {
    left: 0.25rem;
  }

  .next-btn {
    right: 0.25rem;
  }
}
