/* Affiliation-Dating — kktraff.com — feuille de style separee du generateur.
   Fork de vuxenkontakter.com/style.css (2026-08-11), adapte pour casser le footprint visuel :
   theme clair (fond blanc / texte noir) au lieu du theme sombre de vuxenkontakter.com,
   tailles de police augmentees, photos de profil agrandies de +20px (hauteur ET largeur) -
   valeurs actees par Jerome, voir Wiki/Affiliation-Dating/kktraff.com.md bloc "UX / design". */

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  background: #ffffff;
  color: #16161a;
  font-size: 17px;      /* +1px vs vuxenkontakter.com (16px navigateur par defaut) */
  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 #e2e2e6;
  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 #e2e2e6;
  margin-bottom: 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

nav.categories a {
  font-size: 0.86rem;   /* vuxenkontakter.com : 0.78rem */
  padding: 6px 12px;
  border-radius: 16px;
  background: #f2f2f5;
  color: #33333a;
  text-decoration: none;
  border: 1px solid #e2e2e6;
}

nav.categories a:hover {
  background: #c22b52;
  border-color: #c22b52;
  color: white;
}

.silo-title {
  margin-top: 36px;
  opacity: 0.6;
  font-size: 0.92rem;   /* vuxenkontakter.com : 0.85rem */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-h1 {
  font-size: 1.85rem;   /* vuxenkontakter.com : 1.6rem */
  margin: 24px 0 16px;
}

.seo-intro {
  margin: 0 0 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e2e6;
}

.seo-intro p {
  margin: 0 0 14px;
  opacity: 0.85;
  font-size: 1.02rem;   /* vuxenkontakter.com : 0.95rem */
}

.seo-intro h2 {
  font-size: 1.3rem;    /* vuxenkontakter.com : 1.15rem */
  margin: 24px 0 10px;
  color: #a8123a;
}

.seo-intro h3 {
  font-size: 1.02rem;   /* vuxenkontakter.com : 0.95rem */
  margin: 16px 0 6px;
  opacity: 0.9;
}

.seo-intro a {
  color: #a8123a;
  text-decoration: underline;
}

.silo-intro {
  opacity: 0.75;
  font-size: 1rem;      /* vuxenkontakter.com : 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.82rem;   /* vuxenkontakter.com : 0.75rem */
  padding: 5px 12px;
  border-radius: 14px;
  background: #f7f7f9;
  color: #45454e;
  border: 1px solid #e2e2e6;
  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: #33333a;
  display: block;
  background: #fafafb;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e2e6;
  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: #eeeef1;
  display: block;
}

.card-body {
  padding: 8px 10px 10px;
}

.card-name {
  font-size: 0.86rem;   /* vuxenkontakter.com : 0.78rem */
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-bio {
  font-size: 0.8rem;    /* vuxenkontakter.com : 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.68rem;   /* vuxenkontakter.com : 0.62rem */
  padding: 2px 7px;
  border-radius: 10px;
  background: #eeeef1;
  color: #45454e;
  white-space: nowrap;
}

.card-readmore {
  display: block;
  font-size: 0.75rem;   /* vuxenkontakter.com : 0.68rem */
  color: #a8123a;
  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 #eeeef1;
  padding: 18px 0;
  display: flex;
  gap: 14px;
}

.teaser:first-of-type {
  border-top: none;
}

.teaser img {
  width: 100px;   /* vuxenkontakter.com : 90px (+10, coherent avec le pas +20 sur fiche-hero) */
  height: 140px;  /* vuxenkontakter.com : 120px */
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #eeeef1;
}

.teaser .col {
  flex: 1;
  min-width: 0;
}

.teaser h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;    /* vuxenkontakter.com : 1rem */
}

.teaser p {
  margin: 0 0 8px;
  font-size: 1rem;      /* vuxenkontakter.com : 0.92rem */
  opacity: 0.85;
}

.teaser a.readmore {
  font-size: 0.92rem;   /* vuxenkontakter.com : 0.85rem */
  color: #a8123a;
  text-decoration: none;
  font-weight: 600;
}

.teaser a.readmore:hover {
  text-decoration: underline;
}

/* --- fiche individuelle --- */

.fiche-hero {
  display: flex;
  gap: 18px;
  padding: 20px 0;
}

/* Photo de profil agrandie : +20px hauteur ET largeur vs vuxenkontakter.com (180x240 ->
   200x260) - decision actee 2026-08-11, casser le footprint visuel entre les 2 sites. */
.fiche-hero img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #eeeef1;
  cursor: pointer;
  transition: opacity .15s;
}

/* meme bug mobile que vuxenkontakter.com (fiche-hero flex sans wrap), corrige des le depart
   ici plutot que de le laisser reapparaitre - flex-direction column sous 640px */
@media (max-width: 640px) {
  .fiche-hero {
    flex-direction: column;
  }
  .fiche-hero img {
    width: 100%;
    height: 340px; /* vuxenkontakter.com : 320px, +20 coherent */
  }
}

.fiche-hero img:hover {
  opacity: 0.85;
}

.fiche-hero h1 {
  font-size: 1.6rem;    /* vuxenkontakter.com : 1.4rem */
  margin: 0 0 8px;
}

.fiche-hero .chapeau {
  opacity: 0.65;
  font-size: 1rem;      /* vuxenkontakter.com : 0.9rem */
}

.back-link {
  font-size: 0.88rem;   /* vuxenkontakter.com : 0.8rem */
  opacity: 0.6;
  text-decoration: none;
  color: #45454e;
}

.back-link:hover {
  opacity: 1;
}

.long-desc p {
  margin: 0 0 12px;
}

/* --- grille de preferences (accepte/refuse) --- */

.prefs h2 {
  font-size: 1.18rem;   /* vuxenkontakter.com : 1.05rem */
  color: #a8123a;
  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: 1rem;      /* vuxenkontakter.com : 0.9rem */
}

.specs .badge {
  flex-shrink: 0;
  font-size: 1.1rem;    /* vuxenkontakter.com : 1rem */
}

/* liste "gillar" (accepte) texte vert, liste "gillar inte" (refuse) texte rouge -
   pas de surlignage : on ecrase le fond inline genere par profil, texte colore seul */
.prefs > ul:nth-child(2), .prefs > ul:nth-child(2) li {
  color: #1f8a4c !important;
  background: transparent !important;
}
.prefs > ul:nth-child(4), .prefs > ul:nth-child(4) li {
  color: #c22b52 !important;
  background: transparent !important;
}

/* --- 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: 1.1rem;    /* vuxenkontakter.com : 1rem */
}

/* --- profils similaires --- */

.similar {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #e2e2e6;
}

.similar h2 {
  font-size: 1.05rem;   /* vuxenkontakter.com : 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(120px, 1fr)); /* vuxenkontakter.com : 110px */
  gap: 12px;
}

.similar-grid a {
  text-decoration: none;
  color: #33333a;
}

.similar-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 6px;
}

.similar-grid .sname {
  font-size: 0.86rem;   /* vuxenkontakter.com : 0.78rem */
  margin-top: 4px;
}

/* --- pied de page --- */

footer.site {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e2e6;
  font-size: 0.82rem;   /* vuxenkontakter.com : 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: #16161a;
  font-weight: 700;
  font-size: 0.88rem;   /* vuxenkontakter.com : 0.8rem */
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-col .footer-cat:hover {
  color: #a8123a;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-col a {
  color: #55555e;
  text-decoration: none;
  font-size: 0.82rem;   /* vuxenkontakter.com : 0.75rem */
}

.footer-col a:hover {
  color: #a8123a;
  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: 440px;   /* vuxenkontakter.com : 420px, coherent avec la photo agrandie */
  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: 1.02rem;   /* vuxenkontakter.com : 0.95rem */
  opacity: 0.9;
  color: #fff;
}

.lightbox-inner .cta {
  margin-top: 0;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.9rem;
  cursor: pointer;
  line-height: 1;
}

/* --- barre CTA sticky bas de page (fiches profil), full-wide mobile + desktop --- */

body:has(.sticky-cta) {
  padding-bottom: 76px; /* 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: #fafafb;
  border-top: 1px solid #e2e2e6;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}

.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;
}

/* photo ronde sticky : +20px comme la photo de fiche (44 -> 64) - meme decision "casser le
   footprint" appliquee a chaque occurrence de photo de profil sur le site. */
.sticky-cta-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.6);
}

.sticky-cta-text {
  color: white;
  font-weight: 700;
  font-size: 1.02rem;   /* vuxenkontakter.com : 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;
  }
}
