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

/* ============================================================
   sex-sachsen.de — direction "chantier"
   Gris beton (#9e9e9e / #616161 / #263238) + jaune signal (#ffd600).
   Hachures diagonales jaune/noir, angles vifs, aucun arrondi.
   Gabarit Next : deux <header> sur la page — TOUT est scope sous
   "header.sticky" pour ne jamais toucher au <header> du hero.
   ============================================================ */

:root{
  --ch-jaune:#ffd600;
  --ch-noir:#212121;
  --ch-beton-clair:#9e9e9e;
  --ch-beton:#616161;
  --ch-beton-fonce:#263238;
}

/* ------------------------------------------------------------
   HEADER DESKTOP
   ------------------------------------------------------------ */

/* Fond beton fonce texture (deux trames fines teintees des deux
   gris de la palette), aucune transparence : la bande hachuree du
   bas garde un contraste net quelle que soit la largeur d'ecran. */
header.sticky{
  background-color:var(--ch-beton-fonce);
  background-image:
    repeating-linear-gradient(115deg, rgba(158,158,158,.28) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(25deg, rgba(97,97,97,.45) 0 3px, transparent 3px 11px);
  backdrop-filter:none;
  border-bottom-color:transparent!important; /* remplace le filet inline d'origine */
  border-bottom-width:0!important;
}

/* Hachures diagonales jaune/noir en bordure BASSE du header,
   qui derivent lentement (coupe en reduced-motion). */
header.sticky::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:7px;
  background:repeating-linear-gradient(45deg, var(--ch-jaune) 0 16px, var(--ch-noir) 16px 32px);
  background-size:200% 100%;
  animation:sx-hachures-glisse 7s linear infinite;
}

/* Le bandeau desktop reste en flex-start : le logo (1er enfant
   visible) prend margin-right:auto pour rester a gauche, ce qui
   pousse nav + actions colles a droite, l'un contre l'autre. */
header.sticky .flex.h-16.items-center.justify-between{
  justify-content:flex-start;
}
header.sticky .flex.h-16.items-center.justify-between > div:first-child{
  margin-right:auto;
}

/* Logo : capitales lourdes, jaune signal (ecrase la couleur inline
   d'origine, seul !important passe sur un style="" pose par Next). */
header.sticky a[style*="color:#E35D8F"]{
  color:var(--ch-jaune)!important;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}

/* Liens de navigation : blanc casse, capitales fines, avec un trait
   hachure qui se deploie au survol (transform uniquement). */
header.sticky nav a,
header.sticky nav button{
  color:#eceff1;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.03em;
  border-radius:0;
}
header.sticky nav > div{ position:relative; }
header.sticky nav > div::after{
  content:"";
  position:absolute;
  left:0;bottom:-6px;width:100%;height:3px;
  background:repeating-linear-gradient(45deg, var(--ch-jaune) 0 6px, var(--ch-noir) 6px 12px);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .25s ease;
}
header.sticky nav > div:hover::after,
header.sticky nav > div:focus-within::after{
  transform:scaleX(1);
}

/* Boutons d'action (login, recherche) : carres jaunes, angles vifs,
   ombre "bloc" qui s'accentue au survol — registre chantier. */
header.sticky .hidden.md\:flex.items-center.gap-4.flex-shrink-0 button{
  background:var(--ch-jaune);
  color:var(--ch-noir);
  border-radius:0;
  min-width:44px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:3px 3px 0 var(--ch-noir);
  transition:transform .18s ease, box-shadow .18s ease;
}
header.sticky .hidden.md\:flex.items-center.gap-4.flex-shrink-0 button:hover,
header.sticky .hidden.md\:flex.items-center.gap-4.flex-shrink-0 button:focus-visible{
  transform:translate(-2px,-2px);
  box-shadow:5px 5px 0 var(--ch-noir);
}

/* ------------------------------------------------------------
   BARRE MOBILE (meme <header>, sous 768px)
   ------------------------------------------------------------ */

/* Le fond beton du header couvre deja la barre mobile. Le
   hamburger devient un carre jaune plein, tres visible. */
header.sticky .md\:hidden button:first-child{
  background:var(--ch-jaune);
  color:var(--ch-noir);
  border-radius:0;
  min-width:44px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:2px 2px 0 var(--ch-noir);
}

/* Bouton "Mitgliederbereich" (espace membre) : meme traitement
   carre jaune, garantit une cible tactile >= 44px. */
header.sticky .md\:hidden button:last-child{
  background:var(--ch-jaune);
  color:var(--ch-noir);
  border-radius:0;
  min-width:44px;
  min-height:44px;
  padding:.4rem .6rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  box-shadow:2px 2px 0 var(--ch-noir);
}

/* ------------------------------------------------------------
   FOOTER — jaune sur beton fonce, tout sur une ligne
   ------------------------------------------------------------ */

footer{
  position:relative;
  background-color:var(--ch-beton-fonce);
  background-image:
    repeating-linear-gradient(115deg, rgba(158,158,158,.22) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(25deg, rgba(97,97,97,.4) 0 3px, transparent 3px 11px);
  color:#cfd8dc;
  border-top-color:transparent!important; /* remplace le filet inline d'origine */
}

/* Meme bande hachuree qu'au header, en bordure HAUTE du footer,
   derive dans l'autre sens pour ne pas etre un simple miroir. */
footer::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:6px;
  background:repeating-linear-gradient(45deg, var(--ch-jaune) 0 16px, var(--ch-noir) 16px 32px);
  background-size:200% 100%;
  animation:sx-hachures-glisse 9s linear infinite reverse;
}

/* Nom du site (brand) en jaune, capitales — ecrase la couleur
   inline d'origine. */
footer [style*="color:#E35D8F"]{
  color:var(--ch-jaune)!important;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-weight:800;
}

/* La legende courte + le copyright de la colonne "marque" sont
   redondants avec le bandeau de mentions du bas : on masque le
   seul copyright (texte deja present plus bas), la legende reste. */
footer .lg\:col-span-1 p.text-xs{
  display:none;
}

/* La grille 4 colonnes devient UNE rangee qui passe a la ligne :
   marque + les 3 groupes de liens, separes par un trait jaune. */
footer .grid.grid-cols-1{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  column-gap:1.75rem;
  row-gap:.85rem;
  margin-bottom:1.5rem;
}
footer .grid.grid-cols-1 > div:not(.lg\:col-span-1){
  border-left:3px solid var(--ch-jaune);
  padding-left:1rem;
}
/* Les titres de colonne ("Navigation", "Rechtliche Hinweise",
   "Bundeslaender") disparaissent : seuls les liens restent, mis
   en rangee au meme niveau que le nom du site. */
footer .grid.grid-cols-1 > div:not(.lg\:col-span-1) > h3{
  display:none;
}
footer .grid.grid-cols-1 ul{
  display:flex;
  flex-wrap:wrap;
  list-style:none;
  margin:0;
  padding:0;
  gap:.4rem 1.1rem;
}
footer .grid.grid-cols-1 li{
  margin:0;
}
footer a{
  color:#eceff1;
  text-decoration:none;
  font-weight:600;
  text-transform:uppercase;
  font-size:.78rem;
  letter-spacing:.03em;
  border-radius:0;
  transition:color .2s ease;
}
footer a:hover,
footer a:focus-visible{
  color:var(--ch-jaune);
}

/* Mentions dessous : trait pointille jaune tenu (evoque le ruban
   de chantier sans image), texte attenue, liens en jaune souligne. */
footer .border-t.border-zinc-200.pt-8{
  border-top:1px dashed rgba(255,214,0,.4);
  border-top-color:rgba(255,214,0,.4)!important;
  padding-top:1.15rem;
}
footer .border-t.border-zinc-200.pt-8 p{
  color:#b0bec5;
  font-size:.72rem;
}
footer .border-t.border-zinc-200.pt-8 a{
  color:var(--ch-jaune);
  text-decoration:underline;
}

/* ------------------------------------------------------------
   Animations & reduced-motion
   ------------------------------------------------------------ */
@keyframes sx-hachures-glisse{
  from{ background-position:0 0; }
  to{ background-position:-64px 0; }
}

@media (prefers-reduced-motion: reduce){
  header.sticky::after,
  footer::before{
    animation:none;
  }
  header.sticky nav > div::after,
  header.sticky .hidden.md\:flex.items-center.gap-4.flex-shrink-0 button,
  header.sticky .hidden.md\:flex.items-center.gap-4.flex-shrink-0 button:hover{
    transition:none;
  }
}

/* 17/09, planche : le logo et le nom de marque sortaient VERT FONCÉ sur béton — après hydratation,
   React remplace `style="color:#E35D8F"` par la couleur du site (#00695c), et le sélecteur
   [style*="E35D8F"] ne matche plus. On cible les classes, en !important (couleur inline). */
header.sticky a.font-bold[href="/"] { color: var(--ch-jaune) !important; }
footer h3.font-semibold { color: var(--ch-jaune) !important; }

/* ============================================================
   18/09 — THEME PROFOND + bloc de reassurance (variante imposee)
   Meme registre chantier : beton (clair/fonce), jaune signal,
   hachures diagonales, aucun arrondi, ombre "bloc" au survol.
   ============================================================ */

/* ------------------------------------------------------------
   Socle du bloc de reassurance (repris tel quel de
   app/design_recettes_v3.css) : structure neutre, l'habillage
   chantier vient juste apres.
   ------------------------------------------------------------ */
.ds-bloc { margin: 24px 0; padding: 24px; border-radius: 16px; }
.ds-titre { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.25; }
.ds-sous { margin: 0 0 16px; opacity: .85; }
.ds-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.ds-item { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: start; }
.ds-ico { grid-row: 1 / 3; width: 28px; height: 28px; }
.ds-ico svg { width: 28px; height: 28px; display: block; }
.ds-item-t { display: block; font-weight: 700; }
.ds-item-p { display: block; font-size: .93rem; opacity: .85; }

/* ------------------------------------------------------------
   Bloc de reassurance : habillage chantier — cadre beton fonce,
   ruban de hachures en tete, puces jaunes carrees.
   ------------------------------------------------------------ */
.ds-bloc{
  background-color:var(--ch-beton-fonce);
  background-image:
    repeating-linear-gradient(115deg, rgba(158,158,158,.22) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(25deg, rgba(97,97,97,.4) 0 3px, transparent 3px 11px);
  border-radius:0;
  border:3px solid var(--ch-jaune);
  position:relative;
  overflow:hidden;
}
.ds-bloc::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:6px;
  background:repeating-linear-gradient(45deg, var(--ch-jaune) 0 16px, var(--ch-noir) 16px 32px);
}
.ds-titre{ color:var(--ch-jaune); font-weight:900; text-transform:uppercase; letter-spacing:.02em; margin-top:6px; }
.ds-sous{ color:#eceff1; opacity:1; }
.ds-item-t{ color:#fff; }
.ds-item-p{ color:#cfd8dc; opacity:1; }
.ds-ico{
  background:var(--ch-jaune);
  color:var(--ch-noir);
  border-radius:0;
  padding:4px;
  box-shadow:2px 2px 0 var(--ch-noir);
}
.ds-ico svg{ width:20px; height:20px; }

/* ------------------------------------------------------------
   Cartes profil (bandeau horizontal) — cadre beton, angles vifs,
   badge age jaune, photo qui vire legerement sepia au repos et
   redevient nette au survol (aucun transform de mise en page).
   ------------------------------------------------------------ */
.flex-shrink-0.w-40{
  background-color:var(--ch-beton-fonce)!important;
  border:2px solid var(--ch-beton)!important;
  border-radius:0!important;
  box-shadow:3px 3px 0 var(--ch-beton);
  transition:box-shadow .18s ease, border-color .18s ease;
}
.flex-shrink-0.w-40:hover{
  border-color:var(--ch-jaune)!important;
  box-shadow:5px 5px 0 var(--ch-noir);
}
.flex-shrink-0.w-40 img{
  border-radius:0!important;
  filter:grayscale(.15) sepia(.12);
  transition:filter .2s ease;
}
.flex-shrink-0.w-40:hover img{
  filter:none;
}
.flex-shrink-0.w-40 .absolute.top-2.right-2{
  background-color:var(--ch-jaune)!important;
  color:var(--ch-noir)!important;
  border-radius:0!important;
  font-weight:800;
}
.flex-shrink-0.w-40 h3{
  color:var(--ch-jaune)!important;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.flex-shrink-0.w-40 p.text-zinc-500{
  color:#b0bec5!important;
}
.flex-shrink-0.w-40 p.text-zinc-600{
  color:#cfd8dc!important;
}

/* ------------------------------------------------------------
   Bandeau de regions / villes en pastilles (bas d'accueil,
   "Staedte in der Naehe" sur les pages ville) — meme motif.
   ------------------------------------------------------------ */
section.bg-zinc-100{
  background-color:var(--ch-beton-fonce)!important;
}
section.bg-zinc-100 a.rounded-full{
  background-color:var(--ch-beton)!important;
  color:#eceff1!important;
  border:1px solid var(--ch-jaune);
  border-radius:0!important;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:.78rem;
  transition:background-color .18s ease, color .18s ease;
}
section.bg-zinc-100 a.rounded-full:hover{
  background-color:var(--ch-jaune)!important;
  color:var(--ch-noir)!important;
}
section.bg-zinc-100 .from-zinc-100,
section.bg-zinc-100 .to-transparent{
  --tw-gradient-from: var(--ch-beton-fonce) var(--tw-gradient-from-position)!important;
  --tw-gradient-to: transparent var(--tw-gradient-to-position)!important;
}

/* ------------------------------------------------------------
   Recherche "Nach Bundesland" (section#departements)
   ------------------------------------------------------------ */
#departements{
  background-color:var(--ch-beton-fonce)!important;
  border-radius:0!important;
  border:2px solid var(--ch-beton);
}
#departements h2{
  color:var(--ch-jaune)!important;
}
#departements input{
  background-color:#2d3b41!important;
  color:#fff!important;
  border-radius:0!important;
  border-color:var(--ch-beton)!important;
}
#departements input:focus{
  border-color:var(--ch-jaune)!important;
  outline:2px solid var(--ch-jaune);
  outline-offset:-2px;
}
#departements input::placeholder{ color:#90a4ae!important; }
#departements svg{ color:var(--ch-jaune)!important; }

/* ------------------------------------------------------------
   Bandeau CTA de milieu de page
   ------------------------------------------------------------ */
section.text-center{
  background-color:var(--ch-beton-fonce)!important;
  border-radius:0!important;
  position:relative;
  overflow:hidden;
}
section.text-center::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:6px;
  background:repeating-linear-gradient(45deg, var(--ch-jaune) 0 16px, var(--ch-noir) 16px 32px);
}
section.text-center h2{
  color:#fff!important;
}
section.text-center button{
  background-color:var(--ch-jaune)!important;
  color:var(--ch-noir)!important;
  border-radius:0!important;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
  box-shadow:4px 4px 0 var(--ch-noir);
  transition:transform .18s ease, box-shadow .18s ease;
}
section.text-center button:hover,
section.text-center button:focus-visible{
  transform:translate(-2px,-2px);
  box-shadow:6px 6px 0 var(--ch-noir);
}

/* ------------------------------------------------------------
   Sections texte / FAQ (memes classes generiques Next : cadre
   beton clair, filet jaune a gauche) — l'accordeon en plus recoit
   son chevron et sa ligne de separation en jaune attenue.
   ------------------------------------------------------------ */
section.bg-white.rounded-2xl.p-6.md\:p-8.shadow-lg{
  background-color:var(--ch-beton-clair)!important;
  border-radius:0!important;
  border-left:5px solid var(--ch-jaune);
}
section.bg-white.rounded-2xl.p-6.md\:p-8.shadow-lg h2{
  color:var(--ch-noir)!important;
}
.space-y-0 > div{
  border-color:rgba(33,33,33,.35)!important;
}
.space-y-0 button h3{
  color:var(--ch-noir)!important;
}
.space-y-0 button:hover{
  background-color:rgba(255,214,0,.15)!important;
}
.space-y-0 svg{
  color:var(--ch-noir)!important;
}

/* ------------------------------------------------------------
   Bouton "retour en haut" — carre jaune, ecrase les couleurs
   inline posees par le composant.
   ------------------------------------------------------------ */
button.fixed.bottom-6.right-6{
  background-color:var(--ch-jaune)!important;
  color:var(--ch-noir)!important;
  border-radius:0!important;
  box-shadow:3px 3px 0 var(--ch-noir);
}

/* ------------------------------------------------------------
   Pop-up d'inscription (prelinker) et age gate — couleurs,
   bordures, rayons seulement (jamais display/position/transform/
   overflow, les deux restent pleinement fonctionnels).
   ------------------------------------------------------------ */
.prelinker-embed{
  background-color:var(--ch-beton-fonce);
  border:3px solid var(--ch-jaune);
  border-radius:0;
}
.prelinker-embed input,
.prelinker-embed select{
  border-radius:0;
  border-color:var(--ch-beton);
}
.prelinker-embed button{
  background:var(--ch-jaune);
  color:var(--ch-noir);
  border-radius:0;
  box-shadow:3px 3px 0 var(--ch-noir);
}
div.fixed.inset-0 > div.bg-white{
  border:3px solid var(--ch-jaune)!important;
  border-radius:0!important;
}

@media (prefers-reduced-motion: reduce){
  .flex-shrink-0.w-40,
  .flex-shrink-0.w-40 img,
  section.bg-zinc-100 a.rounded-full,
  section.text-center button{
    transition:none;
  }
}

/* ============================================================
   18/09 — MENU MOBILE (surcharge du socle .ds-m* de
   app/design_recettes_v3.css). Meme registre chantier : beton
   fonce texture, jaune signal, hachures diagonales, angles vifs,
   ombre "bloc". Couleurs / bordures / rayons / ombres seulement —
   le mecanisme du tiroir (position fixed, transform, display des
   regles #ds-mcb:checked) n'est pas touche.
   ============================================================ */

@media (max-width: 767px){

  /* Burger : carre jaune plein, meme traitement que le hamburger
     natif deja stylé dans le header (visible sur le fond beton). */
  .ds-mburger{
    background:var(--ch-jaune);
    color:var(--ch-noir);
    border-radius:0;
    box-shadow:2px 2px 0 var(--ch-noir);
  }
  .ds-mburger span{
    background:var(--ch-noir);
  }

  /* Calque : plus dense pour renforcer le contraste sur le beton clair. */
  .ds-moverlay{
    background:rgba(20,20,20,.62);
  }

  /* Tiroir : meme fond beton fonce texture que header/footer, filet
     jaune en bord droit qui le detache nettement du calque. */
  .ds-mdrawer{
    background-color:var(--ch-beton-fonce);
    background-image:
      repeating-linear-gradient(115deg, rgba(158,158,158,.22) 0 2px, transparent 2px 9px),
      repeating-linear-gradient(25deg, rgba(97,97,97,.4) 0 3px, transparent 3px 11px);
    color:#eceff1;
    border-right:3px solid var(--ch-jaune);
    box-shadow:8px 0 0 rgba(0,0,0,.35);
  }

  /* En-tete du tiroir : titre jaune capitales, bande hachuree en pied
     d'en-tete au lieu du filet neutre du socle. */
  .ds-mhead{
    position:relative;
    border-bottom-color:transparent;
    color:var(--ch-jaune);
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .ds-mhead::after{
    content:"";
    position:absolute;
    left:0;right:0;bottom:0;
    height:4px;
    background:repeating-linear-gradient(45deg, var(--ch-jaune) 0 10px, var(--ch-noir) 10px 20px);
  }
  .ds-mclose{
    background:var(--ch-jaune);
    color:var(--ch-noir);
    border-radius:0;
    box-shadow:2px 2px 0 var(--ch-noir);
    min-width:40px;
    min-height:40px;
  }

  /* Titres de section (Navigation / Bundesland / Top-Städte) : jaune,
     capitales fines, meme registre que la nav desktop. */
  .ds-msec-t{
    color:var(--ch-jaune);
    opacity:1;
    font-weight:800;
    letter-spacing:.09em;
  }

  /* Pilules de liens : fond beton, filet jaune, angles vifs, cible
     tactile >= 40px garantie par le padding + min-height. */
  .ds-mlink{
    background:var(--ch-beton);
    color:#eceff1;
    border:1px solid var(--ch-jaune);
    border-radius:0;
    font-weight:600;
    text-transform:uppercase;
    font-size:.82rem;
    letter-spacing:.02em;
    min-height:40px;
    display:inline-flex;
    align-items:center;
    padding:9px 14px;
  }
  /* Section "Navigation" (Start / Orte / Kontakt) : plus contrastee,
     fond noir + ombre "bloc" jaune, pour la distinguer des filtres geo. */
  .ds-mnav .ds-mlink{
    background:var(--ch-noir);
    color:var(--ch-jaune);  /* planche w0 : texte noir sur noir */
    border-color:var(--ch-jaune);
    box-shadow:2px 2px 0 var(--ch-jaune);
  }
  .ds-mlink:hover,
  .ds-mlink:focus-visible,
  .ds-mlink:active{
    background:var(--ch-jaune);
    color:var(--ch-noir);
    outline:none;
  }

  /* Pied : trait pointille jaune (ruban de chantier), bouton
     d'inscription jaune plein tres contraste, angles vifs. */
  .ds-mfoot{
    border-top:1px dashed rgba(255,214,0,.45);
    margin-top:6px;
    padding-top:16px;
  }
  .ds-mcta{
    background:var(--ch-jaune);
    color:var(--ch-noir);
    border-radius:0;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
    box-shadow:3px 3px 0 var(--ch-noir);
    min-height:48px;
  }
}

/* __CONTRASTE_V1 */
/* contraste mesuré < 2.4 (contraste_audit.mjs) : couleur du texte forcée lisible */
@media (max-width: 899px) { p.jsx-4fb23789b5a36db8.text-xs, p.jsx-4fb23789b5a36db8.text-xs a, p.jsx-4fb23789b5a36db8.text-xs span { color: #ffffff !important; } }
@media (max-width: 899px) { h3.jsx-4fb23789b5a36db8.font-semibold, h3.jsx-4fb23789b5a36db8.font-semibold a, h3.jsx-4fb23789b5a36db8.font-semibold span { color: #ffffff !important; } }
/* __END_CONTRASTE_V1 */

/* __CONTRASTE_V2 */
/* contraste mesuré < 2.4 (contraste_audit.mjs) : couleur du texte forcée lisible */
@media (max-width: 899px) { p.jsx-4fb23789b5a36db8.text-xs, p.jsx-4fb23789b5a36db8.text-xs a, p.jsx-4fb23789b5a36db8.text-xs span { color: #ffffff !important; text-shadow: 0 0 2px #000; } }
/* __END_CONTRASTE_V2 */

/* __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:#856f00;
  --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; }

/* ---------- 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:#856f00;
  --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__ */
