/* rencontre-gratuite-suisse.ch — registre « guichet de gare régionale »
   En-tête en tableau des départs à lattes, annonces en billets à souche (coin poinçonné, perforation, encoches),
   titres en plaques de quai, photos en arche, horloge de gare en logo, rail en pied de page.
   Palette : accent sapin = couleur du site (favicon #1f7a6b) · nuit de quai (sapin encré) · crème / ivoire / lin · encre #17221f · muet #55615c
   Formes signature : encoches de billet (mask), arche des photos, plaque de quai à filet intérieur, horloge (médaillon), rail, cœur poinçonné. */

html:not(#_) body.aa {
  --g-sapin: var(--aa-accent);
  --g-sapin-f: color-mix(in srgb, var(--aa-accent) 68%, #06201b);
  --g-nuit: color-mix(in srgb, var(--aa-accent) 34%, #0b1a17);
  --g-nuit-2: color-mix(in srgb, var(--aa-accent) 46%, #0e211d);
  --g-creme: #f4ecdb;
  --g-ivoire: #fffcf4;
  --g-lin: #f3ead6;
  --g-encre: #17221f;
  --g-filet: #ddd0b3;
  --g-mono: Consolas, "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  --g-ombre: 0 10px 24px -16px color-mix(in srgb, var(--aa-accent) 60%, rgba(10, 30, 25, .5));
  --g-encoche: radial-gradient(circle 9px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
               radial-gradient(circle 9px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  --aa-teinte: var(--aa-accent);
  --aa-primaire: var(--aa-accent);
  --aa-primaire-fonce: var(--g-sapin-f);
  --aa-primaire-txt: #fffcf4;
  --aa-lien: var(--g-sapin-f);
  --aa-page: var(--g-creme);
  --aa-fond: #fbf6ea;
  --aa-surface: var(--g-ivoire);
  --aa-surface-2: var(--g-lin);
  --aa-texte: var(--g-encre);
  --aa-muet: #55615c;
  --aa-bord: var(--g-filet);
  --aa-tete: var(--g-nuit);
  --aa-tete-txt: #f6efe0;
  --aa-barre: color-mix(in srgb, var(--g-nuit) 80%, #000);
  --aa-bande: var(--g-nuit);
  --aa-bande-txt: #f6efe0;
  --aa-bande-bord: var(--g-sapin);
  --aa-secondaire: var(--g-sapin-f);
  --aa-secondaire-txt: #fffcf4;
  --aa-pied: var(--g-nuit);
  --aa-pied-txt: #e6dfcd;
  --aa-ok: var(--g-sapin-f);
  --aa-rayon: 14px; --aa-rayon-s: 8px;
  --aa-ombre: var(--g-ombre);
  --aa-police: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --aa-police-titre: "Helvetica Neue", "Arial Nova", "Segoe UI", Arial, sans-serif;
  background: var(--g-creme)
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--aa-accent) 10%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px;
}

/* ---------- en-tête : tableau des départs à lattes ---------- */
html:not(#_) .aa-header {
  background: repeating-linear-gradient(180deg, transparent 0 15px, rgba(0, 0, 0, .28) 15px 16px, rgba(255, 255, 255, .045) 16px 17px), var(--g-nuit);
  box-shadow: 0 3px 0 var(--g-sapin), 0 12px 24px -18px rgba(6, 26, 22, .8);
}
html:not(#_) .aa-logo__mark {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--g-sapin); box-shadow: 0 0 0 2px #f6efe0;
  background:
    linear-gradient(var(--g-encre), var(--g-encre)) 50% 28% / 2px 10px no-repeat,
    linear-gradient(var(--g-encre), var(--g-encre)) 74% 50% / 8px 2px no-repeat,
    radial-gradient(circle, var(--g-sapin) 0 2.5px, transparent 3px),
    radial-gradient(circle, #fffcf4 0 56%, transparent 58%),
    repeating-conic-gradient(from -2deg, var(--g-encre) 0 4deg, #fffcf4 4deg 30deg);
}
html:not(#_) .aa-logo__txt {
  display: inline-block; padding: .12rem .55rem; border-radius: 6px; color: #fffcf4; letter-spacing: .01em;
  background: linear-gradient(180deg, var(--g-nuit-2) 0 49%, rgba(0, 0, 0, .55) 49% 51%, color-mix(in srgb, var(--g-nuit-2) 85%, #000) 51%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 2px 0 rgba(0, 0, 0, .35);
}
html:not(#_) .aa-logo__sous { font-family: var(--g-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; opacity: 1; color: #d9e6df; margin-top: .3rem; }
html:not(#_) .aa-header__cta.aa-btn { background: #fffcf4; color: var(--g-sapin-f); border-color: #fffcf4; box-shadow: inset 0 0 0 2px var(--g-sapin), 0 6px 16px -10px #000; }
html:not(#_) .aa-nav { border-top: 1px solid rgba(255, 255, 255, .1); }
html:not(#_) .aa-nav a { color: #f1ead9; font-family: var(--aa-police-titre); letter-spacing: .02em; border-bottom: 0; }
html:not(#_) .aa-nav a:hover { background: rgba(255, 255, 255, .07); }
html:not(#_) .aa-nav a.is-actif { background: #fffcf4; color: var(--g-sapin-f); border-radius: 8px 8px 0 0; padding-inline: 1.15rem; -webkit-mask: var(--g-encoche); mask: var(--g-encoche); }
html:not(#_) .aa-burger { border-color: rgba(246, 239, 224, .35); }
@media (max-width: 859px) {
  html:not(#_) .aa-nav a.is-actif { border-radius: 8px; border-left: 0; }
  html:not(#_) .aa-nav__cta a { background: #fffcf4; color: var(--g-sapin-f); }
}

/* ---------- conteneur ---------- */
html:not(#_) .aa-main > .aa-wrap { border-color: var(--g-filet); box-shadow: 0 20px 40px -28px rgba(10, 40, 34, .45); }

/* ---------- plaques de quai (titres de section) ---------- */
html:not(#_) .aa-h2, html:not(#_) .aa-side__h, html:not(#_) .aa-bande, html:not(#_) .aa-depot__bloc legend {
  background: var(--g-nuit); color: #f6efe0; border-left: 0; border-radius: 7px; padding: .5rem 1rem;
  font-family: var(--aa-police-titre); letter-spacing: .07em;
  box-shadow: inset 0 0 0 3px var(--g-nuit), inset 0 0 0 4px rgba(246, 239, 224, .55), 0 6px 14px -10px rgba(6, 26, 22, .7);
}
html:not(#_) .aa-side__h { border-radius: var(--aa-rayon) var(--aa-rayon) 0 0; border-bottom: 3px solid var(--g-sapin); }
html:not(#_) .aa-bloc__tete .aa-lien { color: var(--g-sapin-f); }
@media (max-width: 639px) {
  html:not(#_) .aa-bloc__tete { flex-wrap: wrap; gap: .5rem; }
  html:not(#_) .aa-bloc__tete .aa-h2 { flex: 1 1 100%; }
  html:not(#_) .aa-bloc__tete .aa-lien { margin-left: auto; }
  html:not(#_) .aa-logo__sous { letter-spacing: .02em; font-size: .62rem; line-height: 1.3; white-space: normal; overflow: visible; text-overflow: clip; }
}

/* ---------- hero : grand billet à souche, cœur poinçonné ---------- */
html:not(#_) .aa-hero {
  position: relative; background: var(--g-ivoire); border: 1px solid var(--g-filet); border-radius: 16px;
  padding: 1.3rem 1.4rem; box-shadow: var(--g-ombre); -webkit-mask: var(--g-encoche); mask: var(--g-encoche);
}
html:not(#_) .aa-hero .aa-h1 { color: var(--g-encre); font-weight: 800; }
html:not(#_) .aa-hero__chiffres span {
  background: var(--g-nuit); color: #f6efe0; border-color: var(--g-nuit); font-family: var(--g-mono);
  font-weight: 600; letter-spacing: .03em; border-radius: 6px; padding: .3rem .75rem;
}
html:not(#_) .aa-hero__chiffres span::before { background: #8fd4c2; }
@media (min-width: 640px) {
  html:not(#_) .aa-hero { padding-right: calc(96px + 1.6rem); }
  html:not(#_) .aa-hero::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 96px; pointer-events: none;
    border-left: 2px dashed color-mix(in srgb, var(--aa-accent) 40%, var(--g-filet));
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231d7466' stroke-width='1.6' stroke-dasharray='2 1.6' d='M12 20.5s-7.3-4.5-9.2-8.9C1.4 8.3 3.4 4.6 6.9 4.6c2 0 3.4 1.1 4.1 2.3.7-1.2 2.1-2.3 4.1-2.3 3.5 0 5.5 3.7 4.1 7C19.3 16 12 20.5 12 20.5z'/%3E%3C/svg%3E") center / 44px no-repeat,
                color-mix(in srgb, var(--aa-accent) 7%, var(--g-lin));
  }
}

/* ---------- liste : billets à souche ---------- */
html:not(#_) .aa-liste { border-top: 0; gap: .85rem; }
html:not(#_) .aa-ligne {
  background: var(--g-ivoire); border: 1px solid var(--g-filet); border-radius: 14px; padding: .9rem 1rem;
  gap: .45rem 1rem; box-shadow: var(--g-ombre); transition: transform .2s ease, box-shadow .2s ease;
}
html:not(#_) .aa-ligne:hover { background: var(--g-ivoire); transform: translateY(-2px); box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--aa-accent) 70%, rgba(10, 30, 25, .5)); }
html:not(#_) .aa-ligne::before {
  content: ""; position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; pointer-events: none; z-index: 2;
  background: var(--aa-fond); box-shadow: inset 0 0 0 1px var(--g-filet);
}
html:not(#_) .aa-ligne__img { width: 100px; border-radius: 52px 52px 10px 10px; border: 2px solid var(--g-filet); background: var(--g-lin); padding: 3px; }
html:not(#_) .aa-ligne__img img { border-radius: 48px 48px 7px 7px; }
html:not(#_) .aa-ligne__cat { color: var(--g-sapin-f); }
html:not(#_) .aa-ligne__new {
  background: transparent; color: var(--g-sapin-f); border: 1.5px dashed var(--g-sapin); border-radius: 4px;
  font-family: var(--g-mono); font-size: .64rem; padding: .08rem .4rem;
}
html:not(#_) .aa-ligne__date { font-family: var(--g-mono); font-size: .72rem; color: var(--aa-muet); }
html:not(#_) .aa-ligne__titre { font-family: var(--aa-police-titre); }
html:not(#_) .aa-ligne__titre a { color: var(--g-sapin-f); }
html:not(#_) .aa-ligne__extrait { opacity: 1; color: #2c3633; }
html:not(#_) .aa-ligne__action { border-top: 2px dashed var(--g-filet); padding-top: .55rem; justify-self: stretch; text-align: right; }
html:not(#_) .aa-ligne__lire.aa-btn { background: var(--g-ivoire); color: var(--g-sapin-f); border: 2px solid var(--g-sapin); border-radius: 999px; }
html:not(#_) .aa-ligne__lire.aa-btn:hover { background: var(--g-sapin); color: #fffcf4; }
@media (min-width: 720px) {
  html:not(#_) .aa-ligne { gap: .35rem 1.1rem; padding: 1rem 1.1rem; }
  html:not(#_) .aa-ligne__img { width: 116px; border-radius: 60px 60px 10px 10px; }
  html:not(#_) .aa-ligne__img img { border-radius: 56px 56px 7px 7px; }
  html:not(#_) .aa-ligne__action {
    align-self: stretch; display: flex; align-items: center; justify-content: center;
    border-top: 0; border-left: 2px dashed var(--g-filet); padding: 0 0 0 1rem; margin: 0;
  }
  html:not(#_) .aa-ligne__action::before, html:not(#_) .aa-ligne__action::after {
    content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; pointer-events: none;
    background: var(--aa-fond); border: 1px solid transparent; border-left-color: var(--g-filet); border-bottom-color: var(--g-filet);
  }
  html:not(#_) .aa-ligne__action::before { top: calc(-1rem - 10px); transform: rotate(-45deg); }
  html:not(#_) .aa-ligne__action::after { bottom: calc(-1rem - 10px); transform: rotate(135deg); }
}
html:not(#_) .aa-liste--similaires .aa-ligne { box-shadow: none; }

/* ---------- colonne latérale : panneaux d'information du hall ---------- */
html:not(#_) .aa-side { background: var(--g-lin); border-color: var(--g-filet); box-shadow: var(--g-ombre); }
html:not(#_) .aa-side--deposer { background: none; box-shadow: none; }
html:not(#_) .aa-side__liste li::before { border-radius: 2px; width: 7px; height: 4px; top: .9em; background: var(--g-sapin); }
html:not(#_) .aa-side__liste li a { color: var(--g-encre); }
html:not(#_) .aa-side__liste li.is-actif a { color: var(--g-sapin-f); }
html:not(#_) .aa-side__nb { font-family: var(--g-mono); background: var(--g-nuit); color: #f6efe0; border-color: var(--g-nuit); border-radius: 4px; }
html:not(#_) .aa-side__liste--inline li { background: var(--g-ivoire); }
html:not(#_) .aa-side__liste--inline .aa-side__nb { background: none; color: var(--aa-muet); }

/* ---------- moteur, champs, boutons ---------- */
html:not(#_) .aa-filtres { background: var(--g-lin); border: 1px dashed color-mix(in srgb, var(--aa-accent) 35%, var(--g-filet)); border-radius: 14px; }
html:not(#_) select, html:not(#_) input[type="text"], html:not(#_) input[type="email"], html:not(#_) input[type="tel"], html:not(#_) input[type="number"], html:not(#_) textarea {
  background-color: var(--g-ivoire); border-color: var(--g-filet); border-radius: 10px;
}
html:not(#_) .aa-btn { border-radius: 999px; }
html:not(#_) .aa-btn--primaire { background: var(--g-sapin); color: #fffcf4; border-color: var(--g-sapin-f); box-shadow: inset 0 0 0 2px rgba(255, 252, 244, .22), 0 8px 18px -10px var(--g-sapin); }
html:not(#_) .aa-btn--secondaire { background: var(--g-ivoire); color: var(--g-sapin-f); border-color: var(--g-sapin); }

/* ---------- accueil : pastilles, étapes en voies, engagements ---------- */
html:not(#_) .aa-liens li { background: var(--g-ivoire); border-color: var(--g-filet); border-radius: 999px; }
html:not(#_) .aa-liens li::before { background: var(--g-sapin); }
html:not(#_) .aa-liens li a { color: var(--g-encre); }
html:not(#_) .aa-liens__nb { font-family: var(--g-mono); color: var(--aa-muet); }
html:not(#_) .aa-etapes li { background: var(--g-ivoire); border-color: var(--g-filet); border-radius: 14px; box-shadow: var(--g-ombre); }
html:not(#_) .aa-etapes li::before { border-radius: 6px; background: var(--g-nuit); color: #f6efe0; font-family: var(--g-mono); box-shadow: inset 0 0 0 2px var(--g-nuit), inset 0 0 0 3px rgba(246, 239, 224, .5); }
html:not(#_) .aa-atouts li { background: var(--g-ivoire); border-color: var(--g-filet); border-left: 1px solid var(--g-filet); border-radius: 14px; }
html:not(#_) .aa-atouts .aa-atouts__ico { background: var(--g-lin); color: var(--g-sapin-f); box-shadow: inset 0 0 0 2px var(--g-sapin); }
html:not(#_) .aa-deposer-cta {
  flex-direction: column; text-align: center; justify-content: center; gap: .9rem; padding: 1.6rem 1.4rem;
  background: var(--g-ivoire); border: 2px dashed color-mix(in srgb, var(--aa-accent) 40%, var(--g-filet)); border-radius: 16px;
  -webkit-mask: var(--g-encoche); mask: var(--g-encoche);
}
html:not(#_) .aa-deposer-cta__bloc { flex: 0 1 auto; }
html:not(#_) .aa-deposer-cta__h { font-family: var(--aa-police-titre); color: var(--g-sapin-f); font-size: 1.1rem; }

/* ---------- pagination : lattes du tableau ---------- */
html:not(#_) .aa-pagination a, html:not(#_) .aa-pagination span { border-radius: 6px; font-family: var(--g-mono); background: var(--g-lin); color: var(--g-encre); border-color: var(--g-filet); }
html:not(#_) .aa-pagination .is-actif { background: linear-gradient(180deg, var(--g-nuit-2) 0 49%, rgba(0, 0, 0, .5) 49% 51%, var(--g-nuit) 51%); color: #fffcf4; border-color: var(--g-nuit); }

/* ---------- fiche d'annonce ---------- */
html:not(#_) .aa-fiche__titre {
  font-family: var(--aa-police-titre); border-bottom: 0; padding-bottom: 18px;
  background: linear-gradient(var(--g-sapin), var(--g-sapin)) 0 100% / 100% 2px no-repeat,
              linear-gradient(var(--g-sapin), var(--g-sapin)) 0 calc(100% - 8px) / 100% 2px no-repeat,
              repeating-linear-gradient(90deg, var(--g-filet) 0 4px, transparent 4px 16px) 0 calc(100% - 1px) / 100% 10px no-repeat;
}
html:not(#_) .aa-fiche__photo { border-radius: 180px 180px 16px 16px; border: 2px solid var(--g-filet); background: var(--g-lin); padding: 6px; box-shadow: var(--g-ombre); }
html:not(#_) .aa-fiche__img { transition: transform .5s ease; }
html:not(#_) .aa-fiche__photo:hover .aa-fiche__img { transform: scale(1.03); }
html:not(#_) .aa-fiche__miniatures img { border-radius: 30px 30px 6px 6px; border-color: var(--g-filet); }
html:not(#_) .aa-fiche__infos { background: var(--g-ivoire); border-color: var(--g-filet); }
html:not(#_) .aa-fiche__infos > div:nth-child(odd) { background: var(--g-lin); }
html:not(#_) .aa-fiche__infos dt { font-family: var(--g-mono); text-transform: uppercase; font-size: .76rem; letter-spacing: .04em; color: #3f4c48; }
html:not(#_) .aa-fiche__cta--haut, html:not(#_) .aa-fiche__cta--bas {
  background: color-mix(in srgb, var(--aa-accent) 7%, var(--g-ivoire)); border: 2px dashed color-mix(in srgb, var(--aa-accent) 35%, var(--g-filet));
  border-radius: 16px; -webkit-mask: var(--g-encoche); mask: var(--g-encoche); padding: 1rem 1.2rem;
}
html:not(#_) .aa-fiche__plage { background: var(--g-lin); border: 1px solid var(--g-filet); border-radius: 999px; color: var(--g-encre); }
html:not(#_) .aa-fiche__phy { background: var(--g-ivoire); border-color: var(--g-filet); border-radius: 12px; }
html:not(#_) .aa-chips li, html:not(#_) .aa-chip { background: var(--g-ivoire); border-color: var(--g-filet); }
html:not(#_) .aa-repondre { background: var(--g-ivoire); border: 1px solid var(--g-filet); border-radius: 16px; box-shadow: var(--g-ombre); }
html:not(#_) .aa-fiche__barre, html:not(#_) .aa-mobar { background: color-mix(in srgb, var(--g-ivoire) 95%, transparent); border-top: 3px solid var(--g-sapin); }

/* ---------- dépôt ---------- */
html:not(#_) .aa-depot__bloc { background: var(--g-ivoire); border-color: var(--g-filet); border-radius: 16px; box-shadow: var(--g-ombre); }
html:not(#_) .aa-depot__bloc legend::before { background: #f6efe0; color: var(--g-nuit); font-family: var(--g-mono); border-radius: 5px; }

/* ---------- porte d'âge, pop-up ---------- */
html:not(#_) .aa-gate, html:not(#_) .aa-popup { background: rgba(8, 26, 22, .82); }
html:not(#_) .aa-gate__box, html:not(#_) .aa-popup__box { background: var(--g-ivoire); border-radius: 18px; border-top: 6px solid var(--g-sapin); }
html:not(#_) .aa-gate__mark { background: #fffcf4; color: var(--g-sapin-f); font-family: var(--g-mono); box-shadow: inset 0 0 0 4px var(--g-sapin), 0 0 0 3px var(--g-lin); }

/* ---------- pied : rail et quai de nuit ---------- */
html:not(#_) .aa-footer {
  border-top: 6px solid var(--g-sapin);
  background:
    repeating-linear-gradient(90deg, rgba(246, 239, 224, .22) 0 5px, transparent 5px 20px) 0 4px / 100% 10px no-repeat,
    linear-gradient(rgba(246, 239, 224, .3), rgba(246, 239, 224, .3)) 0 6px / 100% 2px no-repeat,
    linear-gradient(rgba(246, 239, 224, .3), rgba(246, 239, 224, .3)) 0 11px / 100% 2px no-repeat,
    var(--g-nuit);
}
html:not(#_) .aa-footer__grid { padding-top: 2.4rem; }
html:not(#_) .aa-footer__h { color: #fffcf4; border-bottom: 2px dashed rgba(246, 239, 224, .25); }
html:not(#_) .aa-footer__fictif { opacity: 1; color: #cfd9d3; }
html:not(#_) .aa-footer__bas { background: rgba(0, 0, 0, .3); }
html:not(#_) .aa-footer__bas-in { opacity: 1; color: #dfe7e2; }

@media (prefers-reduced-motion: reduce) {
  html:not(#_) .aa-ligne, html:not(#_) .aa-fiche__img { transition: none; }
  html:not(#_) .aa-ligne:hover { transform: none; }
}
