/* STYLE-01 (Flo, 07.11.2026) — la fiche d'un institut dans le style de la maquette Kimi : lin, filets fins, bordeaux, rose profond, or.
   Chargée seulement sur les fiches (pages/institut.php), après annuaire.css. Remplace la feuille de FICHE-10. */

.page-fiche { --filet: rgb(36 20 25 / .14); }
html { scroll-padding-top: 90px; }

/* ---------- mosaïque du haut ---------- */
.page-fiche .galerie-mosaique { gap: 10px; border-radius: 0; }
@media (min-width: 720px) { .page-fiche .galerie-mosaique { overflow: visible; } }
.page-fiche .galerie-mosaique button { border-radius: 12px; overflow: hidden; }
@media (min-width: 720px) {
  .galerie-mosaique { grid-template-rows: 190px 190px; }
  .galerie-mosaique.n1 { grid-template-rows: 400px; }
  .galerie-mosaique.n9 { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; grid-auto-rows: 150px; }
  .galerie-mosaique.n9 .g0 { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1080px) { .galerie-mosaique { grid-template-rows: 214px 214px; } .galerie-mosaique.n1 { grid-template-rows: 440px; } .galerie-mosaique.n9 { grid-template-rows: none; grid-auto-rows: 160px; } }
@media (max-width: 719px) { .page-fiche .galerie-mosaique { gap: 8px; } .page-fiche .galerie-mosaique button { flex-basis: 86%; border-radius: 12px; } .page-fiche .galerie { margin: 0; } }
.g-plus { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; background: rgb(36 20 25 / .55); color: #fbf8f2; font-weight: 600; font-size: 1rem; text-align: center; padding: 10px; }
.g-plus small { font-size: .78rem; font-weight: 500; opacity: .85; }
@media (max-width: 719px) { .g-plus { display: none; } }
.page-fiche .galerie-tout { background: var(--carte); color: var(--encre); }

/* ---------- titre ---------- */
.page-fiche .fiche-tete h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 500; }
.fg-h1-sous { display: block; margin-top: 10px; font: 400 clamp(1.05rem, 1.6vw, 1.2rem)/1.3 var(--titre); color: var(--muet); letter-spacing: 0; }
.page-fiche .fiche-accroche { font-size: 1.12rem; color: var(--encre-2); max-width: 58ch; }
.page-fiche .fiche-meta { gap: 8px 18px; font-size: .94rem; }
.page-fiche .etat-ouvert { color: #b3402a; font-weight: 600; }
.page-fiche .etat-ouvert::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #b3402a; }
.page-fiche .etat-ouvert.oui { color: var(--vert); }
.page-fiche .etat-ouvert.oui::before { background: var(--vert); }
.fm-note { display: inline-flex; align-items: center; gap: 7px; color: var(--encre); text-decoration: none; }
.fm-note b { font-weight: 700; }
.fm-note small { color: var(--muet); font-size: .86rem; }
.fm-note a { color: var(--prune); font-size: .86rem; }
.page-fiche .etoiles { --etoile: var(--or); }
.fm-mention { margin: -6px 0 14px; font-size: .78rem; color: var(--muet); }
.page-fiche .chips li { background: transparent; border-color: var(--filet); font-weight: 500; padding: 8px 14px; }
.page-fiche .chips .ic { color: var(--prune); }

/* ---------- sections : titre souligné d'un trait d'encre ---------- */
.page-fiche .bloc { border-top: 0; padding-top: 0; margin-top: 46px; }
.page-fiche .bloc > h2, .fg-tete-sec { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; padding-bottom: 12px; border-bottom: 2px solid var(--encre); margin-bottom: 6px; }
.fg-tete-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.fg-tete-sec h2 { font-size: inherit; font-weight: 500; }
.fg-kicker { font: 600 .74rem/1.2 var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--muet); }

/* ---------- soins : lignes fines, prix en serif, barre de recherche qui reste visible ---------- */
.page-fiche .soins-outils { position: sticky; top: 64px; z-index: 25; background: var(--creme); padding: 12px 0; margin: 0 0 4px; border-bottom: 1px solid var(--filet); }
/* FICHE-11 (Flo, 07.11.2026) : sur téléphone, la barre ne colle plus (en-tête + barre + « Appeler » mangeaient l'écran) et les prix se lisent d'un coup d'œil */
@media (max-width: 719px) {
  .page-fiche .soins-outils { position: static; padding: 10px 0 12px; }
  .page-fiche .soin { padding: 16px 2px; gap: 12px; }
  .page-fiche .soin-nom { font-size: 1.02rem; line-height: 1.4; font-weight: 600; color: var(--encre); }
  .page-fiche .soin-meta { font-size: .86rem; }
  .page-fiche .soin-prix { font: 600 1.38rem/1.15 var(--titre); color: var(--encre); }
  .page-fiche .soin-prix s { font: 500 .86rem/1.2 var(--texte); }
}
.page-fiche .soin-txt, .page-fiche .soin-nom { overflow-wrap: anywhere; }
.page-fiche .soins-chercher { background: var(--carte); border-color: var(--filet); }
.page-fiche .soins-cats button { background: transparent; border-color: var(--filet); font-weight: 500; min-height: 40px; }
.page-fiche .soins-cats button.on { background: var(--encre); border-color: var(--encre); color: var(--creme); }
.page-fiche .groupe-soins h3 { font: 600 .74rem/1 var(--texte); letter-spacing: .16em; text-transform: uppercase; color: var(--muet); margin: 24px 0 4px; }
.page-fiche ul.soins { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.page-fiche .soin { padding: 14px 4px; border-bottom: 1px solid var(--filet); background: transparent; }
.page-fiche .soin:hover { background: rgb(184 168 144 / .12); }
.page-fiche .soin-nom { font-weight: 600; }
.page-fiche .soin-prix { font: 500 1.22rem/1.2 var(--titre); }
.fg-sig { display: inline-block; margin-left: 6px; vertical-align: 2px; font: 600 .66rem/1 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: var(--prune); border: 1px solid var(--prune); border-radius: 999px; padding: 4px 9px; }

/* ---------- présentation : bloc éditorial bordeaux ---------- */
.fg-edito { margin-top: 54px; background: var(--bordeaux); color: var(--creme); border-radius: 20px; padding: clamp(26px, 5vw, 60px); }
.fg-edito .fg-kicker { color: rgb(245 240 232 / .55); }
.fg-edito h2 { margin-top: 10px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 500; color: #fbf8f2; max-width: 24ch; }
.fg-edito-chapo { margin: 16px 0 0; font-size: 1.05rem; line-height: 1.75; color: rgb(245 240 232 / .86); max-width: 70ch; }
.fg-edito-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(26px, 5vw, 64px); margin-top: 30px; padding-top: 26px; border-top: 1px solid rgb(245 240 232 / .2); }
@media (max-width: 900px) { .fg-edito-grille { grid-template-columns: 1fr; } }
.fg-edito-item h3 { font-size: 1.22rem; font-weight: 500; color: #fbf8f2; margin: 0 0 10px; }
.fg-edito-item p { margin: 0 0 .8em; color: rgb(245 240 232 / .74); font-size: .98rem; line-height: 1.72; }

/* ---------- questions fréquentes ---------- */
.fg-faq details { border-bottom: 1px solid var(--filet); }
.fg-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; cursor: pointer; font-weight: 600; font-size: 1.02rem; min-height: 44px; }
.fg-faq summary::-webkit-details-marker { display: none; }
.fg-faq summary:hover { color: var(--prune); }
.fg-plus { flex: none; position: relative; width: 28px; height: 28px; border: 1px solid var(--filet); border-radius: 50%; transition: transform .2s, background .2s; }
.fg-plus::before, .fg-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--encre); transform: translate(-50%, -50%); }
.fg-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.fg-faq details[open] .fg-plus { transform: rotate(45deg); background: var(--sable); }
.fg-faq details p { margin: 0; padding: 0 44px 18px 4px; color: var(--encre-2); line-height: 1.7; max-width: 70ch; }

/* ---------- horaires et accès ---------- */
.page-fiche .horaires th, .page-fiche .horaires td { border-bottom: 1px solid var(--filet); padding: 11px 4px; font-weight: 400; }
.page-fiche .horaires td { text-align: right; font-weight: 500; }
.page-fiche .horaires tr.auj th, .page-fiche .horaires tr.auj td { color: var(--prune); font-weight: 700; background: transparent; }
.page-fiche .horaires tr.auj th::after { content: "· aujourd'hui"; margin-left: 8px; font: 600 .66rem var(--texte); letter-spacing: .08em; text-transform: uppercase; }
.page-fiche .bon-a-savoir { background: transparent; border: 0; padding: 0; margin-top: 18px; }
.page-fiche .bon-a-savoir li { border-bottom: 1px solid var(--filet); padding: 9px 4px; }
.page-fiche .itineraires .bouton { background: transparent; border-color: var(--filet); color: var(--encre); }

/* ---------- à proximité, comparer ---------- */
.page-fiche .proche { background: transparent; border: 0; border-bottom: 1px solid var(--filet); border-radius: 0; box-shadow: none; padding: 12px 4px; }
.page-fiche .liens-nuage a { background: transparent; border: 1px solid var(--filet); }
.page-fiche .liens-nuage a:hover { border-color: var(--prune); color: var(--prune); }

/* ---------- comment est faite cette fiche (replié) ---------- */
.fg-legal-bloc { margin-top: 46px; display: grid; gap: 12px; }
.fg-legal { border: 1px solid var(--filet); border-radius: 14px; background: var(--carte); }
.fg-legal summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 600; min-height: 44px; }
.fg-legal summary::-webkit-details-marker { display: none; }
.fg-legal summary .ic { transition: transform .2s; color: var(--muet); }
.fg-legal[open] summary .ic { transform: rotate(180deg); }
.fg-legal-txt { padding: 0 20px 16px; font-size: .9rem; color: var(--encre-2); line-height: 1.7; }
.fg-legal-txt p { margin: 0 0 8px; }

/* ---------- carte de contact (colonne de droite) ---------- */
.page-fiche .resa { top: 80px; gap: 10px; }
.fc { padding: 0; overflow: hidden; background: var(--carte); border: 1px solid var(--filet); border-radius: 16px; box-shadow: none; }
.fc-tete { padding: 22px 22px 16px; border-bottom: 1px solid var(--filet); }
.fc-prix { margin: 0; font: 500 1.9rem/1.1 var(--titre); }
.fc-prix small { font: 500 .8rem var(--texte); color: var(--muet); }
.fc-prix-txt { font-size: 1.2rem; }
.fc-des { margin: 4px 0 0; font-size: .84rem; color: var(--muet); }
.fc-note { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--encre-2); }
.fc-actions { padding: 16px 22px; display: grid; gap: 10px; }
.fc-actions .bouton { width: 100%; min-height: 48px; }
.fc-trait { background: transparent; border: 1px solid var(--filet); color: var(--encre); box-shadow: none; }
.fc-trait:hover { background: var(--sable); color: var(--encre); }
.fc-auj { margin: 0; padding: 13px 22px; border-top: 1px solid var(--filet); display: flex; justify-content: space-between; font-size: .9rem; color: var(--muet); }
.fc-auj b { color: var(--encre); font-weight: 600; }
.fc-liens.resa-liens { border: 0; border-top: 1px solid var(--filet); border-radius: 0; background: transparent; padding: 6px 22px 14px; gap: 0; }
.fc-liens a, .fc-liens button, .fc-liens span { border-bottom: 1px solid var(--filet); padding: 11px 0; font-weight: 500; font-size: .92rem; }
.fc-liens > :last-child { border-bottom: 0; }
.fc-liens .ic { color: var(--muet); }
.fc-mention { margin: 0; padding: 4px 4px 0; font-size: .78rem; line-height: 1.5; color: var(--muet); }
.fg-des-nom { display: block; margin-top: 2px; font-size: .84rem; color: var(--muet); }

/* ---------- barre du bas (téléphone) ---------- */
.page-fiche .barre-resa { background: var(--creme); border-top: 1px solid var(--filet); }

/* ---------- photos en grand (6 à 8 photos) et vidéos ---------- */
.fg-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; margin-top: 14px; }
@media (min-width: 720px) { .fg-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fg-ph { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.fg-ph button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--sable); cursor: zoom-in; aspect-ratio: 4 / 3; }
.fg-ph.haute { grid-row: span 2; }
.fg-ph.haute button { aspect-ratio: auto; flex: 1 1 auto; min-height: 100%; }
.fg-ph:first-child { grid-column: span 2; }
.fg-ph:first-child button { aspect-ratio: 16 / 9; }
.fg-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.fg-ph button:hover img { transform: scale(1.04); }
.fg-ph figcaption { font-size: .84rem; color: var(--encre-2); line-height: 1.35; }
.fg-ia { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgb(30 20 40 / .72); color: #fff; font-size: .74rem; font-weight: 600; pointer-events: none; }
.fg-videos { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 720px) { .fg-videos.n2 { grid-template-columns: 1fr 1fr; } .fg-videos.n2 .vf-play { width: 60px; height: 60px; } }
.page-fiche .video-facade { border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .fg-ph img, .fg-plus, .fg-legal summary .ic { transition: none; } }
/* une seule photo : une seule rangée (la 1re tuile ne doit pas en ouvrir une 2e) */
@media (min-width: 720px) { .galerie-mosaique.n1 .g0 { grid-row: auto; } }
/* mosaïque de 9 : la tuile « + N photos » ouvre déjà la visionneuse, le bouton « Voir les N photos » ferait doublon */
@media (min-width: 720px) { .galerie-mosaique.n9 ~ .galerie-tout { display: none; } }
.page-fiche .soins-cats button { -webkit-tap-highlight-color: transparent; }
