
/* __DESIGN_SITE__ */
/* socle filtres (ajouté par design_site.py) */
.ds-hide { display: none !important; }
body[data-ds-filtres="aucun"] .filters { display: none !important; }
body[data-ds-filtres="sans-genre"] .filters .filter-btn[data-filter="type"] { display: none !important; }
body[data-ds-filtres="sans-age"] .filters .filter-btn[data-filter="age"] { display: none !important; }
body[data-ds-filtres="ligne"] .filters { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
body[data-ds-filtres="ligne"] .filters::-webkit-scrollbar { display: none; }
body[data-ds-filtres="ligne"] .filters .filter-btn { flex: 0 0 auto; white-space: nowrap; }
.filters select.ds-fsel { appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer; padding-right: 2.1em; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='currentColor' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: right .7em center; background-size: 12px 8px; }
.filters .ds-fgroup { display: contents; }
/* Next : barre React (div.shadow-sm > div.scrollbar-hide > .form-group > select ×2 + bouton Recherche) */
body[data-ds-filtres="aucun"] div.rounded-lg.shadow-sm:has(> div.scrollbar-hide > div.form-group > select) { display: none !important; }
body[data-ds-filtres="sans-genre"] div.scrollbar-hide > div.form-group:first-child:has(> select) { display: none !important; }
body[data-ds-filtres="sans-tri"] div.scrollbar-hide > div.form-group:nth-child(2):has(> select) { display: none !important; }
body[data-ds-filtres="sans-recherche"] div.scrollbar-hide > div.relative.flex-shrink-0:has(> button) { display: none !important; }
/* Next `chips` : pastilles d'âge construites par design_filtres.js (le select natif est caché) */
.ds-fnext { display: flex; gap: 8px; flex-wrap: nowrap; }
.ds-fnext .ds-fchip { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--secondary-color, #999); background: transparent; color: inherit; font: inherit; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.ds-fnext .ds-fchip.active { background: var(--secondary-color, #18181b); color: #fff; border-color: transparent; }

/* socle menu mobile Next (ajouté par design_site.py) */
@media (max-width: 767px) {
  .ds-mburger { position: fixed; top: 12px; left: 10px; z-index: 60; display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; background: #18181b; color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
  .ds-mburger span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
  .ds-moverlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 65; }
  .ds-mdrawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); z-index: 70; overflow-y: auto; background: #fff; color: #18181b; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0,0,0,.3); padding-bottom: 24px; }
  body:has(#ds-mcb:checked) .ds-moverlay { display: block; }
  body:has(#ds-mcb:checked) .ds-mdrawer { transform: none; }
  body:has(#ds-mcb:checked) { overflow: hidden; }
  .ds-mhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,.1); font-weight: 700; font-size: 1.05rem; }
  .ds-mclose { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; background: rgba(0,0,0,.06); }
  .ds-msec { padding: 12px 16px 4px; }
  .ds-msec-t { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
  .ds-mlinks { display: flex; flex-wrap: wrap; gap: 8px; }
  .ds-mlink { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); background: rgba(0,0,0,.03); color: inherit; text-decoration: none; font-size: .9rem; line-height: 1.2; }
  .ds-mnav .ds-mlink { font-weight: 600; }
  .ds-mfoot { padding: 18px 16px 0; }
  .ds-mcta { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: var(--secondary-color, #18181b); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; }
}
@media (min-width: 768px) { .ds-mburger, .ds-mdrawer, .ds-moverlay { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ds-mdrawer { transition: none; } }

/* rencontre-amicale.be — registre « sauge claire & lin » : lin, vert sauge, encre ; feuilles, rayons 18 px */
html:root{--vert:#298e4b;--vert-f:#1f6e3a;--lin:#f5f0e4;--lin2:#ece4d2;--encre:#20302a;--encre2:#4b5a52;
--text:#20302a;--text-muted:#4b5a52;--border:#ddd3bd;--bg:#f5f0e4;--bg-alt:#ece4d2;--bg-card:#fffdf7;
--primary:#1f6e3a;--secondary:#20302a;--primary-color:#1f6e3a;--secondary-color:#20302a;
--feuille:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 17C3 8 9 3 17 3c0 8-5 14-14 14z' fill='%23298e4b'/%3E%3Cpath d='M4 16L13 7' stroke='%23f5f0e4' stroke-width='1.2'/%3E%3C/svg%3E")}
body{background:var(--lin)!important;color:var(--encre)}

/* header : deux rangées, actions + nav en haut, logo à droite en dessous */
header.sticky{background:rgba(245,240,228,.97)!important;border-bottom:1px solid var(--border)!important;box-shadow:0 10px 26px -18px rgba(31,110,58,.45)!important}
@media (min-width:768px){
 header.sticky > .container > div.flex.h-16{height:auto!important;flex-wrap:wrap;row-gap:.2rem;padding:.55rem 0 .7rem}
 header.sticky > .container > div.flex.h-16 > div.hidden.md\:flex:first-child{order:3;width:100%;justify-content:flex-end;border-top:1px dashed var(--border);padding-top:.45rem}
 header.sticky > .container > div.flex.h-16 > nav{order:1}
 header.sticky > .container > div.flex.h-16 > div.hidden.md\:flex:last-child{order:2}
}
header.sticky a.font-bold[href="/"]{color:var(--encre)!important;font-weight:700!important;font-size:1.35rem}
header.sticky a.font-bold[href="/"]::after{content:"";display:inline-block;width:16px;height:16px;margin-left:8px;vertical-align:-2px;background:var(--feuille) center/contain no-repeat}
@media (max-width:767px){header.sticky a.font-bold[href="/"]{font-size:1.05rem!important;max-width:56%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block}}
header.sticky nav button,header.sticky nav a,header.sticky button{color:var(--encre)!important}
header.sticky nav button{background:var(--bg-card)!important;border:1px solid var(--border)!important;border-radius:999px!important;padding:.4rem .95rem!important}
header.sticky button[style],header.sticky a[style*="background"]{background:var(--vert-f)!important;color:#fff!important;border-radius:999px!important}

/* titres calmes, filet-feuille */
main h1,main h2{color:var(--encre)!important;font-weight:700!important;letter-spacing:0!important;text-transform:none!important}
main h2::after{content:"";display:block;width:58px;height:14px;margin-top:6px;background:var(--feuille) left center/14px no-repeat,linear-gradient(var(--vert),var(--vert)) 20px center/38px 2px no-repeat}
main section.text-center h2::after{margin-left:auto;margin-right:auto}

/* cartes profil : hautes, arche en haut, badge d'âge en bas à gauche */
div.flex-shrink-0.w-40{background:var(--bg-card)!important;border:1px solid var(--border)!important;border-radius:120px 120px 18px 18px!important;box-shadow:0 14px 28px -18px rgba(31,110,58,.5)!important;overflow:hidden}
div.flex-shrink-0.w-40 img{transition:transform .6s ease}
div.flex-shrink-0.w-40:hover img{transform:scale(1.05)}
div.flex-shrink-0.w-40 .absolute.top-2.right-2{top:auto!important;bottom:.5rem!important;right:auto!important;left:.5rem!important;background:var(--bg-card)!important;color:var(--vert-f)!important;border:1px solid var(--border);border-radius:999px!important;font-weight:700}
div.flex-shrink-0.w-40 p,div.flex-shrink-0.w-40 span:not(.absolute){color:var(--encre2)}
div.flex-shrink-0.w-40 h3{color:var(--encre)!important}

/* tri */
div.rounded-lg.shadow-sm{background:var(--bg-card)!important;border:1px solid var(--border)!important;border-radius:18px!important}
div.rounded-lg.shadow-sm select,.ds-fsel{background:var(--lin)!important;color:var(--encre)!important;border:1px solid var(--border)!important;border-radius:999px!important}
div.rounded-lg.shadow-sm button{background:var(--vert-f)!important;color:#fff!important;border-radius:999px!important}
.ds-fchip{border-radius:999px!important;border:1px solid var(--border)!important;color:var(--encre)!important;background:var(--bg-card)!important}

/* villes en feuilles */
section.bg-zinc-100{background:var(--lin2)!important}
section.bg-zinc-100 a.rounded-full,section#departements a{background:var(--bg-card)!important;color:var(--encre)!important;border:1px solid var(--border)!important;border-radius:18px 4px 18px 4px!important}
section#departements a{display:inline-block;padding:.35rem .8rem;margin:.2rem}
section#departements a:hover,section.bg-zinc-100 a.rounded-full:hover{background:var(--vert-f)!important;color:#fff!important}
nav[aria-label] a[style*="border-left"]{border-left-color:var(--vert)!important;color:var(--encre)!important;border-radius:0 18px 18px 0}

/* CTA : carte de rencontre centrée */
section.text-center{background:radial-gradient(circle at 50% 0,#fff,var(--bg-card))!important;border:1px solid var(--border);border-radius:28px;padding:2.2rem 1.4rem!important;box-shadow:0 20px 44px -26px rgba(31,110,58,.55);max-width:620px;margin-left:auto!important;margin-right:auto!important}
section.text-center::before{content:"";display:block;width:34px;height:34px;margin:0 auto 10px;background:var(--feuille) center/contain no-repeat}
section.text-center p{color:var(--encre2)!important}
section.text-center button{background:var(--vert-f)!important;color:#fff!important;border-radius:999px!important;min-height:48px;font-weight:700!important;box-shadow:0 12px 24px -10px rgba(31,110,58,.7)!important;border:0!important}

/* FAQ + texte */
section:has(> div.space-y-0){background:var(--bg-card);border:1px solid var(--border);border-radius:18px;padding:1.2rem}
section:has(> div.space-y-0) button{color:var(--encre)!important}
section:has(> div.space-y-0) p{color:var(--encre2)!important}
section:has(.prose) .prose,section:has(.prose) .prose *{color:var(--encre)}
section:has(.prose) .prose a{color:var(--vert-f)!important}
div.rounded-2xl.mb-8{background:var(--bg-card)!important;border:1px solid var(--border);border-radius:18px!important}

button.fixed.bottom-6.right-6{background:var(--vert-f)!important;color:#fff!important;border-radius:18px 4px 18px 4px!important}

/* footer lin, une ligne */
footer{background:var(--lin2)!important;color:var(--encre)!important;border-top:1px solid var(--border)!important}
footer *{color:var(--encre)!important;border-color:var(--border)!important}
footer h3.font-semibold{color:var(--vert-f)!important;font-weight:700!important}
footer a:hover{color:var(--vert-f)!important}
@media (min-width:992px){footer .grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:1.5rem!important}}

/* pop-ups : couleurs seulement */
.pm-cta{background:var(--vert-f)!important;color:#fff!important;border-radius:999px!important}
div.fixed.inset-0 button[style*="background"]{background:var(--vert-f)!important;color:#fff!important}

/* menu mobile */
label.ds-mburger{background:var(--lin)!important;border:1px solid var(--border)!important;border-radius:14px!important}
label.ds-mburger span{background:var(--encre)!important}
.ds-mdrawer{background:var(--lin)!important;color:var(--encre)!important}
.ds-mhead{border-bottom:1px solid var(--border)!important}
.ds-mbrand,label.ds-mclose{color:var(--encre)!important}
.ds-msec-t{color:var(--vert-f)!important}
a.ds-mlink{color:var(--encre)!important;background:var(--bg-card)!important;border:1px solid var(--border)!important;border-radius:18px 4px 18px 4px!important;min-height:40px}
button.ds-mcta{background:var(--vert-f)!important;color:#fff!important;border-radius:999px!important;min-height:48px}

/* recette Next · villes-bas (copiée) */
body.design-v-villes-bas main.space-y-12:where(:has(> section#departements)) { display: flex; flex-direction: column; }
body.design-v-villes-bas main.space-y-12:where(:has(> section#departements)) > * { order: 6; }
body.design-v-villes-bas main.space-y-12 > section.scroll-mt-20:not(#departements) { order: 1; }
body.design-v-villes-bas main.space-y-12 > .ds-bloc { order: 2; }
body.design-v-villes-bas main.space-y-12 > section.text-center { order: 3; }
body.design-v-villes-bas main.space-y-12 > section#departements { order: 7; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce){div.flex-shrink-0.w-40 img{transition:none}div.flex-shrink-0.w-40:hover img{transform:none}}

@media (min-width:768px){header.sticky > .container > div.flex.h-16 > div.hidden.md\:flex:first-child{padding-right:140px}main{background:transparent!important}}

/* garde menu Next (design_site.py) */
.ds-mdrawer, .ds-mburger, .ds-moverlay { position: fixed !important; }

/* garde-fou design_site.py (Next, 17/09) : le logo mobile est un <a> absolu centré ; un nom de site
   allemand long (« Kostenlose Sexdates in Deutschland ») débordait ou s'empilait sur 3 lignes
   par-dessus les icônes (capture du 17/09). Une ligne, ellipse, place réservée aux boutons. */
@media (max-width: 767px) {
  header .md\:hidden a[href="/"] {
    max-width: 56% !important; white-space: nowrap !important; overflow: hidden !important;
    text-overflow: ellipsis !important; font-size: clamp(.95rem, 4.4vw, 1.25rem) !important; line-height: 1.2 !important;
    position: absolute !important; /* lot 21 : un `position: relative` posé pour un ::after l'avait mis dans le flux → bouton par-dessus */
  }
  header nav.hidden { display: none !important; }
}
/* garde-fou 18/09 : la carte des pages ville tombait en repli avec un texte FRANÇAIS (« Carte indisponible (fallback) ») —
   corrigé à la source (VilleMap.tsx), masqué ici tant que le dist n'est pas reconstruit. */
main.space-y-12 > div.rounded-2xl.mb-8 > div.mb-3.text-sm.text-zinc-600 { display: none !important; }
@media (max-width: 767px) { /* lot 21 : `display:flex` posé sur nav.hidden.md:flex la faisait sortir sur mobile, par-dessus le logo */
  /* 19/09 (capture de Lucas, pop-up profil mobile) : le bouton « Registrieren… » remonté sous la photo touchait le
     titre « Bio » (bio.top == cta.bottom, toutes variantes pm-v) ; corrigé à la source (popup_skins.css / globals.css),
     posé ici pour les dists déjà construits. */
  .pm-modal .pm-cta { margin-bottom: .9rem !important; }
}
/* __END_DESIGN_SITE__ */
