/* Liste de résultats du site des organisateurs (26/11/2026). Se charge après deux-sites.css, deux-sites-prestataires.css
   (demandée par la fiche de la page : « feuilles ») et deux-sites-pages.css.
   Reprend sans les recopier : .page-haut, .fil, .filtres / .filtre, .recherche, .epingle et la carte sans photo (.epingle--sans,
   .epingle__lettre), la table à points de conduite (.zone), la bande nuit .affiche, .tete, .puce, .vitrines__suite, .texte-page, .questions.
   Ajoute : l'attente du script, la ligne de rappel collée sous le menu, l'en-tête d'un groupe de résultats, la grille régulière
   et ce que la carte de résultat a en plus (distance, nombre de photos, flèche), la mise en page de « Bon à savoir »
   (texte et questions-réponses), le bas de liste sur la bande nuit.
   Écrite téléphone d'abord. */

/* Une autre recherche que celle écrite dans la page est demandée par l'adresse : le contenu attend que le script l'ait redessiné,
   pour ne pas montrer Toulon un instant. Secours si le script n'arrive pas : le contenu se montre seul après 4 secondes. */
.res-attente #contenu { min-height: 100vh; }
.res-attente #contenu > section { visibility: hidden; animation: res-secours 0s 4s forwards; }
@keyframes res-secours { to { visibility: visible; } }

/* ================================================================ 1. Haut de page : le compte se lit comme un fait, pas comme une légende */
.res-haut .page-haut__texte { color: var(--encre); font-weight: 500; }
[data-r-titre]:focus { outline: none; }   /* le titre reçoit le focus après une recherche, pour que la lecture reprenne ici : il n'est pas un bouton */

/* ================================================================ 2. La ligne de rappel : « Traiteur | Toulon », collée sous le menu.
   Une seule ligne au téléphone ; elle s'ouvre sur la recherche de l'accueil (métier, ville). Sans script, elle s'ouvre quand même. */
.rappel { position: sticky; top: var(--h-entete); z-index: 40; background: rgba(247, 244, 236, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ligne); }
.rappel__boite { padding-block: 8px; }
.rappel summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px 0 16px; border-radius: 999px; background: #fff; color: var(--encre); font-size: .98rem; line-height: 1.2;
  box-shadow: inset 0 0 0 1px var(--ligne-forte), 0 12px 22px -18px rgba(15, 30, 64, .55); cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; transition: box-shadow .2s; }
.rappel summary::-webkit-details-marker { display: none; }
.rappel summary:hover { box-shadow: inset 0 0 0 1px var(--titre), 0 12px 22px -18px rgba(15, 30, 64, .55); }
.rappel__picto { width: 19px; height: 19px; color: var(--accent-lien); }
.rappel__quoi, .rappel__ou { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rappel__quoi { color: var(--titre); font-weight: 700; }
.rappel__trait { flex: none; width: 1px; height: 18px; background: var(--or); }   /* l'or reste un trait */
.rappel__geste { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 36px; margin-left: auto; padding: 0 10px 0 14px; color: var(--accent-lien); font-size: .9rem; font-weight: 650; }
.rappel__fermer, .rappel__boite[open] .rappel__ouvrir { display: none; }
.rappel__boite[open] .rappel__fermer { display: inline; }
.rappel__boite[open] .rappel__geste .icone--chevron { transform: rotate(180deg); }   /* seulement le chevron de « Fermer », pas celui du rayon */
.rappel .recherche { width: 100%; max-width: 940px; margin: 8px 0 4px; box-shadow: 0 0 0 1px var(--ligne-forte), 0 18px 36px -22px rgba(15, 30, 64, .45); }

/* ================================================================ 3. Les résultats */
.res { padding-top: clamp(14px, 2.2vw, 26px); }
.res-ici { margin-bottom: 6px; color: var(--encre); font-size: .96rem; font-weight: 600; }   /* « À Lyon et alentours, d'autres métiers ont des vitrines : », au-dessus des boutons */

/* L'en-tête d'un groupe (« À Toulon », « À proximité de Toulon ») : le titre, un trait d'or fin jusqu'au nombre de vitrines.
   Le même dessin que les blocs de métier de la page d'un département. */
.res-groupe + .res-groupe { margin-top: clamp(34px, 5vw, 60px); }
.res-groupe__tete { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.res-groupe__titre { flex: 0 1 auto; min-width: 0; color: var(--titre); font: 800 clamp(1.24rem, 1.02rem + .95vw, 1.7rem)/1.14 var(--police); letter-spacing: -.028em; text-wrap: balance; }
.res-groupe__fil { flex: 1 1 16px; min-width: 16px; height: 1px; margin-bottom: .58em; background: linear-gradient(90deg, var(--or), rgba(201, 162, 75, .26)); }
.res-groupe__nombre { flex: none; margin-bottom: .14em; color: var(--texte); font-size: .88rem; line-height: 1.2; white-space: nowrap; }
.res-groupe__nombre b { margin-right: 2px; color: var(--titre); font: 800 1.32rem/1 var(--police); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.res-groupe__note { margin: -6px 0 14px; color: var(--texte); font-size: .92rem; }

/* La grille : régulière, pour comparer d'un coup d'œil. Une carte par ligne au téléphone. */
.res-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.res-case { min-width: 0; }
/* La carte : la photo pleine carte, le texte posé dessus, toujours dans le même ordre (métier ; nom ; lieu et distance ; note et photos) */
.res-carte { --focus: #1F5BFF; aspect-ratio: 4 / 3; background: radial-gradient(78% 64% at 100% 0%, var(--lueur-1), rgba(0, 0, 0, 0) 70%), linear-gradient(162deg, #0B1530 0%, #1B2C66 60%, #3A2560 100%); }
.res-carte img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; }
.res-carte .epingle__voile { --h-texte: 80px; }
.res-carte .epingle__metier { left: 12px; top: 12px; max-width: calc(100% - 72px); font-size: .74rem; }
.res-carte .epingle__corps { left: 14px; right: 14px; bottom: 12px; gap: 3px; }
.res-carte .epingle__nom { font-size: 1.14rem; letter-spacing: -.015em; }
.res-carte .epingle__ligne { gap: 0 12px; font-size: .88rem; }
.res-carte .epingle__note .icone, .res-carte .epingle__lieu .icone { width: 14px; height: 14px; }
.res-carte__km { color: var(--accent-clair-uni); font-weight: 650; white-space: nowrap; }   /* texte d'accent posé sur du sombre */
.res-carte__photos { white-space: nowrap; }
/* Le seul geste de la carte : ouvrir la vitrine */
.res-carte__fleche { position: absolute; right: 10px; top: 10px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(8, 15, 38, .5); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); transition: background .25s, color .25s, transform .3s var(--courbe); }
.res-carte__fleche .icone { width: 17px; height: 17px; }
.res-carte:hover .res-carte__fleche, .res-carte:focus-visible .res-carte__fleche { background: var(--accent); color: var(--accent-texte); box-shadow: inset 0 0 0 1px var(--accent-bord); transform: translateX(3px); }
/* Sans photo : l'initiale de la page Prestataires, ramenée à la hauteur de la carte */
.res-carte .epingle__lettre { right: 58px; font-size: clamp(8rem, 30vw, 11rem); }   /* à gauche de la flèche */

/* ================================================================ 4. Bon à savoir : le titre et le court texte à gauche, les questions-réponses à droite
   (.texte-page et .questions sont dans deux-sites-pages.css, communes aux pages) */
.res-savoir__deux { display: grid; gap: 6px 72px; }
.res-savoir .tete { margin-bottom: 12px; }
.res-savoir .texte-page { margin-top: 12px; }

/* ================================================================ 5. Bas de liste, sur la bande nuit : les autres métiers ici, puis les sorties */
.res-suite__deux { display: grid; grid-template-areas: "tete" "table" "liens"; gap: 20px; }
.res-suite__deux .tete { grid-area: tete; margin-bottom: 0; }
.res-suite__table { grid-area: table; border-top: 1px solid rgba(230, 200, 134, .7); }
.res-suite__table ul { padding-top: 0; }
.res-suite .zone a { color: rgba(255, 255, 255, .92); }
.res-suite .zone a:hover, .res-suite .zone__nombre { color: #fff; }
.res-suite .zone a:hover .zone__nombre { color: var(--accent-clair-uni); }
.res-suite .zone__fil { background-image: linear-gradient(90deg, rgba(255, 255, 255, .38) 34%, rgba(0, 0, 0, 0) 0); }
.res-suite__liens { grid-area: liens; display: flex; flex-wrap: wrap; gap: 10px; }
.res-suite__liens .puce { --focus: #FFE3A3; min-height: 46px; padding-block: 10px; line-height: 1.3; white-space: normal; }

/* ================================================================ Tablette : deux cartes par ligne */
@media (min-width: 560px) {
  .rappel summary { width: fit-content; min-width: min(100%, 440px); max-width: 100%; }
  .res-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* ================================================================ Ordinateur : trois, puis quatre cartes par ligne */
@media (min-width: 900px) {
  .rappel__boite { padding-block: 10px; }
  .res-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .res-carte { aspect-ratio: 1 / 1; }
  .res-carte .epingle__nom { font-size: 1.08rem; }
  .res-carte .epingle__ligne { font-size: .86rem; }
  .res-savoir__deux { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .res-savoir .tete { margin-bottom: 0; }
  .res-suite__deux { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "tete table" "liens table"; gap: 22px 72px; }
  .res-suite__deux .tete { align-self: end; }
  .res-suite__liens { align-self: start; }
  .res-suite__table { align-self: center; margin-bottom: 0; }
  .res-suite__table ul { columns: 2; column-gap: 44px; }
  .res-suite__table li { break-inside: avoid; }
}
@media (min-width: 1200px) {
  .res-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .res-carte { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  .res-carte:hover .res-carte__fleche, .res-carte:focus-visible .res-carte__fleche { transform: none; }
}

/* ================================================================================================================================
   LA LISTE EN LIGNES (demande de Hugo du 29/11/2026 : « une liste, comme une recherche Google », filtres dans une colonne à gauche).
   Ajouté à la suite de la feuille d'origine par deux-sites-v3/pages/liste/poser-essai.py. Téléphone d'abord.
   Une vitrine = une ligne (photo à gauche, texte à droite) ; les cercles élargis (« Autres options proches ») reprennent la même
   ligne en carte compacte. La colonne de filtres devient un panneau qui monte du bas au téléphone.
   ================================================================================================================================ */

/* ---------- 1. Deux colonnes à l'ordinateur ---------- */
.res-colonne { margin-bottom: 18px; }
.res-script .res-colonne { display: none; }   /* avec script, au téléphone : les filtres sont dans le panneau du bouton « Filtres » */
.res-principal { min-width: 0; }

/* ---------- 2. La colonne de filtres ---------- */
.res-panneau__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.res-panneau__titre { color: var(--gris); font: 700 .78rem/1.2 var(--police); letter-spacing: .1em; text-transform: uppercase; }
.res-panneau__effacer { color: var(--accent-lien); font-size: .86rem; font-weight: 600; text-underline-offset: 3px; }
.res-panneau__effacer:hover { color: var(--titre); }
.res-filtres { display: block; margin: 0; }
.res-volet { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--ligne-forte); min-width: 0; }
.res-volet__titre { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0; color: var(--titre); font: 700 .98rem/1.2 var(--police); letter-spacing: -.01em; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.res-volet__titre::-webkit-details-marker { display: none; }
.res-volet--fixe > .res-volet__titre { cursor: default; }
.res-volet__titre .icone { flex: none; width: 16px; height: 16px; color: var(--or-brun); transition: transform .2s var(--courbe); }
.res-volet[open] > .res-volet__titre .icone { transform: rotate(180deg); }
.res-volet__titre:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.res-volet__corps { display: flex; flex-direction: column; padding: 0 0 14px; }

/* Un choix : la vraie case (invisible mais au clavier), sa forme dessinée, le libellé, le nombre de vitrines à droite */
.res-choix { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 44px; color: var(--encre); font-size: .96rem; line-height: 1.25; cursor: pointer; }
.res-choix[hidden] { display: none; }
.res-choix input { position: absolute; left: 0; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; opacity: 0; cursor: pointer; }
.res-choix__case { display: block; width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ligne-forte); transition: background-color .15s, box-shadow .15s; }
.res-choix input[type="radio"] + .res-choix__case { border-radius: 50%; }
.res-choix:hover .res-choix__case { box-shadow: inset 0 0 0 1.5px var(--or-brun); }
.res-choix input:checked + .res-choix__case { background: var(--nuit); box-shadow: inset 0 0 0 1.5px var(--nuit); }
.res-choix input[type="radio"]:checked + .res-choix__case { box-shadow: inset 0 0 0 1.5px var(--nuit), inset 0 0 0 5px #fff; }
.res-choix input[type="checkbox"]:checked + .res-choix__case { background: var(--nuit) linear-gradient(135deg, transparent 0 100%); }
.res-choix input[type="checkbox"]:checked + .res-choix__case::after { content: ""; display: block; width: 5px; height: 10px; margin: 3px 0 0 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.res-choix input:focus-visible + .res-choix__case { outline: 3px solid var(--focus); outline-offset: 2px; }
.res-choix input:checked ~ .res-choix__nom { color: var(--titre); font-weight: 650; }
.res-choix__nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-choix__nombre { color: var(--gris); font-size: .84rem; font-variant-numeric: tabular-nums; }
.res-volet__plus { align-self: flex-start; min-height: 40px; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--accent-lien); font: 600 .9rem var(--police); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.res-volet__plus:hover { color: var(--titre); }
.res-volet__lien { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; min-height: 40px; color: var(--accent-lien); font-size: .92rem; font-weight: 600; text-decoration: none; }
.res-volet__lien .icone { width: 14px; height: 14px; transition: transform .2s var(--courbe); }
.res-volet__lien:hover { color: var(--titre); }
.res-volet__lien:hover .icone { transform: translateX(3px); }
.res-filtres__appliquer { width: 100%; min-height: 46px; margin-top: 6px; border: 0; border-radius: 999px; background: var(--nuit); color: #fff; font: 650 .96rem var(--police); cursor: pointer; }

/* ---------- 3. Au-dessus de la liste : le nombre de résultats, et au téléphone le bouton « Filtres » ---------- */
.res-outils { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 4px; }
.res-outils__compte { color: var(--gris); font: 700 .8rem/1.2 var(--police); letter-spacing: .1em; text-transform: uppercase; }
.res-outils__filtres { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--titre); font: 650 .95rem var(--police); box-shadow: inset 0 0 0 1px var(--ligne-forte), 0 1px 2px rgba(15, 30, 64, .05), 0 8px 16px -14px rgba(15, 30, 64, .45); cursor: pointer; transition: scale .12s var(--courbe), box-shadow .2s; }
.res-outils__filtres[hidden] { display: none; }
.res-outils__filtres:active { scale: .97; }
/* trois traits de plus en plus courts : le signe des filtres, sans pictogramme dessiné */
.res-outils__filtres::before { content: ""; width: 16px; height: 12px; background: linear-gradient(var(--titre), var(--titre)) 0 0 / 16px 2px no-repeat, linear-gradient(var(--titre), var(--titre)) 3px 5px / 10px 2px no-repeat, linear-gradient(var(--titre), var(--titre)) 6px 10px / 4px 2px no-repeat; }
.res-outils__filtres .icone { display: none; }
.res-outils__nb { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--nuit); color: #fff; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.res-outils__nb[hidden] { display: none; }
.res .res-ici { margin: 6px 0 14px; padding: 13px 16px; border-radius: 12px; background: var(--accent-teinte); color: #523D12; font-size: .96rem; font-weight: 600; line-height: 1.4; }
.res-ici__lien { color: inherit; text-underline-offset: 3px; }

/* ---------- 4. Une vitrine = une ligne ---------- */
.res-liste, .res-grille { margin: 0; padding: 0; list-style: none; }
.res-liste > .res-case + .res-case { border-top: 1px solid var(--ligne); }
.res-ligne { position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; align-items: start; margin-inline: -10px; padding: 14px 10px; border-radius: 16px; transition: background-color .2s; }
.res-ligne:hover { background: rgba(255, 255, 255, .72); }
.res-ligne__photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: linear-gradient(150deg, #1B2B5C 0%, #0F1E40 58%, #2B1C46 100%); }
.res-ligne__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--courbe); }
.res-ligne:hover .res-ligne__photo img { transform: scale(1.04); }
.res-ligne__lettre { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(235, 209, 147, .92); font: 800 2rem/1 var(--police); letter-spacing: -.03em; }
.res-ligne__corps { display: flex; flex-direction: column; gap: 5px; min-width: 0; min-height: 100%; }
.res-ligne__metier { align-self: flex-start; color: var(--or-texte, #83662D); font: 700 .7rem/1.2 var(--police); letter-spacing: .09em; text-transform: uppercase; }
.res-ligne__metier[hidden] { display: none; }
.res-ligne__nom { display: -webkit-box; overflow: hidden; color: var(--titre); font: 800 1.06rem/1.18 var(--police); letter-spacing: -.022em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.res-ligne__lien { color: inherit; text-decoration: none; }
/* toute la ligne ouvre la vitrine : le lien du nom s'étend sur la ligne, et son nom reste court pour les lecteurs d'écran */
.res-ligne__lien::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.res-ligne__lien:focus-visible { outline: none; }
.res-ligne__lien:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 1px; }
.res-ligne__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; color: var(--texte); font-size: .88rem; line-height: 1.35; }
.res-ligne__note { display: inline-flex; align-items: center; gap: 5px; color: var(--titre); font-weight: 700; }
.res-ligne__note .icone { width: 14px; height: 14px; fill: var(--etoile); stroke: var(--etoile); }
.res-ligne__note small { color: var(--texte); font-size: 1em; font-weight: 400; }
.res-ligne__lieu { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.res-ligne__lieu .icone { flex: none; width: 14px; height: 14px; color: var(--or-brun); }
.res-ligne__km { color: var(--gris); }
.res-ligne__km[hidden], .res-ligne__texte[hidden], .res-ligne__faits[hidden], .res-ligne__fait[hidden] { display: none; }
.res-ligne__texte { display: -webkit-box; overflow: hidden; margin: 1px 0 0; color: var(--texte); font-size: .88rem; line-height: 1.48; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.res-ligne__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 4px; }
.res-ligne__faits { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; color: var(--gris); font-size: .84rem; }
.res-ligne__prix { color: var(--titre); font-weight: 650; }
.res-ligne__bouton { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: linear-gradient(120deg, #0F1E40 0%, #1D2D60 100%); color: #fff; font: 650 .95rem/1 var(--police); white-space: nowrap; box-shadow: 0 1px 2px rgba(15, 30, 64, .2), 0 8px 18px -12px rgba(15, 30, 64, .6); transition: scale .12s var(--courbe), box-shadow .2s; }
.res-ligne__bouton .icone { width: 15px; height: 15px; transition: transform .2s var(--courbe); }
.res-ligne:hover .res-ligne__bouton { box-shadow: 0 1px 2px rgba(15, 30, 64, .24), 0 12px 22px -12px rgba(15, 30, 64, .75); }
.res-ligne:hover .res-ligne__bouton .icone { transform: translateX(3px); }
.res-ligne:active .res-ligne__bouton { scale: .97; }
/* Le bouton n'est qu'un habillage (toute la ligne est le lien, étendu par .res-ligne__lien::after). Pendant l'appui, « scale » lui donne
   son propre plan : il passait DEVANT le lien, et le clic tombait à côté (« Voir la vitrine » ne faisait rien, Hugo, 01/12). Il laisse
   donc passer tous les gestes ; même chose pour les autres habillages de la ligne. */
.res-ligne__bouton, .res-ligne__bouton * { pointer-events: none; }

/* ---------- 5. « Autres options proches » : les cercles élargis ---------- */
.res-autres { margin: clamp(26px, 4vw, 44px) 0 clamp(14px, 2vw, 22px); padding-top: clamp(20px, 3vw, 30px); border-top: 1px solid var(--ligne-forte); }
.res-autres__titre { color: var(--titre); font: 800 clamp(1.28rem, 1.08rem + .9vw, 1.72rem)/1.14 var(--police); letter-spacing: -.028em; text-wrap: balance; }
.res-autres__texte { max-width: 62ch; margin-top: 6px; color: var(--texte); font-size: .95rem; }
.res-autres + .res-groupe { margin-top: 0; }
.res-groupe--elargi .res-groupe__titre { font-size: 1.06rem; letter-spacing: -.012em; }
.res-groupe--elargi .res-groupe__nombre b { font-size: 1.06rem; }
/* la grille d'origine (cartes photo) ne sert plus : au téléphone les autres options restent des lignes */
.res .res-grille { display: block; }
.res .res-grille > .res-case + .res-case { border-top: 1px solid var(--ligne); }

/* ---------- 6. Le panneau « Filtres » du téléphone ---------- */
html:has(dialog.res-tiroir[open]) { overflow: hidden; }
dialog.res-tiroir { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--fond); color: var(--encre); box-shadow: 0 -2px 6px rgba(15, 30, 64, .08), 0 -22px 44px -24px rgba(15, 30, 64, .55); overflow: hidden; }
dialog.res-tiroir[open] { display: flex; flex-direction: column; }
dialog.res-tiroir::backdrop { background: rgba(9, 17, 42, .52); }
.res-tiroir__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px 10px 20px; border-bottom: 1px solid var(--ligne); }
.res-tiroir__titre { color: var(--titre); font: 800 1.16rem/1.2 var(--police); letter-spacing: -.02em; }
.res-tiroir__fermer { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--titre); cursor: pointer; transition: background-color .2s, scale .12s var(--courbe); }
.res-tiroir__fermer:hover { background: var(--fond-2); }
.res-tiroir__fermer:active { scale: .97; }   /* 0,97 comme partout ailleurs (il était à 0,94) */
.res-tiroir__fermer .icone { width: 20px; height: 20px; }
.res-tiroir__corps { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 6px; }
.res-tiroir__corps .res-panneau__titre { display: none; }
.res-tiroir__corps .res-panneau__tete { justify-content: flex-end; min-height: 0; padding-bottom: 6px; }
.res-tiroir__pied { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ligne); background: var(--fond); }
.res-tiroir__voir { width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: linear-gradient(120deg, #0F1E40 0%, #1D2D60 100%); color: #fff; font: 650 1rem var(--police); box-shadow: 0 1px 2px rgba(15, 30, 64, .2), 0 10px 20px -12px rgba(15, 30, 64, .65); cursor: pointer; transition: scale .12s var(--courbe); }
.res-tiroir__voir:active { scale: .97; }

/* ---------- Tablette : la photo s'élargit, le texte de présentation gagne une ligne, le bouton apparaît ---------- */
@media (min-width: 640px) {
  .res-ligne { grid-template-columns: clamp(200px, 32%, 320px) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 28px); padding-block: 20px; }
  .res-ligne__photo { aspect-ratio: 3 / 2; border-radius: 14px; }
  .res-ligne__lettre { font-size: 3rem; }
  .res-ligne__corps { gap: 7px; padding-block: 2px; }
  .res-ligne__nom { font-size: clamp(1.22rem, 1.05rem + .5vw, 1.46rem); }
  .res-ligne__meta { font-size: .95rem; }
  .res-ligne__texte { max-width: 64ch; font-size: .95rem; -webkit-line-clamp: 3; }
  .res-ligne__bas { padding-top: 8px; }
  .res-ligne__faits { font-size: .88rem; }
  .res-ligne__bouton { display: inline-flex; margin-left: auto; }
  /* les autres options : des cartes compactes, deux par ligne */
  .res .res-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .res .res-grille > .res-case + .res-case { border-top: 0; }
  .res-grille .res-ligne { display: flex; flex-direction: column; gap: 0; height: 100%; margin: 0; padding: 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--ligne), 0 1px 2px rgba(15, 30, 64, .04), 0 12px 24px -20px rgba(15, 30, 64, .4); transition: box-shadow .25s, transform .3s var(--courbe); }
  .res-grille .res-ligne:hover { background: #fff; box-shadow: 0 0 0 1px var(--ligne-forte), 0 2px 4px rgba(15, 30, 64, .05), 0 18px 30px -20px rgba(15, 30, 64, .5); transform: translateY(-2px); }
  /* la photo garde sa hauteur : sans « flex: none », le texte en dessous l'écrasait à zéro */
  .res-grille .res-ligne__photo { flex: none; width: 100%; border-radius: 0; }
  .res-grille .res-ligne__lettre { font-size: 2.6rem; }
  .res-grille .res-ligne__corps { flex: 1 1 auto; gap: 6px; min-height: 0; padding: 14px 16px 16px; }
  .res-grille .res-ligne__nom { font-size: 1.08rem; }
  .res-grille .res-ligne__meta, .res-grille .res-ligne__faits { font-size: .88rem; }
  .res-grille .res-ligne__texte { display: none; }
  .res-grille .res-ligne__bas { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
  .res-grille .res-ligne__bouton { justify-content: center; margin: 0; background: none; color: var(--titre); box-shadow: inset 0 0 0 1.5px var(--ligne-forte); }
  .res-grille .res-ligne:hover .res-ligne__bouton { box-shadow: inset 0 0 0 1.5px var(--nuit); }
}

/* ---------- Ordinateur : la colonne de filtres à gauche, qui reste à l'écran pendant qu'on lit la liste ---------- */
@media (min-width: 1024px) {
  .res-deux { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: clamp(30px, 3.6vw, 52px); align-items: start; }
  /* la colonne suit la page (pas de défilement à l'intérieur d'un cadre : tout se lit d'une traite, comme sur le modèle) */
  .res-colonne, .res-script .res-colonne { display: block; margin: 0; }
  .res-choix { min-height: 38px; font-size: .94rem; }
  .res-outils { min-height: 32px; }
  .res-outils__filtres { display: none; }
  .res .res-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  dialog.res-tiroir[open] { animation: res-monte .26s var(--courbe); }
  dialog.res-tiroir[open]::backdrop { animation: res-voile .2s ease-out; }
  /* Le tiroir repart par où il est venu (skills d'Emil Kowalski, 30/11) : il montait du bas en glissant, puis disparaissait d'un coup.
     Là où le navigateur sait garder une fenêtre à l'écran le temps de sa sortie (overlay), l'entrée et la sortie passent en transitions :
     260 ms pour monter, 200 ms pour redescendre, et un tiroir rouvert en pleine sortie repart d'où il est. Ailleurs : comme avant.
     Le script garde le formulaire dans le tiroir jusqu'à la fin de la sortie (site/js/deux-sites-resultats.js). */
  @supports (overlay: auto) {
    dialog.res-tiroir[open], dialog.res-tiroir[open]::backdrop { animation: none; }
    dialog.res-tiroir { translate: 0 100%; transition: translate .2s var(--courbe), overlay .2s allow-discrete, display .2s allow-discrete; }
    dialog.res-tiroir[open] { translate: 0 0; transition-duration: .26s; }
    dialog.res-tiroir::backdrop { opacity: 0; transition: opacity .2s ease-out, overlay .2s allow-discrete, display .2s allow-discrete; }
    dialog.res-tiroir[open]::backdrop { opacity: 1; }
    @starting-style {
      dialog.res-tiroir[open] { translate: 0 100%; }
      dialog.res-tiroir[open]::backdrop { opacity: 0; }
    }
  }
}
@keyframes res-monte { from { transform: translateY(100%); } }
@keyframes res-voile { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .res-ligne, .res-ligne__photo img, .res-ligne__bouton, .res-ligne__bouton .icone, .res-volet__titre .icone, .res-volet__lien .icone, .res-choix__case, .res-outils__filtres, .res-tiroir__fermer, .res-tiroir__voir { transition: none; }
  .res-ligne:hover .res-ligne__photo img, .res-grille .res-ligne:hover { transform: none; }
  .res-ligne:active .res-ligne__bouton, .res-outils__filtres:active, .res-tiroir__voir:active, .res-tiroir__fermer:active { scale: none; }
}

/* ================================================================================================================================
   PREMIER_EN_AVANT_2911 : LE PREMIER RÉSULTAT, mis en avant (demande de Hugo du 29/11/2026 : « donner une impression de choix »).
   Photo plus grande, cadre clair bordé d'un filet d'or, bouton doré. Les lignes suivantes prennent un bouton au contour, plus discret.
   ================================================================================================================================ */
.res-ligne__bouton { background: #fff; color: var(--titre); box-shadow: inset 0 0 0 1.5px var(--ligne-forte); }
.res-ligne:hover .res-ligne__bouton { box-shadow: inset 0 0 0 1.5px var(--nuit); }
.res-ligne__une { align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--accent-teinte); color: #523D12; font: 700 .7rem/1.25 var(--police); letter-spacing: .07em; text-transform: uppercase; }
.res-ligne__une[hidden] { display: none; }
.res-case--une { margin-bottom: 8px; }
.res-liste > .res-case--une + .res-case { border-top: 0; }
.res-case--une .res-ligne, .res-case--une .res-ligne:hover { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-inline: 0; padding: 12px 12px 16px; border-radius: 18px; background: #fff; box-shadow: inset 0 2px 0 var(--or), 0 0 0 1px var(--bande-bord), 0 1px 2px rgba(15, 30, 64, .05), 0 16px 32px -24px rgba(15, 30, 64, .5); }
.res-case--une .res-ligne__lien::after { border-radius: 18px; }
.res-case--une .res-ligne__photo { aspect-ratio: 2 / 1; border-radius: 12px; }   /* au téléphone : photo large mais basse, le bouton reste sur le premier écran */
.res-case--une .res-ligne__lettre { font-size: 3.4rem; }
.res-case--une .res-ligne__corps { gap: 7px; padding-inline: 4px; }
.res-case--une .res-ligne__nom { font-size: 1.3rem; }
.res-case--une .res-ligne__texte { -webkit-line-clamp: 2; }
.res-case--une .res-ligne__bas { padding-top: 8px; }
.res-case--une .res-ligne__bouton, .res-case--une .res-ligne:hover .res-ligne__bouton { display: inline-flex; justify-content: center; width: 100%; min-height: 50px; background: var(--bouton); color: var(--bouton-texte); font-size: 1rem; box-shadow: inset 0 0 0 1px var(--bouton-bord), inset 0 1px 0 rgba(255, 255, 255, .42), 0 1px 2px rgba(120, 88, 28, .25), 0 12px 22px -14px var(--bouton-lueur); }
@media (min-width: 640px) {
  .res-case--une { margin-bottom: 12px; }
  .res-case--une .res-ligne, .res-case--une .res-ligne:hover { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 34px); padding: 16px; }
  .res-case--une .res-ligne__photo { aspect-ratio: 4 / 3; border-radius: 13px; }
  .res-case--une .res-ligne__corps { gap: 9px; padding: 6px 6px 4px 0; }
  .res-case--une .res-ligne__nom { font-size: clamp(1.5rem, 1.18rem + .95vw, 1.92rem); line-height: 1.12; }
  .res-case--une .res-ligne__meta { font-size: 1rem; }
  .res-case--une .res-ligne__texte { font-size: 1rem; -webkit-line-clamp: 4; }
  .res-case--une .res-ligne__bouton, .res-case--une .res-ligne:hover .res-ligne__bouton { width: auto; margin-left: auto; padding: 0 26px; }
}

/* La date demandée dans la barre de recherche (01/12/2026) : rappelée sous le titre ; elle ne filtre pas. */
.res-date { margin-top: 6px; padding-left: 12px; border-left: 3px solid var(--or, #C9A24B); color: var(--titre); font-size: .95rem; }

/* DISPONIBILITES_0112 — ce que l'agenda du prestataire dit de la date demandée (indicatif : le prestataire confirme). Un point devant :
   gris quand aucune réservation n'est connue, brun doré quand le jour est marqué comme réservé. Aucun vert, aucun « libre ». */
.res-ligne__dispo { display: inline-flex; align-items: center; gap: 6px; }
.res-ligne__dispo::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ligne-forte, #D3CBB9); }
.res-ligne__dispo--pris { color: var(--titre); }
.res-ligne__dispo--pris::before { background: var(--or-brun, #977534); }

/* CLASSEMENT_0212 : le lien vers les critères de classement, sous le haut de la liste */
.res-classement, .dep-classement { margin-top: 6px; font-size: .9rem; }
.res-classement a, .dep-classement a { color: var(--titre); text-decoration: underline; text-underline-offset: 3px; }
.dep-classement { margin-top: 14px; }
