/* =========================
   🌍 GLOBAL
========================= */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #fff;

  background:
    radial-gradient(circle at 20% 20%, #0a4fa3 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, #6a00ff 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, #00c2ff 0%, transparent 50%),
    linear-gradient(120deg, #050b18, #0a1630);

  background-attachment: fixed;
  overflow-x: hidden;
}

/* =========================
   🔹 HEADER
========================= */

.header {
  background: linear-gradient(135deg, #0a4fa3, #063b7a);
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  position: relative;
  overflow: hidden;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 140px;
  max-width: 100%;
  height: auto;
}

.site-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: bold;
  margin: 0;
  line-height: 1;
  word-break: break-word;
}

.slogan {
  margin-top: 10px;
  font-size: clamp(14px, 2vw, 20px);
  opacity: 0.9;
}

/* =========================
   🔐 LOGIN
========================= */

.login-box {
  background: rgba(255,255,255,0.15);
  padding: 20px;
  border-radius: 12px;
  width: 280px;
  max-width: 100%;

  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;

  border-radius: 6px;
  border: none;

  font-size: 16px;
}

.login-box button {
  width: 100%;
  padding: 12px;

  background: #fff;
  color: #111;

  border: none;
  cursor: pointer;

  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;

  transition: 0.25s ease;
}

.login-box button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* =========================
   📝 SECTIONS
========================= */

.signup {
  text-align: center;
  padding: 25px;
}

.signup .btn {
  display: inline-block;

  padding: 12px 22px;

  background: #0a4fa3;
  color: white;

  text-decoration: none;
  border-radius: 8px;

  transition: 0.25s ease;
}

.signup .btn:hover {
  transform: translateY(-2px);
}

.about {
  padding: 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

/* =========================
   🖼️ GALERIE
========================= */

.gallery {
  display: flex;
  justify-content: center;
  gap: 30px;

  padding: 20px;
  flex-wrap: wrap;
}

.slider-box {
  text-align: center;
  position: relative;
}

.slider {
  position: relative;

  width: 260px;
  max-width: 90vw;

  height: 180px;

  overflow: hidden;
  border-radius: 14px;

  background: rgba(255,255,255,0.18);

  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.35);

  box-shadow:
    0 10px 25px rgba(0,0,0,0.15),
    inset 0 0 20px rgba(255,255,255,0.25);

  transform: perspective(900px) rotateX(3deg);
}

.slider img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;

  transform: scale(1.12);

  transition:
    opacity 1.6s ease-in-out,
    transform 5s ease-in-out;

  cursor: pointer;
}

.slider img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* =========================
   👤 PROFILE CARD
========================= */

.profile-card {
  margin-top: 20px;

  width: 280px;
  max-width: 95%;

  padding: 18px;

  border-radius: 18px;

  background: rgba(10, 30, 70, 0.85);

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,0.25);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.7),
    0 0 25px rgba(0,180,255,0.3);

  opacity: 0;
  pointer-events: none;

  transform: translateY(15px) scale(0.95);

  transition: all 0.35s ease;

  margin-left: auto;
  margin-right: auto;
}

.profile-card.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.profile-card h4 {
  margin: 0 0 6px;

  font-size: 20px;

  color: #fff;

  text-shadow: 0 0 10px rgba(0,180,255,0.7);
}

.profile-card p {
  margin: 6px 0;
  font-size: 14px;
  opacity: 0.95;
}

/* =========================
   ✨ HOVER
========================= */

#slider-personnes img {
  transition:
    transform 0.5s ease,
    filter 0.4s ease,
    box-shadow 0.4s ease;
}

#slider-personnes img:hover {
  transform: scale(1.08);

  filter: brightness(1.1);

  box-shadow:
    0 0 18px rgba(0,180,255,0.7),
    0 0 35px rgba(0,120,255,0.4);
}

/* =========================
   📺 ADS
========================= */

.ads {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 40px 0;

  text-align: center;
}

.ads h3 {
  margin-bottom: 10px;
}

.ads p {
  max-width: 600px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.ads-slider {
  width: 700px;
  max-width: 95%;

  height: 220px;

  position: relative;

  overflow: hidden;

  border-radius: 18px;

  background: rgba(255,255,255,0.12);

  backdrop-filter: blur(14px);

  box-shadow: 0 25px 60px rgba(0,0,0,0.5);

  cursor: pointer;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ads-slider:hover {
  transform: scale(1.02);

  box-shadow: 0 30px 70px rgba(0,0,0,0.7);
}

.ads-slider video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;

  transition: opacity 0.9s ease-in-out;
}

.ads-slider video.active {
  opacity: 1;
}

.ads-slider::after {
  content: "🔗 Cliquez pour en savoir plus";

  position: absolute;

  bottom: 10px;
  right: 15px;

  font-size: 13px;

  opacity: 0.7;
}

/* =========================
   📖 CHRONIQUE
========================= */

.chronique {
  max-width: 850px;

  margin: 60px auto;
  padding: 30px;

  border-radius: 20px;

  background: rgba(255,255,255,0.12);

  backdrop-filter: blur(16px);

  border: 1px solid rgba(255,255,255,0.25);

  box-shadow: 0 20px 50px rgba(0,0,0,0.5);

  text-align: center;
}

.chronique-title {
  font-size: clamp(22px, 4vw, 30px);
}

.chronique-subtitle {
  font-size: clamp(15px, 2vw, 18px);
}

.chronique-excerpt {
  font-size: 16px;
  line-height: 1.7;
}

/* =========================
   💬 COMMENTS
========================= */

.comments,
.comments-disabled {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 15px;
}

.comment {
  background: rgba(255,255,255,0.08);

  padding: 15px;
  margin-bottom: 15px;

  border-radius: 10px;
}

.comment-form textarea {
  width: 100%;
  height: 100px;

  padding: 12px;

  border-radius: 8px;
  border: none;

  font-size: 16px;
}

.comment-form button {
  margin-top: 10px;

  padding: 10px 20px;

  border: none;
  border-radius: 6px;

  cursor: pointer;
}

/* =========================
   ❤️ LIKE
========================= */

.like-btn {
  background: none;
  border: none;

  cursor: pointer;

  font-weight: bold;

  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.like-btn.liked {
  color: #e0245e;
}

.like-btn.unliked {
  color: #777;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.like-animate {
  animation: heartPop 0.35s ease;
}

/* =========================
   🔗 SHARE
========================= */

.share-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  align-items: center;
}

.share-btn {
  padding: 10px 14px;

  border-radius: 6px;

  text-decoration: none;

  font-weight: bold;

  color: white;
  font-size: 14px;
}

.share-btn.whatsapp {
  background: #25D366;
}

.share-btn.facebook {
  background: #1877F2;
}

.share-btn:hover {
  opacity: 0.85;
}

/* =========================
   🖼️ CHRONIQUE GALLERY
========================= */

.chronique-gallery {
  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(220px, 1fr));

  gap: 12px;

  margin: 25px 0;
}

.gallery-img {
  width: 100%;
  height: 220px;

  object-fit: cover;

  border-radius: 8px;

  cursor: pointer;
}

/* =========================
   👤 PROFILE PHOTO
========================= */

.profile-photo {
  width: 96px;
  height: 96px;

  border-radius: 50%;

  object-fit: cover;

  border: 3px solid rgba(255,255,255,0.6);

  box-shadow:
    0 0 12px rgba(0,180,255,0.5),
    0 10px 25px rgba(0,0,0,0.4);

  background: #fff;
}

.profile-photo.small {
  width: 42px;
  height: 42px;
}

/* =========================
   📊 MINI DASHBOARD
========================= */

.dashboard-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.dashboard-mini a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.header-link {
  text-decoration: none;
  color: inherit;

  display: flex;
  align-items: center;
}

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

@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  .header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .header-left {
    flex-direction: column;
  }

  .logo {
    width: 110px;
  }

  .site-title {
    font-size: 40px;
  }

  .slogan {
    font-size: 15px;
  }

  .login-box {
    width: 100%;
    max-width: 340px;
  }

  .gallery {
    flex-direction: column;
    gap: 40px;
  }

  .slider {
    width: 92vw;
    height: 210px;
    transform: none;
  }

  .profile-card {
    width: 92%;
    max-width: 360px;
  }

  .ads-slider {
    width: 95%;
    height: 200px;
  }

  .chronique {
    margin: 40px 15px;
    padding: 25px;
  }

  .chronique-content {
    font-size: 16px;
    line-height: 1.7;
  }

  footer {
    font-size: 14px;
    padding: 20px;
  }

}

/* =========================
   🦶 FOOTER
========================= */

footer {
  background: #0a4fa3;
  padding: 15px;
  text-align: center;
}

footer a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
}