
/* __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; } }

/* ==========================================================================
   Habillage unique — sex-bayern.de (Next.js, mode régional Bayern)
   Direction : « ciel bavarois » — bleu ciel, blanc, or, losanges en
   filigrane (clin d'œil discret aux losanges du drapeau bavarois).
   Ne touche qu'au header, à la barre mobile et au footer.
   ========================================================================== */

/* --- palette du site (scopée au header/footer, ne fuite pas sur le reste) - */
header.sticky,
footer {
  --ciel-clair: #eaf6fd;
  --ciel: #3fa9dc;
  --ciel-profond: #0d5b8f;
  --marine: #08314f;
  --or: #d4af37;
  --or-clair: #f3e3ad;
}

/* ---------------------------- HEADER (desktop) --------------------------- */
header.sticky {
  background-color: var(--ciel-clair) !important;
  background-image:
    linear-gradient(180deg, #ffffff 0%, var(--ciel-clair) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M18 0L36 18L18 36L0 18Z' fill='none' stroke='%23b7ddf5' stroke-width='1' opacity='.55'/%3E%3C/svg%3E") !important;
  border-bottom-width: 0 !important; /* remplacé par le filet or animé ci-dessous */
}

/* filet or animé en pied de header — surface fine, pas de grand aplat qui bouge */
header.sticky::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg, var(--or) 0%, var(--or-clair) 25%, var(--or) 50%, var(--or-clair) 75%, var(--or) 100%);
  background-size: 200% 100%;
  animation: sb-filet-or 7s linear infinite;
  pointer-events: none;
}
@keyframes sb-filet-or {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}

/* logo : bleu profond et lisible sur fond clair, remplace le style inline */
header.sticky a[href="/"] {
  color: var(--ciel-profond) !important;
  letter-spacing: .01em;
}

/* --- Desktop (≥768px) : nav à gauche, logo au CENTRE, actions à droite --- */
@media (min-width: 768px) {
  header.sticky .container > div.flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
  }
  header.sticky .container > div.flex > div:nth-child(1) { order: 2; justify-self: center; } /* logo */
  header.sticky .container > div.flex > nav               { order: 1; justify-self: start; }  /* nav */
  header.sticky .container > div.flex > div:nth-child(4)  { order: 3; justify-self: end; }     /* actions */

  /* liens de nav : bleu ciel + soulignement or qui se déploie au survol */
  header.sticky nav button,
  header.sticky nav a {
    color: var(--ciel-profond);
    position: relative;
  }
  header.sticky nav button::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 2px;
    background: var(--or);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }
  header.sticky nav button:hover::after { transform: scaleX(1); }
  header.sticky nav button:hover,
  header.sticky nav a:hover { color: var(--marine); }

  /* icônes d'action : pastille blanche cerclée de ciel, s'élève et dore au survol */
  header.sticky .container > div.flex > div:nth-child(4) button {
    color: var(--ciel-profond);
    background: #ffffff;
    border: 1px solid #bfe0f5;
    border-radius: 999px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  header.sticky .container > div.flex > div:nth-child(4) button:hover {
    border-color: var(--or);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(212, 175, 55, .25);
  }
}

/* ------------------------ Mobile (<768px) : bandeau ----------------------- */
@media (max-width: 767.98px) {
  /* le header entier devient le bandeau bleu ciel bavarois */
  header.sticky {
    background-color: var(--ciel-profond) !important;
    background-image:
      linear-gradient(180deg, #146a97 0%, #0b4f7a 100%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M15 0L30 15L15 30L0 15Z' fill='none' stroke='%23ffffff' stroke-width='1' opacity='.16'/%3E%3C/svg%3E") !important;
  }
  header.sticky .md\:hidden a[href="/"] {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  }
  header.sticky .md\:hidden button { color: #ffffff; }
  header.sticky .md\:hidden span { color: #ffffff; }
  /* confort de toucher, sans changer la mise en page du gabarit */
  header.sticky .md\:hidden button { padding: .5rem .35rem; }
}

/* ---------------------------------- FOOTER -------------------------------- */
footer {
  background: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='%23f0e3b0' stroke-width='1' opacity='.5'/%3E%3C/svg%3E");
  border-top: 3px solid var(--or) !important; /* footer blanc bordé d'or */
}

footer h3 {
  color: var(--ciel-profond) !important;
}

footer a {
  color: #4a5b68;
  transition: color .18s ease;
}
footer a:hover {
  color: var(--ciel-profond) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* nom du site en pied de page : liseré or qui se déploie une fois, au chargement */
footer .lg\:col-span-1 h3 {
  position: relative;
  display: inline-block;
  padding-bottom: .35rem;
}
footer .lg\:col-span-1 h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  animation: sb-liseré-or .9s .15s ease-out forwards;
}
@keyframes sb-liseré-or {
  to { transform: scaleX(1); }
}

/* barre du bas : séparateur teinté d'or, lien sitemap doré au survol */
footer .border-t.border-zinc-200 {
  border-top-color: var(--or-clair) !important;
}
footer a[href="/sitemap.xml"]:hover {
  color: var(--or) !important;
}

/* -------------------------- confort de lecture --------------------------- */
@media (prefers-reduced-motion: reduce) {
  header.sticky::after,
  header.sticky *,
  footer .lg\:col-span-1 h3::after,
  footer * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== design v3 (18/09) : mise en page « cta-faq » ===== */
/* Next · cta-faq (pages ville) : le CTA « Worauf wartest du noch? » et la FAQ côte à côte.
   Ordre lu : profils → carte → texte → [CTA | FAQ] → Top 20 / villes proches. Les blocs FAQ, texte
   et Top 20 arrivent en streaming (Suspense) : React les replace dans <main> à l'hydratation. */
@media (min-width: 992px) {
  body.design-v-cta-faq main.space-y-12 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 3rem; align-items: start; }
  body.design-v-cta-faq main.space-y-12 > * { grid-column: 1 / -1; margin: 0; order: 6; }
  body.design-v-cta-faq main.space-y-12 > section:has(.min-h-\[500px\]) { order: 1; }
  body.design-v-cta-faq main.space-y-12 > div.rounded-2xl.mb-8 { order: 2; }
  /* le texte et la FAQ sont dans un wrapper div.space-y-8 (streaming) : on l'efface (display: contents)
     pour que ses sections deviennent des items de la grille de <main> */
  body.design-v-cta-faq main.space-y-12 > div.space-y-8 { display: contents; }
  body.design-v-cta-faq main.space-y-12 > div.space-y-8 > * { grid-column: 1 / -1; margin: 0; order: 6; }
  body.design-v-cta-faq main.space-y-12 > div.space-y-8 > section:has(.prose) { order: 3; }
  body.design-v-cta-faq main.space-y-12 > .ds-bloc { order: 3; }
  body.design-v-cta-faq main.space-y-12 > section.text-center { order: 4; grid-column: auto; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
  body.design-v-cta-faq main.space-y-12 > div.space-y-8 > section:has(> div.space-y-0) { order: 5; grid-column: auto; align-self: stretch; }
}

/* ============================================================================
   THÈME PROFOND (design v3, 18/09/2026) — même registre « ciel bavarois » que
   le header/footer : bleu ciel, blanc, or, losanges en filigrane, filet or
   animé. On recolore les zones de contenu Next (cartes, filtres, CTA, FAQ,
   Nach Bundesland, Top-Städte, défilement de régions, retour en haut,
   age gate / pop-up d'inscription) sans jamais toucher à leur mécanique.
   ============================================================================ */

/* -- cartes profil (carrousel horizontal, accueil & ville) -- */
.flex-shrink-0.w-40.sm\:w-64.bg-zinc-50,
.flex-shrink-0.w-40.sm\:w-64.dark\:bg-zinc-900 {
  background-color: #ffffff !important;
  border-color: #bfe0f5 !important;
  border-radius: 14px !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.flex-shrink-0.w-40.sm\:w-64.bg-zinc-50:hover {
  transform: translateY(-4px);
  border-color: #d4af37 !important;
  box-shadow: 0 14px 26px -14px rgba(13, 91, 143, .45);
}
.flex-shrink-0.w-40.sm\:w-64.bg-zinc-50 img {
  border-radius: 10px !important;
}
/* badge d'âge : pastille or au lieu du noir translucide, texte marine lisible */
.flex-shrink-0.w-40.sm\:w-64.bg-zinc-50 .bg-zinc-900\/80 {
  background-color: #d4af37 !important;
  background-image: linear-gradient(135deg, #f3e3ad, #d4af37) !important;
  color: #08314f !important;
  border-radius: 999px !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(13, 91, 143, .35);
}
.flex-shrink-0.w-40.sm\:w-64.bg-zinc-50 h3 {
  color: #08314f;
}
.flex-shrink-0.w-40.sm\:w-64.bg-zinc-50 p.text-zinc-500,
.flex-shrink-0.w-40.sm\:w-64.bg-zinc-50 p.text-zinc-600 {
  color: #4a7793 !important;
}

/* -- barre de tri / recherche au-dessus des cartes (div.rounded-lg.shadow-sm) -- */
div.rounded-lg.shadow-sm.border.border-zinc-200 {
  border-color: #d7ecf9 !important;
}
div.rounded-lg.shadow-sm select,
div.rounded-lg.shadow-sm button {
  border-radius: 999px !important;
  border-color: #bfe0f5 !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
div.rounded-lg.shadow-sm select:focus {
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, .35) !important;
}
div.rounded-lg.shadow-sm button:hover {
  background-color: #eaf6fd !important;
  border-color: #3fa9dc !important;
  color: #0d5b8f !important;
}

/* -- bouton « Mehr/Weniger anzeigen » (texte d'intro) : reprend la couleur du site -- */
main button[style*="color:#E35D8F"] {
  color: #0d5b8f !important;
}
main button[style*="color:#E35D8F"]:hover {
  color: #08314f !important;
}

/* -- bandeau CTA de milieu de page -- */
section.text-center.rounded-2xl.shadow-lg {
  position: relative;
  background-color: #0d5b8f !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M17 0L34 17L17 34L0 17Z' fill='none' stroke='%23ffffff' stroke-width='1' opacity='.14'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #3fa9dc 0%, #0d5b8f 55%, #08314f 100%) !important;
  border: none !important;
  overflow: hidden;
}
section.text-center.rounded-2xl.shadow-lg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37 0%, #f3e3ad 25%, #d4af37 50%, #f3e3ad 75%, #d4af37 100%);
  background-size: 200% 100%;
  animation: sb-filet-or 7s linear infinite;
  pointer-events: none;
}
section.text-center.rounded-2xl.shadow-lg h2 {
  color: #ffffff !important;
}
section.text-center.rounded-2xl.shadow-lg button {
  background-color: #d4af37 !important;
  background-image: linear-gradient(135deg, #f3e3ad, #d4af37) !important;
  color: #08314f !important;
  border-radius: 999px !important;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(8, 49, 79, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
section.text-center.rounded-2xl.shadow-lg button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -8px rgba(8, 49, 79, .65);
}

/* -- FAQ / accordéon -- */
section.shadow-lg:has(> div.space-y-0) {
  border: 1px solid #bfe0f5;
  border-radius: 16px;
}
section.shadow-lg:has(> div.space-y-0) h2 {
  color: #08314f;
}
section.shadow-lg:has(> div.space-y-0) div.space-y-0 > div {
  border-color: #d7ecf9 !important;
}
section.shadow-lg:has(> div.space-y-0) div.space-y-0 button:hover {
  background-color: #eaf6fd !important;
}
section.shadow-lg:has(> div.space-y-0) div.space-y-0 h3 {
  color: #0d5b8f;
}
section.shadow-lg:has(> div.space-y-0) div.space-y-0 svg {
  color: #d4af37 !important;
}

/* -- texte SEO (bloc .prose) -- */
section.shadow-lg:has(> div.prose) {
  border: 1px solid #eaf6fd;
  border-radius: 16px;
}
section.shadow-lg:has(> div.prose) h2 {
  color: #08314f;
}
section.shadow-lg:has(> div.prose) a.text-blue-600 {
  color: #0d5b8f !important;
}
section.shadow-lg:has(> div.prose) a.text-blue-600:hover {
  color: #08314f !important;
  text-decoration-color: #d4af37;
}

/* -- « Nach Bundesland » (recherche + liste) -- */
section#departements {
  border: 1px solid #bfe0f5;
  border-radius: 16px;
}
section#departements h2 {
  color: #08314f;
}
section#departements input {
  border-radius: 999px !important;
  border-color: #bfe0f5 !important;
}
section#departements input:focus {
  border-color: #d4af37 !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, .3) !important;
}
section#departements a {
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
section#departements a:hover {
  background-color: #eaf6fd !important;
  color: #0d5b8f !important;
}

/* -- Top 20 Städte + Städte in der Nähe (chips à liseré gauche) -- */
nav[aria-label] a[style*="border-left"] {
  border-left-color: #d4af37 !important;
  border-radius: 8px;
  transition: background-color .2s ease, transform .15s ease;
}
nav[aria-label] a[style*="border-left"]:hover {
  background-color: #eaf6fd !important;
  color: #0d5b8f !important;
  transform: translateX(2px);
}

/* -- défilement de régions (pilules en bas de l'accueil) -- */
section.bg-zinc-100 a.rounded-full {
  border: 1px solid #bfe0f5;
}
section.bg-zinc-100 a.rounded-full:hover {
  background-color: #eaf6fd !important;
  color: #0d5b8f !important;
  border-color: #d4af37 !important;
}

/* -- bouton retour en haut -- */
button.fixed.bottom-6.right-6 {
  background-color: #0d5b8f !important;
  background-image: linear-gradient(135deg, #3fa9dc, #08314f) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px -8px rgba(8, 49, 79, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
button.fixed.bottom-6.right-6:hover {
  transform: translateY(-2px);
}

/* -- age gate / pop-up d'inscription (prelinker) : couleurs, bordures, rayons -- */
.fixed.inset-0 .rounded-2xl,
.fixed.inset-0 .rounded-xl {
  border: 1px solid #bfe0f5;
}
.fixed.inset-0 button {
  border-radius: 999px;
}
.prelinker-embed input,
.prelinker-embed select {
  border-radius: 10px !important;
  border-color: #bfe0f5 !important;
}
.prelinker-embed input:focus,
.prelinker-embed select:focus {
  border-color: #d4af37 !important;
}
.prelinker-embed button {
  background-color: #0d5b8f !important;
  background-image: linear-gradient(135deg, #3fa9dc, #08314f) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
}

/* -- accessibilité (complète le bloc existant du header/footer) -- */
@media (prefers-reduced-motion: reduce) {
  section.text-center.rounded-2xl.shadow-lg::before,
  .flex-shrink-0.w-40.sm\:w-64.bg-zinc-50,
  section.text-center.rounded-2xl.shadow-lg button,
  button.fixed.bottom-6.right-6,
  nav[aria-label] a[style*="border-left"] {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================================
   MENU MOBILE (design v3, 18/09/2026) — tiroir construit après hydratation par
   design_inject.py (socle neutre dans app/design_recettes_v3.css). Même
   registre « ciel bavarois » que le header mobile (bandeau ciel profond,
   losanges blancs en filigrane, filet or). On ne touche ni display / position /
   transform / overflow des règles mécanisme (#ds-mcb:checked) — seulement
   couleurs, bordures, rayons, ombres.
   ============================================================================ */

/* burger : pastille blanche cerclée de ciel, comme les boutons d'action du header */
.ds-mburger {
  background-color: #ffffff !important;
  border: 1px solid #bfe0f5;
  color: #0d5b8f !important;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(13, 91, 143, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ds-mburger:active {
  transform: scale(.94);
}
.ds-mburger span {
  background-color: #0d5b8f !important;
}

/* calque : voile marine profond */
.ds-moverlay {
  background: rgba(8, 49, 79, .55) !important;
}

/* tiroir : bandeau ciel profond → marine du header mobile, filet or animé au bord */
.ds-mdrawer {
  position: relative;
  background-color: #08314f !important;
  background-image:
    linear-gradient(180deg, #0e5c8f 0%, #08314f 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M15 0L30 15L15 30L0 15Z' fill='none' stroke='%23ffffff' stroke-width='1' opacity='.14'/%3E%3C/svg%3E") !important;
  color: #eaf6fd !important;
  box-shadow: 8px 0 30px rgba(8, 49, 79, .45);
}
.ds-mdrawer::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #d4af37 0%, #f3e3ad 25%, #d4af37 50%, #f3e3ad 75%, #d4af37 100%);
  background-size: 100% 200%;
  animation: sb-filet-or-v 7s linear infinite;
  pointer-events: none;
}
@keyframes sb-filet-or-v {
  from { background-position: 0 0%; }
  to   { background-position: 0 200%; }
}

/* en-tête du tiroir */
.ds-mhead {
  border-bottom: 1px solid rgba(212, 175, 55, .3);
  background: rgba(212, 175, 55, .08);
}
.ds-mbrand {
  color: #f3e3ad;
  letter-spacing: .01em;
}
.ds-mclose {
  background: #d4af37 !important;
  color: #08314f !important;
  box-shadow: 0 2px 8px rgba(8, 49, 79, .4);
  transition: background-color .2s ease, transform .2s ease;
}
.ds-mclose:hover {
  background: #f3e3ad !important;
  transform: scale(1.06);
}

/* titres de section : or clair, petites capitales — lisibles sur le fond marine */
.ds-msec-t {
  color: #f3e3ad;
  opacity: 1;
  font-weight: 700;
}
.ds-msec + .ds-msec {
  position: relative;
}
.ds-msec + .ds-msec::before {
  content: "";
  display: block;
  height: 1px;
  margin: 4px 16px 8px;
  background: rgba(212, 175, 55, .22);
}

/* pilules de liens : bordure ciel translucide, contraste net ≥ 40 px */
.ds-mlink {
  min-height: 40px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .08) !important;
  color: #eaf6fd !important;
  border: 1px solid rgba(63, 169, 220, .45) !important;
  border-radius: 999px !important;
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease;
}
.ds-mlink:hover {
  background: #3fa9dc !important;
  border-color: #3fa9dc !important;
  color: #08314f !important;
  transform: translateY(-1px);
}

/* section Navigation : pilules pleines or, parcours principal mis en avant */
.ds-mnav .ds-mlink {
  background-color: #d4af37 !important;
  background-image: linear-gradient(135deg, #f3e3ad, #d4af37) !important;
  border-color: transparent !important;
  color: #08314f !important;
  font-weight: 700;
}
.ds-mnav .ds-mlink:hover {
  background-image: linear-gradient(135deg, #ffffff, #f3e3ad) !important;
  color: #08314f !important;
}

/* Bundesländer / Top-Städte : pilules discrètes, même famille que le tri du header */
.ds-mlander .ds-mlink,
.ds-mvilles .ds-mlink {
  background: rgba(255, 255, 255, .05) !important;
  color: #cfe3f0 !important;
  border-color: rgba(255, 255, 255, .18) !important;
}
.ds-mlander .ds-mlink:hover,
.ds-mvilles .ds-mlink:hover {
  background: rgba(63, 169, 220, .28) !important;
  border-color: #3fa9dc !important;
  color: #ffffff !important;
}

/* pied du tiroir : bouton d'inscription, écho du CTA du header */
.ds-mfoot {
  border-top: 1px solid rgba(212, 175, 55, .25);
}
.ds-mcta {
  background-color: #d4af37 !important;
  background-image: linear-gradient(135deg, #f3e3ad, #d4af37) !important;
  color: #08314f !important;
  box-shadow: 0 8px 18px -8px rgba(8, 49, 79, .65);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ds-mcta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -8px rgba(8, 49, 79, .75);
}

@media (prefers-reduced-motion: reduce) {
  .ds-mdrawer::before,
  .ds-mburger,
  .ds-mclose,
  .ds-mlink,
  .ds-mcta {
    animation: none !important;
    transition: none !important;
  }
}

/* cta-faq (Lucas, 19/09) : le CTA ne prend plus la hauteur de la colonne FAQ — centré, hauteur naturelle, de l'air */
@media (min-width:992px){
body.design-v-cta-faq .bg-gradient > .container > .cta-section,
body.design-v-cta-faq div.container > section.cta-section,
body.design-v-cta-faq main.space-y-12 > section.text-center{align-self:center !important;margin-top:2.5rem !important;margin-bottom:2.5rem !important;min-height:0 !important;height:auto !important;}
}

/* __POPUP_CRO_V1 — fiche profil : blanche, sobre, et réglée pour le clic (23/09, demande de Lucas).
   Posé en fin de la feuille du site : hérite donc de sa palette, et `--cro-accent` est écrit par
   popup_cro_apply.py avec la teinte du site (repli : sa variable primaire).

   Ce que ça change, et pourquoi :
   1. FOND BLANC partout (la fiche était crème, ivoire ou transparente selon les sites) — une surface
      neutre fait ressortir la photo et le bouton, et ne discute pas avec la palette du site.
   2. PHOTO PLAFONNÉE à 42vh sur mobile : elle prenait 400 à 455 px sur un écran de 844 (jusqu'à 54 %),
      ce qui repoussait le bouton à 553 px sur Next. Moins de photo = le bouton remonte dans l'œil.
   3. BOUTON : 54 px, pleine largeur, accent du site, collé en bas de la fiche sur mobile AVEC une marge
      (les puces passaient dessous — défaut mesuré le 19/09 et revu le 22/09).
   4. ANIMATIONS : une ouverture (200 ms), une pression, et UNE seule impulsion du bouton à l'ouverture.
      Rien qui tourne en boucle : sur une page de conversion, le mouvement permanent détourne l'œil.
   Tout est coupé sous prefers-reduced-motion. */

:root{
  --cro-accent:#0d5b8f;
  --cro-cta-texte:#ffffff;
  --cro-blanc:#ffffff;
  --cro-encre:#14171a;
  --cro-encre-2:#5b656e;
  --cro-trait:#e9ecef;
  --cro-ombre:0 18px 48px -12px rgba(16,20,24,.26);
  --cro-cta-texte:#ffffff;   /* recalculé par site : encre foncée si l'accent est clair (jaune, lime…) */
}

/* ---------- socle commun aux trois gabarits ---------- */
/* ⚠️ Passer le fond au blanc ne suffit pas : les textes de la fiche prennent leur couleur des
   variables du gabarit, réglées pour le fond d'origine (souvent sombre). Sur free-sexkontakt.de la
   bio est ressortie gris pâle sur blanc. On rescope donc les variables SUR la fiche — même remède
   que le 21/09 — et on force la couleur du texte courant. */
#profileModal .modal-content,
.pm-modal{
  --text:#14171a; --text-muted:#5b656e; --bg:#ffffff; --bg-card:#ffffff; --bg-alt:#f7f8f9; --border:#e9ecef;
  background:var(--cro-blanc) !important;
  color:var(--cro-encre);
  border-radius:16px;
  box-shadow:var(--cro-ombre);
  overflow:hidden;
}
#profileModal.active .modal-content,
.pm-modal{ animation:cro-entree .2s cubic-bezier(.16,1,.3,1) both; }
@keyframes cro-entree{ from{ opacity:0; transform:translateY(10px) scale(.994); } to{ opacity:1; transform:none; } }

/* le bouton : même dessin partout, quelle que soit la palette du site */
#profileModal .btn-primary,
#profileModal .modal-contact-btn,
#profileModal .btn-cta-overlay,
.pm-cta button,
.pm-cta a{
  background:var(--cro-accent, var(--primary, #14171a)) !important;
  color:var(--cro-cta-texte, #fff) !important;
  border:0 !important;
  min-height:54px;
  width:100%;
  border-radius:12px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.01em;
  box-shadow:0 10px 22px -10px var(--cro-accent, rgba(20,23,26,.6));
  transition:transform .12s ease, filter .12s ease, box-shadow .2s ease;
  cursor:pointer;
}
#profileModal .btn-primary:hover,
#profileModal .modal-contact-btn:hover,
.pm-cta button:hover,
.pm-cta a:hover{ filter:brightness(1.07); box-shadow:0 14px 26px -10px var(--cro-accent, rgba(20,23,26,.6)); }
#profileModal .btn-primary:active,
#profileModal .modal-contact-btn:active,
.pm-cta button:active,
.pm-cta a:active{ transform:scale(.985); }
#profileModal .btn-primary:focus-visible,
.pm-cta button:focus-visible{ outline:3px solid var(--cro-accent, #14171a); outline-offset:3px; }

/* une seule impulsion, au moment où la fiche s'ouvre */
@keyframes cro-pouls{ 0%{ box-shadow:0 10px 22px -10px var(--cro-accent, rgba(20,23,26,.6)), 0 0 0 0 color-mix(in srgb, var(--cro-accent, #14171a) 55%, transparent); }
  70%{ box-shadow:0 10px 22px -10px var(--cro-accent, rgba(20,23,26,.6)), 0 0 0 12px transparent; }
  100%{ box-shadow:0 10px 22px -10px var(--cro-accent, rgba(20,23,26,.6)), 0 0 0 0 transparent; } }
#profileModal.active .btn-primary,
#profileModal.active .modal-contact-btn,
.pm-modal .pm-cta button{ animation:cro-pouls 1.5s ease-out .45s 2; }

/* ---------- Astro : carrousel + corps ---------- */
#profileModal .modal-image{ object-fit:cover; }
#profileModal .modal-body{ background:var(--cro-blanc); padding-bottom:0; }
#profileModal .modal-name{ color:var(--cro-encre); font-size:22px; letter-spacing:-.01em; }
#profileModal .modal-meta{ color:var(--cro-encre-2); font-size:13.5px; }
#profileModal .modal-bio, #profileModal .modal-bio-wrap p{ color:var(--cro-encre); font-size:15px; line-height:1.55; }
#profileModal .modal-tag{
  background:#f5f7f8 !important; color:var(--cro-encre-2) !important;
  border:1px solid var(--cro-trait) !important; border-radius:999px; font-size:12px; padding:4px 10px;
}
#profileModal .modal-tags-label{ color:var(--cro-encre-2) !important; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; }
#profileModal .modal-close{ background:rgba(255,255,255,.92) !important; color:var(--cro-encre) !important; border-radius:999px; }

/* le texte courant de la fiche, quelle que soit la couleur que lui donnait le gabarit */
#profileModal .modal-bio, #profileModal .modal-bio *,
#profileModal .modal-bio-wrap, #profileModal .modal-bio-wrap *,
#profileModal .modal-body p, #profileModal .modal-info-value,
#profileModal .modal-infos li, #profileModal .modal-infos span,
.pm-modal .pm-bio, .pm-modal .pm-bio p, .pm-modal .pm-bio div{
  color:var(--cro-encre) !important;
}
#profileModal .modal-info-label, #profileModal .modal-infos-label{ color:var(--cro-encre-2) !important; }

/* Un seul bouton doit attirer l'œil : « Favoris » reste accessible mais cesse de rivaliser avec
   « Contacter » (même largeur, même poids visuel = attention partagée, donc moins de clics utiles). */
#profileModal .modal-actions .btn:not(.btn-primary):not(.modal-contact-btn),
#profileModal .modal-favoris,
#profileModal .btn-favori{
  background:transparent !important;
  color:var(--cro-encre-2) !important;
  border:1px solid var(--cro-trait) !important;
  min-height:42px; font-size:14px; font-weight:500; box-shadow:none !important;
}
/* le corps de la fiche reste sur le blanc : les encarts teintés du site y perdaient la hiérarchie */
#profileModal .modal-bio-wrap,
#profileModal .modal-body > div[class*="bio"]{
  background:#f7f8f9 !important; border:1px solid var(--cro-trait) !important; border-radius:12px;
}

/* ---------- Next ---------- */
.pm-modal .pm-head h3{ color:var(--cro-encre) !important; font-size:22px; }
.pm-modal .pm-bio, .pm-modal .pm-bio p{ color:var(--cro-encre); }
.pm-modal .pm-infos .rounded-full{
  background:#f5f7f8 !important; color:var(--cro-encre-2) !important; border:1px solid var(--cro-trait) !important;
}
.pm-modal .pm-cta{ border-top:1px solid var(--cro-trait) !important; }
/* libellés d'infos : l'habillage les teinte de son accent, ce qui tenait sur l'ancien fond sombre et
   passe mal sur blanc (orange clair sur blanc : 1,9 mesuré). Ils redeviennent gris — ce sont des
   étiquettes, la valeur à côté est ce qu'on lit. */
.pm-modal [class*="text-zinc-500"],
.pm-modal [class*="text-zinc-400"],
.pm-modal .pm-bio .text-xs{ color:var(--cro-encre-2) !important; }

/* ---------- mobile : le bouton reste sous la main ---------- */
@media (max-width:768px){
  #profileModal .modal-carousel,
  #profileModal .modal-image,
  #profileModal .modal-slide,
  .pm-modal .pm-photo,
  .pm-modal .pm-media{ max-height:42vh !important; }
  #profileModal .modal-image{ height:42vh !important; }

  #profileModal .modal-actions,
  .pm-modal .pm-cta{
    position:sticky; bottom:0; z-index:4;
    background:linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--cro-blanc) 22%) !important;
    padding:14px 16px calc(16px + env(safe-area-inset-bottom)) !important;
    margin-top:8px;
  }
  #profileModal .modal-tags-block,
  .pm-modal .pm-bio{ padding-bottom:6px; }
}

@media (prefers-reduced-motion:reduce){
  #profileModal.active .modal-content, .pm-modal,
  #profileModal.active .btn-primary, #profileModal.active .modal-contact-btn, .pm-modal .pm-cta button{ animation:none !important; }
  #profileModal .btn-primary, .pm-cta button{ transition:none !important; }
}
/* __POPUP_CRO_V1_FIN */

/* __SIGNUP_CRO_V1 — pop-up d'inscription : UNE SEULE surface claire (23/09, capture de Lucas).

   Ce qu'elle montrait : un cadre bleu nuit avec, posée dedans, une carte blanche portant le
   formulaire — deux fonds, deux bords, deux ombres pour un seul geste. L'œil doit choisir où
   regarder avant de pouvoir remplir trois champs.

   Ici : une surface blanche unique, du premier pixel du cadre au dernier champ. Le formulaire du
   prestataire perd son propre fond (il devient une partie de la pop-up, pas une pièce rapportée),
   les champs gagnent en hauteur, et le bouton prend la couleur du site sur toute la largeur.
   Moins de bords à lire = moins de friction avant le clic. */

:root{
  --sg-accent:#0d5b8f;
  --sg-blanc:#ffffff;
  --sg-encre:#14171a;
  --sg-encre-2:#5b656e;
  --sg-trait:#e4e8eb;
  --sg-champ:#fbfcfc;
}

/* le voile : plus sombre et légèrement flouté, pour détacher la pop-up claire du fond du site */
#signupOverlay,
.signup-overlay,
.popup-overlay{ background:rgba(12,16,20,.62) !important; backdrop-filter:blur(2px); }

/* LA surface — une seule, blanche */
.signup-popup,
.popup-card,
#signupOverlay > div:not(.signup-overlay):not(.popup-overlay){
  background:var(--sg-blanc) !important;
  color:var(--sg-encre) !important;
  border:0 !important;
  border-radius:18px !important;
  box-shadow:0 24px 60px -16px rgba(10,14,18,.45) !important;
  padding:26px 22px 20px !important;
  animation:sg-entree .2s cubic-bezier(.16,1,.3,1) both;
}
@keyframes sg-entree{ from{ opacity:0; transform:translateY(12px) scale(.99); } to{ opacity:1; transform:none; } }

/* Next n'a pas de classe parlante : sa pop-up d'inscription est un `div.fixed.inset-0` qui contient
   un formulaire. On la reconnaît à ça (et pas à son nom), ce qui évite d'attraper la fiche profil. */
/* ⚠️ PAS de :where() ici : il met la spécificité à zéro, et la feuille du site gagne alors avec
   `div.fixed.inset-0 > div.bg-white{border:3px solid …!important}` — c'est ce qui laissait une bordure
   jaune vif autour d'une pop-up censée être d'une seule teinte. */
div.fixed.inset-0:has(input[type="email"], form) > div,
div.fixed.inset-0:has(input[type="email"], form) > div.bg-white{
  background:var(--sg-blanc) !important;
  border:0 !important;
  border-radius:18px !important;
  box-shadow:0 24px 60px -16px rgba(10,14,18,.45) !important;
  padding:0 !important;
}
div.fixed.inset-0:has(input[type="email"], form) h1,
div.fixed.inset-0:has(input[type="email"], form) h2{ font-size:23px !important; line-height:1.2 !important; color:var(--sg-encre) !important; }
div.fixed.inset-0:has(input[type="email"], form) input:not([type="checkbox"]):not([type="radio"]){
  min-height:50px !important; font-size:16px !important; border-radius:11px !important;
  border:1px solid var(--sg-trait) !important; background:var(--sg-champ) !important; color:var(--sg-encre) !important;
}
div.fixed.inset-0:has(input[type="email"], form) button[type="submit"],
div.fixed.inset-0:has(input[type="email"], form) form button:not([type="button"]){
  background:var(--sg-accent, #14171a) !important; color:#fff !important; border:0 !important;
  width:100% !important; min-height:54px !important; border-radius:12px !important;
  font-size:16px !important; font-weight:600 !important;
}

/* titres : hiérarchie nette, rien de décoratif entre le titre et le premier champ */
.signup-header h2, .popup-title{ color:var(--sg-encre) !important; font-size:23px !important; line-height:1.2; margin:0 0 6px !important; }
.signup-header p, .popup-desc{ color:var(--sg-encre-2) !important; font-size:14px !important; margin:0 0 16px !important; }
.popup-icon{ display:none !important; }   /* l'icône décorative repousse le formulaire vers le bas */

/* le formulaire cesse d'être une carte dans la carte */
.prelinker-embed, .popup-prelinker-host, .popup-prelinker-panel,
.ptprelinker--box, .ptprelinker-content, .ptprelinker-content-inner, .ptprelinker-content-content{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
}
.signup-body{ background:transparent !important; padding:0 !important; }

/* champs : plus hauts, bord clair, une seule teinte de fond */
.ptprelinker-input-group{
  background:var(--sg-champ) !important;
  border:1px solid var(--sg-trait) !important;
  border-radius:11px !important;
  margin-bottom:10px !important;
  overflow:hidden;
}
.ptprelinker-input-group:focus-within{ border-color:var(--sg-accent, #14171a) !important; box-shadow:0 0 0 3px color-mix(in srgb, var(--sg-accent, #14171a) 18%, transparent) !important; }
.ptprelinker-input-group .ptprelinker-input,
.ptprelinker-input-group .ptprelinker-select{
  background:transparent !important; color:var(--sg-encre) !important;
  min-height:50px !important; font-size:16px !important;   /* 16px : en dessous, iOS zoome au focus */
}
.ptprelinker-input-group .ptprelinker-input::placeholder{ color:#98a2ab !important; }

/* le bouton : la couleur du site, pleine largeur, seul élément coloré de la pop-up */
.ptprelinker-buttons input[type="submit"],
.ptprelinker-buttons .ptprelinker-button,
.signup-popup button[type="submit"], .popup-card button[type="submit"]{
  background:var(--sg-accent, #14171a) !important;
  color:#fff !important;
  border:0 !important;
  width:100% !important;
  min-height:54px !important;
  border-radius:12px !important;
  font-size:16px !important; font-weight:600 !important;
  box-shadow:0 10px 22px -10px var(--sg-accent, rgba(20,23,26,.6)) !important;
  transition:transform .12s ease, filter .12s ease !important;
}
.ptprelinker-buttons input[type="submit"]:hover,
.ptprelinker-buttons .ptprelinker-button:hover{ filter:brightness(1.07) !important; }
.ptprelinker-buttons input[type="submit"]:active,
.ptprelinker-buttons .ptprelinker-button:active{ transform:scale(.985) !important; }

/* croix et pied : présents, discrets — ils ne doivent pas concurrencer le bouton */
.signup-close, .popup-close{
  background:transparent !important; color:var(--sg-encre-2) !important;
  border:1px solid var(--sg-trait) !important; border-radius:999px !important;
}
.signup-footer, .popup-footer{ color:var(--sg-encre-2) !important; font-size:13px !important; border-top:1px solid var(--sg-trait); padding-top:12px !important; margin-top:14px !important; }
.signup-footer a, .popup-footer a{ color:var(--sg-accent, #14171a) !important; font-weight:600; }

@media (max-width:768px){
  .signup-popup, .popup-card{ padding:22px 16px 16px !important; border-radius:16px !important; }
  .signup-header h2, .popup-title{ font-size:21px !important; }
}
@media (prefers-reduced-motion:reduce){
  .signup-popup, .popup-card{ animation:none !important; }
  .ptprelinker-buttons input[type="submit"], .ptprelinker-buttons .ptprelinker-button{ transition:none !important; }
}
/* __SIGNUP_CRO_V1_FIN */

/* 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__ */
