:root {
  --pink: #e6007e;
  --pink-dark: #a8005f;
  --purple: #6a3fa0;
  --purple-dark: #5a2f90;
  --cream: #fdf6d8;
  --cream-border: #efe0a0;
  --green: #2e8b2e;
  --red: #c0392b;
  --lilac: #8a5aa8;
  --pink-bg: #fbe4ef;
  --pink-border: #f0b8d4;
  --sky-top: #bfe6f5;
  --sky-bottom: #e8f6fb;
  --olive-bg: #eef6d8;
  --olive-border: #d3e6a0;
  --olive-text: #4a6a1e;
  --gold-bg: #fdf6e3;
  --gold-border: #f0c419;
  --lilac-bg: #f1e6fa;
  --lilac-border: #d9c0ef;
}

body {
  font-family: "Nunito", sans-serif;
  color: #5a4a6a;
}

.font-title {
  font-family: "Baloo 2", sans-serif;
}

a {
  color: var(--pink);
  text-decoration: underline;
}
a:hover {
  color: var(--pink-dark);
}
.hl {
  color: var(--pink);
  font-weight: 700;
}

/* Bordure mauve discrète sur toutes les vignettes d'icônes (images/vignette-*.png) */
img[src*="/vignette-"] {
  border: 1.5px solid var(--lilac);
  box-sizing: border-box;
}

/* HEADER / NAV */
.site-header {
  background: var(--purple);
  padding: 10px 0;
}
.logo-sm {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
}
.logo-sm .love { color: #ff6fb5; }
.logo-sm .paradiz { color: #fff; }
.site-header .nav-link {
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  color: #e8d8f5;
  padding: 8px 14px;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #fff;
}
.btn-connexion {
  background: linear-gradient(180deg, #f04fa0, var(--pink));
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  border-radius: 22px;
  padding: 8px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 0 var(--pink-dark);
  white-space: nowrap;
}
.btn-connexion:hover { color: #fff; filter: brightness(1.05); }
.badge-online {
  background: #fff;
  color: var(--pink-dark);
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 10px;
  padding: 2px 8px;
}

/* LOGIN MODAL */
.login-modal-content {
  border-radius: 14px;
  border: 2px solid var(--lilac);
  overflow: hidden;
}
.login-modal-content .card-love-header {
  border-radius: 0;
}
.login-modal-content .card-love-body {
  border: none;
  border-radius: 0;
}
.divider-or {
  text-align: center;
  color: #999;
  font-size: 0.8rem;
  position: relative;
}
.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e0d8e8;
}
.divider-or span { padding: 0 10px; }
.btn-google {
  background: #fff;
  color: #5a4a6a;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  border: 1px solid #ddd;
  border-radius: 22px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.btn-google:hover { background: #f7f7f7; color: #5a4a6a; }
.google-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

.btn-love {
  background: linear-gradient(180deg, #f04fa0, var(--pink));
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  border-radius: 24px;
  padding: 12px 28px;
  box-shadow: 0 3px 0 var(--pink-dark);
  border: none;
  text-decoration: none;
  display: inline-block;
}
.btn-love:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-love-danger {
  background: linear-gradient(180deg, #e0655a, var(--red));
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  border-radius: 24px;
  padding: 12px 28px;
  box-shadow: 0 3px 0 #8f2a1e;
  border: none;
  text-decoration: none;
  display: inline-block;
}
.btn-love-danger:hover {
  color: #fff;
  filter: brightness(1.05);
}

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 55%, #fff 100%);
  padding: 24px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
}
.hero-decor img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.logo {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
}
.logo .love { color: var(--pink); }
.logo .paradiz { color: var(--purple); }
.tagline { font-family: "Baloo 2", sans-serif; font-size: 1.15rem; color: var(--purple); }

.currency-box {
  background: var(--gold-bg);
  border: 2px solid var(--gold-border);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  max-width: 240px;
  margin: 16px auto;
}
@media (min-width: 992px) {
  .currency-box {
    position: absolute;
    top: 20px;
    right: 24px;
    margin: 0;
  }
}
.currency-box .coin-img { width: 26px; height: 26px; border-radius: 50%; }

.hero-headline {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--purple);
  line-height: 1.25;
}
.hero-headline .star { color: var(--pink); }

/* Cream points panel */
.panel-cream {
  background: var(--cream);
  border: 2px solid var(--cream-border);
  border-radius: 16px;
  padding: 20px 24px 26px;
}
.ribbon {
  background: #b6d957;
  border: 3px solid #7ba82e;
  border-radius: 8px;
  padding: 8px 24px;
  color: #3f5a12;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  display: inline-block;
}
.point-item img { width: 78px; height: 78px; object-fit: cover; border-radius: 10px; }
.point-item .point-name { font-family: "Baloo 2", sans-serif; font-weight: 700; color: #3a2a10; margin-top: 8px; font-size: 0.95rem; }
.point-item .point-val-pos { color: var(--green); font-weight: 700; }
.point-item .point-val-neg { color: var(--red); font-weight: 700; }
.point-item.small img { width: 90px; height: 78px; }

.speech-bubble {
  background: #e9d8f5;
  border-radius: 20px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #5a3f7a;
}

/* Signup card */
.card-love-header {
  background: var(--lilac);
  border-radius: 14px 14px 0 0;
  padding: 14px 18px;
  font-family: "Baloo 2", sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}
.card-love-body {
  background: #fff;
  border: 2px solid var(--lilac);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 18px;
}
.card-love-body label { font-size: 0.9rem; color: #5a4a6a; margin-bottom: 4px; }

/* News journal */
.news-item img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.news-item .news-time { color: #999; }
.news-item p { font-size: 0.87rem; margin-bottom: 0; }

/* Ranking */
.panel-pink {
  background: var(--pink-bg);
  border: 2px solid var(--pink-border);
  border-radius: 16px;
  padding: 20px 24px;
}
.rank-table td { padding: 5px 4px; font-size: 0.9rem; }
.podium-avatar { border-radius: 50%; object-fit: cover; }
.podium-block {
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  color: #fff;
  margin: 6px auto 0;
}
.podium-1 { background: var(--gold-border); width: 100px; height: 90px; font-size: 2rem; }
.podium-2 { background: #c9c9d9; width: 90px; height: 64px; font-size: 1.6rem; }
.podium-3 { background: #d99a5c; width: 90px; height: 48px; font-size: 1.5rem; }
.checklist-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 0.9rem; color: #6a3f0a; }

/* Progression */
.panel-olive {
  background: var(--olive-bg);
  border: 2px solid var(--olive-border);
  border-radius: 16px;
  padding: 20px 24px;
}
.progress-item img { width: 78px; height: 90px; object-fit: cover; border-radius: 10px; }
.progress-item .p-title { font-family: "Baloo 2", sans-serif; font-weight: 700; color: var(--pink); font-size: 0.95rem; }
.progress-item .p-desc { font-size: 0.85rem; color: var(--olive-text); }

/* Etapes (regles.php) */
.step-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.step-card:last-child { margin-bottom: 0; }
.step-media {
  position: relative;
  flex: 0 0 130px;
}
.step-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.step-num {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 var(--pink-dark);
}
.step-title {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--pink-dark);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.step-body p,
.step-body ul { font-size: 0.92rem; }
.step-gallery .trombi-photo {
  width: 80px;
  height: 80px;
}
@media (max-width: 767px) {
  .step-card { flex-direction: column; }
  .step-media { flex: none; }
  .step-img { width: 100%; height: 180px; }
}

/* Galerie (galerie.php) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.gallery-card {
  position: relative;
  display: block;
  background: #fff;
  border: 2px solid var(--pink-border);
  border-radius: 14px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  color: inherit;
}
.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.gallery-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--pink);
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.gallery-caption {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--pink-dark);
  font-size: 0.95rem;
  margin-top: 10px;
}
.gallery-comment {
  font-size: 0.82rem;
  color: #5a4a6a;
  margin-top: 4px;
}

/* Lightbox CSS pur, sans librairie JS : ouverture via ancre #photoN + :target */
.gallery-lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(30, 10, 30, 0.85);
}
.gallery-lightbox:target {
  display: block;
}
.gallery-lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px;
}
.gallery-lightbox-inner img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
}

/* Journal (journal.php) */
.journal-masthead {
  text-align: center;
  padding: 10px 0 6px;
}
.journal-masthead .paper-name {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--purple);
  letter-spacing: 0.5px;
}
.journal-masthead .paper-tagline {
  font-style: italic;
  color: #7a6a90;
  font-size: 0.95rem;
  margin-top: 4px;
}
.journal-rule-thick {
  border: none;
  border-top: 4px solid var(--purple);
  margin: 6px 0 3px;
}
.journal-rule-thin {
  border: none;
  border-top: 1px solid var(--purple);
  margin: 0 0 24px;
  opacity: 0.5;
}
.journal-columns {
  column-count: 2;
  column-gap: 32px;
}
@media (max-width: 767px) {
  .journal-columns { column-count: 1; }
}
.journal-brief {
  break-inside: avoid;
  background: #fff;
  border-left: 4px solid var(--pink);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #4a3a5a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.journal-brief img { max-height: 40px; vertical-align: middle; }
.encounter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--pink-border);
  font-size: 0.88rem;
  color: #6a3f0a;
}
.encounter-item:last-child { border-bottom: none; }
.encounter-eye {
  cursor: pointer;
  font-size: 1.1rem;
}
.photo-of-day-img {
  max-width: 220px;
  width: 100%;
  border-radius: 14px;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
}
.photo-of-day-caption {
  font-style: italic;
  color: #6a3f0a;
  margin-top: 12px;
  font-size: 0.88rem;
}

/* Contact (contact.php) */
.contact-iframe {
  width: 100%;
  height: 520px;
  border: none;
  border-radius: 0 0 14px 14px;
  display: block;
}

/* Legal pages (conditions.php) */
.legal-doc {
  background: #fff;
  border: 1px solid #e3ddea;
  border-radius: 12px;
  padding: 32px 36px;
}
.legal-section { margin-bottom: 32px; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: #6a5a80;
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ece5f2;
}
.legal-section p,
.legal-section ul {
  font-size: 0.9rem;
  color: #5a4a6a;
  line-height: 1.65;
}
.legal-section ul:last-child,
.legal-section p:last-child { margin-bottom: 0; }
.legal-subhead {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--pink-dark);
  font-size: 0.98rem;
  margin: 18px 0 8px;
}
.legal-subhead:first-of-type { margin-top: 0; }
.legal-signoff {
  text-align: center;
  font-style: italic;
  color: var(--purple);
  font-size: 0.92rem;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 2px solid #ece5f2;
}

/* Inscription (inscription.php) */
.alert-love-danger {
  background: #fbe4e0;
  border: 2px solid #eab0a0;
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--red);
  font-size: 0.9rem;
}
.alert-love-warning {
  background: var(--gold-bg);
  border: 2px solid var(--gold-border);
  border-radius: 12px;
  padding: 14px 18px;
  color: #8a6a10;
  font-size: 0.9rem;
}
.alert-love-info {
  background: var(--lilac-bg);
  border: 2px solid var(--lilac-border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--purple);
  font-size: 0.9rem;
}
.alert-love-success {
  background: #e3f3e0;
  border: 2px solid #a8d8a0;
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--green);
  font-size: 0.9rem;
}
.dept-select select {
  display: block;
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-family: "Nunito", sans-serif;
  color: #5a4a6a;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

/* Publications (publications.php) */
.article-card {
  background: #fff;
  border: 2px solid var(--pink-border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.article-card:last-child { margin-bottom: 0; }
.article-title {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--pink-dark);
  font-size: 1.2rem;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #8a7a9a;
  margin: 6px 0 12px;
}
.article-body {
  font-size: 0.92rem;
  color: #5a4a6a;
}
.sidebar-pub-item {
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px dashed #e0d8e8;
}
.sidebar-pub-item:last-child { border-bottom: none; padding-bottom: 0; }

/* Temoignages (temoignages.php) */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: #fff;
  border: 2px solid var(--pink-border);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-quote {
  font-size: 0.9rem;
  color: #5a4a6a;
  flex: 1;
  position: relative;
  padding-left: 20px;
}
.testimonial-quote::before {
  content: "\201C";
  position: absolute;
  left: -4px;
  top: -10px;
  font-family: "Baloo 2", sans-serif;
  font-size: 2.4rem;
  color: var(--pink-border);
  line-height: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--pink-border);
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink);
  flex: 0 0 42px;
}
.testimonial-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink-bg);
  color: var(--pink);
  font-size: 1.1rem;
}
.testimonial-name {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--pink-dark);
  font-size: 0.95rem;
}

/* Trombinoscope */
.panel-trombi {
  background: var(--lilac-bg);
  border: 2px solid var(--lilac-border);
  border-radius: 16px;
  padding: 20px 24px 26px;
}
.trombi-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.trombi-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}
.trombi-photo:hover {
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  background: var(--purple);
  padding: 26px 0 18px;
  color: #fff;
}
.site-footer img { width: 130px; height: 100px; object-fit: cover; border-radius: 10px; }
.site-footer a { color: #d8c8ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
