/* GoodPattes — l'annuaire des salons (goodpattes.fr, goodpattes.ch). Complète site.css : mêmes couleurs, mêmes polices. */

/* Transitions douces d'une page à l'autre (Chrome, Edge, Safari 18.2 et suivants ; ignoré ailleurs) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

.marque-pays { display: block; font: 600 .66rem/1 var(--texte); letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin-top: 4px; }
.lien-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--rose); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lien-btn:hover { color: var(--rose-fonce); }

/* ---------- Accueil : recherche ---------- */
.ann-hero { position: relative; padding: clamp(36px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: clip; isolation: isolate; }
.ann-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("img/site/coupe.webp") center 30% / cover no-repeat; animation: ann-kenburns 26s ease-in-out infinite alternate; }
.ann-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(251, 244, 238, .97) 0%, rgba(251, 244, 238, .93) 46%, rgba(251, 244, 238, .55) 72%, rgba(251, 244, 238, .25) 100%); }
@keyframes ann-kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
.ann-hero-in { max-width: var(--large); }
.ann-hero h1 { max-width: 13ch; }
.ann-hero h1 em { font-style: normal; color: var(--rose); }
.ann-recherche { position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px; margin-top: 28px; padding: 8px 8px 8px 20px; background: #fff; border-radius: 999px;
  box-shadow: 0 1px 0 rgba(59, 44, 53, .05), 0 24px 50px -24px rgba(59, 44, 53, .45); border: 1px solid var(--trait); }
.ann-recherche:focus-within { border-color: var(--rose); }
.ann-recherche > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--doux); stroke-width: 2; stroke-linecap: round; }
.ann-recherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 1.06rem var(--texte); color: var(--encre); padding: 10px 0; }
.ann-recherche input::placeholder { color: #9b8a92; }
.ann-recherche .btn { min-height: 48px; padding: 10px 22px; }
.ann-suggestions { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--trait);
  border-radius: 18px; box-shadow: var(--ombre); max-height: 340px; overflow-y: auto; }
.ann-suggestions li a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--encre); text-decoration: none; }
.ann-suggestions li a small { color: var(--doux); font-size: .84rem; text-align: right; }
.ann-suggestions li a:hover, .ann-suggestions li a[aria-selected="true"] { background: var(--blush-50); }
.ann-suggestions mark { background: none; color: var(--rose); font-weight: 700; }
.ann-suggestions .ann-sugg-vide { padding: 12px 14px; color: var(--doux); font-size: .95rem; }
.ann-raccourcis { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.ann-raccourcis a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--trait); color: var(--prune); font-weight: 600; font-size: .94rem; text-decoration: none; backdrop-filter: blur(6px); }
.ann-raccourcis a:hover { background: var(--prune); border-color: var(--prune); color: #fff; }
@media (max-width: 620px) {
  .ann-hero::after { background: linear-gradient(180deg, rgba(251, 244, 238, .96), rgba(251, 244, 238, .9)); }
  .ann-recherche { flex-wrap: wrap; border-radius: 24px; padding: 10px 12px; }
  .ann-recherche > svg { display: none; }
  .ann-recherche input { flex-basis: 100%; padding: 8px 6px; }
  .ann-recherche .btn { width: 100%; }
}

/* ---------- Blocs et grilles ---------- */
.ann-bloc { padding: clamp(36px, 6vw, 72px) 0 0; }
.ann-bloc-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; margin-bottom: 22px; }
.ann-bloc-tete h2 { margin: 0; }
.ann-bloc-tete .surtitre { margin-bottom: 8px; }
.ann-mention { margin: 0; font-size: .86rem; color: var(--doux); }
.ann-voir { font-weight: 600; text-decoration: none; }
.ann-voir::after { content: " →"; }
.ann-bloc-offres { margin-top: clamp(36px, 6vw, 72px); padding: clamp(36px, 5vw, 60px) 0; background: var(--blush-50); }
.ann-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.ann-defile { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 320px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px;
  scrollbar-width: thin; scrollbar-color: var(--sauge) transparent; }
.ann-defile > * { scroll-snap-align: start; }

/* ---------- Carte d'un salon ---------- */
.ann-carte { position: relative; display: flex; flex-direction: column; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre);
  transition: transform .22s ease, box-shadow .22s ease; }
.ann-carte:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(59, 44, 53, .04), 0 26px 44px -22px rgba(59, 44, 53, .45); }
.ann-carte-une { border-color: var(--laiton); }
.ann-carte-lien { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.ann-carte-lien:hover { color: inherit; }
.ann-carte-lien:hover h3 { color: var(--rose-fonce); }
.ann-carte-lien:focus-visible { outline-offset: -3px; }
.ann-carte-photo { position: relative; margin: 0; aspect-ratio: 16 / 10.5; background: var(--blush-50); overflow: hidden; }
.ann-carte-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ann-carte:hover .ann-carte-photo img { transform: scale(1.05); }
.ann-sans-photo { display: grid; place-items: center; height: 100%; }
.ann-sans-photo .gp-logo { width: 64px; height: 64px; opacity: .5; }
.ann-une, .ann-offre { position: absolute; left: 12px; padding: 5px 11px; border-radius: 999px; font: 700 .76rem/1.2 var(--texte); }
.ann-une { top: 12px; background: var(--prune); color: #fff; letter-spacing: .04em; }
.ann-offre { bottom: 12px; right: 12px; left: 12px; width: fit-content; max-width: calc(100% - 24px); background: #fff; color: var(--rose-fonce); box-shadow: 0 6px 16px -8px rgba(59, 44, 53, .5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-offre::before { content: "✦ "; }
.ann-carte-corps { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.ann-carte-corps h3 { font-size: 1.32rem; margin: 0; }
.ann-lieu { margin: 0; color: var(--doux); font-size: .92rem; }
.ann-note { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; color: var(--doux); }
.ann-note b { color: var(--prune); font-weight: 700; }
.ann-note-vide { font-size: .84rem; font-weight: 600; color: var(--sauge-encre); background: var(--sauge-50); border-radius: 999px; padding: 2px 10px; width: fit-content; }
.ann-patte { width: 18px; height: 18px; fill: var(--rose); }
.ann-accroche { margin: 2px 0 0; font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 0; }
.ann-tags li { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sauge-50); color: var(--sauge-encre); }
.ann-prix { margin: auto 0 0; padding-top: 8px; font-size: .92rem; color: var(--doux); }
.ann-prix b { color: var(--prune); font-size: 1.05rem; }
.ann-pub { margin: 0; padding: 8px 18px; border-top: 1px dashed var(--trait); font-size: .78rem; color: var(--doux); }

/* Les cartes apparaissent en douceur au défilement (navigateurs récents seulement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ann-grille .ann-carte { animation: ann-monte linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes ann-monte { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Départements, cantons, villes ---------- */
.ann-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.ann-regions a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--r-s); background: var(--papier); border: 1px solid var(--trait); color: var(--prune); text-decoration: none; transition: border-color .15s, background .15s; }
.ann-regions a:hover, .ann-regions a[aria-current="page"] { border-color: var(--rose); background: var(--blush-50); }
.ann-regions b { font-weight: 600; }
.ann-regions span { font-size: .86rem; color: var(--doux); }

.ann-etapes { margin-top: clamp(48px, 7vw, 96px); padding: clamp(40px, 6vw, 72px) 0; background: var(--sauge-50); }
.ann-trois { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; counter-reset: e; }
.ann-trois li { counter-increment: e; background: var(--papier); border-radius: var(--r); padding: 24px; display: grid; gap: 6px; border: 1px solid var(--trait); }
.ann-trois li::before { content: counter(e); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--prune); color: #fff; font: 400 1.25rem var(--titre); margin-bottom: 6px; }
.ann-trois b { font: 400 1.3rem var(--titre); color: var(--prune); }
.ann-trois span { color: var(--doux); }
.ann-bientot { padding: clamp(40px, 6vw, 72px) 0; }
.ann-vide { padding: clamp(56px, 8vw, 120px) 0; }

/* ---------- Pages de liste ---------- */
.ann-entete { padding: clamp(24px, 4vw, 44px) 0 8px; }
.ann-entete h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.ann-ariane ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .88rem; color: var(--doux); }
.ann-ariane li + li::before { content: "›"; margin-right: 4px; color: #b9a8af; }
.ann-ariane a { color: var(--doux); text-decoration: none; }
.ann-ariane a:hover { color: var(--rose); text-decoration: underline; }
.ann-resultats { padding-top: 12px; }
.ann-filtres { position: sticky; top: 72px; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; margin-bottom: 8px;
  background: linear-gradient(var(--creme) 80%, rgba(251, 244, 238, 0)); }
.ann-filtre-q { flex: 1 1 240px; }
.ann-filtre-q input { width: 100%; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--trait); background: #fff; font: 500 1rem var(--texte); color: var(--encre); }
.ann-filtre-q input:focus { outline: 0; border-color: var(--rose); }
.ann-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.ann-puces button { min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--trait); background: #fff; color: var(--prune); font: 600 .9rem var(--texte); cursor: pointer; transition: background .15s, color .15s; }
.ann-puces button:hover { border-color: var(--prune); }
.ann-puces button[aria-pressed="true"] { background: var(--prune); border-color: var(--prune); color: #fff; }
.ann-puces button[aria-pressed="true"]::before { content: "✓ "; }
.ann-select { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--doux); }
.ann-select select { min-height: 40px; padding: 6px 30px 6px 12px; border-radius: 999px; border: 1px solid var(--trait); background: #fff; font: 600 .9rem var(--texte); color: var(--prune); }
.ann-compte { font-weight: 600; color: var(--doux); margin: 4px 0 16px; }
.ann-aucun { padding: 28px; text-align: center; background: var(--papier); border: 1px dashed var(--trait); border-radius: var(--r); }
.ann-classement { margin-top: 26px; font-size: .86rem; color: var(--doux); }
@media (max-width: 860px) {
  .ann-filtres { top: 72px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .ann-filtres::-webkit-scrollbar { display: none; }
  .ann-filtre-q { flex: 0 0 210px; }
  .ann-puces { flex-wrap: nowrap; }
  .ann-puces button, .ann-select { white-space: nowrap; flex: none; }
  .ann-select span { display: none; }
}

/* ---------- Comment ça marche ---------- */
.ann-doc-grille { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }
.ann-sommaire { position: sticky; top: 96px; padding: 20px; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r); font-size: .94rem; }
.ann-sommaire b { display: block; margin-bottom: 8px; color: var(--prune); }
.ann-sommaire ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.ann-sommaire a { color: var(--prune); text-decoration: none; }
.ann-sommaire a:hover, .ann-sommaire a.actif { color: var(--rose); text-decoration: underline; }
.ann-doc-texte section { scroll-margin-top: 96px; }
.ann-doc-texte section + section { border-top: 1px solid var(--trait); margin-top: 32px; }
.ann-doc-texte h2 { margin-top: 1.2em; }
.ann-criteres { padding-left: 1.2em; display: grid; gap: 10px; }
@media (max-width: 860px) { .ann-doc-grille { grid-template-columns: 1fr; } .ann-sommaire { position: static; } }

/* ---------- Déposer un avis ---------- */
.ann-avis-page { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.ann-avis-carte { max-width: 680px; margin-inline: auto; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--r); box-shadow: var(--ombre); padding: clamp(22px, 5vw, 44px); }
.ann-avis-carte h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
.ann-avis-rappel { background: var(--blush-50); border-radius: var(--r-s); padding: 16px 18px; margin: 18px 0; }
.ann-avis-rappel p { margin: 8px 0 0; font-style: italic; }
.ann-avis-form { display: grid; gap: 18px; margin-top: 10px; }
.ann-etoiles { border: 0; padding: 0; margin: 0; }
.ann-etoiles legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.ann-etoiles-in { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.ann-etoiles-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ann-etoiles-in label { cursor: pointer; padding: 4px; border-radius: 12px; line-height: 0; }
.ann-etoiles-in .ann-patte { width: 46px; height: 46px; fill: #E5D6D1; transition: fill .15s, transform .15s; }
.ann-etoiles-in label:hover .ann-patte, .ann-etoiles-in label:hover ~ label .ann-patte,
.ann-etoiles-in input:checked ~ label .ann-patte { fill: var(--rose); }
.ann-etoiles-in label:hover .ann-patte { transform: scale(1.12) rotate(-6deg); }
.ann-etoiles-in input:focus-visible + label { outline: 3px solid var(--rose); outline-offset: 2px; }
.ann-etoiles-txt { margin: 6px 0 0; font-weight: 600; color: var(--rose-fonce); min-height: 1.5em; }
.ann-avis-form textarea { width: 100%; }
.ann-avis-form label > .petit { display: block; text-align: right; margin-top: 4px; }
.ann-avis-refus { margin-top: 18px; text-align: center; font-size: .9rem; }

/* Pattes (note d'un avis) */
.pattes { display: inline-flex; gap: 2px; vertical-align: middle; }
.pattes i { line-height: 0; }
.pattes svg { width: 18px; height: 18px; fill: #E5D6D1; }
.pattes i.plein svg { fill: var(--rose); }
.formulaire label.ann-certifie { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.ann-certifie input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--rose); }
