
/* __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-discrete-monaco.com — Next (nextjsv2cf) — REGISTRE « ardoise & or »
   Accent (favicon) #37474f ardoise · neutre chaud lin #f6f1e5 / ivoire #fdfbf5
   / sable #e7dcc6 · encre #22303a · or #c8a24a, clair #e3c77a, encre #7a5f16.
   COMPOSITION : en-tête ardoise sur DEUX rangées (nom du site seul sur la 1re,
   filet or, nav + actions centrées dessous) · plaques de section « gravées »
   (rayon 4 px, double cadre fin) · cartes profil sobres à cadre fin, badge
   d'âge en médaillon · filtres en ONGLETS · villes EN BAS en grille serrée de
   cartouches · CTA en carte centrée (46 rem) sur ardoise, bouton or · pied de
   page or sur ardoise.  FORMES : filet or · cadre fin double · médaillon or.
   ========================================================================== */

/* --- 1. VARIABLES. Le gabarit émet son <style>:root{…}</style> APRÈS
   design.css : on déclare sur html:root (0,1,1) pour l'emporter.
   --secondary-color est inline sur <body> : intouché, chaque bouton est repris
   à la main pour garder un or lisible. */
html:root {
  --ar-nuit:        #131c21;
  --ar-ardoise-900: #1d282e;
  --ar-ardoise-800: #263238;
  --ar-ardoise:     #37474f;
  --ar-or:          #c8a24a;
  --ar-or-clair:    #e3c77a;
  --ar-or-encre:    #7a5f16;
  --ar-lin:         #f6f1e5;
  --ar-lin-fonce:   #efe7d5;
  --ar-ivoire:      #fdfbf5;
  --ar-sable:       #e7dcc6;
  --ar-encre:       #22303a;
  --ar-encre-doux:  #55636d;
  --ar-ombre:       0 12px 30px -16px rgba(29,40,46,.40);
  --ar-ombre-douce: 0 6px 18px -10px rgba(29,40,46,.30);

  /* variables du gabarit réalignées (le fond de page change) */
  --text: var(--ar-encre);
  --text-muted: var(--ar-encre-doux);
  --border: var(--ar-sable);
  --bg: var(--ar-lin);
  --bg-alt: var(--ar-lin-fonce);
  --bg-card: var(--ar-ivoire);
  --primary: var(--ar-ardoise);
  --primary-color: var(--ar-ardoise);
  --secondary: var(--ar-or);

  color-scheme: light;   /* les <select> natifs restent clairs */
}

/* -------------------------------------------------- 2. FOND DE PAGE ET TYPO */
body.bg-white { background-color: var(--ar-lin); color: var(--ar-encre); }
main.min-h-screen.bg-white { background: var(--ar-lin); }
div.bg-gradient-to-b.from-zinc-50 { background-image: linear-gradient(180deg, var(--ar-lin-fonce) 0, var(--ar-lin) 26%, var(--ar-lin) 100%); }

h1.break-words { color: var(--ar-encre); font-weight: 700; letter-spacing: -.015em; }
/* filet or centré sous le titre d'accueil (le H1 y vit dans un header centré) */
div.container > header.text-center { margin-bottom: 2.6rem; padding-bottom: 1.15rem; background-image: linear-gradient(90deg, transparent calc(50% - 2.6rem), var(--ar-or) calc(50% - 2.6rem), var(--ar-or) calc(50% + 2.6rem), transparent calc(50% + 2.6rem)); background-repeat: no-repeat; background-position: center bottom; background-size: 100% 2px; }
/* pages ville : le H1 est nu dans le conteneur, il porte son filet lui-même */
div.container > h1.break-words { padding-bottom: .95rem; background-image: linear-gradient(90deg, transparent calc(50% - 2.2rem), var(--ar-or) calc(50% - 2.2rem), var(--ar-or) calc(50% + 2.2rem), transparent calc(50% + 2.2rem)); background-repeat: no-repeat; background-position: center bottom; background-size: 100% 2px; }
div.text-xl.text-zinc-600, div.text-zinc-700 { color: var(--ar-encre-doux); }

/* ----------------------------------------------------------- 3. EN-TÊTE
   Ardoise profonde, double filet or, nom du site sur sa propre rangée. */
header.sticky { background-color: var(--ar-ardoise-900) !important; background-image: linear-gradient(180deg, var(--ar-ardoise-800), var(--ar-ardoise-900)) !important; border-bottom: 0 !important; backdrop-filter: none; box-shadow: 0 2px 0 0 var(--ar-or), 0 3px 0 0 rgba(200,162,74,.32), 0 16px 28px -22px rgba(19,28,33,.85); }
header.sticky > div.container > div.flex { height: auto; }

@media (min-width: 768px) {
  /* deux rangées : le nom prend toute la largeur (rangée 1), nav + actions
     se rangent côte à côte, centrées, sur la rangée 2. */
  header.sticky > div.container > div.flex { flex-wrap: wrap; justify-content: center; align-items: center; row-gap: .2rem; column-gap: 1.9rem; padding: .85rem 0 .6rem; }
  header.sticky > div.container > div.flex > div:first-child { flex: 0 0 100%; justify-content: center; padding-bottom: .55rem; border-bottom: 1px solid rgba(200,162,74,.26); }
  header.sticky nav.hidden { justify-content: center; }
}

header.sticky a.font-bold[href="/"] { color: var(--ar-or-clair) !important; font-weight: 600; font-size: 1.32rem; line-height: 1.1; letter-spacing: .055em; padding-bottom: .2rem; background-image: linear-gradient(90deg, transparent, var(--ar-or), transparent); background-repeat: no-repeat; background-position: center bottom; background-size: 0% 2px; transition: background-size .32s ease, color .2s ease; }
header.sticky a.font-bold[href="/"]:hover { color: #ffffff !important; background-size: 76% 2px; }
header.sticky nav button, header.sticky nav a { color: var(--ar-lin) !important; font-weight: 500; letter-spacing: .025em; }
header.sticky nav button:hover, header.sticky nav a:hover { color: var(--ar-or-clair) !important; }
header.sticky > div.container > div.flex > div:last-child button { color: var(--ar-lin) !important; border-radius: 999px; transition: color .2s ease, background-color .2s ease; }
header.sticky > div.container > div.flex > div:last-child button:hover { color: var(--ar-or-clair) !important; background-color: rgba(200,162,74,.15); }
@media (max-width: 767px) {
  /* Le nom du site tenait sur TROIS lignes et débordait au-dessus de la barre
     (il est posé en absolu, centré). Il passe dans le flux, sur sa PROPRE
     rangée sous le menu et le compte : même composition à deux rangées que le
     desktop, plus rien de tronqué ni de superposé. */
  header.sticky > div.container > div.flex { padding: .3rem 0 .4rem; }
  header.sticky div.md\:hidden { flex-wrap: wrap; row-gap: .1rem; }
  header.sticky div.md\:hidden > button { order: 1; }
  header.sticky div.md\:hidden > button:last-of-type { order: 2; }
  header.sticky div.md\:hidden a.font-bold[href="/"] {
    position: static !important;
    left: auto !important;
    translate: none !important;          /* Tailwind v4 : -translate-x-1/2 */
    transform: none !important;
    order: 3;
    flex: 0 0 100%;
    /* le garde-fou Next de l'outil borne ce <a> à 56 % avec une ELLIPSE (il le
       croit absolu et centré, à côté des icônes) : ici il est sur sa propre
       rangée, donc plus rien à esquiver — on lève ces six bornes, et elles ne
       peuvent l'être qu'en !important puisque le garde en met. */
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: .95rem !important;
    line-height: 1.22 !important;
    margin: .2rem 0 0;
    padding: .28rem 0 .05rem;
    text-align: center;
    letter-spacing: .04em;
    border-top: 1px solid rgba(200,162,74,.26);
  }
  header.sticky div.md\:hidden button { color: var(--ar-lin) !important; }
}

/* --- 4. MENU MOBILE (.ds-m*) : socle neutre posé par l'outil, tout recoloré
   ici, aucun display/position/transform touché. Cartouches, pas pilules. */
@media (max-width: 767px) {
  .ds-mburger { background: var(--ar-ardoise-900); color: var(--ar-or-clair); border: 1px solid rgba(200,162,74,.45); border-radius: 8px; box-shadow: 0 3px 12px rgba(19,28,33,.5); }
  .ds-moverlay { background: rgba(19,28,33,.64); }
  .ds-mdrawer { background: linear-gradient(180deg, var(--ar-ardoise-900), var(--ar-ardoise-800) 45%, var(--ar-nuit)); color: var(--ar-lin); border-right: 1px solid rgba(200,162,74,.35); box-shadow: 8px 0 30px rgba(19,28,33,.5); }
  .ds-mhead { border-bottom: 1px solid rgba(200,162,74,.32); color: var(--ar-or-clair); font-weight: 600; letter-spacing: .04em; }
  .ds-mbrand { font-size: .96rem; line-height: 1.2; }
  .ds-mclose { background: rgba(200,162,74,.16); color: var(--ar-or-clair); border: 1px solid rgba(200,162,74,.42); }
  .ds-msec-t { color: var(--ar-or); opacity: 1; letter-spacing: .11em; }
  .ds-msec + .ds-msec { border-top: 1px solid rgba(246,241,229,.11); padding-top: 14px; }
  .ds-mlink { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 12px; border-radius: 6px; background: rgba(246,241,229,.07); border: 1px solid rgba(246,241,229,.20); color: var(--ar-lin); letter-spacing: .01em; }
  .ds-mnav .ds-mlink { border-color: rgba(200,162,74,.46); color: var(--ar-or-clair); }
  .ds-mlink:hover, .ds-mlink:focus-visible { background: rgba(200,162,74,.2); color: #ffffff; }
  .ds-mfoot { border-top: 1px solid rgba(200,162,74,.32); margin-top: 14px; }
  .ds-mcta { background: linear-gradient(180deg, var(--ar-or-clair), var(--ar-or)); color: var(--ar-encre); border: 1px solid rgba(34,48,58,.25); border-radius: 6px; font-weight: 700; letter-spacing: .04em; box-shadow: 0 8px 20px -10px rgba(200,162,74,.85); }
}

/* --- 5. PLAQUES DE SECTION : rayon 4 px + filet or en retrait = plaque gravée */
section.rounded-2xl.shadow-lg, div.rounded-2xl.shadow-lg { background-color: var(--ar-ivoire); color: var(--ar-encre); border: 1px solid var(--ar-sable); border-radius: 4px; box-shadow: var(--ar-ombre); outline: 1px solid rgba(200,162,74,.36); outline-offset: -6px; }
section.rounded-2xl h2, div.rounded-2xl.shadow-lg h2 { color: var(--ar-encre); }
/* titres de section : filet or à gauche, dégradé vers un filet sable */
main.space-y-12 h2, section.rounded-2xl.shadow-lg h2 { font-weight: 600; letter-spacing: .004em; padding-bottom: .6rem; background-image: linear-gradient(90deg, var(--ar-or) 0, var(--ar-or) 2.8rem, rgba(200,162,74,.22) 2.8rem, rgba(200,162,74,.22) 100%); background-repeat: no-repeat; background-position: left bottom; background-size: 100% 2px; }
/* squelette de chargement des profils */
div.min-h-\[500px\].bg-zinc-100 { background-color: var(--ar-lin-fonce); border-radius: 3px; }
div.h-6.bg-zinc-100, div.h-4.bg-zinc-100 { background-color: var(--ar-lin-fonce); }

/* --- 6. FILTRES EN ONGLETS : la barre encadrée devient un rail (fond
   transparent, filet or), l'onglet actif (le <select>) souligné ardoise. */
section div.rounded-lg.shadow-sm.mb-4 { background-color: transparent !important; background-image: none !important; border: 0 !important; border-bottom: 1px solid rgba(200,162,74,.45) !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 1.5rem; }
section div.rounded-lg.shadow-sm.mb-4 > div.flex.items-center { gap: .2rem; }
div.form-group > select, .filters select.ds-fsel { appearance: none; -webkit-appearance: none; color: var(--ar-encre) !important; border: 0 !important; border-bottom: 3px solid var(--ar-ardoise) !important; border-radius: 3px 3px 0 0 !important; font-weight: 600; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; min-height: 44px; padding: .7rem 2.3rem .55rem .85rem !important; background-color: transparent !important; 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='%2337474f' stroke-width='2'/></svg>"), linear-gradient(180deg, rgba(200,162,74,.16), rgba(200,162,74,.03)) !important; background-repeat: no-repeat, no-repeat !important; background-position: right .85em center, left top !important; background-size: 12px 8px, 100% 100% !important; --tw-ring-color: var(--ar-or) !important; }
/* onglet inactif : le bouton « Recherche » des pages ville */
div.relative.flex-shrink-0 > button { background-color: transparent !important; color: var(--ar-encre-doux) !important; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 3px 3px 0 0 !important; font-weight: 600; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; min-height: 44px; padding: .7rem .9rem .55rem !important; transition: color .2s ease, border-bottom-color .2s ease, background-color .2s ease; }
div.relative.flex-shrink-0 > button:hover { color: var(--ar-encre) !important; border-bottom-color: var(--ar-or) !important; background-color: rgba(200,162,74,.09) !important; }

/* ---------------------------------- 7. CARTES PROFIL (cadre fin + médaillon) */
div.flex-shrink-0.w-40 { background-color: var(--ar-ivoire); border: 1px solid var(--ar-sable); border-radius: 3px; box-shadow: var(--ar-ombre-douce); outline: 1px solid rgba(200,162,74,.32); outline-offset: -5px; transition: box-shadow .25s ease, outline-color .25s ease, border-color .25s ease; }
div.flex-shrink-0.w-40:hover { box-shadow: 0 16px 32px -16px rgba(29,40,46,.5); outline-color: var(--ar-or); border-color: #d9caa5; }
div.flex-shrink-0.w-40 > div.relative { overflow: hidden; border-radius: 2px; }
div.flex-shrink-0.w-40 img.aspect-square { border-radius: 2px; transition: transform .45s ease; }
div.flex-shrink-0.w-40:hover img.aspect-square { transform: scale(1.045); }
div.flex-shrink-0.w-40 div.absolute.top-2.right-2 { background-color: rgba(29,40,46,.88); color: var(--ar-or-clair); border: 1px solid rgba(200,162,74,.6); border-radius: 999px; padding: .16rem .55rem; font-weight: 600; letter-spacing: .03em; }
div.flex-shrink-0.w-40 h3 { color: var(--ar-encre); font-weight: 600; letter-spacing: .008em; }
div.flex-shrink-0.w-40 p.text-zinc-500 { color: var(--ar-encre-doux); }
div.flex-shrink-0.w-40 p.text-zinc-600 { color: var(--ar-encre-doux); }

/* --- 8. CTA en carte centrée sur ardoise. Le bouton garde texte, geste et
   place : seuls couleurs, rayon et ombre changent. */
section.rounded-2xl.text-center { max-width: 46rem; margin-left: auto; margin-right: auto; padding-top: 2.6rem; padding-bottom: 2.6rem; background-color: var(--ar-ardoise-900) !important; background-image: linear-gradient(150deg, var(--ar-ardoise-800), var(--ar-ardoise-900) 58%, var(--ar-nuit)) !important; border: 1px solid rgba(200,162,74,.5); border-radius: 4px; outline-color: rgba(200,162,74,.42); box-shadow: 0 20px 44px -22px rgba(19,28,33,.8); }
section.rounded-2xl.text-center h2 { color: var(--ar-lin); padding-bottom: .85rem; background-image: linear-gradient(90deg, var(--ar-or), var(--ar-or)); background-position: center bottom; background-size: 3.6rem 2px; }
section.rounded-2xl.text-center p, section.rounded-2xl.text-center div { color: #d9e0e4; }
section.rounded-2xl.text-center button.inline-block { background-color: var(--ar-or) !important; background-image: linear-gradient(180deg, var(--ar-or-clair), var(--ar-or)) !important; color: var(--ar-encre); border: 1px solid rgba(34,48,58,.28); border-radius: 2px; font-weight: 700; font-size: .92rem; letter-spacing: .085em; text-transform: uppercase; min-height: 48px; padding: .9rem 2.4rem; box-shadow: 0 12px 28px -14px rgba(200,162,74,.8), inset 0 0 0 1px rgba(255,255,255,.34); transition: transform .2s ease, box-shadow .2s ease; }
section.rounded-2xl.text-center button.inline-block:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(200,162,74,.95), inset 0 0 0 1px rgba(255,255,255,.44); }

/* --------------------------------------------------- 9. FAQ ET TEXTE DE PAGE */
section.rounded-2xl.shadow-lg div.space-y-0 > div { border-bottom-color: rgba(200,162,74,.3); }
section.rounded-2xl.shadow-lg div.space-y-0 button { color: var(--ar-encre); }
section.rounded-2xl.shadow-lg div.space-y-0 button:hover { background-color: rgba(200,162,74,.08); }
section.rounded-2xl.shadow-lg div.space-y-0 h3 { color: var(--ar-encre); font-weight: 600; }
section.rounded-2xl.shadow-lg div.space-y-0 svg { color: var(--ar-or-encre); }

div.prose, div.prose p, div.prose li { color: var(--ar-encre-doux); }
div.prose h2, div.prose h3, div.prose strong { color: var(--ar-encre); }
div.prose a { color: var(--ar-or-encre); font-weight: 500; text-decoration-color: rgba(200,162,74,.6); text-underline-offset: 3px; }
div.prose a:hover { color: var(--ar-ardoise); text-decoration-color: var(--ar-ardoise); }
button[aria-label="Voir plus"] { color: var(--ar-or-encre) !important; font-weight: 600; }

/* --- 10. VILLES EN BAS, grille serrée de cartouches. Les liens portent un
   `border-left` INLINE : seule sa couleur passe en !important. */
nav[aria-label] div.grid.gap-3 { gap: 5px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px)  { nav[aria-label] div.grid.gap-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { nav[aria-label] div.grid.gap-3 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
nav[aria-label] a[style*="border-left"], section#departements a[style*="border-left"] { border-left-color: var(--ar-or) !important; border-left-width: 2px !important; border-radius: 0 2px 2px 0; background-image: linear-gradient(90deg, rgba(200,162,74,.11), rgba(200,162,74,0) 62%); color: var(--ar-encre); padding: .42rem .6rem; font-size: .78rem; line-height: 1.24; transition: background-color .2s ease, color .2s ease, border-left-color .2s ease; }
nav[aria-label] a[style*="border-left"]:hover, section#departements a[style*="border-left"]:hover { border-left-color: var(--ar-or-clair) !important; background-color: var(--ar-ardoise); background-image: none; color: var(--ar-or-clair); }
/* « Par département » : champ de recherche et grille dans le même registre */
section#departements div.grid { gap: 5px; }
section#departements input { background-color: var(--ar-ivoire); border: 1px solid var(--ar-sable); border-radius: 2px; color: var(--ar-encre); --tw-ring-color: var(--ar-or) !important; }
section#departements input::placeholder { color: #8b979f; }
section#departements h2 { font-size: 1.6rem; }
/* poussée en bas par la recette villes-bas, elle devient une ANNEXE : lin
   plutôt qu'ivoire, cadre simple, pour ne pas concurrencer les plaques hautes */
section#departements.rounded-2xl { background-color: var(--ar-lin-fonce); outline: 0; box-shadow: var(--ar-ombre-douce); }
section#departements.rounded-2xl h2 { color: var(--ar-encre); }

/* ------------------------------- 11. BANDEAU DE VILLES DÉFILANTES (cartouches) */
section.w-full.bg-zinc-100 { background-color: var(--ar-lin-fonce) !important; background-image: linear-gradient(180deg, var(--ar-lin-fonce), var(--ar-lin)) !important; border-top: 1px solid rgba(200,162,74,.4); border-bottom: 1px solid rgba(200,162,74,.4); }
section.w-full.bg-zinc-100 div.bg-gradient-to-r { background-image: linear-gradient(90deg, var(--ar-lin-fonce), rgba(239,231,213,0)) !important; }
section.w-full.bg-zinc-100 div.bg-gradient-to-l { background-image: linear-gradient(270deg, var(--ar-lin-fonce), rgba(239,231,213,0)) !important; }
section.w-full.bg-zinc-100 a.rounded-full { background-color: var(--ar-ivoire); border: 1px solid var(--ar-sable); border-radius: 2px; color: var(--ar-encre); font-weight: 600; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 2px 0 0 rgba(200,162,74,.5); }
section.w-full.bg-zinc-100 a.rounded-full:hover { background-color: var(--ar-ardoise); color: var(--ar-or-clair); border-color: var(--ar-ardoise); }

/* --- 12. RÉASSURANCE NATIVE en trois médaillons or sur ardoise (le gabarit la
   rend déjà : on l'habille au lieu d'empiler un second bloc) */
section.border-t.border-b.py-12 { background-color: var(--ar-ardoise-800) !important; background-image: linear-gradient(180deg, var(--ar-ardoise-800), var(--ar-ardoise-900)) !important; border-top: 2px solid var(--ar-or) !important; border-bottom: 2px solid var(--ar-or) !important; }
section.border-t.border-b.py-12 p { color: var(--ar-lin); }
section.border-t.border-b.py-12 div.w-16.h-16.rounded-full { background-color: transparent !important; background-image: radial-gradient(circle at 50% 42%, rgba(200,162,74,.24), rgba(200,162,74,.05) 72%); border: 1px solid var(--ar-or); box-shadow: 0 0 0 5px rgba(200,162,74,.12), inset 0 0 0 1px rgba(227,199,122,.45); }
section.border-t.border-b.py-12 div.w-16 svg { color: var(--ar-or-clair) !important; }

/* ------------------------------------------- 13. FIL D'ARIANE ET CARTE DE VILLE */
nav[aria-label="Fil d'Ariane"] { background-color: var(--ar-lin-fonce) !important; border-bottom: 1px solid rgba(200,162,74,.42) !important; }
nav[aria-label="Fil d'Ariane"] a { color: var(--ar-or-encre); font-weight: 500; }
nav[aria-label="Fil d'Ariane"] a:hover { color: var(--ar-ardoise); }
nav[aria-label="Fil d'Ariane"] li { color: var(--ar-encre-doux); }
div.w-full.rounded-lg.overflow-hidden { border: 1px solid var(--ar-sable); border-radius: 2px; }

/* -------------------------------------------- 14. RETOUR EN HAUT — médaillon or */
button.fixed.bottom-6.right-6 { background-color: var(--ar-ardoise-900) !important; color: var(--ar-or-clair) !important; border: 1px solid var(--ar-or); box-shadow: 0 8px 22px -8px rgba(19,28,33,.85), 0 0 0 4px rgba(200,162,74,.14) !important; }

/* ----------------------------------------------- 15. PIED DE PAGE — or sur ardoise */
footer.border-t { background-color: var(--ar-ardoise-900) !important; background-image: linear-gradient(180deg, var(--ar-ardoise-900), var(--ar-nuit)) !important; border-top: 0 !important; box-shadow: inset 0 2px 0 0 var(--ar-or), inset 0 3px 0 0 rgba(200,162,74,.32); color: var(--ar-lin); }
footer.border-t h3 { color: var(--ar-or-clair) !important; letter-spacing: .12em; padding-bottom: .42rem; background-image: linear-gradient(90deg, var(--ar-or) 0, var(--ar-or) 1.6rem, rgba(200,162,74,.22) 1.6rem, rgba(200,162,74,.22) 100%); background-repeat: no-repeat; background-position: left bottom; background-size: 100% 1px; }
footer.border-t h3.text-lg { font-size: 1.02rem; letter-spacing: .05em; }
footer.border-t p { color: #cdd6db; }
footer.border-t a { color: var(--ar-lin); text-decoration: none; }
footer.border-t a:hover { color: var(--ar-or-clair); }
footer.border-t a.underline { color: var(--ar-or-clair); text-decoration-color: rgba(200,162,74,.5); }
footer.border-t div.border-t { border-top-color: rgba(200,162,74,.28); }

/* --- 16. POP-UPS : couleurs, bordures, rayons seulement — aucun display /
   position / transform / overflow touché, aucun bouton déplacé ni caché. */

/* porte d'âge */
div.z-\[9999\] { background-color: rgba(19,28,33,.92) !important; }
div.z-\[9999\] > div.bg-white { background-color: var(--ar-ivoire) !important; border: 1px solid var(--ar-sable) !important; border-radius: 4px !important; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(200,162,74,.35) !important; }
div.z-\[9999\] h1 { color: var(--ar-encre); letter-spacing: .008em; }
div.z-\[9999\] div.w-16.h-1 { background-color: var(--ar-or); border-radius: 0; }
div.z-\[9999\] p { color: var(--ar-encre-doux); }
div.z-\[9999\] p.font-medium { color: var(--ar-encre); }
div.z-\[9999\] div.bg-zinc-50 { background-color: rgba(200,162,74,.09); border-color: rgba(200,162,74,.35); border-radius: 2px; }
div.z-\[9999\] div.flex.gap-3 > button:first-child { background-color: var(--ar-or) !important; background-image: linear-gradient(180deg, var(--ar-or-clair), var(--ar-or)) !important; color: var(--ar-encre) !important; border: 1px solid rgba(34,48,58,.26); border-radius: 2px; font-weight: 700; letter-spacing: .05em; min-height: 48px; box-shadow: 0 10px 22px -12px rgba(200,162,74,.85); }
div.z-\[9999\] div.flex.gap-3 > button:last-child { background-color: transparent !important; color: var(--ar-encre-doux) !important; border: 1px solid var(--ar-sable) !important; border-radius: 2px; min-height: 48px; }

/* pop-up d'inscription — le bouton qui convertit */
div.z-50.bg-black\/50 { background-color: rgba(19,28,33,.74) !important; }
div.z-50 > div.max-w-md { background-color: var(--ar-ivoire) !important; border: 1px solid var(--ar-sable); border-radius: 4px !important; box-shadow: 0 30px 70px -30px rgba(0,0,0,.78), inset 0 0 0 1px rgba(200,162,74,.32); }
div.z-50 > div.max-w-md h1 { color: var(--ar-encre); }
div.z-50 > div.max-w-md p { color: var(--ar-encre-doux); }
div.z-50 > div.max-w-md label { color: var(--ar-encre); }
div.z-50 > div.max-w-md input { background-color: #ffffff; border-color: var(--ar-sable); border-radius: 2px; color: var(--ar-encre); --tw-ring-color: var(--ar-or) !important; }
div.z-50 > div.max-w-md input::placeholder { color: #8b979f; }
div.z-50 > div.max-w-md button[type="submit"] { background-color: var(--ar-or) !important; background-image: linear-gradient(180deg, var(--ar-or-clair), var(--ar-or)) !important; color: var(--ar-encre) !important; border: 1px solid rgba(34,48,58,.25); border-radius: 2px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; min-height: 48px; box-shadow: 0 12px 26px -13px rgba(200,162,74,.85); }
div.z-50 > div.max-w-md button.absolute { background-color: rgba(200,162,74,.16) !important; border: 1px solid rgba(200,162,74,.42); }
div.z-50 > div.max-w-md button.absolute svg { color: var(--ar-encre) !important; }
div.z-50 > div.max-w-md div.mt-6 button { color: var(--ar-or-encre) !important; font-weight: 600; }

/* fiche profil (variante pm-v5 du parc) */
body.pm-v5 .pm-modal { background-color: var(--ar-ivoire) !important; color: var(--ar-encre); border: 1px solid var(--ar-sable); border-radius: 4px !important; box-shadow: 0 30px 70px -30px rgba(0,0,0,.72), inset 0 0 0 1px rgba(200,162,74,.3); --pm-accent: var(--ar-or); --text: var(--ar-encre); --text-muted: var(--ar-encre-doux); --bg-card: var(--ar-ivoire); --border: var(--ar-sable); }
body.pm-v5 .pm-modal h3, body.pm-v5 .pm-modal h4, body.pm-v5 .pm-modal .modal-name { color: var(--ar-encre); }
body.pm-v5 .pm-modal p, body.pm-v5 .pm-modal li, body.pm-v5 .pm-modal span { color: var(--ar-encre-doux); }
body.pm-v5 .pm-head { border-bottom: 1px solid rgba(200,162,74,.4); }
body.pm-v5 .pm-photo, body.pm-v5 .pm-media img { border-radius: 2px; }
/* la bande du bouton collé en bas doit reprendre l'ivoire, sinon elle reste blanche */
body.pm-v5 .pm-cta { background: var(--ar-ivoire) !important; box-shadow: 0 1.25rem 0 0 var(--ar-ivoire) !important; border-top-color: rgba(200,162,74,.4) !important; }
body.pm-v5 .pm-cta > a, body.pm-v5 .pm-cta > button { background: linear-gradient(180deg, var(--ar-or-clair), var(--ar-or)) !important; color: var(--ar-encre) !important; border: 1px solid rgba(34,48,58,.25) !important; font-weight: 700; letter-spacing: .04em; min-height: 48px; box-shadow: 0 12px 26px -13px rgba(200,162,74,.85); }
body.pm-v5 .pm-close { background: rgba(200,162,74,.16) !important; color: var(--ar-encre) !important; border: 1px solid rgba(200,162,74,.42) !important; }

/* --- 17. GARDE MODE SOMBRE : les fonds restent clairs à toute heure, donc on
   neutralise les `dark:text-*` du gabarit (sinon blanc sur ivoire). */
@media (prefers-color-scheme: dark) {
  h1.break-words, section.rounded-2xl h2, div.rounded-2xl.shadow-lg h2, section.rounded-2xl.shadow-lg div.space-y-0 h3, div.flex-shrink-0.w-40 h3, div.form-group > select, section#departements input, div.z-50 > div.max-w-md h1 { color: var(--ar-encre); }
  div.text-zinc-700, div.text-xl.text-zinc-600, div.flex-shrink-0.w-40 p.text-zinc-500, div.flex-shrink-0.w-40 p.text-zinc-600, div.prose, div.prose p, div.prose li, div.z-50 > div.max-w-md p, div.z-50 > div.max-w-md label { color: var(--ar-encre-doux); }
  section.rounded-2xl.text-center h2 { color: var(--ar-lin); }
  section.rounded-2xl.text-center p, section.rounded-2xl.text-center div { color: #d9e0e4; }
  section.border-t.border-b.py-12 p { color: var(--ar-lin); }
  header.sticky nav button, header.sticky nav a { color: var(--ar-lin) !important; }
  footer.border-t p { color: #cdd6db; }
}

/* --- 18. RECETTE « Next · villes-bas », copiée telle quelle depuis
   app/design_recettes_v3.css (ne pas réécrire). */
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; }

/* ----------------------------------------------- 19. MOUVEMENT RÉDUIT */
@media (prefers-reduced-motion: reduce) {
  header.sticky a.font-bold[href="/"], header.sticky > div.container > div.flex > div:last-child button, div.flex-shrink-0.w-40, div.flex-shrink-0.w-40 img.aspect-square, section.rounded-2xl.text-center button.inline-block, nav[aria-label] a[style*="border-left"], div.relative.flex-shrink-0 > button { transition: none !important; }
  div.flex-shrink-0.w-40:hover img.aspect-square { transform: none; }
  section.rounded-2xl.text-center button.inline-block:hover { transform: none; }
}

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