/* Centre de Santé Privé de Famgo-Neta — feuille de style unique, mobile d'abord */
:root {
  --green: #0e7c66;
  --green-dark: #0a5f4e;
  --green-soft: #e8f5f1;
  --green-line: #cfe7de;
  --blue: #14507a;
  --blue-soft: #eaf2f8;
  --red: #c62828;
  --red-dark: #a31f1f;
  --wa: #0f7a40;
  --ink: #17242b;
  --text: #2c3a41;
  --muted: #55656d;
  --bg: #ffffff;
  --sand: #fbf7ef;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .06), 0 8px 24px rgba(16, 40, 34, .08);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  padding-bottom: 76px; /* place pour la barre de contact mobile */
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid #f2a93b; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bandeau + en-tête ---------- */
.topbar { background: var(--green-dark); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; align-items: center; gap: 8px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; margin-left: auto; text-decoration: none; white-space: nowrap; }
.topbar .icon { color: #9fe2c6; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--green-line); }
.header-in { display: flex; align-items: center; gap: 10px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-small { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.brand-name { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 2px solid var(--green-line); border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--blue); font-size: 1rem; min-height: 44px; }
.lang:hover { border-color: var(--green); }
.menu-btn { display: none; align-items: center; gap: 6px; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; font-size: 1rem; min-height: 44px; cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1rem; }
.nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--green); }

/* Mobile : menu repliable si JavaScript, sinon liste visible en défilement horizontal */
@media (max-width: 959px) {
  .nav { width: 100%; }
  html:not(.js) .nav ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  html:not(.js) .nav a { white-space: nowrap; }
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.open { display: block; padding: 4px 0 14px; }
  .js .nav.open ul { flex-direction: column; }
  .js .nav.open a { padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--green-soft); border-radius: 0; }
}
@media (min-width: 960px) {
  .header-in { flex-wrap: nowrap; }
  .nav { order: 2; }
  .lang { order: 3; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 1.15rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; transition: transform .15s, background-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-call { background: var(--green); color: #fff; }
.btn-call:hover { background: var(--green-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0b6534; color: #fff; }
.btn-urgent { background: var(--red); color: #fff; }
.btn-urgent:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--green-line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 200px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tint { background: var(--green-soft); }
.section-sand { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 8px; }
.lead { font-size: 1.25rem; color: var(--text); }

/* ---------- Héros ---------- */
.hero { position: relative; background: linear-gradient(180deg, #f3faf7 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 40px; }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { max-width: 34em; }
.badge-247 { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--red); color: var(--red-dark); font-weight: 800; padding: 10px 16px; border-radius: 999px; margin-bottom: 18px; font-size: 1rem; box-shadow: var(--shadow); }
.badge-247 .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(198, 40, 40, .6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .55); } 70% { box-shadow: 0 0 0 12px rgba(198, 40, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); } }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.hero-card { position: absolute; left: 12px; bottom: -18px; background: #fff; border-radius: var(--radius-sm); padding: 10px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.hero-card .icon { color: var(--green); width: 28px; height: 28px; }
.hero-card small { display: block; font-weight: 500; color: var(--muted); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 56px; padding-bottom: 72px; gap: 48px; }
}

/* ---------- Bandeau de confiance ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.trust li { background: #fff; border: 1px solid var(--green-line); border-radius: var(--radius-sm); padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.trust .icon { width: 30px; height: 30px; color: var(--green); }
.trust strong { display: block; color: var(--ink); font-size: 1.1rem; line-height: 1.25; }
.trust span { font-size: .95rem; color: var(--muted); line-height: 1.35; display: block; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cartes ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--green-line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(16, 40, 34, .04); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card p { margin-bottom: .6em; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.card-icon .icon { width: 30px; height: 30px; }
.card-icon.red { background: #fdecec; color: var(--red); }
.card-icon.blue { background: var(--blue-soft); color: var(--blue); }
.card-photo { padding: 0; overflow: hidden; }
.card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-photo .card-body { padding: 20px 22px 22px; }
.card .link-arrow { margin-top: auto; padding-top: 6px; }

/* ---------- Bloc média + texte ---------- */
.split { display: grid; gap: 28px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.reverse > :first-child { order: 2; } }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { display: flex; gap: 10px; margin-bottom: 10px; }
.checks .icon { color: var(--green); margin-top: 4px; }

/* ---------- Bloc 24/7 nuit ---------- */
.night { background: #0b2140; color: #e8f0f7; position: relative; overflow: hidden; }
.night h2 { color: #fff; }
.night .split img { box-shadow: 0 10px 40px rgba(0, 0, 0, .35); aspect-ratio: 16 / 9; }
.night .eyebrow { color: #8ed9b9; }
.night .big-number { font-size: clamp(3rem, 12vw, 5rem); font-weight: 900; color: #ffd877; line-height: 1; margin-bottom: 10px; }

/* ---------- Frise chronologique ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: var(--green-line); border-radius: 3px; }
.timeline li { position: relative; padding: 0 0 28px 16px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 4px solid var(--green); }
.timeline li.gold::before { border-color: #c99a1d; }
.timeline li.today::before { background: var(--green); }
.timeline .year { display: inline-block; font-weight: 900; color: var(--green-dark); font-size: 1.3rem; }
.timeline h3 { margin: 2px 0 4px; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- Équipe ---------- */
.person { text-align: left; }
.avatar { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff; letter-spacing: .02em; margin-bottom: 16px; background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%); box-shadow: 0 0 0 6px var(--green-soft); }
.avatar.alt { background: linear-gradient(135deg, var(--blue) 0%, #2b8a9a 100%); }
.person .role { color: var(--green); font-weight: 700; margin-bottom: .6em; }

/* ---------- Encadrés ---------- */
.callout { border-radius: var(--radius); padding: 24px; background: var(--blue-soft); border-left: 6px solid var(--blue); }
.callout.green { background: var(--green-soft); border-left-color: var(--green); }
.callout.red { background: #fdecec; border-left-color: var(--red); }
.callout h2, .callout h3 { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--green-line); border-radius: 999px; padding: 10px 16px; font-weight: 700; color: var(--ink); }
.chips .om { color: #ff7900; }
.chips .mtn { color: #b38600; }
.chips .cash { color: var(--green); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.contact-list a { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-sm); background: #fff; border: 2px solid var(--green-line); text-decoration: none; color: var(--ink); font-weight: 700; }
.contact-list a:hover { border-color: var(--green); }
.contact-list .icon { width: 30px; height: 30px; color: var(--green); }
.contact-list .wa .icon { color: var(--wa); }
.contact-list .urg .icon { color: var(--red); }
.contact-list small { display: block; font-weight: 500; color: var(--muted); font-size: .95rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 16px; min-height: 38px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--green-line); background: var(--green-soft); aspect-ratio: 4 / 3; position: relative; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; }
.map-load .icon { width: 48px; height: 48px; color: var(--green); }
.map-load p { color: var(--muted); font-size: 1rem; margin: 0; max-width: 26em; }

.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--green-line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.form label { font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1.1rem; padding: 14px; border: 2px solid #b9cbc3; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); outline: 3px solid rgba(14, 124, 102, .2); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-size: .95rem; color: var(--muted); margin: 0; }
.form .btn-row .btn { flex: 1 1 220px; }

/* ---------- Articles conseils ---------- */
.article { max-width: 780px; }
.article + .article { margin-top: 48px; padding-top: 48px; border-top: 2px solid var(--green-soft); }
.article img { border-radius: var(--radius); margin: 8px 0 20px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article h3 { margin-top: 1.2em; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .45em; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 8px; }
.toc a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border: 2px solid var(--green-line); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink); }
.toc a:hover { border-color: var(--green); }
.toc .icon { color: var(--green); }

/* ---------- Pages simples ---------- */
.page-head { background: linear-gradient(180deg, #f3faf7 0%, #fff 100%); padding: 40px 0 24px; }
.page-head p { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.cta-band { background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%); color: #fff; border-radius: var(--radius); padding: 32px 24px; display: grid; gap: 20px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #e6f4ef; }
.cta-band .btn-ghost { border-color: transparent; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; padding: 40px; } }

/* ---------- Pied de page ---------- */
.footer { background: #0f2a26; color: #d5e6e0; padding: 48px 0 0; font-size: 1rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .8em; }
.footer p { margin-bottom: .6em; }
.footer .muted { color: #a9c2ba; }
.footer .icon { color: #8ed9b9; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .95rem; color: #a9c2ba; }
.footer-bottom p { margin: 0; }

/* ---------- Boutons flottants ---------- */
.float-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--green-line); box-shadow: 0 -4px 18px rgba(0, 0, 0, .08); }
.float-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 14px; color: #fff; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.float-urgent { background: var(--red); }
.float-wa { background: var(--wa); }
.float-bar .icon { width: 24px; height: 24px; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .float-bar { background: none; border: 0; box-shadow: none; left: auto; right: 20px; bottom: 20px; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
  .float-bar a { border-radius: 999px; padding: 0 22px; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
  .float-wa { width: 64px; height: 64px; padding: 0 !important; }
  .float-wa .icon { width: 34px; height: 34px; }
  .float-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .float-bar, .menu-btn, .lang, .nav, .map-box { display: none !important; }
  body { padding: 0; }
}

/* ---------- Ajustements petits écrans ---------- */
a[href^="tel:"] { white-space: nowrap; }
.btn a[href^="tel:"], a.btn[href^="tel:"] { white-space: normal; }
.nowrap { white-space: nowrap; }
@media (max-width: 559px) {
  .trust li { flex-direction: column; gap: 6px; }
  .hero-grid { padding-bottom: 28px; }
  .btn { font-size: 1.08rem; padding: 14px 18px; }
}
@media (max-width: 479px) {
  .topbar a { display: none; }
  .brand-small { font-size: .66rem; letter-spacing: .02em; }
  .brand-name { font-size: 1.2rem; }
  .brand img { width: 40px; height: 40px; }
  .lang { padding: 8px 10px; }
  .lang .icon { display: none; }
  .js .menu-btn { padding: 10px 12px; }
  .js .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-in { gap: 8px; }
}

/* ---------- Campagnes : couleurs par type ---------- */
.ev-vaccination { --ev: #14507a; --ev-soft: #eaf2f8; }
.ev-depistage, .ev-specialiste { --ev: #0a5f4e; --ev-soft: #e8f5f1; }
.ev-sensibilisation { --ev: #8a5a00; --ev-soft: #fbf3e2; }
.ev-autre { --ev: #4a3f8f; --ev-soft: #efedf9; }

/* ---------- Bandeau d'annonce ---------- */
.announce { background: var(--ev); color: #fff; }
.announce[hidden] { display: none; }
.announce-in { display: flex; align-items: center; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.announce-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .18); flex: none; }
.announce-icon .icon { width: 22px; height: 22px; }
.announce p { margin: 0; flex: 1 1 220px; line-height: 1.4; font-size: 1rem; }
.announce strong { font-size: 1.05rem; }
.announce-when { display: inline-block; opacity: .92; }
.announce-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ev); background: #fff; font-weight: 800; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .98rem; min-height: 44px; }
.announce-link:hover { color: var(--ev); background: #f1f5f4; }
.announce-close { background: transparent; border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; margin-left: auto; flex: none; }
.announce-close:hover { background: rgba(255, 255, 255, .15); }
@media (max-width: 559px) {
  .announce-in { position: relative; padding-right: 44px; }
  .announce-close { position: absolute; right: 4px; top: 6px; }
  .announce-icon { display: none; }
}

/* ---------- Cartes d'événements ---------- */
.event-card { background: #fff; border: 1px solid var(--green-line); border-top: 5px solid var(--ev); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.event-card[hidden], .ev-past[hidden] { display: none; }
.ev-tile { flex: none; width: 64px; border-radius: 14px; overflow: hidden; text-align: center; background: var(--ev-soft); border: 2px solid var(--ev); line-height: 1.1; }
.ev-day { display: block; font-size: 1.7rem; font-weight: 900; color: var(--ev); padding: 6px 0 2px; }
.ev-month { display: block; background: var(--ev); color: #fff; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 0; }
.ev-body { min-width: 0; }
.ev-type { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ev); margin: 0 0 4px; }
.ev-type .icon { width: 20px; height: 20px; }
.ev-draft { background: #fff3cd; color: #7a5300; border: 1px dashed #c99a1d; border-radius: 6px; padding: 1px 8px; font-size: .75rem; }
.event-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.event-card h3 a { color: var(--ink); text-decoration: none; }
.event-card h3 a:hover { color: var(--ev); text-decoration: underline; }
.ev-when { font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: 1rem; }
.event-card p { margin-bottom: .6em; }
.ev-price { display: inline-block; background: var(--ev-soft); color: var(--ev); font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: .95rem; margin-bottom: 10px; }
.ev-price.free { background: #e6f6ec; color: #0b6534; }
.ev-home .event-card { height: 100%; }

.ev-list { display: grid; gap: 24px; }
.event-full { padding: 0; overflow: hidden; display: grid; gap: 0; }
.event-full .ev-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ev-main { padding: 22px; }
.ev-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.event-full h3 { font-size: 1.45rem; }
.ev-meta { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.ev-meta li { display: flex; gap: 10px; align-items: flex-start; }
.ev-meta .icon { color: var(--ev); margin-top: 4px; }
.ev-summary { font-size: 1.15rem; }
.ev-actions { margin-top: 8px; }
.ev-actions .btn { flex: 1 1 210px; font-size: 1.02rem; min-height: 52px; }
@media (min-width: 900px) {
  .event-full { grid-template-columns: 360px 1fr; }
  .event-full .ev-img img { height: 100%; aspect-ratio: auto; min-height: 100%; }
  .event-full:not(:has(.ev-img)) { grid-template-columns: 1fr; }
}
.ev-past-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ev-past { background: #fff; border: 1px solid var(--green-line); border-radius: var(--radius-sm); padding: 12px 16px; }
.ev-past-date { display: inline-block; font-weight: 700; color: var(--muted); margin-right: 6px; }
.ev-empty[hidden] { display: none; }
.ev-empty h3 { display: flex; gap: 10px; align-items: center; }
@media (min-width: 960px) { .nav a { padding: 10px 9px; font-size: .97rem; } }
.ev-home .event-card { flex-direction: column; gap: 12px; }
.ev-home .ev-type .icon { display: none; }
.ev-when { text-wrap: balance; }
.ev-actions .btn { flex-basis: 240px; }
@media (min-width: 900px) {
  .event-full .ev-img { position: relative; min-height: 260px; }
  .event-full .ev-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
}
.event-full { align-items: stretch; }
