/* Inspiration « L'Officine » : Pharmacie du Canal des Tanneurs, officine imaginaire de Dole.
   Direction : docs/vitrines/pharmacie.md, « l'étiquette et le verre ».
   Deux familles : Besley (Owen Earl, OFL), une Clarendon, la lettre des étiquettes de
   pharmacie, pour les titres ; Albert Sans (Andreas Rasmussen, OFL) pour l'information, corps
   de 18 px, chiffres tabulaires dans les horaires et les numéros. Fond froid de porcelaine,
   bleu cobalt des flacons pour la maison, ambre rare pour l'état du moment. Le vert n'existe
   que dans la croix de l'en-tête. L'étiquette est le motif : un cadre fin doublé d'un filet,
   coins de 2 px. Ni ombre, ni dégradé décoratif, ni pictogramme de gélule. Mise en page en
   requêtes de conteneur (.exemple-cadre) : l'aperçu « téléphone » du cadre AC reste juste. */
@font-face{font-family:'Besley';font-style:normal;font-weight:400 900;font-display:swap;src:url('../polices/besley-latin-wght-normal.woff2') format('woff2')}
@font-face{font-family:'Albert Sans';font-style:normal;font-weight:100 900;font-display:swap;src:url('../polices/albert-sans-latin-wght-normal.woff2') format('woff2')}
.inspi--pharmacie{background:#f3f6f6}
.ph{--ph-porcelaine:#f3f6f6;--ph-faience:#e1e8ea;--ph-filet:#bfc9ce;--ph-encre:#121a2b;--ph-ardoise:#47536a;--ph-cobalt:#1a2e6c;
  --ph-givre:#cfd8e6;--ph-ambre:#8c5212;--ph-croix:#007a3e;
  --marge:clamp(1.125rem,5cqi,3.5rem);--pas:clamp(3.25rem,8cqi,6rem);--rayon:2px;--large:72rem;
  --doux:cubic-bezier(.22,1,.36,1);--titre:'Besley',Rockwell,Georgia,serif;position:relative;
  font-family:'Albert Sans','Segoe UI',system-ui,sans-serif;font-weight:400;font-size:1.125rem;line-height:1.6;
  color:var(--ph-encre);background:var(--ph-porcelaine);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.ph h1,.ph h2{margin:0;font-family:var(--titre);font-weight:700;line-height:1.12;letter-spacing:-.012em;color:var(--ph-cobalt);text-wrap:balance}
.ph h1{font-size:clamp(2rem,5.2cqi,3.25rem)}
.ph h2{font-size:clamp(1.5rem,3.2cqi,2.125rem);line-height:1.18}
.ph h3{margin:0;font-size:1.125rem;font-weight:700;line-height:1.35}
.ph :where(p,figure,dl,dd,address){margin:0;font-style:normal}
.ph :where(ul,ol){list-style:none;margin:0;padding:0}
.ph :where(a){color:var(--ph-cobalt);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
.ph :where(a):hover{text-decoration-thickness:2px}
.ph :focus-visible{outline:3px solid var(--ph-cobalt);outline-offset:3px;border-radius:var(--rayon)}
.ph ::selection{background:var(--ph-cobalt);color:var(--ph-porcelaine)}
.ph img{display:block;width:100%;height:auto;border-radius:var(--rayon);background:var(--ph-faience)}
.ph-cache{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* En-tête : la croix verte, une fois, à côté du nom. Sur un écran étroit, « Menu » mène à
   la liste complète du pied : pas de panneau à ouvrir, rien qui dépende d'un script. */
.ph-entete{display:flex;align-items:center;justify-content:space-between;gap:.75rem 2rem;padding:.75rem var(--marge);
  border-bottom:1px solid var(--ph-filet)}
.ph-logo{display:flex;align-items:center;gap:.875rem;min-width:0;min-height:48px;text-decoration:none;color:var(--ph-encre);line-height:1.25}
.ph-croix{flex:none;width:1.75rem;height:1.75rem;background:var(--ph-croix);
  clip-path:polygon(34% 0,66% 0,66% 34%,100% 34%,100% 66%,66% 66%,66% 100%,34% 100%,34% 66%,0 66%,0 34%,34% 34%)}
.ph-logo-texte{display:flex;flex-direction:column;min-width:0}
.ph-logo-nom{font-family:var(--titre);font-weight:700;font-size:1.125rem;letter-spacing:-.005em;color:var(--ph-cobalt)}
.ph-logo-metier{font-size:.9375rem;color:var(--ph-ardoise)}
.ph-nav{display:none}
.ph-nav ul{display:flex;gap:.25rem clamp(.875rem,1.8cqi,1.75rem)}
.ph-nav a{display:inline-flex;align-items:center;min-height:48px;font-size:1rem;font-weight:500;white-space:nowrap;color:var(--ph-encre);text-decoration:none;
  background:linear-gradient(var(--ph-ambre),var(--ph-ambre)) no-repeat 0 calc(100% - 9px)/0 2px;transition:background-size .3s var(--doux)}
.ph-nav a:hover,.ph-nav a[aria-current]{background-size:100% 2px}
.ph-menu-lien{display:inline-flex;flex:none;align-items:center;min-height:48px;padding:0 1.125rem;border:1.5px solid var(--ph-cobalt);
  border-radius:var(--rayon);font-weight:600;text-decoration:none}

/* Ouverture : le titre dans une étiquette. Un cadre cobalt, doublé d'un filet intérieur. */
.ph-tete{display:grid;gap:clamp(1.25rem,3cqi,2rem);max-width:var(--large);margin:0 auto;padding:clamp(1.25rem,3.5cqi,2.75rem) var(--marge) 0;box-sizing:content-box}
.ph-tete-etiquette{position:relative;display:grid;align-content:center;gap:1rem;padding:clamp(1.5rem,4.5cqi,3rem);
  border:1.5px solid var(--ph-cobalt);border-radius:var(--rayon);background:var(--ph-porcelaine)}
.ph-tete-etiquette::before{content:'';position:absolute;inset:5px;border:1px solid var(--ph-filet);border-radius:1px;pointer-events:none}
.ph-tete h1{max-width:18ch}
.ph-chapo{font-size:1.1875rem;line-height:1.5;color:var(--ph-ardoise);max-width:32rem;text-wrap:pretty}
.ph-tete-horaires{max-width:32rem;font-variant-numeric:tabular-nums lining-nums;text-wrap:pretty}
.ph-tete-appel{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;margin-top:.25rem}
.ph-tete-numero{font-weight:700;font-size:1.3125rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.ph-tete-adresse{color:var(--ph-ardoise)}
.ph-tete-image{position:relative;aspect-ratio:3/2;overflow:hidden;border-radius:var(--rayon);background:var(--ph-faience)}
.ph-tete-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;border-radius:0}
.ph--accueil .ph-tete-image img{object-position:62% 50%}
.ph--services .ph-tete-image img{object-position:50% 30%}

/* L'état du moment : écrit par le script, caché sinon. Il ne clignote pas, il ne s'anime pas. */
.ph-etat{justify-self:start;padding:.375rem .75rem;border-radius:var(--rayon);background:var(--ph-faience);color:var(--ph-ambre);
  font-weight:700;font-variant-numeric:tabular-nums lining-nums}
/* Sa place est réservée : la ligne apparaît sans déplacer la page. */
.ph-etat{display:block;width:fit-content;min-height:2.55rem;box-sizing:border-box}
.ph-etat[hidden]{display:block;visibility:hidden}

/* La lumière dans le verre : la toile recouvre la photographie une fois sa première image rendue. */
.ph-verre-toile{position:absolute;inset:0;width:100%;height:100%;display:block}
.ph-verre-commandes{position:absolute;right:.75rem;bottom:.75rem}
.ph-verre-bouton{min-height:44px;padding:0 1rem;border:0;border-radius:var(--rayon);background:var(--ph-porcelaine);color:var(--ph-encre);
  font:600 .9375rem/1 'Albert Sans','Segoe UI',system-ui,sans-serif;cursor:pointer;transition:background-color .25s var(--doux)}
.ph-verre-bouton:hover{background:var(--ph-faience)}

/* Boutons : un rectangle aux coins de 2 px. Cobalt plein, ou cadre cobalt sur clair. */
.ph-bouton{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 1.5rem;border:1.5px solid var(--ph-cobalt);
  border-radius:var(--rayon);background:var(--ph-cobalt);color:var(--ph-porcelaine);font-weight:700;text-decoration:none;white-space:nowrap;
  transition:background-color .25s var(--doux),transform .15s var(--doux)}
.ph-bouton:hover{background:#13224f}
.ph-bouton:active{transform:translateY(1px)}
.ph-bouton--clair{background:var(--ph-porcelaine);color:var(--ph-cobalt)}
.ph-bouton--clair:hover{background:var(--ph-faience)}

/* Corps : une colonne, des blocs espacés. Le titre au-dessus, le contenu dessous. */
.ph-corps{padding-bottom:var(--pas)}
.ph-bloc{max-width:var(--large);margin:var(--pas) auto 0;padding:0 var(--marge);box-sizing:content-box;scroll-margin-top:1.5rem}
.ph-bloc h2{margin-bottom:clamp(1rem,2.6cqi,1.75rem);max-width:24ch}
.ph-bloc-corps>*+*{margin-top:1.125rem}
.ph-texte .ph-bloc-corps>p,.ph-appel .ph-bloc-corps>p,.ph-intro,.ph-note{max-width:40rem;text-wrap:pretty}
.ph-intro{font-size:1.1875rem}
.ph-note{color:var(--ph-ardoise);font-size:1rem}
.ph-lien--suite{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;font-weight:700}
.ph-lien--suite::after{content:'';width:.5rem;height:.5rem;border-top:2px solid currentColor;border-right:2px solid currentColor;
  transform:rotate(45deg);transition:transform .3s var(--doux)}
.ph-lien--suite:hover::after{transform:translateX(.25rem) rotate(45deg)}
.ph-bloc--image{display:grid;gap:1.5rem}
.ph-figure img{aspect-ratio:3/2;object-fit:cover}
.ph-figure--portrait img{aspect-ratio:4/5;object-position:50% 60%}
.ph-figure figcaption{margin-top:.625rem;color:var(--ph-ardoise);font-size:1rem}

/* Les services en étiquettes de flacon : un cadre fin, un filet intérieur, un nom, une ligne. */
.ph-etiquettes-liste{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,13.5rem),1fr))}
.ph-etiquette{position:relative;display:grid;align-content:start;gap:.375rem;height:100%;min-height:7.5rem;padding:1.25rem 1.25rem 1.375rem;box-sizing:border-box;
  border:1px solid var(--ph-cobalt);border-radius:var(--rayon);background:var(--ph-porcelaine);color:var(--ph-encre);text-decoration:none;
  transition:background-color .3s var(--doux)}
.ph-etiquette::before{content:'';position:absolute;inset:4px;border:1px solid var(--ph-filet);border-radius:1px;pointer-events:none;transition:border-color .3s var(--doux)}
.ph-etiquette:hover{background:var(--ph-faience)}
.ph-etiquette:hover::before{border-color:var(--ph-cobalt)}
.ph-etiquette-nom{font-family:var(--titre);font-weight:700;font-size:1.25rem;line-height:1.2;color:var(--ph-cobalt)}
.ph-etiquette-texte{font-size:1rem;line-height:1.45;color:var(--ph-ardoise)}

/* Listes : des entrées séparées par un filet au-dessus. Les étapes portent leur numéro. */
.ph-elements{display:grid;gap:1.5rem clamp(1.75rem,4cqi,3rem);grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}
.ph-elements>li{padding-top:.875rem;border-top:1.5px solid var(--ph-cobalt)}
.ph-elements p{margin-top:.375rem;text-wrap:pretty}
.ph-liste--courte .ph-elements{grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.ph-liste--courte .ph-elements>li{border-top:1px solid var(--ph-filet)}
.ph-liste--courte .ph-elements p{color:var(--ph-ardoise);font-size:1rem}
ol.ph-elements{counter-reset:ph-pas}
ol.ph-elements>li{counter-increment:ph-pas}
ol.ph-elements>li::before{content:counter(ph-pas);display:block;margin-bottom:.25rem;font-family:var(--titre);font-weight:700;font-size:1.75rem;line-height:1;color:var(--ph-ambre)}

/* Fiche d'un service : ce qu'il est, puis pour qui, comment, quoi apporter. */
.ph-fiche{padding-top:var(--pas);margin-top:0;border-top:0}
.ph-fiche+.ph-fiche{margin-top:var(--pas);padding-top:clamp(2rem,5cqi,3.25rem);border-top:1px solid var(--ph-filet)}
.ph-fiche:target h2{text-decoration:underline;text-decoration-color:var(--ph-ambre);text-decoration-thickness:3px;text-underline-offset:.2em}
.ph-lignes{display:grid;gap:0}
.ph-lignes>div{display:grid;gap:.125rem 1.5rem;padding:.875rem 0;border-top:1px solid var(--ph-filet)}
.ph-lignes dt{font-weight:700;color:var(--ph-cobalt)}
.ph-lignes dd{max-width:38rem;text-wrap:pretty}

/* Le numéro à appeler. */
.ph-tel{font-family:var(--titre);font-weight:700;font-size:clamp(1.75rem,5.4cqi,2.625rem);line-height:1.1;font-variant-numeric:lining-nums;
  white-space:nowrap;text-decoration-thickness:2px;text-underline-offset:.16em}

/* Horaires. Chiffres tabulaires, une ligne par jour. */
.ph-horaires-grille{display:grid;gap:1.5rem}
.ph-table{width:100%;max-width:34rem;border-collapse:collapse;font-variant-numeric:tabular-nums lining-nums;text-align:left}
.ph-table th,.ph-table td{padding:.75rem 1rem .75rem 0;border-top:1px solid var(--ph-filet);vertical-align:top}
.ph-table tr:last-child>*{border-bottom:1px solid var(--ph-filet)}
.ph-table th{font-weight:700;width:46%}
.ph-horaires-contact{display:grid;align-content:start;gap:.5rem}
.ph-horaires-contact address{color:var(--ph-ardoise)}

/* La garde : deux numéros, deux cadres. */
.ph-garde-liste{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}
.ph-garde-liste>div{display:grid;align-content:start;gap:.5rem;padding:1.25rem clamp(1.125rem,3cqi,1.75rem) 1.5rem;border:1.5px solid var(--ph-cobalt);border-radius:var(--rayon)}
.ph-garde-liste dt{font-weight:700}
.ph-garde-liste dd p{margin-top:.625rem;text-wrap:pretty}

/* L'équipe : un nom, une qualité, quatre lignes. */
.ph-equipe-liste{display:grid;gap:2rem clamp(2rem,5cqi,4rem);grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))}
.ph-equipe-liste>li{padding-top:1rem;border-top:1.5px solid var(--ph-cobalt)}
.ph-equipe-liste h3{font-family:var(--titre);font-size:1.3125rem;color:var(--ph-cobalt)}
.ph-qualite{color:var(--ph-ardoise)}
.ph-equipe-liste dl{margin-top:.75rem;font-size:1rem}
.ph-equipe-liste dl>div{display:grid;gap:0 1rem;padding:.5rem 0;border-top:1px solid var(--ph-filet)}
.ph-equipe-liste dt{color:var(--ph-ardoise)}

/* Aplats : le tiers payant, l'assistant. Une étiquette large sur faïence. */
.ph-texte--sobre,.ph-assistant{max-width:calc(var(--large) - 2 * var(--marge));padding:clamp(1.5rem,4cqi,2.75rem) var(--marge);
  border-radius:var(--rayon);background:var(--ph-faience)}
.ph-assistant-texte{max-width:44rem;font-size:1.1875rem;line-height:1.6;text-wrap:pretty}

/* Le plan : dessiné, sans carte tierce. */
.ph-plan-grille{display:grid;gap:1.5rem}
.ph-plan-cadre{border:1px solid var(--ph-filet);border-radius:var(--rayon);background:var(--ph-faience);overflow:hidden}
.ph-plan-svg{display:block;width:100%;height:auto}
.ph-plan-rue,.ph-plan-eau,.ph-plan-passage{fill:none;stroke-linecap:round;stroke-linejoin:round}
.ph-plan-rue{stroke:var(--ph-porcelaine);stroke-width:4.4}
.ph-plan-eau{stroke:var(--ph-givre);stroke-width:6.5}
.ph-plan-passage{stroke:var(--ph-encre);stroke-width:.7;stroke-dasharray:1.4 1}
.ph-plan-place{fill:var(--ph-filet)}
.ph-plan-officine{fill:var(--ph-cobalt)}
.ph-plan-nom{font-family:'Albert Sans','Segoe UI',system-ui,sans-serif;font-size:2.5px;font-weight:500;fill:var(--ph-encre)}
.ph-plan-nom--officine{font-weight:700;font-size:2.8px;fill:var(--ph-cobalt)}
.ph-plan-adresse{font-weight:700}

/* Liens vers les sources. */
.ph-liens-liste{display:grid;gap:.875rem}
.ph-liens-liste a{font-weight:700}
.ph-liens-liste span{display:block;color:var(--ph-ardoise);font-size:1rem}

/* Pied sur cobalt : l'adresse, la garde et l'urgence, toutes les pages. */
.ph-pied{display:grid;gap:2rem;padding:clamp(2.5rem,6cqi,4rem) var(--marge) 2rem;background:var(--ph-cobalt);color:var(--ph-porcelaine);font-size:1rem}
.ph-pied a{color:var(--ph-porcelaine)}
.ph-pied :focus-visible{outline-color:var(--ph-porcelaine)}
.ph-pied-nom{font-family:var(--titre);font-weight:700;font-size:1.25rem;margin-bottom:.5rem}
.ph-pied-officine>*+*{margin-top:.5rem}
.ph-pied-officine a,.ph-secours a{font-variant-numeric:tabular-nums;white-space:nowrap}
.ph-secours{display:grid;gap:.75rem;align-content:start}
.ph-secours>div{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;max-width:20rem;padding-bottom:.625rem;border-bottom:1px solid #4a5c93}
.ph-secours dt{color:var(--ph-givre)}
.ph-secours a{font-family:var(--titre);font-weight:700;font-size:1.5rem;min-height:44px;display:inline-flex;align-items:center}
.ph-pied-nav h2{margin-bottom:.75rem;font-family:'Albert Sans','Segoe UI',system-ui,sans-serif;font-size:1rem;font-weight:700;letter-spacing:0;color:var(--ph-givre)}
.ph-pied-nav ul{display:grid;gap:0 2rem;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr))}
.ph-pied-nav a{display:inline-flex;align-items:center;min-height:44px}
.ph-pied-fictif{color:var(--ph-givre);font-size:.9375rem;max-width:44rem}

/* Barre basse du téléphone : la garde, ou appeler. */
.ph-barre{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:.5rem var(--marge);
  background:var(--ph-porcelaine);border-top:1px solid var(--ph-filet)}
.ph-barre .ph-bouton{min-height:48px;padding:0 .75rem}

@container exemple (min-width: 44rem){
  .ph-barre{display:none}
  .ph-lignes>div{grid-template-columns:11rem 1fr}
  .ph-equipe-liste dl>div{grid-template-columns:9.5rem 1fr}
  .ph-horaires-grille{grid-template-columns:minmax(0,34rem) 1fr;gap:2rem clamp(2rem,6cqi,5rem);align-items:start}
  .ph-pied{grid-template-columns:1.2fr 1fr}
  .ph-pied-nav,.ph-pied-fictif{grid-column:1/-1}
}
@container exemple (min-width: 60rem){
  .ph-nav{display:block}
  .ph-menu-lien{display:none}
  .ph-tete--image{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:stretch}
  .ph-tete--image .ph-tete-image{aspect-ratio:auto;min-height:26rem}
  .ph-bloc--image{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(2rem,5cqi,4.5rem);align-items:start}
  .ph-bloc--portrait{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
  .ph-fiche:nth-of-type(even).ph-bloc--image .ph-figure{order:-1}
  .ph-plan-grille{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(2rem,5cqi,4rem);align-items:start}
  .ph-pied{grid-template-columns:1.4fr 1fr 1.6fr}
  .ph-pied-nav{grid-column:auto}
}

/* Mouvement : les images apparaissent en fondu, une fois. Le texte ne s'estompe jamais. */
@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    .ph-figure{animation:ph-fondu linear both;animation-timeline:view();animation-range:entry 0% entry 45%}
  }
}
@keyframes ph-fondu{from{opacity:.25}to{opacity:1}}
@media (prefers-reduced-motion: reduce){
  .ph *,.ph *::before,.ph *::after{transition:none!important;animation:none!important}
}
