:root {
    /* Charte AD2N (relevée sur ad2n.org) */
    --brand: #0f1f3d;
    --brand-hover: #17284a;
    --brand-text: #ffffff;
    --accent: #2fd4c6;
    --accent-hover: #23c1b4;
    --accent-strong: #0a7c78;
    --accent-soft: rgba(47, 212, 198, 0.12);

    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-soft: #fafbfc;
    --border: #e6e9ef;
    --text: #33404f;
    --text-strong: #0f1f3d;
    --muted: #7b8494;
    --danger: #b91c1c;

    --radius: 16px;
    --wrap: 760px;
    --font-display: 'Syne', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

/* En-tête façon AD2N : bandeau navy + logo blanc + mention */
.site-header {
    background: var(--brand);
    padding: 1.25rem 0;
    border-bottom: 3px solid var(--accent);
}
.brand { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; }
.brand-logo { height: 60px; width: auto; display: block; }
.brand-sep { width: 2px; align-self: stretch; background: rgba(255,255,255,0.18); border-radius: 2px; }
.brand-titles { display: flex; flex-direction: column; gap: 0.15rem; }
.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.1;
    color: var(--brand-text);
}
.brand-sub { font-size: 0.8rem; color: #aeb8cc; }
@media (max-width: 480px) {
    .brand-logo { height: 46px; }
    .brand-text { font-size: 1.15rem; }
    .brand-sub { display: none; }
}
.site-footer {
    background: var(--brand);
    color: #aeb8cc;
    font-size: 0.85rem;
    padding: 1.6rem 0;
    text-align: center;
    margin-top: 2.5rem;
}
.site-footer .brand-mini { font-family: var(--font-display); font-weight: 700; color: #fff; letter-spacing: .04em; }
.site-footer a { color: var(--accent); text-decoration: none; }

main.wrap { padding-top: 1.5rem; padding-bottom: 2rem; }

h1, h2 { font-family: var(--font-display); color: var(--text-strong); line-height: 1.2; }

.link { color: var(--accent-strong); }
.link:hover { color: var(--accent-hover); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.centered { text-align: center; padding: 3rem 0; }

.event {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 0 0 1.5rem;
    box-shadow: 0 6px 20px rgba(32, 44, 71, 0.06);
}
.event > *:not(.event-cover) { margin-left: 1.5rem; margin-right: 1.5rem; }
.event-cover {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    display: block;
    background: #eef1f4;
}
.event-title { margin: 1.25rem 0 0.9rem; font-size: 1.75rem; }
/* Barre teal sous les titres — élément signature AD2N */
.event-title::after,
.reg-box h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--accent);
    margin-top: 0.55rem;
}
.event-meta { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.event-meta .ico { display: inline-block; width: 1.4rem; }
.event-map { margin: 0.25rem 0 1.25rem; }
.event-map iframe {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 12px;
    display: block;
    background: #eef1f4;
}
.event-map-link { display: inline-block; margin-top: 0.5rem; font-size: 0.85rem; color: var(--accent-strong); }

.event-desc { white-space: normal; margin-bottom: 1.5rem; }

.reg-box {
    margin-top: 1.5rem !important;
    padding: 1.25rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.reg-box h2 { margin: 0 0 0.75rem; font-size: 1.35rem; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.85rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-strong); }
.field input,
.field select {
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #07322e;
    font-family: var(--font-display);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }

.alert { border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 1rem; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-success { background: var(--accent-soft); color: var(--accent-strong); }
.alert-info    { background: #eef2f8; color: var(--brand); }
.alert-error   { background: #fde8e8; color: var(--danger); }

/* Honeypot anti-bot : masqué aux humains. */
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
