/* ==========================================================================
   cam-hot.com — Style CSS (Inspiré du design Xcams)
   ========================================================================== */

:root {
  --xcams-purple: #a10082;
  --xcams-purple-dark: #800067;
  --bg: #0f0f14;
  --card: #1b1b24;
  --accent: #ff3b6b;
  --text: #ffffff;
  --text-dim: #9a9aa5;
  --border: #2a2a35;
}

* { 
  box-sizing: border-box; 
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   Header Style Xcams
   ========================================================================== */
header.site-header {
  background-color: var(--xcams-purple);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo imitant xCams avec le nom cam-hot.com */
header.site-header a.logo {
  color: #ffffff;
  font-family: 'Arial Black', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 900;
  font-size: 28px;
  text-decoration: none;
  letter-spacing: -1.5px;
  text-transform: lowercase;
  line-height: 1;
}

header.site-header a.logo span.domain {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  opacity: 0.9;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   Menu déroulant des langues (Pure CSS via Checkbox - 100% Mobile & PC)
   ========================================================================== */
.lang-selector {
  position: relative;
  display: inline-block;
}

/* Cache la case à cocher nativement */
.lang-toggle-check {
  display: none !important;
}

/* Le label remplace visuellement le bouton */
.lang-btn {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 28px 6px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.lang-btn:hover {
  background-color: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.6);
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background-color: #1b1b24;
  min-width: 80px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Ouverture magique au clic/tap quand la case est cochée */
.lang-toggle-check:checked ~ .lang-dropdown {
  display: block;
}

.lang-toggle-check:checked + .lang-btn {
  background-color: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.6);
}

.lang-dropdown a {
  color: #ffffff;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-dropdown a:hover, 
.lang-dropdown a.active {
  background-color: var(--xcams-purple);
  color: #ffffff;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
main { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 24px; 
}

h1 { 
  font-size: 22px; 
  margin-bottom: 20px;
}

/* ==========================================================================
   Titre H1 + icône info "i" + accordéon SEO (100% CSS, technique checkbox)
   ========================================================================== */
.home-title-wrap h1 {
  margin: 0 0 20px 0;
}

/* Cache la case à cocher nativement */
.seo-toggle-check {
  display: none !important;
}

/* Icône "i" jaune, ronde, cliquable : inline dans le H1, colle au dernier mot
   du titre (y compris si le titre passe à la ligne sur mobile) */
.seo-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  margin-bottom: 2px;
  border-radius: 50%;
  background-color: var(--xcams-purple);
  color: #ffffff;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.seo-info-icon:hover {
  background-color: var(--xcams-purple-dark);
  transform: scale(1.1);
}

.seo-toggle-check:checked + .seo-info-icon {
  background-color: var(--xcams-purple-dark);
  box-shadow: 0 0 0 3px rgba(161, 0, 130, 0.3);
}

/* Panneau accordéon : caché par défaut, s'ouvre en douceur au clic sur "i".
   La checkbox est imbriquée dans le h1, donc on utilise :has() sur le
   wrapper commun pour piloter l'accordéon qui est un sibling du h1. */
.seo-accordion {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.35s ease;
}

.home-title-wrap:has(.seo-toggle-check:checked) .seo-accordion {
  max-height: 600px;
  opacity: 1;
  margin-bottom: 20px;
}

.seo-accordion-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.seo-accordion-inner p {
  margin: 0;
}

/* ==========================================================================
   Grid & Cards
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform 0.15s ease;
  position: relative;
}

.card:hover { 
  transform: translateY(-3px); 
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Conteneur des badges sur la vignette */
.card .badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.card .badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Style du badge LIVE Magenta */
.card .badge.live {
  background: var(--xcams-purple, #a10082);
  color: white;
}

/* Style du badge Drapeau */
.card .badge.flag {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card .info { 
  padding: 10px 12px; 
}

.card .name { 
  font-weight: 700; 
  font-size: 15px; 
  margin: 0; 
}

.card .meta { 
  color: var(--text-dim); 
  font-size: 13px; 
  margin: 2px 0 0; 
}

/* ==========================================================================
   Buttons & Actions
   ========================================================================== */
.cta-btn {
  display: inline-block;
  background: var(--xcams-purple);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  margin: 8px 8px 8px 0;
  transition: opacity 0.15s ease;
}

.cta-btn:hover {
  opacity: 0.9;
}

.cta-btn.secondary { 
  background: #2a2a35; 
}

/* ==========================================================================
   Profile Page
   ========================================================================== */
.profile-header { 
  display: flex; 
  gap: 24px; 
  flex-wrap: wrap; 
  margin-bottom: 24px; 
}

.profile-photo { 
  width: 320px; 
  border-radius: 12px; 
  object-fit: cover; 
  aspect-ratio: 16/9; 
}

.bio { 
  line-height: 1.6; 
  color: var(--text-dim); 
  max-width: 640px; 
}

.tags { 
  display: flex; 
  gap: 6px; 
  flex-wrap: wrap; 
  margin: 8px 0; 
}

.tag { 
  background: #2a2a35; 
  color: var(--text-dim); 
  font-size: 12px; 
  padding: 3px 10px; 
  border-radius: 20px; 
}

/* ==========================================================================
   Pagination & SEO
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 36px 0;
}

.seo-content {
  margin-top: 48px;
  padding: 24px;
  background: var(--card);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   Footer & Footer SEO (3 Colonnes Centrées)
   ========================================================================== */
footer.site-footer {
  background: var(--bg);
  padding: 40px 24px 24px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
}

.footer-seo-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h3 {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 4px 0;
  border-bottom: 2px solid var(--xcams-purple);
  padding-bottom: 4px;
  display: inline-block;
}

.footer-col h3:first-child {
  margin-top: 0;
}

.footer-col p {
  margin: 0;
  color: var(--text-dim);
}

.footer-col strong {
  color: #ffffff;
}

.footer-col ol {
  margin: 0;
  padding-left: 20px;
}

.footer-col ol li {
  margin-bottom: 8px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-tags .tag {
  background: var(--card);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.footer-divider {
  border: 0;
  height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 36px auto 20px;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-seo-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Style unifié des liens CTA du footer (Créer un compte + Devenir modèle) */
.footer-col a.footer-cta-link,
.footer-col a.footer-cta-link:visited {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.footer-col a.footer-cta-link:hover {
  color: var(--xcams-purple) !important;
}

/* Atténuer les textes en gras dans le footer pour un rendu plus harmonieux */
.site-footer strong {
  color: #dddddd; /* Un gris très clair au lieu du blanc pur */
  font-weight: 600; /* Légèrement moins épais pour adoucir le contraste */
}