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

/* ===================================================================
   sextreff-privat.de — habillage unique (header / barre mobile / footer)
   Direction : "cabinet" bleu pétrole + cuivre — filets fins, sobriété,
   aucune ombre lourde. Les variables --primary/--secondary/--bg-card/
   --bg-alt/--text/--border sont RE-DÉFINIES uniquement sur les racines
   des zones autorisées (site-header, tiroir, bandeau CTA, barre basse,
   footer) : elles ne remontent jamais vers le reste du site (grille de
   profils, fiches, formulaires, prelinker).
   =================================================================== */

/* ---------- 1. HEADER DESKTOP — barre fine, logo gauche, nav discrète à droite */
.site-header {
    /* le fond pétrole remplace --primary UNIQUEMENT dans le header */
    --primary: #0d232c;
    --secondary: #c98a52;      /* cuivre : logo au survol, "Alle anzeigen" */
    --bg-card: #f6f1e8;        /* papier : panneau du méga-menu */
    --bg-alt: #ece2d2;         /* papier survolé */
    --text: #16262b;           /* texte pétrole sur papier (méga-menu) */
    --border: #ded0ba;
    padding: 8px 0;            /* barre fine, mobile et desktop */
    border-bottom: 4px double #c98a52;   /* séparateur double filet cuivre */
    box-shadow: none;
    animation: shDown .5s ease both;
}
.header-logo {
    font-variant-caps: all-small-caps;   /* petites capitales */
    letter-spacing: .07em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62%;
}
.header-hamburger { background: rgba(201,138,82,.18); }
.header-hamburger span { background: #f2ece2; }

@media (min-width: 992px) {
    .site-header { padding: 6px 0; }              /* ≈ 56 px avec le bouton */
    .header-logo { max-width: 320px; font-size: 1.05rem; }
    .header-nav-desktop { justify-self: end; gap: 4px; }  /* nav collée à droite */
    .header-nav-toggle, .header-nav-link {
        background: transparent;
        border: 1px solid rgba(255,255,255,.16);
        color: rgba(255,255,255,.82);
        padding: 7px 13px;
        font-size: .82rem;
        border-radius: 3px;
        position: relative;
        overflow: hidden;
    }
    /* soulignement animé au survol — transform seul, pas d'infini */
    .header-nav-toggle::before, .header-nav-link::before {
        content: ''; position: absolute; left: 10px; right: 10px; bottom: 4px;
        height: 1px; background: #c98a52;
        transform: scaleX(0); transform-origin: left;
        transition: transform .25s ease;
    }
    .header-nav-toggle:hover, .header-nav-link:hover,
    .header-nav-group.open .header-nav-toggle {
        background: rgba(255,255,255,.06);
        border-color: rgba(201,138,82,.5);
        color: #fff;
        transform: none;
    }
    .header-nav-toggle:hover::before, .header-nav-link:hover::before,
    .header-nav-group.open .header-nav-toggle::before { transform: scaleX(1); }
    .header-nav-dropdown { border-radius: 4px; box-shadow: 0 10px 28px rgba(13,35,44,.22); }
    .header-nav-dropdown a:hover { background: var(--bg-alt); }
    .header-nav-more { border-top-color: var(--border); }
    /* CTA desktop plus discret, gabarit "cabinet" */
    .site-header .btn-header.header-auth-btn {
        background: #a8672f !important;
        padding: 7px 20px !important;
        font-size: .8rem !important;
        min-height: 34px;
        border-radius: 2px !important;
        font-weight: 600 !important;
        letter-spacing: .03em;
    }
    .site-header .btn-header.header-auth-btn:hover { filter: brightness(1.12); }
}

/* ---------- 2. TIROIR MOBILE — pétrole, liens cuivre */
.header-drawer-overlay {
    --primary: #0d232c;
    --secondary: #c98a52;
    --text: #d9a06c;           /* libellés / liens en cuivre clair */
    --bg-card: #0d232c;        /* fond du tiroir */
    --bg-alt: #143641;         /* pilules de liens */
    --border: rgba(201,138,82,.28);
    --text-muted: rgba(217,160,108,.55);
}
.header-drawer-overlay .header-drawer-search .search-input {
    background: #143641;
    color: #f2ece2;
    border-color: rgba(201,138,82,.28);
}
.header-drawer-overlay .header-drawer-search .search-input::placeholder { color: rgba(242,236,226,.4); }
.header-drawer-cta-primary { border-radius: 2px; }

/* ---------- 3. BANDEAU CTA cuivre (invité) */
.header-guest-cta {
    --primary: #a8672f;                  /* fond cuivre */
    border-bottom: none;
}
.header-guest-cta-online { color: #fff2e5; font-weight: 700; }
.header-guest-cta-button {
    background: #0d232c;
    border: 1px solid #143641 !important;
    color: #f2ece2 !important;
    border-radius: 2px;
    transition: transform .18s ease, filter .18s ease;
}
.header-guest-cta-button:hover { transform: translateY(-1px); filter: brightness(1.15); background: #0d232c; }

/* ---------- 4. BARRE D'ONGLETS BASSE (mobile-public-nav) */
.mobile-public-nav {
    --bg-card: #143641;
    --border: rgba(201,138,82,.25);
    --text-muted: rgba(242,236,226,.6);
    --secondary: #c98a52;
    box-shadow: 0 -2px 10px rgba(0,0,0,.18);
}
.mobile-public-nav a.active::before { height: 2px; width: 16px; }

/* ---------- 5. FOOTER — 2 colonnes (liens à gauche / mentions à droite), pétrole très sombre */
.site-footer {
    --primary: #081920;
    background: linear-gradient(180deg, #081920, #071319);
    position: relative;
    overflow: hidden;
}
/* motif qui dérive très lentement — surface faible, opacité faible */
.site-footer::before {
    content: '';
    position: absolute; inset: -20%;
    background: radial-gradient(circle at 30% 20%, rgba(201,138,82,.06), transparent 55%);
    animation: driftGlow 26s ease-in-out infinite;
    pointer-events: none;
}
.footer-grid, .footer-bottom { position: relative; z-index: 1; }
.footer-col h3 { font-variant-caps: all-small-caps; letter-spacing: .08em; color: #f2ece2; }
.footer-col-brand .footer-tagline { color: rgba(242,236,226,.5); }
.footer-toggle span:first-child { font-variant-caps: all-small-caps; letter-spacing: .08em; color: #f2ece2; }
.footer-col a { color: #d9a06c; }
.footer-col a:hover { color: #f2ece2; }
.footer-bottom { border-top-color: rgba(201,138,82,.2); color: rgba(242,236,226,.45); }

@media (min-width: 769px) {
    .footer-grid {
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        column-gap: 56px;
        row-gap: 26px;
        position: relative;
    }
    .footer-grid::before {              /* filet vertical cuivre entre les 2 colonnes */
        content: '';
        position: absolute; top: 0; bottom: 0; left: calc(56.5% - 28px);
        width: 1px; background: rgba(201,138,82,.22);
    }
    /* Colonne gauche : liens (Navigation + Régions) */
    .footer-col:nth-child(2) { grid-column: 1; grid-row: 1; }
    .footer-col:nth-child(4) { grid-column: 1; grid-row: 2; }
    /* Colonne droite : mentions (marque + rubriques légales) */
    .footer-col:nth-child(1) { grid-column: 2; grid-row: 1; }
    .footer-col:nth-child(3) { grid-column: 2; grid-row: 2; }
}

/* ---------- 6. animations & accessibilité */
@keyframes shDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes driftGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(4%, 3%); }
}
@media (prefers-reduced-motion: reduce) {
    .site-header { animation: none; }
    .site-footer::before { animation: none; }
    .header-nav-toggle::before, .header-nav-link::before { transition: none; }
    .header-guest-cta-button { transition: none; }
}

/* logo tronqué en capture (17/09) : ~40 caractères en petites capitales → plus de place sur desktop */
@media (min-width: 992px) { .site-header .header-logo.header-logo { max-width: 520px; } }

/* ===================================================================
   V3 — mise en page « cta-faq » + thème profond (18/09/2026)
   Toujours le registre "cabinet" : pétrole #0d232c/#071319, cuivre
   #c98a52/#a8672f/#d9a06c, papier #f6f1e8/#ece2d2/#f2ece2, filets fins,
   double filet cuivre en signature, petites capitales sur les titres de
   bloc, rayons serrés (2-4px), pas d'ombre lourde. Valeurs en dur (pas
   de --primary/--secondary racine) pour ne rien changer hors des zones
   listées ci-dessous.
   =================================================================== */

/* ---------- 7. RECETTE cta-faq (copiée telle quelle de design_recettes_v3.css) */
@media (min-width: 992px) {
  body.design-v-cta-faq .bg-gradient > .container { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
  body.design-v-cta-faq .bg-gradient > .container > * { grid-column: 1 / -1; }
  body.design-v-cta-faq .bg-gradient > .container > .cta-section,
  body.design-v-cta-faq .bg-gradient > .container > section:has(.accordion) { grid-column: auto; align-self: stretch; }
  body.design-v-cta-faq .bg-gradient > .container > .cta-section { display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- 8. CARTES PROFIL — papier fin, filet cuivre, badges pétrole */
.profile-card {
    background: #fdfbf7;
    border: 1px solid #ded0ba;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(13,35,44,.06);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.profile-card:hover {
    transform: translateY(-3px);
    border-color: #c98a52;
    box-shadow: 0 10px 22px rgba(13,35,44,.14);
}
.profile-card-media { background: #ece2d2; border-bottom: 1px solid #ded0ba; }
.profile-badge {
    background: #0d232c;
    color: #f2ece2;
    border: 1px solid rgba(201,138,82,.55);
    border-radius: 3px;
}
.profile-age-badge {
    background: rgba(13,35,44,.82);
    color: #f2ece2;
    border: 1px solid #c98a52;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: .02em;
}
.profile-headline {
    color: #0d232c !important;
    font-variant-caps: all-small-caps;
    letter-spacing: .03em;
    transition: color .2s ease;
}
.profile-card:hover .profile-headline { color: #a8672f !important; }
.profile-bio-name { color: #a8672f; font-weight: 700; }
.profile-location-line {
    border-top: 1px dashed #ded0ba;
    padding-top: 8px;
    margin-top: 2px;
}
.profile-location-label { color: #8a7a63; font-variant-caps: all-small-caps; letter-spacing: .04em; }
.profile-location-value {
    color: #a8672f;
    text-decoration: underline;
    text-decoration-color: rgba(169,103,47,.4);
    text-underline-offset: 2px;
}
.profile-location-value:hover { color: #0d232c; text-decoration-color: #0d232c; }

/* ---------- 9. FILTRES + PAGINATION — même registre que la nav du header */
.filter-btn {
    background: #fdfbf7;
    border: 1px solid #ded0ba;
    color: #0d232c;
    border-radius: 3px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover { border-color: #c98a52; }
.filter-btn.active, .filter-btn:hover.active {
    background: #0d232c;
    border-color: #0d232c;
    color: #f2ece2;
}
.pagination a, .pagination .page-link, .pagination button {
    border: 1px solid #ded0ba;
    color: #0d232c;
    border-radius: 3px;
}
.pagination a:hover, .pagination .page-link:hover, .pagination button:hover { border-color: #c98a52; }
.pagination .active, .pagination a.active { background: #0d232c; border-color: #0d232c; color: #f2ece2; }

/* ---------- 10. CTA milieu de page — pétrole sombre + double filet cuivre */
.cta-section {
    background-image: linear-gradient(135deg, #0d232c, #071319);
    border-top: 3px double #c98a52;
    border-bottom: 3px double #c98a52;
    border-radius: 3px;
}
.cta-section h2 {
    color: #f2ece2;
    font-variant-caps: all-small-caps;
    letter-spacing: .04em;
}
.cta-section p { color: rgba(242,236,226,.72); }
.cta-section .btn.btn-primary, .footer-signup-cta .btn.btn-primary {
    background: #a8672f;
    border: 1px solid #0d232c;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: transform .18s ease, filter .18s ease;
}
.cta-section .btn.btn-primary:hover, .footer-signup-cta .btn.btn-primary:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}
.footer-signup-cta {
    background: #0d232c;
    border-top: 1px solid rgba(201,138,82,.3);
}
.footer-signup-cta h2 { color: #f2ece2; font-variant-caps: all-small-caps; letter-spacing: .04em; }
.footer-signup-cta p { color: rgba(242,236,226,.65); }

/* ---------- 11. FAQ / accordéon — filets cuivre, marqueur recoloré */
.accordion-item { border-bottom: 1px solid rgba(201,138,82,.28); }
.accordion-header { color: #0d232c; transition: background .2s ease, color .2s ease; }
.accordion-header:hover { background: rgba(201,138,82,.08); color: #a8672f; }
.accordion-header::after { border-color: #a8672f; }
.info-duo-title {
    color: #0d232c;
    font-variant-caps: all-small-caps;
    letter-spacing: .03em;
}
.info-duo-title svg { color: #c98a52; }
.accordion-body span, .accordion-body { color: #4a423a; }

/* ---------- 12. MÉTÉO — carte papier, double filet cuivre en tête */
.weather-card {
    background: #f6f1e8;
    border: 1px solid #ded0ba;
    border-top: 3px double #c98a52;
    border-radius: 4px;
}
.weather-city { color: #0d232c; font-variant-caps: all-small-caps; letter-spacing: .03em; }
.weather-label, .weather-k, .weather-foot, .weather-status { color: #8a7a63; }
.weather-item {
    background: #ece2d2;
    border: 1px solid #ded0ba;
    border-radius: 3px;
}
.weather-v { color: #0d232c; }
.weather-error { background: #f6ece4; color: #7a3a1a; border: 1px solid #d9a06c; }

/* ---------- 13. RETOUR EN HAUT — pastille pétrole, anneau cuivre */
.back-to-top {
    background: #0d232c;
    color: #f2ece2;
    border: 2px solid #c98a52;
    box-shadow: 0 4px 14px rgba(13,35,44,.3);
    transition: background .2s ease, transform .2s ease;
}
.back-to-top:hover { background: #a8672f; transform: translateY(-2px); }

/* ---------- 14. POP-UP PROFIL — cadre papier/cuivre (couleurs, bordures, rayon seulement) */
#profileModal .modal-content {
    background: #f6f1e8;
    border: 1px solid #ded0ba;
    border-radius: 6px;
}
#profileModal .modal-close {
    background: #0d232c;
    color: #f2ece2;
    border: 1px solid #c98a52;
    border-radius: 3px;
}
#profileModal .modal-close:hover { background: #a8672f; }
#profileModal .modal-headline, #profileModal .modal-name { color: #0d232c; font-variant-caps: all-small-caps; letter-spacing: .02em; }
#profileModal .modal-age { color: #a8672f; }
#profileModal .modal-fav-star { color: #c98a52; }
#profileModal .btn-cta-overlay, #profileModal .modal-contact-btn {
    background: #a8672f !important;
    border: 1px solid #0d232c !important;
    border-radius: 2px !important;
}
#profileModal .modal-nav { color: #f2ece2; background: rgba(13,35,44,.55); border: 1px solid rgba(201,138,82,.4); border-radius: 50%; }
#profileModal .modal-dot { background: rgba(242,236,226,.4); }
#profileModal .modal-dot.active { background: #c98a52; }

/* ---------- 15. POP-UP INSCRIPTION + AGE GATE — couleurs/bordures/rayon seulement */
.signup-popup {
    background: #f6f1e8;
    border: 1px solid #ded0ba;
    border-top: 3px double #c98a52;
    border-radius: 6px;
}
.signup-header h2 { color: #0d232c; font-variant-caps: all-small-caps; letter-spacing: .03em; }
.signup-header p { color: #6b5f4f; }
.signup-close { background: #0d232c; color: #f2ece2; border: 1px solid #c98a52; border-radius: 3px; }
.signup-close:hover { background: #a8672f; }
.age-gate-content {
    background: #f6f1e8;
    border-top: 4px double #c98a52;
    border-radius: 6px;
}
.age-gate-content h2 { color: #0d232c; font-variant-caps: all-small-caps; letter-spacing: .04em; }
.age-gate-buttons .btn.btn-primary {
    background: #a8672f;
    border: 1px solid #0d232c;
    border-radius: 2px;
}
.age-gate-buttons .btn.btn-primary:hover { filter: brightness(1.1); }
.age-gate-buttons .btn.btn-secondary {
    background: transparent;
    color: #0d232c;
    border: 1px solid #ded0ba;
    border-radius: 2px;
}
.age-gate-buttons .btn.btn-secondary:hover { border-color: #a8672f; color: #a8672f; }

/* ---------- 16. jamais deux CTA au même endroit : le bandeau défilant de villes
   (pages région) fait doublon avec le pré-footer "Werde Teil der Community" juste
   en dessous → masqué. */
.scrolling-bar { display: none; }

/* ---------- 17. accessibilité : coupe tout ce que ce bloc ajoute comme mouvement */
@media (prefers-reduced-motion: reduce) {
    .profile-card, .profile-headline, .filter-btn, .cta-section .btn.btn-primary,
    .footer-signup-cta .btn.btn-primary, .accordion-header, .back-to-top,
    #profileModal .modal-close { transition: none; }
    .profile-card:hover, .cta-section .btn.btn-primary:hover,
    .footer-signup-cta .btn.btn-primary:hover, .back-to-top:hover { transform: none; }
}

/* ===================================================================
   18. MENU MOBILE — tiroir natif .header-drawer, registre "cabinet"
   (Lucas : les pilules de liens étaient moches — reprises ici avec
   bordure fine, rayon serré, contraste et cible tactile >= 40px).
   Le mécanisme (transform/position/display des règles .active, le
   burger .header-hamburger fixe) n'est jamais touché : uniquement
   couleurs, bordures, rayons, tailles de police et transitions.
   =================================================================== */

/* tête du tiroir : filet cuivre en pied, titre en petites capitales */
.header-drawer-head { border-bottom: 1px solid rgba(201,138,82,.35); }
.header-drawer-head strong {
    font-variant-caps: all-small-caps;
    letter-spacing: .06em;
    color: #f2ece2;
}
.header-drawer-close {
    background: rgba(201,138,82,.18);
    border: 1px solid rgba(201,138,82,.4);
    color: #f2ece2;
    transition: background .18s ease;
}
.header-drawer-close:hover { background: #a8672f; }

/* icône de recherche assortie au cuivre (le champ est déjà coloré en section 2) */
.header-drawer-search .search-icon { color: #c98a52; opacity: .85; }

/* titres de section : petites capitales cuivre clair, chevron cuivre */
.header-drawer-toggle {
    font-variant-caps: all-small-caps;
    letter-spacing: .07em;
    font-weight: 600;
    color: #d9a06c;
}
.header-drawer-toggle:hover { background: rgba(201,138,82,.1); }
.header-drawer-chevron { color: #c98a52; }

/* pilules de liens : bordure fine, rayon serré (registre "cabinet"),
   fond et texte contrastés au repos comme au survol, >= 40px de haut */
.header-drawer-links { gap: 10px; }
.header-drawer-link {
    background: #143641;
    border: 1px solid rgba(201,138,82,.35);
    color: #f2ece2 !important;
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 3px;
    min-height: 40px;
    padding: 9px 14px;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.header-drawer-link:hover {
    background: #c98a52;
    border-color: #c98a52;
    color: #0d232c !important;
}
.header-drawer-more {
    background: rgba(20,54,65,.6);
    border: 1px dashed rgba(201,138,82,.45);
    color: #d9a06c !important;
}

/* pied du tiroir : filet cuivre, CTA plein cuivre bordé pétrole (>= 48px) */
.header-drawer-footer {
    border-top: 1px solid rgba(201,138,82,.3);
    background: #0d232c;
    box-shadow: 0 -4px 20px rgba(0,0,0,.35);
}
.header-drawer-cta-primary {
    background: #a8672f !important;
    border: 1px solid #0d232c !important;
    color: #f2ece2 !important;
    font-weight: 700;
    letter-spacing: .02em;
    min-height: 48px;
    transition: filter .18s ease, transform .18s ease;
}
.header-drawer-cta-primary:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    color: #f2ece2 !important;
}

/* burger de la barre haute : anneau cuivre pour qu'il se détache du pétrole */
.header-hamburger { border: 1px solid rgba(201,138,82,.4); border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
    .header-drawer-close, .header-drawer-toggle, .header-drawer-link,
    .header-drawer-cta-primary { transition: none; }
    .header-drawer-cta-primary:hover { transform: none; }
}

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

/* __CONTRASTE_V1 */
/* contraste mesuré < 2.4 (contraste_audit.mjs) : couleur du texte forcée lisible */
@media (max-width: 899px) { button.filter-btn.active, button.filter-btn.active a, button.filter-btn.active span { color: #151515 !important; } }
@media (max-width: 899px) { p.profile-bio, p.profile-bio a, p.profile-bio span { color: #ffffff !important; } }
/* __END_CONTRASTE_V1 */

/* __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:#7a3a1a;
  --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:#7a3a1a;
  --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-fou design_site.py (PHP, 17/09) : sous 992 px le gabarit masque .header-auth-btn et pose le
   logo en grille 44px 1fr 44px — un agent qui force le bouton visible le superpose au logo ; un logo
   long doit se tronquer, pas s'empiler. */
@media (max-width: 991px) {
  .site-header .header-auth-btn.header-auth-btn { display: none; }
  .site-header .header-logo.header-logo { max-width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* __END_DESIGN_SITE__ */
