/* Polyclinique Saint-Guidon — feuille de styles (mobile d'abord)
   Couleurs reprises de l'ancien site : rouge #e31818, brun #40332f. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); }

:root {
  --red: #e31818;
  --red-dark: #b8121a;
  --red-soft: #fdeceb;
  --brown: #40332f;
  --brown-deep: #2c221f;
  --ink: #2f2a26;
  --muted: #6b605a;
  --line: #e8e0db;
  --tint: #f7f3f0;
  --white: #fff;
  --green: #1f7a45;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(44, 34, 31, .06), 0 8px 24px rgba(44, 34, 31, .08);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 16px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); padding-bottom: 64px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--brown-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
ul { padding: 0; margin: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--brown); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 8px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }

/* ---------- Barre d'information ---------- */
.topbar { background: var(--brown-deep); color: #eadfd9; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar p { margin: 0; }
.topbar strong { color: #fff; }
.topbar .ico { color: #ff8a80; }
.topbar-contact { display: none; }
.topbar-urgence { flex: 1; min-width: 0; }
.langues { display: flex; gap: 2px; flex: none; align-items: center; }
.langues a { color: #eadfd9; text-decoration: none; font-weight: 700; font-size: .82rem; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; }
.langues a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.langues a[aria-current] { background: var(--red); color: #fff; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(44, 34, 31, .1); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown-deep); margin-right: auto; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.05rem; white-space: nowrap; }
.brand-name strong { font-weight: 600; color: var(--red-dark); }
.brand-nl { font-size: .78rem; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.header-call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; }
.header-call:hover { background: var(--red-dark); color: #fff; }
.nav-toggle { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--brown); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(44, 34, 31, .1); display: none; }
.nav.is-open { display: block; }
.nav ul { padding: 8px var(--gutter) 16px; }
.nav a { display: block; padding: 12px 4px; font-weight: 600; color: var(--brown-deep); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--red-dark); }
.nav-cta a { margin-top: 12px; border: 0; background: var(--red); color: #fff; border-radius: 999px; text-align: center; }
.nav-cta a:hover { background: var(--red-dark); color: #fff; }

@media (max-width: 380px) {
  .brand-name { font-size: .95rem; }
  .brand-mark { width: 34px; height: 34px; }
  .header-call, .nav-toggle { width: 40px; height: 40px; }
}

/* ---------- Boutons et liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: var(--brown); color: var(--brown-deep); }
.btn-ghost:hover { background: var(--brown); color: #fff; }
.btn-white { background: #fff; color: var(--red-dark); }
.btn-white:hover { background: var(--red-soft); color: var(--red-dark); }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: #ffd2cf; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:last-child { color: var(--muted); }
.eyebrow { font-family: var(--serif); font-style: italic; color: var(--red-dark); margin-bottom: .35em; font-size: 1.05rem; }
.title-line::after { content: ""; display: block; width: 56px; height: 3px; background: var(--red); border-radius: 2px; margin-top: 14px; }
.title-line--center::after { margin-left: auto; margin-right: auto; }
.section-more { margin: 28px 0 0; }
.section-more--center { text-align: center; }
.prose strong { color: var(--brown-deep); }

/* ---------- Accueil : hero ---------- */
.hero { background: linear-gradient(180deg, var(--tint), #fff); padding: 40px 0 48px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 24, 24, .08), transparent 70%); pointer-events: none; }
.hero-inner { display: grid; gap: 32px; align-items: center; position: relative; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px 4px 10px; font-size: .95rem; }
.hero-kicker .ico { color: var(--red); }
.hero h1 span { color: var(--red); display: block; }
.hero-lead { font-size: 1.15rem; color: #4a403b; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.status-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border-top: 5px solid var(--red); }
.status-card h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 8px; }
.status-card h2 .ico { color: var(--red); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.status.is-open { background: #e7f5ec; color: var(--green); }
.status.is-closed { background: var(--tint); color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.is-open .status-dot { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 69, .45); } 100% { box-shadow: 0 0 0 9px rgba(31, 122, 69, 0); } }
.status-hours { margin: 0 0 18px; }
.status-hours div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.status-hours dt { color: var(--muted); }
.status-hours dd { margin: 0; font-weight: 700; color: var(--brown-deep); white-space: nowrap; }
.status-foot { margin: 14px 0 0; font-size: .92rem; color: var(--muted); text-align: center; }

/* ---------- Atouts ---------- */
.facts-wrap { padding: 8px 0 56px; }
.facts { display: grid; gap: 16px; }
.facts { gap: 12px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.facts .fact-icon { grid-row: span 2; }
.facts h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.facts p { font-size: .98rem; }
.facts p { margin: 0; color: var(--muted); }
.fact-icon, .quick-icon, .service-icon, .soin-icon, .note-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red-dark); flex: none; }
.fact-icon .ico, .quick-icon .ico, .service-icon .ico, .soin-icon .ico, .note-icon .ico { width: 26px; height: 26px; }

/* ---------- Services ---------- */
.services { display: grid; gap: 14px; grid-template-columns: 1fr; }
.service { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start; height: 100%; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.service:hover { border-color: #f2b5b2; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.service-icon { grid-row: span 2; }
.service-name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--brown-deep); }
.service-text { color: var(--muted); font-size: .98rem; }

/* ---------- À propos ---------- */
.about-grid { display: grid; gap: 36px; align-items: center; }
.quote { margin: 24px 0 0; padding: 18px 22px; background: #fff; border-left: 4px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--red-dark); }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-photos li:first-child { grid-column: 1 / -1; }
.about-photos img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line); }
.about-photos li:first-child img { aspect-ratio: 16 / 10; }

/* ---------- Galeries (photos cliquables, ouvertes dans la visionneuse) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery a { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
.gallery a::after { content: ""; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(44, 34, 31, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 4h5v5M9 20H4v-5M20 4l-6 6M4 20l6-6'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transition: opacity .2s; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery--teaser span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.25; background: linear-gradient(transparent, rgba(30, 22, 20, .78)); }
.gallery-group { margin-top: 40px; }
.gallery-group h2 { font-size: 1.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips a { padding: 7px 14px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); text-decoration: none; color: var(--brown-deep); font-weight: 600; font-size: .95rem; }
.chips a:hover { border-color: var(--red); color: var(--red-dark); }

/* ---------- Cookies : bandeau, panneau, page vie privée ---------- */
.btn-lien { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-lien:hover { color: var(--red); }
.site-footer .btn-lien { color: #fff; }
.site-footer .btn-lien:hover { color: #ffb4ae; }
.cookie-banner { position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 150; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(30, 22, 20, .28); border-top: 4px solid var(--red); max-height: calc(100vh - 140px); overflow: auto; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { padding: 16px 18px; display: grid; gap: 14px; }
.cookie-banner h2 { font-size: 1.15rem; margin-bottom: .3em; }
.cookie-banner p { margin: 0; font-size: .96rem; color: #4a403b; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-cookie { background: var(--brown); color: #fff; min-height: 44px; padding: 8px 20px; }
.btn-cookie:hover { background: var(--brown-deep); color: #fff; }
.cookie-actions .btn-lien { font-weight: 700; color: var(--brown-deep); padding: 8px 4px; }
.cookie-panel { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--ink); }
.cookie-panel::backdrop { background: rgba(20, 15, 13, .6); }
.cookie-panel form { padding: 22px; }
.cookie-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.cookie-panel-head h2 { margin: 0; font-size: 1.4rem; }
.cookie-panel-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--brown-deep); }
.cookie-panel-close:hover { background: var(--red-soft); color: var(--red-dark); }
.cookie-cat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 12px 0; }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-cat h3 { margin: 0; font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
.cookie-cat p { margin: 6px 0 0; font-size: .95rem; color: var(--muted); }
.cookie-always { font-size: .85rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.cookie-panel-link { font-size: .95rem; }
.cookie-panel .cookie-actions { margin-top: 16px; }
.switch { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 999px; background: #cfc4be; position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.prose--legal { max-width: 860px; }
.prose--legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose--legal h2:first-child { margin-top: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cookies-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 620px; }
.cookies-table th, .cookies-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookies-table th { background: var(--tint); color: var(--brown-deep); }
.cookies-table tr:last-child td { border-bottom: 0; }
.cookie-nom { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; white-space: nowrap; }
@media (max-width: 639px) {
  .table-scroll { border: 0; overflow: visible; }
  .cookies-table { min-width: 0; }
  .cookies-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cookies-table tr { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 6px 0; }
  .cookies-table td { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; border: 0; padding: 5px 12px; }
  .cookies-table td::before { content: attr(data-label); font-family: var(--sans); font-weight: 700; color: var(--muted); font-size: .85rem; white-space: normal; }
  .cookie-nom { white-space: normal; }
}

/* ---------- Page « Informations complémentaires » ---------- */
.legal-apercu { display: inline-block; margin: 8px 0 0; padding: 8px 14px; border-radius: var(--radius-sm); background: #fff4d6; color: #6b4e00; font-weight: 600; font-size: .95rem; }
.legal-cards { display: grid; gap: 16px; margin-bottom: 12px; }
.legal-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; box-shadow: var(--shadow); }
.legal-card h3 { margin: 0; font-size: 1.25rem; }
.legal-titre { margin: 2px 0 12px; color: var(--red-dark); font-weight: 600; }
.legal-list { margin: 0; }
.legal-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 8px 0; border-top: 1px dashed var(--line); }
.legal-row:first-child { border-top: 0; }
.legal-row dt { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.legal-row dd { margin: 0; overflow-wrap: anywhere; }
.legal-row.is-vide dd { color: #9a6b00; font-style: italic; }
.legal-list--etab { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px; }
.legal-autorites { display: grid; gap: 12px; }
.legal-autorites li { border-left: 3px solid var(--red); padding: 4px 0 4px 14px; overflow-wrap: anywhere; }
.legal-role { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 15, 13, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px 16px; }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; height: 100%; justify-content: center; }
.lightbox img { max-width: 100%; max-height: calc(100% - 44px); object-fit: contain; border-radius: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); transition: opacity .2s; }
.lightbox.is-loading img { opacity: .35; }
.lightbox figcaption { color: #f1e9e5; text-align: center; font-size: 1rem; }
.lightbox-count { color: #b8aaa3; margin-left: 8px; font-size: .9rem; }
.lightbox button { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .12); border-radius: 50%; display: grid; place-items: center; font: 400 2rem/1 var(--sans); transition: background .15s; }
.lightbox button:hover { background: var(--red); }
.lightbox-close { top: 10px; right: 10px; width: 44px; height: 44px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 2.2rem; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox.is-single .lightbox-nav { display: none; }
.note-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.note-photos a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.note-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.note-photos a:hover img { transform: scale(1.05); }
.contact-photo { margin: 0; }
.contact-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ---------- Accueil : photo du hero et carte d'état ---------- */
.hero-media { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line); }
.hero-media .status-card { position: relative; margin: -48px 12px 0; }

/* ---------- Encarts ---------- */
.quick-grid { display: grid; gap: 16px; }
.quick { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.quick h2 { font-size: 1.3rem; margin-top: 14px; }
.quick p { color: var(--muted); }
.quick--alert { border-color: #f5c2bf; background: linear-gradient(160deg, #fff, var(--red-soft)); }
.quick--alert .quick-icon { background: var(--red); color: #fff; }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--red); color: #fff; padding: 36px 0; background-image: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); }
.cta-inner { display: grid; gap: 18px; }
.cta-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin: 0; }
.cta-text { margin: 4px 0 0; opacity: .92; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--tint); padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero--alert { background: linear-gradient(160deg, var(--tint) 30%, var(--red-soft)); }
.page-lead { font-size: 1.15rem; color: #4a403b; max-width: 44em; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

.soins-layout { display: grid; gap: 32px; }
.soins-index { display: none; }
.soin { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.soin:first-child { padding-top: 0; }
.soin h2 { font-size: 1.45rem; margin-bottom: .35em; }
.soin p { margin-bottom: .75em; }
.soin-hours { display: flex; gap: 8px; align-items: flex-start; background: var(--tint); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .98rem; margin: 0; }
.soin-hours .ico { color: var(--red-dark); margin-top: 3px; }
.soin-hours--rdv { background: #fff; border: 1px dashed var(--line); color: var(--muted); }
.note { display: grid; grid-template-columns: auto 1fr; gap: 16px; margin-top: 32px; padding: 24px; background: var(--tint); border-radius: var(--radius); }
.note h2 { font-size: 1.3rem; }
.note p { margin: 0; }

.urgence-grid, .contact-grid { display: grid; gap: 32px; align-items: start; }
.hours-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hours-card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.hours-card h2 .ico { color: var(--red); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; color: var(--muted); padding-right: 16px; }
.hours td { font-weight: 700; color: var(--brown-deep); text-align: right; }
.hours tr.is-highlight th, .hours tr.is-highlight td { color: var(--red-dark); }
.hours--services td { font-weight: 600; }
.card-note { font-size: .95rem; color: var(--muted); margin: 14px 0 0; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; color: var(--brown-deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 16px; margin: 0; color: #4a403b; }
.services--compact { margin-top: 8px; }

.info-boxes { display: grid; gap: 16px; }
.info-boxes li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-boxes h2 { font-size: 1.2rem; margin: 12px 0 6px; }
.info-boxes p { margin: 0 0 .4em; }
.info-phone { font-size: 1.5rem; font-weight: 700; }
.info-phone a { text-decoration: none; }
.info-boxes li a { overflow-wrap: anywhere; }
.contact-side { display: grid; gap: 20px; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--tint) repeating-linear-gradient(45deg, transparent 0 14px, rgba(64, 51, 47, .04) 14px 28px); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: inherit; color: var(--brown-deep); }
.map-pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: var(--shadow); }
.map-pin .ico { width: 28px; height: 28px; }
.map-load small { color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brown-deep); color: #d9ccc5; padding: 48px 0 0; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb4ae; }
.footer-grid { display: grid; gap: 32px; }
.footer-name { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin: 0; }
.footer-name span { color: #ff6b61; }
.footer-nl { font-size: .9rem; opacity: .8; }
.footer-title { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { text-decoration: none; }
.footer-copy { margin: 40px auto 0; padding-top: 18px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; opacity: .85; }

/* ---------- Barre d'appel mobile ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(44, 34, 31, .1); padding-bottom: env(safe-area-inset-bottom); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font-weight: 700; text-decoration: none; color: var(--brown-deep); }
.callbar a:first-child { background: var(--red); color: #fff; }

/* ================= Tablette ================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .info-boxes { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr auto; align-items: center; }
  .topbar-contact { display: block; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .cookie-banner { left: 16px; right: 16px; }
  .legal-row { grid-template-columns: 13em 1fr; gap: 16px; }
  .legal-row dt { padding-top: 2px; }
  .legal-card .legal-row { grid-template-columns: 1fr; gap: 2px; }
  .hero-media .status-card { max-width: 420px; margin: -64px 24px 0 auto; }
}

/* ================= Bureau ================= */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .callbar, .header-call, .nav-toggle { display: none; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: 1.2rem; }
  .nav { position: static; display: block; background: none; border: 0; box-shadow: none; }
  .nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .nav a { border: 0; padding: 8px 12px; border-radius: 999px; font-size: 1rem; }
  .nav a:hover { background: var(--tint); color: var(--red-dark); }
  .nav a[aria-current="page"] { background: var(--red-soft); }
  .nav-cta a { margin: 0 0 0 8px; padding: 10px 18px; display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; }
  .nav-cta a:hover { background: var(--red-dark); color: #fff; }
  .section { padding: 80px 0; }
  .hero { padding: 72px 0 80px; }
  .hero-inner { gap: 56px; }
  .facts { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .facts li { display: block; padding: 22px; }
  .facts h3 { margin: 12px 0 6px; font-size: 1.2rem; }
  .services { grid-template-columns: repeat(4, 1fr); }
  .service { grid-template-columns: 1fr; row-gap: 8px; padding: 22px; }
  .service-icon { grid-row: auto; }
  .services--compact { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .page-hero { padding: 56px 0 60px; }
  .soins-layout { grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
  .soins-index { display: block; position: sticky; top: calc(var(--header-h) + 24px); background: var(--tint); border-radius: var(--radius); padding: 18px; }
  .soins-index-title { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
  .soins-index a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--radius-sm); text-decoration: none; color: var(--brown-deep); font-weight: 600; }
  .soins-index a:hover { background: #fff; color: var(--red-dark); }
  .soins-index .ico { color: var(--red-dark); }
  .urgence-grid { grid-template-columns: 380px 1fr; gap: 56px; }
  .urgence-grid .hours-card { position: sticky; top: calc(var(--header-h) + 24px); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .nav a { white-space: nowrap; }
  .gallery--teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr 1.05fr; }
  .hero-inner { align-items: center; grid-template-columns: 1fr 1.1fr; }
  .hero-media .status-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "etat btn" "heures btn"; column-gap: 20px; row-gap: 8px; align-items: center; max-width: none; margin: -56px 20px 0; padding: 16px 20px; }
  .hero-media .status { grid-area: etat; justify-self: start; margin: 0; white-space: nowrap; }
  .hero-media .status-card h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-media .status-hours { grid-area: heures; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; }
  .hero-media .status-hours div { display: block; padding: 0; border: 0; }
  .hero-media .status-hours dt { display: inline; font-size: .92rem; }
  .hero-media .status-hours dt::after { content: " :"; }
  .hero-media .status-hours dd { display: inline; margin-left: 4px; }
  .hero-media .btn-block { grid-area: btn; width: auto; white-space: nowrap; padding: 10px 18px; }
  .hero-media .status-foot { display: none; }
  .lightbox { padding: 64px 80px 24px; }
  .cookie-banner { left: auto; right: 24px; bottom: 24px; width: 520px; }
  .legal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
}

/* Bureau étroit : le menu tient sur une ligne */
@media (min-width: 960px) and (max-width: 1180px) {
  .brand-nl { display: none; }
  .nav a { padding: 8px 8px; font-size: .95rem; }
  .nav-cta a { padding: 9px 14px; }
  .hero-media .status-card { grid-template-columns: 1fr; grid-template-areas: "etat" "heures" "btn"; }
  .hero-media .btn-block { width: 100%; }
}
