/* Affiliation-Dating — apercu build suedois — feuille de style separee du generateur */

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  background: #0f0f12;
  color: #e8e8ec;
  line-height: 1.6;
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

/* --- en-tete / logo --- */

.site-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #2a2a30;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
}

.logo-link {
  display: block;
  line-height: 0;
}

.site-logo {
  height: 48px;
  width: auto;
  display: block;
}

/* --- navigation categories --- */

nav.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid #2a2a30;
  margin-bottom: 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

nav.categories a {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 16px;
  background: #1c1c22;
  color: #d8d8e0;
  text-decoration: none;
  border: 1px solid #2a2a30;
}

nav.categories a:hover {
  background: #c22b52;
  border-color: #c22b52;
  color: white;
}

.silo-title {
  margin-top: 36px;
  opacity: 0.55;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-h1 {
  font-size: 1.6rem;
  margin: 24px 0 16px;
}

.seo-intro {
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2a2a30;
}

.seo-intro p {
  margin: 0 0 14px;
  opacity: 0.85;
  font-size: 0.95rem;
}

.seo-intro h2 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: #ff8a8a;
}

.seo-intro h3 {
  font-size: 0.95rem;
  margin: 16px 0 6px;
  opacity: 0.9;
}

.seo-intro a {
  color: #ff8a8a;
  text-decoration: underline;
}

.silo-intro {
  opacity: 0.75;
  font-size: 0.92rem;
  margin: 4px 0 0;
}

/* --- filtre ville par silo --- */

.city-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.city-pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 14px;
  background: #16161b;
  color: #c9c9d2;
  border: 1px solid #23232a;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.city-pill:hover {
  border-color: #c22b52;
}

.city-pill.active {
  background: #c22b52;
  border-color: #c22b52;
  color: white;
}

/* --- grille de profils (home), 6 colonnes x 4 rangees visibles --- */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.profile-card {
  text-decoration: none;
  color: #d8d8e0;
  display: block;
  background: #16161b;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #23232a;
  transition: border-color .15s;
}

.profile-card:hover {
  border-color: #c22b52;
}

.profile-card img,
.card-noimg {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #1c1c22;
  display: block;
}

.card-body {
  padding: 8px 10px 10px;
}

.card-name {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-bio {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.card-tag {
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: #23232a;
  color: #c9c9d2;
  white-space: nowrap;
}

.card-readmore {
  display: block;
  font-size: 0.68rem;
  color: #ff8a8a;
  font-weight: 600;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- teaser (page index) --- */

.teaser {
  border-top: 1px solid #23232a;
  padding: 18px 0;
  display: flex;
  gap: 14px;
}

.teaser:first-of-type {
  border-top: none;
}

.teaser img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #1c1c22;
}

.teaser .col {
  flex: 1;
  min-width: 0;
}

.teaser h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.teaser p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  opacity: 0.85;
}

.teaser a.readmore {
  font-size: 0.85rem;
  color: #ff8a8a;
  text-decoration: none;
  font-weight: 600;
}

.teaser a.readmore:hover {
  text-decoration: underline;
}

/* --- fiche individuelle --- */

.fiche-hero {
  display: flex;
  gap: 18px;
  padding: 20px 0;
}

.fiche-hero img {
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #1c1c22;
  cursor: pointer;
  transition: opacity .15s;
}

/* bug mobile corrige 2026-08-10 : flex sans wrap ecrasait le texte a cote d'une photo
   180px fixe sur petit ecran - on empile verticalement en dessous de 640px */
@media (max-width: 640px) {
  .fiche-hero {
    flex-direction: column;
  }
  .fiche-hero img {
    width: 100%;
    height: 320px;
  }
}

.fiche-hero img:hover {
  opacity: 0.85;
}

.fiche-hero h1 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.fiche-hero .chapeau {
  opacity: 0.65;
  font-size: 0.9rem;
}

.back-link {
  font-size: 0.8rem;
  opacity: 0.6;
  text-decoration: none;
  color: #c9c9d2;
}

.back-link:hover {
  opacity: 1;
}

.long-desc p {
  margin: 0 0 12px;
}

/* --- grille de preferences (accepte/refuse) --- */

.prefs h2 {
  font-size: 1.05rem;
  color: #ff8a8a;
  margin: 22px 0 10px;
}

.specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.specs li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.specs .badge {
  flex-shrink: 0;
  font-size: 1rem;
}

/* --- CTA --- */

.cta {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  background: #c22b52;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

/* --- profils similaires --- */

.similar {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #2a2a30;
}

.similar h2 {
  font-size: 0.95rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.similar-grid a {
  text-decoration: none;
  color: #d8d8e0;
}

.similar-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
}

.similar-grid .sname {
  font-size: 0.78rem;
  margin-top: 4px;
}

/* --- pied de page --- */

footer.site {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #2a2a30;
  font-size: 0.75rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  opacity: 0.85;
  margin-bottom: 20px;
}

.footer-col .footer-cat {
  display: block;
  color: #e8e8ec;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-col .footer-cat:hover {
  color: #ff8a8a;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 5px;
}

.footer-col a {
  color: #a8a8b2;
  text-decoration: none;
  font-size: 0.75rem;
}

.footer-col a:hover {
  color: #ff8a8a;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- lightbox (clic photo) --- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.lightbox-inner img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 10px;
}

.lightbox-inner .lb-text {
  margin: 16px 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.lightbox-inner .cta {
  margin-top: 0;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* --- barre CTA sticky bas de page (fiches profil), full-wide mobile + desktop --- */

body:has(.sticky-cta) {
  padding-bottom: 72px; /* evite que la barre fixe cache le bas du contenu/footer */
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 90;
  background: #16161b;
  border-top: 1px solid #2a2a30;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
}

.sticky-cta-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  text-decoration: none;
  background: #c22b52;
  transition: background .15s;
}

.sticky-cta-link:hover {
  background: #a8223f;
}

.sticky-cta-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.4);
}

.sticky-cta-text {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
  text-align: center;
}

@media (min-width: 900px) {
  .sticky-cta-link {
    justify-content: center;
    padding: 12px 16px;
  }
  .sticky-cta-text {
    flex: none;
  }
}
