/* encuentros-chile.lat — registre « sel d'Atacama » (inspiration Chili)
   Palette : accent caramel du favicon #b2885a (boutons #85603a, lisible en blanc),
   neutre chaud = sel / sable (#fffaf2, #f4eadb, #ece0cc), encre roche #2b2118.
   Composition : rangée d'en-tête fine (logo à gauche, action à droite), barre de menu roche
   à onglets en pilule ; cartes arrondies 18 px à coin coupé + filet courbe, vignettes en arche,
   bandeaux en pilule, fiche à photo en arche et CTA en carte centrée (cœur en filigrane),
   pied de page en 3 colonnes aérées sous une arche. */

html:not(#_), html:not(#_) body, html:not(#_) .skin-3 {
  --aa-accent: #b2885a; --aa-teinte: #85603a;
  --aa-primaire: #85603a; --aa-primaire-fonce: #5e4226; --aa-primaire-txt: #fff;
  --aa-page: #ece0cc; --aa-fond: #fffaf2; --aa-surface: #fffaf2; --aa-surface-2: #f6eddf;
  --aa-bord: #e2d2ba; --aa-texte: #2b2118; --aa-muet: #6b5846; --aa-lien: #85603a;
  --aa-tete: #fffaf2; --aa-tete-txt: #2b2118; --aa-barre: #3a2a1c;
  --aa-bande: #85603a; --aa-bande-txt: #fff; --aa-bande-bord: #b2885a;
  --aa-secondaire: #3a2a1c; --aa-secondaire-txt: #fff;
  --aa-pied: #2e2218; --aa-pied-txt: #eadfce; --aa-ok: #4d6b3c;
  --aa-rayon: 18px; --aa-rayon-s: 12px;
  --aa-ombre: 0 2px 4px rgba(94, 66, 38, .06), 0 14px 30px -18px rgba(133, 96, 58, .45);
  --aa-police-titre: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sa-coin: 18px;
}

/* Fond : sable semé de cristaux de sel */
html:not(#_) body {
  background-color: var(--aa-page);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .55) 1.2px, transparent 1.6px),
    radial-gradient(circle at 70% 80%, rgba(178, 136, 90, .16) 1px, transparent 1.5px);
  background-size: 34px 34px, 52px 52px;
}

/* ---------- En-tête : rangée fine claire + barre roche ---------- */
html:not(#_) .aa-header { background: var(--aa-tete); color: var(--aa-tete-txt); box-shadow: 0 1px 0 var(--aa-bord), 0 10px 24px -20px rgba(94, 66, 38, .6); }
html:not(#_) .aa-header .aa-header__in { padding-block: .35rem 0; row-gap: .35rem; }
html:not(#_) .aa-header .aa-logo__txt { font-style: normal; font-weight: 700; letter-spacing: .01em; color: #2b2118; }
html:not(#_) .aa-header .aa-logo__sous { color: #6b5846; opacity: 1; }
html:not(#_) .aa-logo .aa-logo__mark {
  width: 28px; height: 28px; border-radius: 6px; transform: rotate(45deg) scale(.82);
  background: linear-gradient(135deg, #fffaf2 0 30%, #b2885a 30% 62%, #85603a 62%);
  box-shadow: 0 0 0 2px #fffaf2, 0 0 0 3px #b2885a;
}
html:not(#_) .aa-header .aa-header__cta { border-radius: 999px; min-height: 40px; padding-inline: 1.2em; }
html:not(#_) .aa-header .aa-burger { border-color: #d7c3a5; color: #2b2118; border-radius: 12px; }
html:not(#_) .aa-header .aa-nav { background: var(--aa-barre); color: #f5ecdd; }
html:not(#_) .aa-header .aa-nav a { color: #f5ecdd; border-bottom: 0; border-radius: 999px; margin: .3rem .1rem; padding: .45rem .9rem; }
html:not(#_) .aa-header .aa-nav a:hover { background: rgba(255, 250, 242, .12); }
html:not(#_) .aa-header .aa-nav a.is-actif { background: #fffaf2; color: #2b2118; box-shadow: inset 0 -2px 0 #b2885a; }
@media (max-width: 759px) {
  html:not(#_) .aa-header .aa-header__in { padding-block: .45rem; }
  html:not(#_) .aa-header .aa-nav { border-radius: 18px; }
  html:not(#_) .aa-header .aa-nav a { margin: .1rem 0; }
  html:not(#_) .aa-header .aa-nav a.is-actif { border-left: 0; }
}

/* ---------- Conteneur et colonne latérale ---------- */
html:not(#_) .aa-main > .aa-wrap { border: 0; border-radius: 26px; background: var(--aa-fond); box-shadow: var(--aa-ombre); }
html:not(#_) .aa-layout .aa-side { border: 0; border-radius: var(--aa-rayon); background: #f6eddf; box-shadow: var(--aa-ombre); }
html:not(#_) .aa-layout .aa-side--deposer { background: none; box-shadow: none; }

/* Bandeaux en pilule */
html:not(#_) .aa-h2, html:not(#_) .aa-side .aa-side__h, html:not(#_) .aa-bande, html:not(#_) .aa-depot__bloc legend {
  border-radius: 999px; border-left: 0; padding: .45rem 1rem; font-family: var(--aa-police-titre);
  font-style: normal; letter-spacing: .02em; text-transform: none; font-size: 1rem;
  background: linear-gradient(90deg, #85603a, #9a7247); color: #fff;
  box-shadow: 0 8px 16px -12px rgba(94, 66, 38, .9);
}
html:not(#_) .aa-side .aa-side__h { margin: 0 0 .7rem; border-bottom: 0; }
html:not(#_) .aa-bande .aa-bande__droite { opacity: 1; color: #fff; }
html:not(#_) .aa-side .aa-side__liste li::before { background: #b2885a; transform: rotate(45deg); border-radius: 1px; }
html:not(#_) .aa-side .aa-side__nb { background: #fffaf2; border-color: #e2d2ba; color: #5e4226; }
html:not(#_) .aa-side .aa-side__liste--inline li { background: #fffaf2; border-color: #e2d2ba; }

/* ---------- Accueil : carte d'introduction ---------- */
html:not(#_) .aa-main .aa-hero {
  border: 0; border-radius: var(--aa-rayon); position: relative; overflow: hidden; padding: 1.3rem 1.4rem 1.6rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 5 6.4 5c2 0 3.3 1.1 3.9 2.2.3.5 1.1.5 1.4 0C12.3 6.1 13.6 5 15.6 5 19 5 21.1 8.4 19.6 11.8 17.5 16.4 12 21 12 21z' fill='%23b2885a' fill-opacity='.13'/%3E%3C/svg%3E") no-repeat right -18px top -10px / 150px,
    linear-gradient(225deg, transparent var(--sa-coin), #f6eddf calc(var(--sa-coin) + .5px));
  box-shadow: 0 12px 26px -20px rgba(133, 96, 58, .8);
}
html:not(#_) .aa-main .aa-hero::after {
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; bottom: .55rem; height: 10px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q50 0 100 5 T200 3' fill='none' stroke='%23b2885a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
html:not(#_) .aa-hero .aa-h1 { font-family: var(--aa-police-titre); color: #2b2118; }
html:not(#_) .aa-hero .aa-hero__chiffres { border-radius: 999px; }

/* ---------- Lignes d'annonce : cartes à coin coupé + filet courbe ---------- */
html:not(#_) .aa-main .aa-liste { border-top: 0; gap: .85rem; }
html:not(#_) .aa-liste .aa-ligne {
  border: 0; border-radius: var(--aa-rayon); padding: 1rem 1.05rem 1.35rem;
  background: linear-gradient(225deg, transparent var(--sa-coin), #fffaf2 calc(var(--sa-coin) + .5px));
  box-shadow: 0 1px 0 #eadcc6, 0 12px 24px -18px rgba(133, 96, 58, .7);
  transition: transform .25s ease, box-shadow .25s ease;
}
html:not(#_) .aa-liste .aa-ligne::before {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 6px; height: 9px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M0 3 Q60 10 110 5 T200 7' fill='none' stroke='%23d3b893' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
html:not(#_) .aa-liste .aa-ligne:hover { background: linear-gradient(225deg, transparent var(--sa-coin), #fff6ea calc(var(--sa-coin) + .5px)); transform: translateY(-2px); box-shadow: 0 1px 0 #e2d2ba, 0 18px 30px -18px rgba(133, 96, 58, .85); }
html:not(#_) .aa-liste .aa-ligne__img { border: 2px solid #e8d8c0; border-radius: 52px 52px 12px 12px; padding: 0; background: #f6eddf; box-shadow: 0 8px 16px -12px rgba(94, 66, 38, .8); }
html:not(#_) .aa-liste .aa-ligne__img img { border-radius: 50px 50px 10px 10px; }
html:not(#_) .aa-liste .aa-ligne__titre { font-family: var(--aa-police-titre); }
html:not(#_) .aa-liste .aa-ligne__titre a { color: #6e4d2c; }
html:not(#_) .aa-liste .aa-ligne__cat { color: #85603a; }
html:not(#_) .aa-liste .aa-ligne__new { border-radius: 999px; background: #4d6b3c; }
html:not(#_) .aa-liste .aa-ligne__lire { border-radius: 999px; }

/* ---------- Boutons, champs, pastilles ---------- */
html:not(#_) .aa-btn.aa-btn--primaire { border-radius: 999px; background: linear-gradient(180deg, #92693f, #7c5834); border-color: #5e4226; color: #fff; box-shadow: 0 10px 20px -12px rgba(94, 66, 38, .95); }
html:not(#_) .aa-btn.aa-btn--secondaire { border-radius: 999px; background: #fffaf2; color: #3a2a1c; border-color: #3a2a1c; }
html:not(#_) .aa-main input:not([type=checkbox]):not([type=radio]), html:not(#_) .aa-main select, html:not(#_) .aa-main textarea,
html:not(#_) .aa-side input:not([type=checkbox]):not([type=radio]), html:not(#_) .aa-side select {
  border-radius: 12px; border-color: #d7c3a5; background-color: #fffdf9; color: #2b2118;
}
html:not(#_) .aa-main .aa-chip { border-radius: 999px; background: #f6eddf; border-color: #e2d2ba; color: #3a2a1c; }
html:not(#_) .aa-pagination a, html:not(#_) .aa-pagination span { border-radius: 999px; }

/* ---------- Fiche d'annonce ---------- */
html:not(#_) .aa-main .aa-fiche__titre { font-family: var(--aa-police-titre); color: #2b2118; }
html:not(#_) .aa-main .aa-fiche__photo { border: 3px solid #fffaf2; border-radius: 50% 50% 18px 18px / 30% 30% 18px 18px; box-shadow: 0 0 0 1px #e2d2ba, 0 18px 32px -20px rgba(94, 66, 38, .85); }
html:not(#_) .aa-main .aa-fiche__infos { border: 0; border-radius: 16px; box-shadow: 0 0 0 1px #e8dac6; }
html:not(#_) .aa-main .aa-fiche__infos > div:nth-child(odd) { background: #f6eddf; }
html:not(#_) .aa-main .aa-fiche__infos dd { border-left-color: #eadcc6; }
html:not(#_) .aa-main .aa-fiche__cta--haut, html:not(#_) .aa-main .aa-fiche__cta--bas {
  border: 0; border-radius: 22px; padding: 1.1rem 1.2rem; text-align: center;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 5 6.4 5c2 0 3.3 1.1 3.9 2.2.3.5 1.1.5 1.4 0C12.3 6.1 13.6 5 15.6 5 19 5 21.1 8.4 19.6 11.8 17.5 16.4 12 21 12 21z' fill='%23b2885a' fill-opacity='.12'/%3E%3C/svg%3E") no-repeat center / 120px,
    #f6eddf;
  box-shadow: inset 0 0 0 1px #e8dac6, 0 14px 26px -20px rgba(133, 96, 58, .9);
}
html:not(#_) .aa-main .aa-fiche__cta--bas { max-width: 560px; margin-inline: auto; }
html:not(#_) .aa-main .aa-fiche__miniatures img { border-radius: 12px; }

/* ---------- Dépôt ---------- */
html:not(#_) .aa-main .aa-depot__bloc { border: 0; border-radius: var(--aa-rayon); background: #fffaf2; box-shadow: 0 0 0 1px #eadcc6, 0 12px 24px -20px rgba(133, 96, 58, .8); }
html:not(#_) .aa-main .aa-depot__bloc legend::before { background: #fffaf2; color: #85603a; }

/* ---------- Pop-up et porte ---------- */
html:not(#_) .aa-popup .aa-popup__box, html:not(#_) .aa-gate .aa-gate__box { border-radius: 22px; }

/* ---------- Pied de page : arche + 3 colonnes aérées ---------- */
html:not(#_) .aa-footer { border-top: 0; border-radius: 34px 34px 0 0; margin-top: 2rem; box-shadow: 0 -3px 0 #b2885a; }
html:not(#_) .aa-footer .aa-footer__h { border-bottom: 1px solid rgba(234, 223, 206, .2); color: #f3dcb9; letter-spacing: .08em; }
html:not(#_) .aa-footer a:hover { color: #f3dcb9; }
html:not(#_) .aa-footer .aa-footer__bas { background: rgba(0, 0, 0, .2); }
@media (min-width: 760px) {
  html:not(#_) .aa-footer .aa-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 3rem; padding-block: 2.4rem 1.8rem; }
  html:not(#_) .aa-footer .aa-footer__grid > :first-child { grid-column: 1 / -1; padding-bottom: 1rem; border-bottom: 1px dashed rgba(234, 223, 206, .22); }
}

/* Barre basse mobile : pilules */
html:not(#_) .aa-mobar .aa-btn, html:not(#_) .aa-fiche__barre .aa-btn { border-radius: 999px; }

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