/* ==========================================================================
   Maison de Santé du Val d'Ardoux — feuille de style du site public
   Les couleurs principales (--accent, --c2, --ink) sont réglées depuis
   l'admin (Paramètres) et injectées dans <head>.
   ========================================================================== */

:root {
  --accent: #A9500F;          /* boutons d'action */
  --accent-dark: #7E3B0B;
  --c2: #B59D5F;              /* couleur secondaire (surfaces) */
  --c2-text: #7A6430;         /* couleur secondaire lisible (textes, icônes) */
  --c2-tint: #F4EFE3;         /* fonds teintés */
  --ink: #16212E;             /* texte principal, bleu nuit */
  --muted: #4E5966;
  --muted-2: #5A6573;
  --line: #DDE0E4;
  --line-soft: #E2E4E7;
  --soft: #F5F5F3;
  --hero-light: #F3D2B4;
  --radius: 20px;
  --font-title: 'Jost', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 300; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-family: var(--font-title); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--c2-text); }
.label { font-family: var(--font-title); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--c2-text); }
.h2 { font-size: 44px; line-height: 1.12; }
.lead { font-size: 17px; line-height: 1.65; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* Boutons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; gap: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bandeau photo + en-tête -------------------------------------------------- */
.hero { position: relative; min-height: 420px; display: flex; flex-direction: column; color: #fff; background-size: cover; background-color: #2b3440; }
.hero--large { min-height: 780px; }
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; text-decoration: none; }
.brand__disc { width: 72px; height: 72px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(12,18,26,.25); }
.brand__disc img { width: 50px; height: auto; display: block; }
.mainnav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.mainnav a { color: #fff; text-decoration: none; padding: 12px 14px; font-size: 15px; border-radius: 999px; }
.mainnav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.mainnav a.active { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.mainnav a.cta { background: #fff; color: var(--ink); padding: 12px 22px; margin-left: 8px; font-weight: 600; text-decoration: none; }
.mainnav a.cta:hover { background: #F0E6DC; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(12,18,26,.3); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: #fff; display: block; }
.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding-top: 24px; padding-bottom: 64px; }
.hero--large .hero__body { gap: 28px; padding-bottom: 140px; }
.hero__eyebrow { font-family: var(--font-title); font-size: 15px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--hero-light); }
.hero__title { font-size: 60px; font-weight: 300; line-height: 1.05; max-width: 820px; }
.hero--large .hero__title { font-size: 72px; font-weight: 400; }
.hero__lead { font-size: 19px; line-height: 1.6; max-width: 600px; color: #fff; }
.hero--large .hero__lead { font-size: 22px; font-weight: 600; }

/* Barre d'adresse sous le bandeau ----------------------------------------- */
.addressbar { position: relative; margin-top: -80px; }
.addressbar__card { background: #fff; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(12,18,26,.14); padding: 26px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.addressbar__info { display: flex; gap: 16px; align-items: center; color: var(--c2-text); }
.addressbar__info strong { display: block; font-size: 18px; font-weight: 400; color: var(--ink); }

/* Liste des professions ---------------------------------------------------- */
.section { padding-top: 100px; padding-bottom: 100px; }
.split { display: flex; flex-wrap: wrap; gap: 64px; }
.split__aside { flex: 1 1 340px; min-width: 0; }
.split__main { flex: 2 1 600px; min-width: 0; }
.proflist { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.proflist a { display: flex; align-items: center; gap: 20px; padding: 22px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .2s; }
.proflist a:hover { background: var(--soft); }
.proflist__num { font-family: var(--font-title); font-size: 14px; color: var(--c2-text); width: 24px; }
.proflist__txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.proflist__txt strong { font-family: var(--font-title); font-size: 21px; font-weight: 400; }
.proflist__txt span { font-size: 14px; color: var(--muted-2); }
.arr { color: #9AA3AD; transition: transform .2s, color .2s; }
a:hover > .arr, a:hover .arr { transform: translateX(4px); color: var(--ink); }

/* Venir à la MSP ----------------------------------------------------------- */
.access { background: var(--c2-tint); }
.access .wrap { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 96px; padding-bottom: 96px; }
.access__map { flex: 1 1 520px; min-width: 0; min-height: 440px; border-radius: 24px; overflow: hidden; position: relative; background: #E7EAE4; }
.access__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.access__map .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--muted); text-align: center; padding: 24px; }
.access__info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.infolist { border-top: 1px solid var(--line-soft); }
.infolist__item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.infolist__icon { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--c2-text); }
.infolist__item strong { display: block; font-size: 16px; }
.infolist__item span { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Tuiles ------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 240px; padding: 36px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--soft); transition: transform .2s; }
.tile:hover { transform: translateY(-4px); color: var(--ink); }
.tile--ink { background: var(--ink); color: #fff; }
.tile--ink:hover { color: #fff; }
.tile--ink .eyebrow { color: var(--hero-light); }
.tile--c2 { background: var(--c2-tint); }
.tile--warm { background: #F7ECE2; }
.tile__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tile__title { font-family: var(--font-title); font-weight: 300; font-size: 30px; line-height: 1.15; }

/* Urgences ----------------------------------------------------------------- */
.urgent { border-top: 1px solid var(--line); }
.urgent .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-top: 36px; padding-bottom: 36px; }
.urgent__title { font-family: var(--font-title); font-size: 20px; }
.urgent__item { display: flex; align-items: baseline; gap: 10px; }
.urgent__num { font-family: var(--font-title); font-size: 30px; font-weight: 300; color: var(--accent); white-space: nowrap; }
.urgent__item span:last-child { color: var(--muted); }

/* Onglets de filtre (barre collante) -------------------------------------- */
.tabs { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 20; }
.tabs .wrap { display: flex; flex-wrap: wrap; padding-top: 8px; }
.tab { min-height: 48px; padding: 0 4px; margin-right: 24px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted-2); font: inherit; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tab:hover { color: var(--ink); border-bottom-color: var(--c2); }
.tab.is-on, .tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tab .n { font-size: 12px; color: #8A94A0; font-weight: 400; }
[hidden] { display: none !important; }

/* Équipe ------------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 64px 32px; padding-top: 72px; padding-bottom: 96px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.person__photo { position: relative; width: 200px; height: 200px; }
.person__face { width: 200px; height: 200px; border-radius: 50%; background: #EFEBE6; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; transition: transform .3s, box-shadow .3s; }
.person__face img { width: 100%; height: 100%; object-fit: cover; }
.person:hover .person__face { transform: scale(1.04); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--accent); }
.person__badge { position: absolute; right: 8px; bottom: 8px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; }
.person h2 { font-size: 22px; font-weight: 400; }
.person__role { font-family: var(--font-title); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--c2-text); }
.person__focus { font-size: 15px; color: var(--muted-2); }
.person__quote { font-size: 15px; line-height: 1.5; font-style: italic; max-width: 240px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.person:hover .person__quote, .person:focus-within .person__quote { opacity: 1; transform: none; }
@media (hover: none) { .person__quote { opacity: 1; transform: none; } }

.band { background: var(--c2-tint); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }

/* Rendez-vous -------------------------------------------------------------- */
.page { display: flex; flex-direction: column; gap: 32px; padding-top: 56px; padding-bottom: 96px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding: 20px 24px; border-radius: 16px; background: var(--soft); font-size: 15px; }
.legend > span { display: inline-flex; align-items: center; gap: 10px; }
.legend .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.legend .dot--ring { background: transparent; border: 2px solid var(--ink); }
.legend .end { margin-left: auto; color: var(--muted); }
.spec { scroll-margin-top: 80px; border: 1px solid var(--line); border-radius: 24px; display: flex; flex-wrap: wrap; overflow: hidden; }
.spec__info { flex: 1 1 340px; min-width: 0; background: var(--c2-tint); padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.spec__head { display: flex; align-items: center; gap: 14px; }
.spec__icon { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--c2-text); }
.spec__head h2 { font-size: 26px; font-weight: 400; line-height: 1.15; }
.hours { display: flex; flex-direction: column; }
.hours .label { padding-bottom: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.hours div span:last-child { color: var(--muted); text-align: right; }
.spec__pros { flex: 2 1 520px; min-width: 0; padding: 20px 36px; display: flex; flex-direction: column; }
.pro { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.pro:last-child { border-bottom: 0; }
.pro__avatar { width: 56px; height: 56px; border-radius: 50%; background: #EFEBE6; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; flex-shrink: 0; }
.pro__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro__name { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pro__name strong { font-family: var(--font-title); font-size: 20px; font-weight: 400; }
.pro__name span { font-size: 14px; color: var(--muted-2); }
.pro__when { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.pro__when strong { font-weight: 600; }
.pro__when span { color: var(--muted); }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.act--doc { background: var(--accent); color: #fff; }
.act--doc:hover { background: var(--accent-dark); color: #fff; }
.act--tel { border: 1px solid var(--ink); color: var(--ink); align-self: flex-start; }
.act--tel:hover { background: var(--ink); color: #fff; }

/* Documents ---------------------------------------------------------------- */
.featured { background: var(--ink); color: #fff; border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.featured__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.featured__text .eyebrow { color: var(--hero-light); }
.featured__text h2 { font-size: 40px; line-height: 1.1; }
.featured__text p { font-size: 17px; line-height: 1.65; color: #D5DCE3; }
.featured__box { flex: 1 1 360px; min-width: 0; background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.featured__box p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.featured__box p:first-child { font-family: var(--font-title); font-size: 20px; color: var(--ink); }
.doclist { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.doc { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 24px 12px; border-top: 1px solid var(--line); transition: background .2s; }
.doc:hover { background: #FAFAF8; }
.doc__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--c2-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--c2-text); }
.doc__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.doc__text h3 { font-size: 21px; font-weight: 400; }
.doc__text p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.doc__meta { flex: 0 1 220px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted-2); }
.notice { background: var(--soft); border-radius: var(--radius); padding: 28px 32px; display: flex; gap: 18px; align-items: flex-start; }
.notice p { font-size: 16px; line-height: 1.6; }
.disabled { opacity: .5; pointer-events: none; }

/* Conseils ----------------------------------------------------------------- */
.feature-art { display: flex; flex-wrap: wrap; border-radius: 24px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.feature-art:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(12,18,26,.12); color: #fff; }
.feature-art__visual { flex: 1 1 420px; min-height: 340px; background: var(--c2); display: flex; align-items: center; justify-content: center; color: #fff; }
.feature-art__visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-art__text { flex: 1 1 460px; min-width: 0; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.feature-art__text .eyebrow { color: var(--hero-light); }
.feature-art__text h2 { font-size: 40px; line-height: 1.12; }
.feature-art__text p { font-size: 17px; line-height: 1.65; color: #D5DCE3; }
.feature-art__text small { font-size: 15px; color: #B5BFCA; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--radius); background: var(--c2-tint); min-height: 260px; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(12,18,26,.10); color: var(--ink); }
.card__title { font-family: var(--font-title); font-size: 24px; line-height: 1.2; }
.card__excerpt { font-size: 15px; line-height: 1.6; color: var(--muted); flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(22,33,46,.1); font-size: 14px; color: var(--muted-2); }
.closed { border: 1px solid var(--line); border-radius: 24px; padding: 44px; display: flex; flex-wrap: wrap; gap: 40px; }
.closed__intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.closed__intro h2 { font-size: 34px; line-height: 1.15; }
.closed__grid { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.closed__item { background: var(--soft); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.closed__item .urgent__num { font-size: 32px; }
.closed__item small { font-size: 14px; color: var(--muted-2); }

/* Article ------------------------------------------------------------------ */
.article { max-width: 760px; margin: 0 auto; padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; }
.article__content p { font-size: 18px; line-height: 1.75; margin-bottom: 1.2em; }
.article__meta { color: var(--muted-2); font-size: 15px; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; min-height: 44px; }
.back .icon { transform: rotate(180deg); }

/* Pied de page ------------------------------------------------------------- */
.footer { background: var(--soft); border-top: 1px solid var(--line-soft); }
.footer .wrap { padding-top: 48px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 32px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.footer__logo { display: block; height: 96px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted-2); }
.footer__legal { display: flex; gap: 24px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .menu-toggle { display: flex; }
  .mainnav { display: none; position: absolute; top: 100px; left: 16px; right: 16px; background: var(--ink); border-radius: 18px; padding: 12px; flex-direction: column; align-items: stretch; z-index: 30; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
  .mainnav.is-open { display: flex; }
  .mainnav a { padding: 14px 16px; }
  .mainnav a.cta { margin: 8px 0 0; text-align: center; }
  .hero--large { min-height: 640px; }
  .hero__title, .hero--large .hero__title { font-size: 42px; }
  .h2, .featured__text h2, .feature-art__text h2 { font-size: 32px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .featured, .feature-art__text, .closed, .spec__info { padding: 28px; }
  .spec__pros { padding: 8px 24px; }
  .legend .end { margin-left: 0; }
  .tabs .wrap { flex-wrap: nowrap; overflow-x: auto; }
  .tab { white-space: nowrap; }
}
