/* Reset body margin */
body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    line-height: 1.875em;
}



.link {
	text-decoration: none;
	color: #9d2da3;
}

a.link {
	text-decoration: none;
	color: #9d2da3;
}

a.link:hover {
	text-decoration: none;
	color: #6A296E;
}

main.container {
    padding-top: 80px; /* adjust depending on header height */
  }

header:not(.nav-top) + main.container > section.joindre:first-child {
  margin-top: -80px;
}
/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: url('../img/cover.jpg') no-repeat center center;
    background-size: cover;
    padding-top: 60px; /* To add space from the top */
    position: relative;
}

/* Logo wrapper */
.logo-wrapper {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%; /* Étendre le wrapper sur toute la largeur */
}

.logo-inner {
    text-align: center; /* Centre le contenu interne comme le logo et le texte "Connexion" */
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 8px 0;
    position: relative;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
    animation: scroll-left 15s linear infinite;
}

.marquee-track span {
    font-weight: bold;
    font-size: 1.1rem;
    color: #6d0468;
    padding-left: 100vw; /* Important pour le démarrage hors écran */
    display: inline-block;
}


@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.presentation {
    padding-top: 10px;
    text-align: center;
}

.presentation ul li {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 2em;
    text-align: center;
    line-height: 1em;
    font-weight: bold;
    padding-right: 2rem;
}

/* Logo wrapper */
.register-wrapper {
    text-align: center;
}

.logo-register {
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
    z-index: 10;
}

/* Logo styling */
.logo {
    width: 300px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Login form styling */
.login-form {
    background-color: rgba(255, 255, 255, 0.3);
    color: #4a0358cb;
    font-size: 20px;
    padding: 60px 10px 10px;
    border-radius: 10px;
    width: 300px;
    margin-top: 230px;
    z-index: 5; /* Ensures the form stays below the logo */
}

.login-form p {
    color: #000000;
}

/* Other content styling (optional) */
.login-wrapper a {
    color: #6f42c1;
    text-align: center;
}

.login-wrapper a:hover {
    color: #c904cf;
    text-align: center;
}

/* Extra section styling */
.more-content {
    background-color: #000000;
    color: #333;
}

.login-form p a {
    color: #790707;
    text-decoration: none;
    font-size: 18px;
}

.login-form p a:hover {
	color: #c904cf;
    text-decoration: none;
}

#scrollTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #5e025e;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
  }
  
  #scrollTop:hover {
    background-color: #555;
  }

.btn.btn-connexion {
	--bs-btn-color: #fff;
	--bs-btn-bg: #5e025e;
	--bs-btn-border-color: #5e025e;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #c904cf;
	--bs-btn-hover-border-color: #c904cf;
	--bs-btn-focus-shadow-rgb: 49, 132, 253;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #5e025e;
	--bs-btn-active-border-color: #5e025e;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: #5e025e;
	--bs-btn-disabled-border-color: #5e025e;
  }

  .align-center {
    text-align: center;
  }

.text-validation-error {
    color:#f80a0a;
}

.link a {
    text-decoration: none;
    color: #FFF;
}
.link a:hover {
    color: #c904cf;
}

.msg-success {
    color: #FFFFFF;
}

/* Empêche de scroller quand la modale est ouverte */
body[data-age-gate="open"] {
  overflow: hidden;
  height: 100dvh;
  touch-action: none;
}

/* Overlay plein écran */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;              /* d=dynamic: corrige le bug iOS 100vh */
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,.35); /* requis pour voir le backdrop-filter */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* iOS Safari */
}

/* Carte centrale */
.age-card {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 20px;
  text-align: center;
  color: #111;
}

/* Emoji / titre */
.age-emoji {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}
.age-card h2 {
  font-size: 22px;
  margin: 0 0 8px;
}
.age-card p {
  margin: 0 0 16px;
}

/* Actions */
.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0 8px;
}
.btn-enter, .btn-leave {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.btn-enter { background:#6f42c1; color:#fff; }
.btn-enter:active { transform: translateY(1px); }
.btn-leave { background:#e9ecef; color:#111; }

/* “Se souvenir” + consent */
.confirm, .remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 16px;
}

/* Case à cocher plus grosse */
.confirm input[type="checkbox"],
.remember input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #6f42c1; /* moderne, fonctionne sur iOS/Android récents */
}

/* Texte légal plus petit */
.legal {
  display: block;
  font-size: 12px;
  color: #555;
  margin-top: 6px;
}

/* Fallback si backdrop-filter non supporté : blur le site derrière */
.blurred {
  filter: blur(6px);
}

/* Petites largeurs : ajuste la carte */
@media (max-width: 380px){
  .age-card { padding: 16px; }
  .btn-enter, .btn-leave { padding: 10px 12px; font-size: 15px; }
}
/****** FOOTER ***************/
.footer {
    overflow-x: hidden;
    padding-bottom: 50px;
}

.footer.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
    box-sizing: border-box;
}
.footer.row {
    display: flex;
    flex-wrap: wrap;
}
.footer.col-sm-6 {
    flex: 0 0 50%;
    box-sizing: border-box;
}
.copy {
    text-align: center;
    padding-bottom: 100px;
}
.footer_links a {
    color: #6f42c1;
    text-decoration: none;
    font-size: 1.4rem;
}
.footer_links a:hover {
    color: #5e025e;
    text-decoration: none;
}
.copy p {
    font-size: 10px;
    line-height: 1;
}
.copy a {
    color: #6f42c1;
    text-decoration: none;
}
.copy a:hover {
    color: #5e025e;
    text-decoration: none;
}

/****** SEARCH FORM **********/
.accordion { background-color: #fff; cursor: pointer; width: 100%; border: none; text-align: left; outline: none; font-size: 16px; transition: 0.4s; border-bottom: 1px solid #ccc; }
.active, .accordion:hover { background-color: #eee; }
.panel { padding: 0 14px; background-color: white; display: none; overflow: hidden; }
.filter-group { margin: 10px 0; }

/****** SEARCH RESULTS *******/
.member-card { background: white; padding: 10px; margin-bottom: 10px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px; }
.member-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.member-info { flex-grow: 1; }
.member-info h4 { margin: 0 0 4px; font-size: 16px; color: #880029; }
.member-info p { margin: 0; font-size: 14px; color: #333; }
.no-result { text-align: center; padding: 20px; color: #666; }

.pagination { text-align: center; margin-top: 20px; }
.pagination a { margin: 0 5px; text-decoration: none; color: #880029; font-weight: bold; }
.pagination a.active { text-decoration: underline; }

/****** MESSAGERIE INBOX *********/
.messagerie .btn-outline-primary {
    padding: 4px 6px;
    font-size: 0.9rem;
}
.messagerie-thread .bubble {
    border-radius: 1rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    max-width: 85%;
}
.bubble.you {
    background: #e2f0ff;
    align-self: flex-end;
}
.bubble.them {
    background: #f5f5f5;
    align-self: flex-start;
}
.thread-wrapper {
    display: flex;
    flex-direction: column;
}
.messagerie .nav-link .bg-danger {
    display: inline-block;
    min-width: 8px;
    height: 8px;
    border-radius: 50%;
}

.messagerie .card {
    border-radius: 0.75rem;
}

.messagerie .card-body {
    padding: 1rem;
}

.messagerie .card-title {
    font-weight: bold;
    font-size: 1rem;
}

.messagerie .card-text {
    font-size: 0.875rem;
    color: #000000;
}

.messagerie .card .btn-outline-danger {
    padding: 4px 6px;
    font-size: 0.9rem;
}

.messagerie .card.unread {
    opacity: 0.7;
    color: #000;
}

.messagerie .card.unread:hover {
    opacity: 1;
}

@media (max-width: 576px) {
    .messagerie .card-body {
        padding: 0.75rem;
    }
}


/* ======= Galerie Mobile AMMTL ======= */
.gallery-container {
  margin: 10px auto;
  padding: 0 10px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
}

.gallery-item {
  flex: 0 1 calc(50% - 10px);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.gallery-item:hover {
  transform: scale(1.01);
}

.gallery-thumbnail {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

/* ===== Modal personnalisé ===== */
#galleryModal {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#galleryModal.active {
  display: block;
  pointer-events: auto;
  opacity: 1;
}

#galleryModal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.95);
  box-sizing: border-box;
}

#galleryModal .modal-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 10px;
}

#galleryModal .modal-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  margin: auto;
  border-radius: 4px;
}

#galleryModal .vote-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 8px;
  z-index: 10;
  text-align: center;
}

#galleryModal .vote-controls-overlay .btn {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  margin: 6px auto;
  width: 80%;
  max-width: 320px;
  display: inline-block;
}

#voteStats, #voteResult {
  font-size: 14px;
  color: #fff;
  margin-top: 5px;
  text-align: center;
}

/* ===== Flèches navigation ===== */

#galleryModal .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 36px;
  padding: 8px;
  cursor: pointer;
  user-select: none;
  z-index: 20;
  background-color: rgba(0,0,0,0.3);
  border-radius: 50%;
}

#galleryModal .prev {
  left: 10px;
}

#galleryModal .next {
  right: 10px;
}

/* ===== Fermeture ===== */

#galleryModal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 30;
}

/***** PAYEMENTS SQUARE ***************/
#purchaseModalM {
    background-color: #000;
    color: #FFF;
}

.modal-content {
    background-color: #000;
}
.modal-content .form-label {
    color: #FFF;
}
/* Tighter labels */
#mobile-square-form .form-label { margin-bottom: .35rem; }

/* Square card host: make it look like a normal form-control */
#card-container-m{
  border-radius: .5rem;
  display: flex;
  align-items: center;
}
#card-container-m > div { width:100%; }
/* supprime l’espace réservé par le message interne Square */
#card-container-m .sq-card-message { display:none!important; }
#card-container-m .sq-card-message:not(:empty){ display:block!important; margin-top:.25rem; }

/* Error line right under the card */
#card-errors { margin-top: .25rem; }

#card-container-m .sq-card-message {
  visibility: visible !important;   /* annule ta règle */
  display: block;
  margin-top: .25rem;
  min-height: 0;                    /* pas de hauteur forcée */
}
#card-container-m .sq-card-message:empty { display: none; }

/* ===== GIFTS PAGE / PAYMENTS SQUARE ====== */
.gift-tabs { border-bottom: 0; }
.gift-tabs .nav-link {
  font-weight: 700;
  font-size: 1.05rem;
  padding: .8rem 1rem;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.gift-tabs .nav-link.active {
  background: linear-gradient(90deg, #ffc107, #ffe083);
  color: #212529;
  border-color: transparent;
}
@media (max-width: 576px) {
  .gift-tabs .nav-link { font-size: 1.1rem; padding: .9rem .75rem; }
}
#tab-points.active {
    background-color: black;
}
#tab-statut.active {
    background-color: black;
}
#giftTabs .nav-item:not(:last-child) {
  border-bottom: none;
}
#giftCardModal input#card_name.form-control {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #444;
}

/* optionnel: placeholder lisible */
#giftCardModal input#card_name::placeholder {
  color: #6c757d;
}

/* ===== Responsive Breakpoints ===== */

@media (min-width: 576px) {
  .gallery-item {
    flex: 0 1 calc(33.333% - 10px);
  }
}

@media (min-width: 768px) {
  .gallery-item {
    flex: 0 1 calc(25% - 10px);
  }
}

/******* PROFILE VISITS **********/
/* ===== Base mobile ===== */
:root{
  --bg: #0f1115;
  --text: #f3f6fa;
  --muted: #9aa3ad;
  --card: #1a1f27;
  --card-border: #262c36;
  --brand: #ffc107;   /* warning */
  --ok: #22c55e;      /* online */
  --danger: #dc3545;  /* bouton effacer */
  --radius: 14px;
  --shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* Titre + action */
.row.mt-3{ padding: 8px 12px; }
.row h2{ font-size: 20px; margin: 0; }

/* Bouton Effacer (compact, touch-friendly) */
.btn.btn-danger.btn-sm{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(220,53,69,.25);
  background: var(--danger);
  color: #fff;
  font-weight: 600;
  line-height: 1;
}
.btn.btn-danger.btn-sm:active{ transform: translateY(1px); }

/* Carte visiteur */
.visiteur-card{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px;
  color: inherit;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.visiteur-card:active{ transform: scale(.995); }

/* Avatar */
.visiteur-card img{
  width: 56px; height: 56px;
  border-radius: 15px;
  object-fit: cover; object-position: center;
  background: #0d0f14; /* au cas où */
}

/* Texte */
.visiteur-card .fw-bold{
  font-size: 15px;
  color: var(--brand) !important;
  display: flex; align-items: center; gap: 6px;
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.visiteur-card small{
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

/* Badge online (petit point vert) */
.badge-online{
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--ok);
  border-radius: 50%;
}

/* État vide */
.fs-4{ color: var(--muted) !important; }

/* Pagination (petits boutons clairs) */
.pagination{ gap: 6px; }
.pagination .page-item .page-link{
  min-width: 36px; height: 36px;
  padding: 0 10px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
}
.pagination .page-item.active .page-link{
  background: #233042;
  border-color: #2e3b4e;
  font-weight: 700;
}

/* Petits écrans */
@media (max-width: 480px){
  .row.mt-3{ padding: 8px; }
  .visiteur-card{ padding: 12px; }
  .visiteur-card img{ width: 52px; height: 52px; }
  .btn.btn-danger.btn-sm{ padding: 9px 12px; font-size: 13.5px; }
}

/********* COOKIES CONSENTEMENT ********/
  :root{
    --cc-bg:#111827;--cc-fg:#f9fafb;--cc-accent:#22c55e;--cc-accent-2:#ef4444;--cc-muted:#9ca3af;
    --cc-card:#1f2937;--cc-border:rgba(255,255,255,.08);
    --cc-radius:14px;
  }

  .cc-backdrop{position:fixed;inset:0;backdrop-filter:saturate(120%) blur(2px);background:rgba(0,0,0,.25);
    display:none;z-index:99998}

  .cc-banner{position:fixed;left:0;right:0;bottom:0;z-index:99999;display:none;box-sizing:border-box;
    padding: max(8px, env(safe-area-inset-bottom));
  }
  .cc-inner{
    max-width:1100px;margin:auto;border:1px solid var(--cc-border);
    background:linear-gradient(180deg,var(--cc-card),#111827);
    color:var(--cc-fg);border-radius:var(--cc-radius);padding:18px;box-shadow:0 12px 28px rgba(0,0,0,.35);
    display:flex;gap:16px;align-items:flex-start
  }
  .cc-text{flex:1;line-height:1.45}
  .cc-title{font-size:17px;font-weight:700;margin:0 0 6px}
  .cc-desc{font-size:14px;color:var(--cc-muted);margin:0}
  .cc-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
  .cc-btn{appearance:none;border:1px solid var(--cc-border);background:#0b1220;color:#fff;
    padding:10px 14px;border-radius:10px;font-weight:600;cursor:pointer;font-size:14px;transition:.15s}
  .cc-btn:hover{transform:translateY(-1px)}
  .cc-accept{background:var(--cc-accent);border-color:rgba(0,0,0,.2)}
  .cc-decline{background:var(--cc-accent-2);border-color:rgba(0,0,0,.2)}
  .cc-manage{background:transparent}
  .cc-link{color:#60a5fa;text-decoration:none}
  .cc-link:hover{text-decoration:underline}
  .cc-prefs{display:none;margin-top:12px;border-top:1px solid var(--cc-border);padding-top:12px}
  .cc-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px dashed var(--cc-border)}
  .cc-row:last-child{border-bottom:0}
  .cc-row label{font-weight:600}
  .cc-switch{position:relative;width:42px;height:24px;background:#374151;border-radius:999px;transition:.2s;cursor:pointer}
  .cc-switch[data-on="true"]{background:var(--cc-accent)}
  .cc-switch input{position:absolute;opacity:0;width:0;height:0}
  .cc-dot{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.2s}
  .cc-switch[data-on="true"] .cc-dot{left:21px}
  .cc-save{margin-top:10px}

  .cc-fab{position:fixed;left:14px;bottom:14px;background:#111827;color:#fff;border:1px solid var(--cc-border);
    padding:10px 12px;border-radius:999px;font-size:13px;cursor:pointer;z-index:99990;display:none}

  /* 📱 Optimisation mobile */
  @media (max-width:720px){
    .cc-inner{margin:8px;border-radius:12px;padding:14px;flex-direction:column}
    .cc-actions{width:100%}
    .cc-actions .cc-btn{flex:1}         /* boutons plein-width en rangée */
    .cc-title{font-size:16px}
    .cc-desc{font-size:13px}
  }

  /* Quand la bannière est ouverte, on ajoute un padding au body
     pour éviter de masquer un footer/chat fixe sur mobile */
  body.cc-open{
    padding-bottom: clamp(80px, 18vh, 200px);
  }

  /* Si tu as déjà un footer fixe, tu peux réduire le padding: */
  @media (max-width:720px){
    body.cc-open{ padding-bottom: max(90px, calc(12vh + env(safe-area-inset-bottom))); }
  }