/* PLAMFE — site web adhérentes et pages publiques (views/web/*).
   Mobile d'abord ; sidebar à partir de 960 px. Charte : plamfe-mobile/src/theme/colors.ts.
   Variantes « ink » = versions assombries pour le texte (contraste AA sur blanc). */
:root {
  --primary: #88478f;
  --primary-dark: #62356b;
  --primary-light: #b891bc;
  --primary-soft: #f8e9f2; /* pétale */
  --plum-deep: #4a2453;
  --petal: #f8e9f2;
  --peach: #fdeadb;
  --sage-soft: #eef3da;
  --secondary: #e56911;
  --secondary-dark: #ac4f0d;
  --canvas: #fff9fb;
  --surface: #fff;
  --ink: #2b2030;
  --muted: #675b6e;
  --line: #efdfe9;
  --success-ink: #4f5c0e;
  --success-bg: #f1f6dd;
  --warning-ink: #9a4509;
  --warning-bg: #fcede2;
  --danger-ink: #b02a2a;
  --danger-bg: #fbe4e4;
  --info-ink: #1f5f9e;
  --info-bg: #e3f0fb;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgb(98 53 107 / 0.06), 0 12px 32px rgb(136 71 143 / 0.10);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar: 268px;
  --tabbar: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--font); background: var(--canvas); color: var(--ink); line-height: 1.6; font-size: .9375rem; overflow-wrap: anywhere; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -0.02em; color: var(--plum-deep); }
h1 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 600; }
h2 { font-size: clamp(1.1rem, 1rem + .7vw, 1.4rem); font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1rem; }
table { font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 1000; background: var(--primary); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

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

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.container.narrow { max-width: 760px; }
.container.tight { max-width: 520px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.nowrap { flex-wrap: nowrap; white-space: normal; } /* nowrap = pas de retour des éléments, le texte, lui, revient à la ligne */
.grow { flex: 1 1 0; min-width: 0; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 1rem; } .mt-lg { margin-top: 2rem; } .mb { margin-bottom: 1rem; } .mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: inline-block; } }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .6rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .15s, box-shadow .2s; background: var(--primary); color: #fff; text-align: center; box-shadow: 0 6px 16px rgb(136 71 143 / .25); }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-secondary { background: var(--secondary-dark); box-shadow: 0 6px 16px rgb(229 105 17 / .28); } .btn-secondary:hover { background: #8f410b; }
.btn-outline { background: #fff; color: var(--primary-dark); border-color: var(--primary-light); box-shadow: none; } .btn-outline:hover { background: var(--petal); }
.btn-ghost { background: transparent; color: var(--primary-dark); box-shadow: none; } .btn-ghost:hover { background: var(--petal); }
.btn-danger { background: var(--danger-ink); box-shadow: none; } .btn-danger:hover { background: #8f2020; }
.btn-light { background: #fff; color: var(--primary-dark); box-shadow: none; } .btn-light:hover { background: var(--petal); }
.btn-sm { min-height: 40px; padding: .35rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: .8rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { min-width: 44px; padding-inline: .6rem; }
.btn.loading { position: relative; pointer-events: none; opacity: .8; }
.btn.loading::after { content: ''; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-dark); text-decoration: underline; cursor: pointer; font-weight: 600; min-height: 44px; }
form.inline { display: inline; }

/* ---------- Cartes, badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.soft { background: var(--petal); border-color: transparent; box-shadow: none; }
.card h2, .card h3 { margin-bottom: .75rem; }
@media (min-width: 640px) { .card { padding: 1.75rem; } }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(98 53 107 / .06), 0 18px 40px rgb(136 71 143 / .16); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.4; background: var(--primary-soft); color: var(--primary-dark); white-space: nowrap; }
.badge.ok { background: var(--success-bg); color: var(--success-ink); }
.badge.warn { background: var(--warning-bg); color: var(--warning-ink); }
.badge.bad { background: var(--danger-bg); color: var(--danger-ink); }
.badge.info { background: var(--info-bg); color: var(--info-ink); }
.badge.muted { background: #f1e9ef; color: var(--muted); }
.pill-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--secondary-dark); color: #fff; font-size: .72rem; font-weight: 600; line-height: 1; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: .7rem 1rem; border: 1.5px solid #e2d2dc; border-radius: var(--radius-sm); background: #fff; font-size: 1rem; /* 16 px : pas de zoom iOS */ transition: border-color .15s, box-shadow .15s; }
.select { color-scheme: light; cursor: pointer; }
.select option, .select optgroup { background: #fff; color: #2b1f33; font-size: 1rem; line-height: 1.6; padding: .4rem .6rem; }
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--primary-light); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(136 71 143 / .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger-ink); }
.input[disabled] { background: #f7f0f4; color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.error-text { font-size: .85rem; color: var(--danger-ink); margin-top: .3rem; font-weight: 600; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.phone-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: .5rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 600; font-size: 1.05rem; padding: 0; margin-bottom: .75rem; color: var(--primary-dark); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: .1rem; flex: none; accent-color: var(--primary); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.switch input { appearance: none; width: 52px; height: 30px; border-radius: 999px; background: #cfc9d9; position: relative; cursor: pointer; flex: none; transition: background-color .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(22px); }
.otp { display: flex; gap: .5rem; justify-content: center; }
.otp input { width: clamp(40px, 12vw, 54px); height: 58px; text-align: center; font-size: 1.5rem; font-weight: 600; border: 1px solid #cfc9d9; border-radius: var(--radius-sm); padding: 0; }
.otp input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(136 71 143 / .25); }
.search-bar { display: flex; gap: .5rem; }
.search-bar .input { flex: 1; }

/* ---------- Messages ---------- */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 1rem; background: var(--info-bg); color: var(--info-ink); }
.alert i { margin-top: .2rem; }
.alert.success { background: var(--success-bg); color: var(--success-ink); }
.alert.error { background: var(--danger-bg); color: var(--danger-ink); }
.alert.warn { background: var(--warning-bg); color: var(--warning-ink); }
.alert strong { display: block; }
.toasts { position: fixed; z-index: 500; left: 12px; right: 12px; bottom: calc(var(--tabbar) + var(--safe-bottom) + 12px); display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
@media (min-width: 960px) { .toasts { left: auto; right: 24px; bottom: 24px; width: 380px; } }
.toast { pointer-events: auto; display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--ink); color: #fff; box-shadow: 0 8px 28px rgb(0 0 0 / .25); animation: toast-in .25s ease-out; }
.toast.success { background: #3d4a0a; } .toast.error { background: #8f2020; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; min-width: 32px; min-height: 32px; opacity: .8; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty i { font-size: 2.2rem; color: var(--primary-light); margin-bottom: .75rem; display: block; }
.empty h3 { color: var(--ink); }

/* ---------- Listes ---------- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: .9rem; padding: .9rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 64px; }
.list-row:first-child { border-top: 0; }
a.list-row:hover .list-title { color: var(--primary-dark); }
.list-title { font-weight: 600; }
.list-sub { color: var(--muted); font-size: .875rem; }
.icon-circle { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--petal); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.icon-circle.orange { background: var(--warning-bg); color: var(--warning-ink); }
.icon-circle.green { background: var(--success-bg); color: var(--success-ink); }
.icon-circle.red { background: var(--danger-bg); color: var(--danger-ink); }
.chev { color: #a39dad; margin-left: auto; flex: none; }
.dl { display: grid; grid-template-columns: 1fr; gap: .15rem 1rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .875rem; }
.dl dd { margin: 0 0 .65rem; font-weight: 600; }
@media (min-width: 520px) { .dl.wide { grid-template-columns: max-content 1fr; } .dl.wide dd { margin: 0; text-align: right; } .dl.wide dt, .dl.wide dd { padding: .5rem 0; border-top: 1px solid var(--line); } .dl.wide dt:first-of-type, .dl.wide dt:first-of-type + dd { border-top: 0; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table td.num, .table th.num { text-align: right; }

/* ---------- Avatar ---------- */
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; overflow: hidden; background: var(--primary); position: relative; font-size: 1rem; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 36px; height: 36px; font-size: .85rem; }
.avatar.lg { width: 88px; height: 88px; font-size: 1.9rem; }
.avatar.xl { width: 120px; height: 120px; font-size: 2.5rem; }

/* ---------- Segmented / onglets / pagination ---------- */
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; gap: .25rem; padding: .25rem; background: #ece9f1; border-radius: 999px; }
.seg a, .seg button { flex: none; padding: .5rem 1rem; min-height: 40px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.seg a[aria-current="page"], .seg a.active, .seg button.active { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }

/* ---------- En-tête de page ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; margin-bottom: .5rem; font-weight: 600; text-decoration: none; }

/* ---------- Coque PUBLIQUE ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 249 251 / .92); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.brand img { height: 50px; width: auto; }
.nav-links { display: none; gap: .25rem; margin-left: 1rem; }
.nav-links a { padding: .5rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { background: var(--petal); }
.nav-links a[aria-current="page"] { color: var(--primary-dark); background: var(--petal); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.header-actions .btn { min-height: 42px; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 42px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .85rem; color: var(--primary-dark); background: #fff; }
.lang-switch:hover { background: var(--primary-soft); }
.menu-toggle { display: inline-block; position: relative; }
.menu-toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; width: min(88vw, 320px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop, 0 12px 40px rgb(0 0 0 / .18)); padding: .5rem; display: flex; flex-direction: column; }
.menu-panel a { padding: .85rem 1rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 48px; display: flex; align-items: center; gap: .6rem; }
.menu-panel a:hover { background: var(--primary-soft); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: .35rem 0; width: 100%; }
.header-cta { display: none; gap: .5rem; align-items: center; }
/* 6 liens + 2 boutons : la barre complète n'a la place qu'à partir de 1120 px, en dessous menu + bouton Connexion. */
@media (min-width: 1120px) { .nav-links, .header-cta { display: flex; } .menu-toggle, .mobile-login { display: none; } }
.nav-links a, .header-actions .btn, .lang-switch { white-space: nowrap; }
@media (max-width: 380px) { .site-header .brand img { height: 42px; } .header-actions { gap: .35rem; } }
.site-main { flex: 1; }

/* ---------- Accueil public ---------- */
.hero { position: relative; overflow: hidden; background: var(--canvas); }
.hero-grid { display: grid; gap: 2.5rem; padding-block: 2.5rem 3.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; padding-block: 4.5rem 5.5rem; gap: 3rem; } }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; color: var(--plum-deep); }
.hero-lead { font-size: 1.15rem; color: #4d4155; max-width: 52ch; margin-top: 1rem; }
.hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-facts { display: flex; gap: 0; margin: 2.25rem 0 0; padding: 0; }
.hero-facts div { padding-inline: 1.25rem; border-left: 2px solid var(--petal); }
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { font-size: .875rem; color: var(--muted); order: 2; }
.hero-facts dd { margin: 0; font-size: 1.9rem; font-weight: 600; color: var(--primary); line-height: 1.1; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-art { position: relative; margin: 0; justify-self: center; width: min(100%, 420px); }
.hero-art img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 32px 32px; }
.hero-art .shape { position: absolute; z-index: 0; border-radius: 50%; }
.hero-art .shape-a { width: 78%; aspect-ratio: 1; background: var(--petal); right: -14%; top: -6%; }
.hero-art .shape-b { width: 22%; aspect-ratio: 1; background: var(--secondary); left: -7%; bottom: 12%; }
.hero-art .shape-c { width: 12%; aspect-ratio: 1; background: var(--sage-soft); border: 3px solid #a9b96a; right: 4%; bottom: -3%; z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-art img { animation: unfold .9s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes unfold { from { opacity: 0; transform: scale(.94); } }
.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.section.alt { background: #fff; border-radius: 40px; margin-inline: clamp(.5rem, 2vw, 1.5rem); }
.pillar { border: 0; box-shadow: none; border-radius: 28px; padding: 1.75rem; }
.pillar.petal { background: var(--petal); } .pillar.peach { background: var(--peach); } .pillar.sage { background: var(--sage-soft); }
.pillar .icon-circle { background: #fff; width: 52px; height: 52px; font-size: 1.2rem; margin-bottom: 1rem; }
.pillar p { color: #4d4155; }
.quote { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; color: var(--primary-dark); margin: 1rem 0 0; text-align: center; max-width: 30ch; margin-inline: auto; }
.quote::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--secondary); margin: 0 auto 1.1rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Cartes de contenu (news, événements, services) */
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-card .thumb { aspect-ratio: 16 / 10; background: var(--petal); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 2.2rem; overflow: hidden; }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-card .body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.media-card h3 { margin: 0; }
.media-card .meta { font-size: .85rem; color: var(--muted); }
.media-card .meta .loc { display: block; }
.date-chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: .4rem .5rem; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); line-height: 1.1; font-weight: 600; }
.date-chip small { font-size: .7rem; text-transform: uppercase; font-weight: 600; }
.article { max-width: 760px; margin-inline: auto; }
.article .cover { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 56px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .8rem; color: var(--primary); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 1.1rem 1.1rem; color: #3d3846; }

/* ---------- Coque AUTH (même rendu que la connexion du dashboard) ---------- */
.auth-wrap { flex: 1; display: flex; flex-direction: column; background: radial-gradient(circle at 15% 20%, rgb(229 105 17 / .35), transparent 45%), linear-gradient(135deg, #3e2045 0%, var(--primary-dark) 45%, var(--primary) 100%); }
.auth-top { display: flex; justify-content: flex-end; align-items: center; padding: 14px 16px; }
.auth-top .lang-switch { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .35); color: #fff; }
.auth-top .lang-switch:hover { background: rgb(255 255 255 / .26); }
.auth-top .lang-switch:focus-visible { outline-color: #fff; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 8px 16px 32px; }
@media (min-height: 720px) and (min-width: 720px) { .auth-main { align-items: center; } }
.auth-card { width: 100%; max-width: 410px; border-radius: 18px; padding: 32px 22px 26px; box-shadow: 0 24px 80px rgb(0 0 0 / .3); border: 0; }
@media (min-width: 480px) { .auth-card { padding: 36px 34px 28px; } }
.auth-card.wide { max-width: 640px; }
.auth-card .login-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-card .login-logo img { height: 92px; width: auto; }
.auth-card h1 { font-size: 1.35rem; font-weight: 600; text-align: center; margin: 0 0 .25rem; }
.auth-card > p { text-align: center; }
.auth-card > .badge { display: flex; width: fit-content; margin: 0 auto .75rem; }
.auth-card legend { text-align: left; }
.auth-foot { text-align: center; padding: 1rem; font-size: .85rem; color: rgb(255 255 255 / .85); }
.auth-foot a { color: #fff; margin: 0 .5rem; }

/* ---------- Coque MEMBRE ---------- */
.app { flex: 1; display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { display: none; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-bottom: calc(var(--tabbar) + var(--safe-bottom)); }
.app-topbar { display: flex; align-items: center; gap: .75rem; padding: 10px 16px; background: rgb(255 249 251 / .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 40; min-height: 62px; }
.app-topbar .brand img { height: 50px; }
.app-topbar .spacer { flex: 1; }
.top-icon { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.top-icon:hover { background: var(--primary-soft); }
.top-icon .pill-count { position: absolute; top: 2px; right: 0; }
.app-content { width: 100%; max-width: 980px; margin-inline: auto; padding: 20px 16px 32px; }
@media (min-width: 640px) { .app-content { padding: 28px 24px 40px; } }
.tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 24px 24px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: var(--safe-bottom); box-shadow: 0 -6px 28px rgb(136 71 143 / .14); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabbar); padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 600; position: relative; }
.tabbar a i { font-size: 1.2rem; }
.tabbar a[aria-current="page"] { color: var(--primary-dark); }
.tabbar a[aria-current="page"]::before { content: ''; position: absolute; top: 6px; width: 44px; height: 30px; border-radius: 999px; background: var(--petal); z-index: -1; }
.tabbar .pill-count { position: absolute; top: 6px; left: calc(50% + 6px); }
@media (min-width: 960px) {
  .sidebar { display: flex; flex-direction: column; width: var(--sidebar); flex: none; background: #fff; border-radius: 0 32px 32px 0; box-shadow: 0 0 40px rgb(136 71 143 / .08); position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 22px 16px; overflow-y: auto; }
  .sidebar .brand { padding: 4px 8px 18px; display: flex; justify-content: center; }
  .sidebar .brand img { height: 64px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav h2 { font-size: .85rem; font-weight: 600; color: var(--primary); margin: 1.25rem 1rem .35rem; letter-spacing: 0; }
  .side-link { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-radius: 999px; text-decoration: none; color: #4a3e52; font-weight: 600; font-size: .95rem; line-height: 1.3; min-height: 46px; }
  .side-link span:not(.pill-count) { min-width: 0; }
  .side-link i { width: 20px; text-align: center; color: #8c8696; }
  .side-link:hover { background: var(--petal); }
  .side-link[aria-current="page"] { background: var(--petal); color: var(--primary-dark); }
  .side-link[aria-current="page"] i { color: var(--primary); }
  .side-link .pill-count { margin-left: auto; }
  .sidebar .me { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .65rem; }
  .app-main { padding-bottom: 0; }
  .app-topbar { display: none; }
  .tabbar { display: none; }
  .app-content { padding-top: 40px; }
}

/* ---------- Écrans membre ---------- */
.dues-hero { position: relative; overflow: hidden; background: var(--primary); color: #fff; border: 0; border-radius: 28px; }
.dues-hero::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgb(255 255 255 / .1); right: -50px; top: -60px; pointer-events: none; }
.dues-hero > * { position: relative; z-index: 1; }
.dues-hero h2, .dues-hero h3 { color: #fff; }
.dues-hero .muted { color: rgb(255 255 255 / .85); }
.dues-hero .btn-light { margin-top: .25rem; }
.amount { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); font-weight: 600; line-height: 1.1; }
.shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .shortcuts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.shortcut, a.card.shortcut { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; text-align: center; font-weight: 600; font-size: .9rem; position: relative; }
.shortcut .pill-count { position: absolute; top: 8px; right: 8px; }

/* Carte adhérente */
.member-card { position: relative; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 1.586; border-radius: 22px; padding: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #b0609f 100%); box-shadow: 0 18px 40px rgb(98 53 107 / .35); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.member-card::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgb(255 255 255 / .08); right: -90px; top: -90px; }
.member-card .top { display: flex; justify-content: space-between; align-items: center; z-index: 1; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.member-card .name { font-size: clamp(1.15rem, 4.5vw, 1.55rem); font-weight: 600; z-index: 1; }
.member-card .num { font-size: .95rem; letter-spacing: .12em; font-weight: 600; z-index: 1; font-variant-numeric: tabular-nums; }
.member-card .meta { display: flex; justify-content: space-between; align-items: end; gap: 1rem; z-index: 1; font-size: .78rem; opacity: .95; }
.member-card .logo-badge { background: #fff; border-radius: 12px; padding: 5px 10px; display: inline-flex; flex: none; }
.member-card .logo-badge img { height: 30px; width: auto; max-width: none; display: block; }
.qr-box { background: #fff; border-radius: var(--radius); padding: 1rem; max-width: 280px; margin-inline: auto; }
.qr-box svg { width: 100%; height: auto; display: block; }
.hbar { height: 8px; background: #ece9f1; border-radius: 999px; overflow: hidden; }
.hbar > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.confirm-box { text-align: center; padding: 2rem 1rem; }
.confirm-box .big-icon { width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; margin-bottom: 1rem; background: var(--success-bg); color: var(--success-ink); }
.confirm-box .big-icon.warn { background: var(--warning-bg); color: var(--warning-ink); }
.confirm-box .big-icon.bad { background: var(--danger-bg); color: var(--danger-ink); }
.upload-preview { max-width: 220px; border-radius: var(--radius-sm); margin-top: .5rem; display: block; }

/* Boîte de confirmation (remplace window.confirm) */
dialog.confirm { border: 0; border-radius: var(--radius); padding: 0; max-width: min(92vw, 440px); width: 100%; box-shadow: 0 24px 60px rgb(0 0 0 / .3); }
dialog.confirm::backdrop { background: rgb(30 27 36 / .55); }
dialog.confirm .inner { padding: 1.5rem; }
dialog.confirm .actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }
dialog.confirm .actions .btn { flex: 1 1 130px; }

.notif-unread { font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); flex: none; }

@media print {
  .site-header, .site-footer, .sidebar, .tabbar, .app-topbar, .no-print, .toasts { display: none !important; }
  body { background: #fff; }
  .member-card { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app-main { padding: 0; }
}

.otp-single { text-align: center; font-size: 1.8rem; font-weight: 600; letter-spacing: .5em; padding-left: 1.2em; font-variant-numeric: tabular-nums; }

/* === content === */
/* HTML riche du backend (actualités, événements, services, FAQ) */
.rich { line-height: 1.7; overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; } .rich > :last-child { margin-bottom: 0; }
.rich p, .rich ul, .rich ol, .rich blockquote { margin: 0 0 1rem; }
.rich ul, .rich ol { padding-left: 1.4rem; }
.rich h2, .rich h3 { margin: 1.5rem 0 .6rem; }
.rich img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.rich blockquote { border-left: 4px solid var(--secondary); padding-left: 1rem; color: var(--muted); }
.rich a { color: var(--primary-dark); text-decoration: underline; }

/* === dues === */
.narrow { max-width: 720px; }
.pay-list { list-style: none; margin: 0; padding: 0 1.25rem; }
.pay-row { padding: .9rem 0; border-top: 1px solid var(--line); display: grid; gap: .35rem; }
.pay-row:first-child { border-top: 0; }
.pay-row .inv-link { text-decoration: none; color: inherit; min-height: 44px; }
.small { font-size: .875rem; }
.struck { text-decoration: line-through; color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.chip { padding: .3rem .8rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; font-size: .875rem; }
.dues-hero.late { background: linear-gradient(135deg, #b02a2a, #8f2020); }
.confirm { text-align: center; display: grid; gap: .5rem; justify-items: center; }
.confirm .dl { text-align: left; width: 100%; }

/* === community === */
.dir-filters .field { margin-bottom: .75rem; }
@media (min-width: 720px) { .dir-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 1rem; align-items: end; } .dir-filters .row { grid-column: 1 / -1; } }
.avatar-preview { display: block; margin-top: .75rem; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.danger-zone { border-color: var(--danger-ink); }

/* === partenaires, à propos === */
.partners { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .partners { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.partner { display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; font-weight: 600; color: var(--primary-dark); }
.partner img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.back-site { margin-right: auto; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; }
.back-site:hover { text-decoration: underline; }
.back-site:focus-visible { outline-color: #fff; }

/* === page À propos (immersive) === */
.about-hero { position: relative; min-height: min(72vh, 620px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; border-radius: 0 0 48px 48px; background: var(--plum-deep); }
.about-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-hero::after { content: ''; position: absolute; inset: 0; background: rgb(54 24 62 / .58); }
.about-hero-text { position: relative; z-index: 1; padding-block: 3rem 6.5rem; }
.about-hero h1 { color: #fff; font-size: clamp(2.4rem, 1.5rem + 4.5vw, 4.5rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: .75rem; }
.about-hero p { max-width: 46ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.5; margin: 0; }
.about-trio { display: grid; gap: 1rem; margin-top: -4.25rem; position: relative; z-index: 2; }
@media (min-width: 900px) { .about-trio { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.trio-card { border-radius: 28px; padding: 1.75rem; box-shadow: var(--shadow); }
.trio-card.petal { background: var(--petal); } .trio-card.peach { background: var(--peach); } .trio-card.sage { background: var(--sage-soft); }
.trio-card h2 { font-size: 1.25rem; }
.trio-card .key { font-size: 1.15rem; font-weight: 600; color: var(--primary); margin-bottom: .5rem; }
.about-split { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem) 0; }
@media (min-width: 900px) { .about-split { grid-template-columns: 1fr 1fr; gap: 4rem; } .about-split.reverse .about-photos { order: -1; } }
.about-copy h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 600; letter-spacing: -0.025em; margin-bottom: 1rem; }
.about-copy p { color: #4d4155; max-width: 56ch; }
.about-copy .ambition { font-size: 1.2rem; font-weight: 600; color: var(--primary-dark); line-height: 1.4; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 2px solid var(--petal); }
.pills { list-style: none; margin: .75rem 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pills li { background: var(--petal); color: var(--primary-dark); font-weight: 600; font-size: .95rem; padding: .45rem 1rem; border-radius: 999px; }
.about-photos { position: relative; padding-bottom: 3.5rem; padding-right: 0; }
.about-photos.single { padding-bottom: 0; }
.about-photos img { display: block; width: 100%; object-fit: cover; }
.photo-main { aspect-ratio: 4 / 3; border-radius: 32px; box-shadow: var(--shadow); }
.photo-float { position: absolute; width: 58% !important; right: -1rem; bottom: 0; aspect-ratio: 4 / 3; border-radius: 28px; border: 6px solid var(--canvas); box-shadow: var(--shadow); }
@media (max-width: 520px) { .photo-float { right: 0; } }
.photo-arch { aspect-ratio: 1.15 / 1; border-radius: 999px 999px 32px 32px; box-shadow: var(--shadow); object-position: 50% 40%; }
.about-team { margin-top: clamp(3.5rem, 8vw, 6rem); background: var(--primary-dark); color: #fff; border-radius: 48px; margin-inline: clamp(.5rem, 2vw, 1.5rem); padding-block: clamp(3rem, 7vw, 5rem); }
.about-team h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 600; letter-spacing: -0.025em; }
.team-head p { color: #ecd7ea; font-size: 1.15rem; max-width: 48ch; }
.team-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-grid li { display: flex; align-items: center; gap: .9rem; background: rgb(255 255 255 / .1); border-radius: 22px; padding: 1.1rem 1.2rem; font-weight: 600; }
.team-grid .icon-circle { background: #fff; color: var(--primary-dark); }
.team-closing { margin: 1.75rem 0 0; color: #ecd7ea; max-width: 56ch; }
.domain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.domain-list li { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: .8rem 1.1rem .8rem .8rem; font-weight: 600; }
.about-goals { padding-block: clamp(3.5rem, 8vw, 6rem) 0; }
.about-goals h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 600; letter-spacing: -0.025em; margin-bottom: 1.5rem; }
/* === pied de page compact (une ligne) === */
.site-footer { background: var(--primary-dark); color: #f0dcef; margin-top: 4rem; padding: 2.75rem 0; border-radius: 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer .brand img { height: 64px; background: #fff; padding: 8px 16px; border-radius: 14px; }
.foot-block { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; font-size: 1.05rem; }
.foot-block strong { color: #fff; font-weight: 600; }
.site-footer a { color: #f0dcef; text-decoration: none; padding-block: .5rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer a:focus-visible { outline-color: #fff; }
@media (min-width: 960px) { .foot-row { flex-wrap: nowrap; } }

/* === magazine : actualités & événements === */
.mag { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .mag { grid-template-columns: 1.3fr 1fr; gap: 1.25rem; } }
.mag-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 900px) { .mag-side { gap: 1.25rem; } }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 3.4rem; overflow: hidden; border-radius: 28px; color: #fff; text-decoration: none; isolation: isolate; min-height: 230px; background: linear-gradient(135deg, var(--tile, #88478f), color-mix(in srgb, var(--tile, #88478f) 45%, #2b1432)); transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgb(98 53 107 / .25); }
.tile:focus-visible { outline-color: var(--primary); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(30 14 36 / .88) 0%, rgb(30 14 36 / .45) 45%, rgb(30 14 36 / .05) 80%); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile-icon { position: absolute; z-index: -1; top: 14%; right: 9%; font-size: clamp(3rem, 9vw, 5.5rem); opacity: .28; }
.tile-label { position: absolute; top: 1rem; left: 1rem; background: rgb(255 255 255 / .92); color: var(--primary-dark); font-weight: 600; font-size: .8rem; padding: .3rem .85rem; border-radius: 999px; max-width: calc(100% - 2rem); }
.tile-text { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.15rem 1.2rem; font-size: .85rem; }
.tile-text time { opacity: .92; }
.tile-title { font-size: 1.02rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.tile-place { opacity: .92; }
.tile-lg { min-height: 340px; }
.tile-lg .tile-text { padding: 1.5rem; font-size: .95rem; }
.tile-lg .tile-title { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; max-width: 22ch; }
@media (min-width: 900px) { .tile-lg { min-height: 460px; } .mag-side .tile { min-height: 0; } }
.mag-section { margin-top: clamp(2rem, 5vw, 3.25rem); }
.mag-section h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 600; margin-bottom: 1rem; }
.event-rows { display: grid; gap: .75rem; }
@media (min-width: 760px) { .event-rows { grid-template-columns: 1fr 1fr; } }
.event-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.event-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.event-row .date-chip { min-width: 62px; padding: .55rem .5rem; border-radius: 18px; }
.event-row .date-chip .d { font-size: 1.5rem; }
.muted-rows .event-row { background: transparent; border-style: dashed; }
.media-card .thumb[style] { background: linear-gradient(135deg, var(--tile), color-mix(in srgb, var(--tile) 55%, #2b1432)); color: #fff; }
.mag-side .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }

.event-page { max-width: 860px; }
.event-page .cover { border-radius: 20px; }
.kicker { margin: 0 0 .5rem; color: var(--muted); font-size: .9rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.event-page h1 { margin: 0 0 1rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.5rem; font-weight: 500; }
.event-meta a { color: inherit; text-decoration: none; } .event-meta a:hover { text-decoration: underline; }
.event-meta i { color: var(--primary); margin-right: .35rem; }
.event-page .rich h2 { font-size: 1.25rem; margin-top: 0; }
.event-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.25rem 1.5rem; }
.event-pay > div { display: flex; flex-direction: column; gap: .15rem; }
.event-price { font-size: 2rem; line-height: 1.1; }
.event-promo { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: center; padding: clamp(1.25rem, 3vw, 2rem); background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: 32px; }
@media (min-width: 800px) { .event-promo { grid-template-columns: 1.4fr 1fr; } }
.event-promo .kicker { color: rgb(255 255 255 / .8); }
.event-promo h2 { margin: 0 0 .5rem; color: #fff; }
.event-promo p { margin: 0 0 .35rem; }
.event-promo .cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.event-promo-price { font-size: 2.25rem; font-weight: 600; line-height: 1.1; }
.event-page .lead { margin: 0 0 1.5rem; font-size: 1.2rem; line-height: 1.5; color: var(--muted); }
.event-page .rich { font-size: 1.08rem; }
.article-foot { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line, #eadbe6); }
