@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/*
  Direction artistique — Pharmacie de la Porte de Versailles
  ------------------------------------------------------------
  Palette (révisée : vert clair, plus frais qu'un vert forêt) :
    --ink         #16261E  texte principal
    --paper       #F3F5EF  fond, blanc cassé à peine vert
    --green-mid   #2E9962  vert principal pour les liens, bordures et icônes
    --green-action #1F7A4D vert foncé pour le texte blanc des boutons et badges
    --green-dark  #1F7A4D  vert pour les titres (contraste texte suffisant)
    --green-vivid #6FE3A4  vert clair vif (accents, icônes, points de statut)
    --green-pale  #EAF7EE  fond vert très clair (section contact)
    --amber       #C07A34  accent chaleureux
    --line        #DCE3D6  hairlines / séparateurs

  Typo : Fraunces (titres) + IBM Plex Sans (corps) + IBM Plex Mono (horaires/ticket)
*/

:root {
  --ink: #16261E;
  --ink-soft: #445248;
  --paper: #F3F5EF;
  --paper-raised: #FFFFFF;
  --green-mid: #2E9962;
  --green-dark: #1F7A4D;
  --green-action: #1F7A4D;
  --green-action-hover: #155F3B;
  --green-vivid: #6FE3A4;
  --green-pale: #EAF7EE;
  --amber: #C07A34;
  --amber-dark: #9C5F26;
  --line: #DCE3D6;
  --shadow: 0 12px 30px -14px rgba(22, 38, 30, 0.25);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); color: var(--green-dark); margin: 0 0 0.5em; line-height: 1.1; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--green-dark);
  color: #fff; padding: 12px 20px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.78rem; color: var(--amber-dark); font-weight: 500; margin-bottom: 0.9em;
}
.section-lead { max-width: 60ch; color: var(--ink-soft); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, iframe:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
}

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--green-action); color: #fff; }
.btn-primary:hover { background: var(--green-action-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-mid); background: var(--paper-raised); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(243, 245, 239, 0.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--ink); }
.brand-cross { width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: var(--green-mid); stroke-width: 2.6; stroke-linecap: round; }
.brand-text { display: flex; min-width: 0; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--green-dark); }
.brand-sub { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--ink-soft); }

.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.main-nav a:hover { color: var(--green-mid); }

.header-actions { display: flex; flex-shrink: 0; align-items: center; gap: 14px; }
.status-chip {
  display: none; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 0.75rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-chip.is-open { color: var(--green-dark); border-color: var(--green-vivid); }
.status-chip.is-open .status-dot { background: var(--green-vivid); box-shadow: 0 0 0 3px rgba(111,227,164,0.35); animation: pulse 2.4s ease-in-out infinite; }
.status-chip.is-closed { color: var(--amber-dark); border-color: var(--amber); }
.status-chip.is-closed .status-dot { background: var(--amber); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

@media (min-width: 900px) { .status-chip { display: inline-flex; } }

/* ── Menu mobile ── */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px;
  width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav a { padding: 14px 24px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav[hidden] { display: none; }

/* ── Hero ── */
.hero { padding: 72px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.hero-lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ── Ticket signature ── */
.ticket {
  position: relative; background: var(--paper-raised); border-radius: var(--radius);
  padding: 28px 26px 24px; box-shadow: var(--shadow); border: 1px solid var(--line);
  font-family: var(--font-mono);
}
.ticket-notch { position: absolute; left: 50%; transform: translateX(-50%); width: 26px; height: 13px; background: var(--paper); border-radius: 0 0 26px 26px; }
.ticket-notch-top { top: -1px; }
.ticket-notch-bottom { bottom: -1px; border-radius: 26px 26px 0 0; }
.ticket-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; color: var(--ink-soft); margin-bottom: 10px; }
.ticket-status { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 500; margin-bottom: 6px; }
.ticket-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.ticket-status.is-open { color: var(--green-dark); }
.ticket-status.is-open .ticket-dot { background: var(--green-vivid); box-shadow: 0 0 0 4px rgba(111,227,164,0.3); animation: pulse 2.4s ease-in-out infinite; }
.ticket-status.is-closed { color: var(--amber-dark); }
.ticket-status.is-closed .ticket-dot { background: var(--amber); }
.ticket-detail { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 16px; }
.ticket-rule { border: none; border-top: 1px dashed var(--line); margin: 0 0 16px; }
.ticket-info { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.ticket-info div { display: flex; gap: 12px; align-items: flex-start; }
.ticket-info dt { margin: 0; }
.ticket-info dd { margin: 0; font-size: 0.85rem; }
.ticket-info svg { width: 18px; height: 18px; fill: none; stroke: var(--green-mid); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ticket-compact { max-width: 340px; }
.ticket-compact .btn { margin-top: 14px; }

/* ── Services ── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-top: 36px; }
.service-card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { width: 26px; height: 26px; fill: none; stroke: var(--green-mid); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.service-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.team-note { margin-top: 32px; color: var(--ink-soft); font-style: italic; border-left: 3px solid var(--green-vivid); padding-left: 16px; }

/* ── Horaires ── */
.horaires { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.horaires-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-family: var(--font-mono); font-size: 0.95rem; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table th, .hours-table td { text-align: left; padding: 12px 4px; font-weight: 400; }
.hours-table tr.is-today { color: var(--green-dark); font-weight: 600; }
.today-tag { font-family: var(--font-body); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--green-action); color: #fff; padding: 2px 8px; border-radius: 999px; margin-left: 8px; font-weight: 600; }
.hours-note { margin-top: 18px; font-size: 0.85rem; color: var(--ink-soft); }

/* ── Quartier (Paris Expo / Tour Triangle) ── */
.quartier { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quartier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin-top: 32px; }
.quartier-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.quartier-card .service-icon { stroke: var(--amber); }
.quartier-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ── Galerie ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-top: 32px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Accès ── */
.acces-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.acces-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.acces-list li { display: flex; min-width: 0; align-items: center; gap: 12px; font-size: 1rem; }
.acces-list li > span { min-width: 0; overflow-wrap: anywhere; }
.acces-list svg { width: 20px; height: 20px; fill: none; stroke: var(--green-mid); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ── Contact (fond vert clair, plus le vert forêt sombre d'avant) ── */
.contact { background: var(--green-pale); border-top: 1px solid var(--line); }
.contact .eyebrow { color: var(--amber-dark); }
.contact h2 { color: var(--green-dark); }
.contact .section-lead { color: var(--ink-soft); }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  font-family: var(--font-body); font-size: 0.95rem; padding: 11px 14px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #9AA79E; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--green-mid); }
.form-honeypot { position: absolute; left: -9999px; }
.form-feedback { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 0.9rem; }
.form-feedback-ok { background: rgba(46,153,98,0.12); border: 1px solid var(--green-mid); color: var(--green-dark); }
.form-feedback-error { background: rgba(192,58,34,0.1); border: 1px solid #C03A22; color: #8C2C19; }
.contact .btn-primary { background: var(--green-action); }
.contact .btn-primary:hover { background: var(--green-action-hover); }

/* ── Footer ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.8); padding: 56px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .brand-cross { stroke: var(--green-vivid); }
.footer-name { font-family: var(--font-display); color: #fff; font-weight: 600; margin: 0; }
.footer-addr { font-size: 0.85rem; margin: 4px 0 0; color: rgba(255,255,255,0.6); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.footer-nav a, .footer-contact a, .footer-cookie-settings { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover, .footer-contact a:hover, .footer-cookie-settings:hover { color: #fff; }
.footer-cookie-settings { padding: 0; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; margin-top: 4px; }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-social svg .social-icon-dot { fill: currentColor; stroke: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ── Consentement à la mesure d'audience ── */
.cookie-banner { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(22,38,30,0.78); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { display: flex; flex-direction: column; justify-content: center; gap: 32px; width: min(100%, 760px); min-height: 360px; padding: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-raised); box-shadow: 0 24px 64px rgba(22,38,30,0.35); }
.cookie-banner h2 { margin-bottom: 14px; font-size: 2rem; }
.cookie-banner p { max-width: 64ch; margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.cookie-actions { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cookie-choice { min-height: 58px; justify-content: center; border-radius: 6px; font-size: 1.05rem; }
.cookie-choice-denied { border-color: var(--green-dark); background: var(--paper-raised); color: var(--green-dark); }
.cookie-choice-denied:hover { background: var(--green-pale); }
.cookie-choice-granted { border-color: var(--green-action); background: var(--green-action); color: #fff; }
.cookie-choice-granted:hover { border-color: var(--green-action-hover); background: var(--green-action-hover); }

/* ── Pages légales ── */
.legal h2 { margin-top: 1.6em; font-size: 1.2rem; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-inner, .horaires-inner, .acces-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-inner > *, .horaires-inner > *, .acces-inner > *, .contact-inner > * { min-width: 0; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .section { padding: 56px 0; }
  .header-inner { gap: 8px; padding: 10px 16px; }
  .brand { gap: 8px; }
  .brand-cross { width: 26px; height: 26px; }
  .brand-name { font-size: 0.92rem; overflow-wrap: anywhere; }
  .brand-sub { display: none; }
  .header-actions { gap: 8px; }
  .ticket { padding-inline: 20px; }
  .ticket-status { font-size: 1.1rem; }
  .hours-table { font-size: 0.85rem; }
  .today-tag { display: block; width: fit-content; margin: 4px 0 0; }
  .header-actions .btn span { display: none; }
  .footer-contact { align-items: flex-start; }
  .footer-social { justify-content: flex-start; }
  .cookie-banner { padding: 16px; }
  .cookie-banner-inner { gap: 24px; min-height: min(520px, calc(100dvh - 32px)); padding: 28px 22px; }
  .cookie-banner h2 { font-size: 1.65rem; }
  .cookie-banner p { font-size: 1rem; }
  .cookie-choice { min-height: 56px; }
}
