:root {
    color-scheme: light;
    font-family: Arial, sans-serif;
    --ink: #17212b;
    --muted: #65727e;
    --line: #dbe2e8;
    --accent: #85549a;
    --accent-dark: #3f2b4a;
    --reunion-bg: #fff7e6;
    --materiel-bg: #e6f2ff;
    --modifier-bg: #eaf5eb;
}

* { box-sizing: border-box; }

body { min-height: 100vh; margin: 0; background: #f2f5f6; color: var(--ink); }

.site-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    min-height: 100px;
    padding: 0 max(24px, calc((100% - 1180px) / 2));
    background: var(--accent-dark);
    color: white;
}

.brand-block { display: flex; align-items: center; padding: 24px 0; }
.overline { margin: 0 0 7px; color: #d9bde3; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-header h1 { margin: 0; font-size: 1.7rem; }

.header-actions { display: flex; flex: 0 0 auto; order: 2; }
.header-action { display: flex; align-self: stretch; align-items: center; justify-content: center; min-width: 100px; aspect-ratio: 1; color: var(--ink); font-size: 40px; line-height: 1; text-decoration: none; }
.header-action.reunion { background: var(--reunion-bg); }
.header-action.materiel { background: var(--materiel-bg); }
.header-action.modifier { background: var(--modifier-bg); }
.header-action:hover { filter: brightness(.95); }

.page-content { width: min(1180px, calc(100% - 32px)); margin: 34px auto 60px; }
.intro { margin-bottom: 30px; }
.intro .overline { color: var(--accent); }
.intro h2 { max-width: 760px; margin: 0 0 10px; color: var(--accent-dark); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.05; }
.intro > p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }

.associations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.association-card { min-width: 0; padding: 20px; border: 1px solid #dfd1e6; border-radius: 8px; background: white; box-shadow: 0 8px 24px rgba(63, 43, 74, .07); }
.association-image { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border: 2px solid #c9afd3; border-radius: 6px; background: #f3edf6; }
.association-image img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { display: none; color: #65727e; font-size: 3rem; font-weight: 700; }
.association-image.no-image img { display: none; }
.association-image.no-image .image-placeholder { display: block; }
.association-card h3 { margin: 16px 0 0; color: var(--accent-dark); font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
.association-email { display: grid; grid-template-columns: 1rem minmax(0, 1fr); align-items: center; gap: 7px; margin-top: 12px; color: var(--accent); font-size: clamp(.72rem, 1.25vw, .9rem); line-height: 1.35; text-decoration: none; white-space: nowrap; }
.association-email:hover { color: var(--accent-dark); text-decoration: underline; }
.email-icon { display: grid; place-items: center; width: 1rem; height: 1rem; font-size: 1rem; line-height: 1; }
.association-email span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.association-instagram { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: #85549a; font-size: clamp(.72rem, 1.25vw, .9rem); line-height: 1.35; text-decoration: none; white-space: nowrap; }
.association-instagram:hover { color: #3f2b4a; text-decoration: underline; }
.instagram-icon { display: grid; place-items: center; width: 1rem; height: 1rem; font-size: .8rem; line-height: 1; }
.association-instagram span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.empty-state { padding: 24px; color: var(--muted); }

@media (max-width: 600px) {
    .site-header { display: flex; flex-direction: column; align-items: stretch; padding: 0; }
    .brand-block { justify-content: center; padding: 20px 16px 16px; text-align: center; }
    .header-actions { width: 100%; justify-content: center; gap: 6px; padding: 0 8px 8px; }
    .header-action { flex: 1; width: auto; min-width: 0; height: 56px; aspect-ratio: auto; font-size: 32px; }
    .page-content { width: min(100% - 20px, 620px); margin-top: 22px; padding-bottom: 28px; }
    .intro { margin-bottom: 22px; }
    .associations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .association-card { padding: 10px; }
    .association-card h3 { margin-top: 10px; font-size: .95rem; }
    .association-email { grid-template-columns: .8rem minmax(0, 1fr); gap: 4px; margin-top: 8px; font-size: .6rem; line-height: 1; }
    .email-icon { width: .8rem; height: .8rem; font-size: .8rem; }
    .association-instagram { gap: 4px; margin-top: 6px; font-size: .6rem; line-height: 1; }
    .instagram-icon { width: .8rem; height: .8rem; font-size: .65rem; }
}

@media (max-width: 360px) {
    .association-email { font-size: .55rem; }
    .association-instagram { font-size: .55rem; }
}
