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

/* 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; } /* lot 21 : `display:flex` posé sur nav.hidden.md:flex la faisait sortir sur mobile, par-dessus le logo */
}
/* __END_DESIGN_SITE__ */
