:root {
  --brand: #c4502f;
  --brand-dark: #a23d20;
  --teal: #1f5466;
  --teal-light: #e7f0f2;
  --peach: #fbe9dc;
  --bg: #fffdfa;
  --text: #2b3236;
  --muted: #5f6b70;
  --line: #e6e0d8;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 84, 102, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; color: var(--teal); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; }
h1 strong { color: var(--brand); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* En-tête */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-block: 14px 6px; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--brand); font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; white-space: nowrap; }
.brand img { width: 210px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.nav a { text-decoration: none; color: var(--text); font-size: .92rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--teal-light); color: var(--teal); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--teal); position: relative; transition: .2s; }
.bars::before, .bars::after { content: ""; position: absolute; }
.bars::before { top: -7px; } .bars::after { top: 7px; }

@media (max-width: 960px) {
  .site-header { position: sticky; top: 0; }
  .header-inner { flex-direction: row; justify-content: space-between; min-height: 84px; padding-block: 8px; }
  .brand img { width: 170px; }
  .brand span { font-size: 1.3rem; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav-open .nav { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav-open .bars { background: transparent; }
  .nav-open .bars::before { top: 0; transform: rotate(45deg); }
  .nav-open .bars::after { top: 0; transform: rotate(-45deg); }
}
/* Sur petit écran, le logo porte déjà le nom du site */
@media (max-width: 600px) { .brand span { display: none; } .brand img { width: 180px; } }

/* Boutons */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 2px solid var(--brand); padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: .15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal); border-color: var(--teal); }

/* Sections */
.hero { background: linear-gradient(160deg, var(--peach), #fff 55%, var(--teal-light)); padding: clamp(48px, 9vw, 110px) 0; text-align: center; }
.hero-inner { max-width: 860px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--brand); }
.lead { font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.page-hero { background: linear-gradient(160deg, var(--peach), #fff 70%); padding: clamp(40px, 7vw, 80px) 0; }
.page-hero .lead { max-width: 820px; }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.band { background: var(--teal-light); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--brand); font-weight: 600; }
.center { text-align: center; margin-inline: auto; max-width: 860px; }
.panorama { width: 100%; max-height: 460px; object-fit: cover; margin-top: 32px; }
.band:has(.panorama) { padding-bottom: 0; }

/* Cartes */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 24px; }
.news-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
.news > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.wa-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.wa-list a { display: inline-block; background: #e9f8ef; color: #12733b; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.event { display: grid; grid-template-columns: 220px 1fr; }
.poster img { height: 100%; object-fit: cover; object-position: top; }
.tag { display: inline-block; background: var(--peach); color: var(--brand-dark); font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }
.event-meta { color: var(--teal); }
.program { list-style: none; padding: 0; margin: 0 0 1em; font-size: .95rem; }
.program li { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.program time { color: var(--brand); font-weight: 700; min-width: 52px; }
.hint { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) {
  .news-grid, .event { grid-template-columns: 1fr; }
  .poster img { max-height: 420px; width: 100%; }
}

/* Contenus */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.split-img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--teal); width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; display: grid; place-items: center; margin-top: 4px; }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: .8em; padding-left: 6px; }
.steps li::marker { color: var(--brand); font-weight: 700; }
.callout { background: #fff; border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.table-wrap { overflow-x: auto; margin-bottom: 1.5em; }
.prices { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prices caption { text-align: left; font-weight: 600; color: var(--teal); padding-bottom: 10px; }
.prices th, .prices td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prices th { background: var(--teal); color: #fff; font-weight: 600; }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.contact-intro .deco { width: 160px; border-radius: var(--radius); margin-top: 24px; opacity: .9; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-intro .deco { display: none; } }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 32px); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; color: var(--teal); }
.req { color: var(--brand); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid #cfd8db; border-radius: 10px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(31, 84, 102, .15); }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--teal); }
.check label { font-weight: 400; color: var(--text); }
.sisd-match { margin: 8px 0 0; background: var(--teal-light); color: var(--teal); padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 600; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status.success { color: #12733b; }
.form-status.error { color: #b3261e; }

/* Partenaires & réseaux */
.partners { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.partners img { max-height: 140px; width: auto; }
.social-grid, .sisd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .social-grid, .sisd-grid { grid-template-columns: 1fr; } }
.social-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.social-card img { height: 90px; width: auto; }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.social-links a { font-size: .88rem; padding: 5px 12px; border: 1.5px solid var(--teal); border-radius: 999px; text-decoration: none; font-weight: 600; }
.social-links a:hover { background: var(--teal); color: #fff; }

/* Trouver mon SISD */
.finder { margin-bottom: 32px; border-top: 4px solid var(--brand); }
.finder input { margin-top: 8px; }
.finder-results ul { list-style: none; padding: 0; margin: 12px 0 0; }
.finder-results li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.finder-results a { font-weight: 700; }
.finder-results p { margin: 12px 0 0; color: var(--muted); }
.sisd-card { display: flex; flex-direction: column; scroll-margin-top: 100px; }
.sisd-card:target { outline: 3px solid var(--brand); }
.sisd-logo { height: 180px; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.sisd-logo img { max-height: 148px; width: auto; }
.sisd-card h2 { color: var(--brand); font-size: 1.4rem; }
.communes-title { font-weight: 700; margin-bottom: .3em; }
.communes { color: var(--muted); font-size: .95rem; }
.contact-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.contact-links a { font-weight: 600; text-decoration: none; word-break: break-word; }

/* Pied de page */
.site-footer { background: var(--teal); color: #dfeaed; padding: 48px 0 0; margin-top: 0; font-size: .93rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { background: #fff; padding: 10px; border-radius: 10px; margin-bottom: 14px; width: 160px; }
.footer-sisd, .footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 36px; padding: 18px 0; font-size: .85rem; }

/* QR code du formulaire de contact */
.contact-qr { margin-top: 28px; text-align: center; padding: 20px; background: var(--teal-light); border-radius: var(--radius); }
.contact-qr-label { font-weight: 600; color: var(--teal); margin: 0; }
.contact-qr-arrow { display: block; font-size: 2.5rem; line-height: 1.2; color: var(--brand); margin: 8px 0; }
.contact-qr a { display: inline-block; }
.contact-qr img { display: block; width: 220px; max-width: 100%; height: auto; background: #fff; }

/* Documents téléchargeables et invitation à scanner */
.resource-downloads { display: grid; gap: 24px; margin-bottom: 28px; }
.resource-download h2 { color: var(--teal); font-size: 1.4rem; }
.contact-qr { border: 3px solid var(--brand); background: #fff4e9; box-shadow: 0 8px 24px rgba(31,84,102,.12); }
.contact-qr-label { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; font-weight: 700; color: #1f5466; }
.contact-qr-label span { display: block; color: #a54217; font-size: 1.15em; margin-bottom: 6px; }
.contact-qr-arrow { display: block; width: 180px; height: 100px; margin: 8px auto; color: #a54217; }

/* Nouveauté placée sous le formulaire */
.contact-qr-news { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 18px; align-items: center; margin-top: 0; padding: 26px; text-align: left; background: linear-gradient(120deg, var(--peach), var(--teal-light)); border-color: var(--brand); }
.contact-qr-badge { display: inline-block; padding: 5px 16px; margin-bottom: 14px; border-radius: 999px; background: var(--brand-dark); color: #fff; font-size: .9rem; font-weight: 700; letter-spacing: .04em; }
.contact-qr-news h3 { color: var(--teal); font-size: clamp(1.5rem, 2.5vw, 1.9rem); }
.contact-qr-news .contact-qr-label { font-size: 1.15rem; font-weight: 500; }
.contact-qr-news strong { color: var(--brand-dark); font-weight: 800; }
.contact-qr-news .contact-qr-arrow { width: 200px; max-width: 100%; height: 90px; margin: 5px 0 0 auto; color: var(--brand); }
.contact-qr-news img { width: 170px; border: 6px solid #fff; border-radius: 10px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .contact-qr-news { grid-column: 1; } }
@media (max-width: 560px) { .contact-qr-news { grid-template-columns: 1fr; text-align: center; padding: 22px; } .contact-qr-news .contact-qr-arrow { transform: rotate(65deg); margin: 0 auto; height: 100px; } .contact-qr-news a { justify-self: center; } }

/* Centrer le bloc Nouveaute sous la section contact */
.contact-grid .contact-qr-news { grid-column: 1 / -1; width: 100%; max-width: 760px; justify-self: center; }

/* Icônes des réseaux et documents plus aérés */
.social-links { gap: 12px; margin-top: 8px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: #fff; }
.network-icon { display: inline-block; flex: 0 0 22px; width: 22px; height: 22px; }
.network-facebook { color: #1877f2; }
.network-linkedin { color: #0a66c2; }
.network-whatsapp { color: #16863c; }
.resource-downloads { gap: 40px; margin: 8px 0 44px; }
.resource-download { position: relative; padding: clamp(26px, 5vw, 42px); border-top: 6px solid var(--teal); }
.resource-download:nth-child(2) { border-top-color: var(--brand); }
.resource-download::before { content: "DOCUMENT PDF"; display: inline-block; padding: 6px 12px; margin-bottom: 20px; border-radius: 8px; background: var(--teal-light); color: var(--teal); font-size: .8rem; font-weight: 700; letter-spacing: .07em; }
.resource-download:nth-child(2)::before { background: var(--peach); color: var(--brand-dark); }
.resource-download h2 { font-size: clamp(1.5rem, 3vw, 1.85rem); margin-bottom: 18px; }
.resource-download p { margin: 0 0 28px; font-size: 1.08rem; line-height: 1.7; }
.resource-download .btn { white-space: normal; text-align: center; }
@media (max-width: 560px) { .resource-downloads { gap: 28px; } .resource-download .btn { display: block; width: 100%; padding-inline: 16px; } }

/* Présentation centrée et harmonisée du QR code */
.contact-grid .contact-qr-news { display: flex; flex-direction: column; gap: 0; max-width: 620px; padding: clamp(28px, 5vw, 44px); text-align: center; border: 1px solid #d4e4e7; border-top: 5px solid var(--brand); background: linear-gradient(145deg, #fff8f1, #edf5f6); box-shadow: 0 10px 30px rgba(31,84,102,.09); }
.contact-qr-news .contact-qr-copy { width: 100%; }
.contact-qr-news .contact-qr-badge { background: var(--teal); color: #fff; padding: 6px 18px; margin: 0 0 18px; }
.contact-qr-news h3 { max-width: 440px; margin: 0 auto 14px; color: var(--teal); font-size: clamp(1.5rem, 3vw, 1.9rem); }
.contact-qr-news .contact-qr-label { max-width: 400px; margin: 0 auto; color: var(--teal); font-size: 1.12rem; line-height: 1.6; }
.contact-qr-news strong { color: var(--brand-dark); }
.contact-qr-news .contact-qr-arrow { width: 140px; height: 76px; margin: 12px auto 8px; transform: none; color: var(--brand); }
.contact-qr-news > a { display: block; padding: 12px; border: 2px solid #d4e4e7; border-radius: 18px; background: #fff; box-shadow: 0 5px 16px rgba(31,84,102,.08); }
.contact-qr-news img { width: 210px; height: auto; border: 0; border-radius: 0; box-shadow: none; }

/* Bloc QR centré sur la largeur du site, hors de la grille du formulaire */
.contact-qr-centered { display: flex; justify-content: center; margin-top: 40px; }
.contact-qr-centered .contact-qr-news { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 660px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); text-align: center; background: #fff0e2; border: 1px solid #f5cfaf; border-radius: 24px; box-shadow: 0 8px 26px rgba(196,80,47,.09); }
.contact-qr-centered .contact-qr-copy { width: 100%; text-align: center; }
.contact-qr-centered .contact-qr-badge { display: inline-block; background: #a23d20; color: #fff; margin: 0 auto 18px; }
.contact-qr-centered h3 { margin: 0 auto 16px; max-width: 480px; color: var(--teal); }
.contact-qr-centered .contact-qr-label { margin: 0 auto; max-width: 440px; text-align: center; }
.contact-qr-centered .contact-qr-arrow { display: block; width: 145px; height: 100px; margin: 12px auto 8px; color: #df762e; transform: none; }
.contact-qr-centered .contact-qr-news > a { margin: 0 auto; border-color: #f0c7a7; padding: 14px; }
.contact-qr-centered .contact-qr-news img { width: 210px; height: auto; }

/* Logos des reseaux, plus petits */
.social-links .network-logo { width: 18px; height: 18px; max-height: 18px; flex: 0 0 18px; object-fit: contain; }
.social-links a { gap: 7px; }

/* Invitation QR : tout centré, badge visible, petite flèche */
.contact-qr-centered { display: flex; justify-content: center; width: 100%; margin: 44px auto 0; }
.contact-qr-centered .contact-qr-news { align-items: center; text-align: center; width: 100%; max-width: 660px; margin: 0 auto; background: #fff0df; border: 2px solid #f2c392; padding: clamp(28px, 5vw, 42px); }
.contact-qr-centered .contact-qr-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-qr-centered .contact-qr-badge { font-size: clamp(1.2rem, 2.4vw, 1.45rem); font-weight: 800; letter-spacing: .025em; padding: 9px 24px; margin: 0 auto 20px; background: #a23d20; color: #fff; box-shadow: 0 4px 12px rgba(162,61,32,.16); }
.contact-qr-centered h3, .contact-qr-centered .contact-qr-label { width: 100%; text-align: center; margin-left: auto; margin-right: auto; }
.contact-qr-centered .contact-qr-arrow { width: 88px; height: 61px; margin: 12px auto; color: #df762e; transform: none; }
.contact-qr-centered .contact-qr-news > a { align-self: center; margin: 0 auto; }

/* Logos sociaux discrets */
.social-links img.network-logo { width: 12px; height: 12px; max-width: 12px; max-height: 12px; flex: 0 0 12px; }
.social-links a { gap: 6px; }

/* Espacement renforce des deux documents */
.resource-downloads { display: flex; flex-direction: column; gap: 72px; margin: 16px 0 56px; }
.resource-downloads > .resource-download { margin: 0; padding: clamp(32px, 6vw, 48px); }
.resource-downloads > .resource-download h2 { margin-bottom: 24px; }
.resource-downloads > .resource-download p { margin-bottom: 36px; }
@media (max-width: 560px) { .resource-downloads { gap: 48px; } }

/* Affiche du 13 novembre visible integralement et centree */
.news-grid .event { display: flex; flex-direction: column; align-items: stretch; }
.news-grid .event .poster { display: flex; justify-content: center; align-items: center; padding: 24px; background: #fff8f1; }
.news-grid .event .poster img { display: block; width: 100%; max-width: 420px; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; object-position: center; margin: 0 auto; }
@media (max-width: 560px) { .news-grid .event .poster { padding: 16px; } }

/* Rappel accessible des conditions de concertation psychiatrique */
.psy-reminder { padding: clamp(24px, 4vw, 44px); background: #fff2e7; border: 1px solid #f1cfb5; border-top: 5px solid var(--brand); border-radius: 20px; }
.psy-reminder > h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); }
.psy-condition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; counter-reset: condition; padding: 0; margin: 30px 0; }
.psy-condition-grid > li { counter-increment: condition; padding: 26px; border-radius: 14px; background: #fff; border: 1px solid #e8dcd1; }
.psy-condition-grid > li::before { content: counter(condition); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 16px; }
.psy-condition-grid h3 { font-size: 1.2rem; }.psy-condition-grid p { margin-bottom: 0; }
.psy-reminder-note { padding: 20px; background: #e7f0f2; border-radius: 12px; }
.psy-condition-details { margin-top: 18px; background: #fff; border: 1px solid #e0d8d0; border-radius: 12px; overflow: hidden; }
.psy-condition-details summary { padding: 20px 24px; cursor: pointer; color: var(--teal); font-weight: 700; }
.psy-condition-details[open] summary { border-bottom: 1px solid #e0d8d0; }.psy-condition-details > div { padding: 8px 24px 22px; }
.psy-condition-details li { margin-bottom: 14px; }.psy-source { font-size: .85rem; color: var(--muted); margin: 24px 0 0; }
@media (max-width: 700px) { .psy-condition-grid { grid-template-columns: 1fr; } }

/* Carte des territoires sous les coordonnées SISD */
.sisd-map-section { padding-top: 20px; text-align: center; }
.sisd-map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; list-style: none; padding: 0; margin: 24px 0 32px; }
.sisd-map-legend li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.map-key { width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0; }.map-meuse { background: #103f4c; }.map-uoad { background: #27afb7; }.map-ouest { background: #ec482c; }
.sisd-map-image { display: block; max-width: 820px; margin: 0 auto; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.sisd-map-image img { width: 100%; height: auto; margin: 0 auto; }.sisd-map-link { margin-top: 24px; }

/* Rappel plus compact, après le contenu de la page */
.psy-reminder-section .wrap { max-width: 1000px; }
.psy-reminder { padding: clamp(20px, 3vw, 30px); }
.psy-reminder > h2 { font-size: clamp(1.4rem, 2.5vw, 1.7rem); }
.psy-reminder > .lead { font-size: 1rem; }
.psy-condition-grid { gap: 16px; margin: 22px 0; }
.psy-condition-grid > li { padding: 20px; }
.psy-condition-grid > li::before { width: 30px; height: 30px; margin-bottom: 12px; }
.psy-condition-grid h3 { font-size: 1.05rem; }
.psy-condition-grid p, .psy-reminder-note, .psy-condition-details { font-size: .95rem; }
.psy-reminder-note { padding: 16px; }
.psy-condition-details summary { padding: 16px 20px; }
.psy-condition-details > div { padding: 6px 20px 18px; }

/* QR au-dessus de WhatsApp, a cote de l evenement */
.news-left-column { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.news-left-column .contact-qr-centered { margin: 0; width: 100%; }
.news-left-column .contact-qr-news { max-width: none; padding: clamp(22px, 3vw, 32px); }
.news-left-column .contact-qr-news h3 { font-size: 1.5rem; }

/* Logo principal mis en valeur */
.site-header { background: #fff; border-bottom: 3px solid #fbe9dc; }
.header-inner { gap: 18px; padding-block: 24px 14px; }
.site-header .brand { justify-content: center; max-width: 100%; }
.site-header .brand img { width: 360px; max-width: 100%; height: auto; }
@media (max-width: 860px) { .header-inner { gap: 16px; padding-block: 16px; } .site-header .brand { min-width: 0; } .site-header .brand img { width: clamp(210px, 55vw, 300px); } .nav-toggle { flex-shrink: 0; } }
@media (max-width: 380px) { .site-header .brand img { width: 210px; } }

/* Accueil et accès aux rubriques dans un menu déroulant */
.home-menu { position: relative; text-align: left; }
.home-menu summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 10px 22px; border-radius: 999px; background: var(--teal); color: #fff; cursor: pointer; font-weight: 600; list-style: none; }
.home-menu summary::-webkit-details-marker { display: none; }
.home-menu summary span { font-size: 1.2rem; transition: transform .15s; }
.home-menu[open] summary span { transform: rotate(180deg); }
.home-menu-links { position: absolute; z-index: 100; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 320px; max-width: calc(100vw - 40px); padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px rgba(31,84,102,.16); }
.nav .home-menu-links a { display: block; padding: 12px 14px; border-radius: 8px; white-space: normal; }
@media (max-width: 860px) { .nav .home-menu { width: 100%; } .home-menu-links { position: static; transform: none; width: 100%; max-width: none; margin-top: 12px; box-shadow: none; } }

/* Petits boutons d’accès direct aux quatre rubriques */
.nav { flex-direction: column; align-items: center; gap: 12px; }
.section-shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nav .section-shortcut { display: inline-block; padding: 8px 15px; border: 1px solid #c4d8de; border-radius: 999px; background: #e7f0f2; color: var(--teal); font-size: .88rem; font-weight: 600; line-height: 1.4; text-align: center; }
.nav .section-shortcut:hover, .nav .section-shortcut[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
@media (max-width: 860px) { .section-shortcuts { width: 100%; gap: 8px; } .nav .section-shortcut { flex: 1 1 180px; } }

/* Sections partenaires et reseaux plus compactes */
.partners-section, .social-section { padding-block: 32px; }
.partners-section .section-title, .social-section .section-title { font-size: clamp(1.3rem, 2.3vw, 1.6rem); margin-bottom: 20px; }
.partners-section .partners { gap: 24px; }
.partners-section .partners img { max-height: 95px; max-width: 180px; width: auto; object-fit: contain; }
.social-section .social-grid { gap: 16px; }
.social-section .social-card { padding: 18px; gap: 8px; }
.social-section .social-card > img { height: 65px; max-width: 180px; width: auto; object-fit: contain; }
.social-section .social-card > strong { font-size: .95rem; }
.social-section .social-links a { padding: 6px 10px; font-size: .82rem; }

/* Partenaires centres */
.partners-section { text-align: center; }
.partners-section .partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; margin-inline: auto; }

/* Introduction accueil plus compacte */
.hero { padding-block: 34px; }
.hero .eyebrow { font-size: .82rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.65rem, 3.4vw, 2.6rem); line-height: 1.2; max-width: 900px; margin-bottom: 16px; }
.hero .lead { font-size: 1.05rem; line-height: 1.6; max-width: 820px; margin-bottom: 0; }
