:root {
    --navy: #052e45;
    --pink: #e7639b;
    --ink-pink: #a51a60;
    --blue: #89cbfd;
    --pale-blue: #e8f4fe;
    --pale-pink: #ffdef0;
    --page: #f7f9fb;
    --line: #d5e2ec;
    --muted: #4a6275;
    --font: Arial, Helvetica, sans-serif;
    --font-heading: 'Arial Black', Arial, sans-serif;
    --space: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page);
    color: var(--navy);
    font: 16px/1.6 var(--font);
}

a { color: var(--ink-pink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #3e8ede; outline-offset: 3px; }

h1 { font-family: var(--font-heading); font-size: clamp(1.6rem, 5vw, 2.5rem); line-height: 1.2; margin: 0 0 var(--space); }
/* Les longs mots composés (néerlandais, allemand) passent à la ligne au lieu de dépasser à 320 px. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 var(--space); max-width: 65ch; }

.container { width: min(100% - 2 * var(--space), 1312px); margin-inline: auto; }
.main { flex: 1; padding-block: calc(var(--space) * 2); }

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 12px 20px;
    background: #fff;
    color: var(--navy);
    transform: translateY(-200%);
    z-index: 10;
}
.skip-link:focus { transform: none; }

/* En-tête commun avec le site vitrine : logo, bouton Soutenir, navigation du site, puis barre de l'espace. */
.site-header { background: var(--navy); color: #fff; }
.site-header__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space); padding-block: 10px; }
.site-header__brand { display: block; }
.site-header__brand img { display: block; width: 95px; height: 86px; object-fit: contain; }
.site-header__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.site-header__support { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 22px; border-radius: 999px; background: var(--pink); color: #031f2f; font-weight: 700; text-decoration: none; }
.site-header__support:hover { background: #f08ab5; }
.site-header__support:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.public-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-bottom: 12px; }
.public-nav a { display: inline-block; padding-block: 10px; color: #fff; font-weight: 700; text-underline-offset: 4px; }
.public-nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.public-nav__join { margin-left: auto; }
.space-bar { background: #082638; }
.space-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--space); }
.space-bar__title { color: var(--blue); font-weight: 700; text-decoration: none; padding-block: 10px; }
.space-bar__title:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.site-nav a, .site-nav__logout button {
    display: inline-block;
    min-height: 44px;
    padding: 10px 12px;
    color: #fff;
    font: inherit;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}
.site-nav a:focus-visible, .site-nav__logout button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.site-nav__logout { margin: 0; }
.home-actions { display: flex; flex-wrap: wrap; gap: var(--space); }

/* Sélecteur de langue discret : codes FR, NL, DE, IT ; nom complet pour les lecteurs d'écran. */
.lang ul { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.lang li + li::before { content: '·'; color: var(--blue); opacity: .5; padding-inline: 1px; font-size: 0.7rem; }
.lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    min-width: 26px;
    padding: 2px 4px;
    color: var(--blue);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    opacity: .85;
}
.lang a:hover { color: #fff; opacity: 1; }
.lang a[aria-current] { color: #fff; font-weight: 700; opacity: 1; border-bottom-color: var(--pink); }
.lang a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.notice { padding: var(--space); background: var(--pale-blue); border-left: 4px solid var(--blue); }

/* Pied de page commun avec le site vitrine. */
.site-footer { background: #031f2f; color: #fff; padding-block: 40px 24px; margin-top: 48px; }
.site-footer a { color: #c5dbe9; }
.site-footer a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.site-footer__top, .site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer__name { font-family: var(--font-heading); font-size: 1.25rem; }
.site-footer__social, .site-footer__links, .site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__social a { color: #fff; text-decoration: none; padding-block: 8px; }
.site-footer__social a:hover { text-decoration: underline; }
.site-footer__links { margin-block: 24px; font-size: 0.85rem; }
.site-footer__links a, .site-footer__legal a { display: inline-block; padding-block: 8px; }
.site-footer__bottom { font-size: 0.8rem; color: #c5dbe9; border-top: 1px solid rgba(197,219,233,.2); padding-top: 16px; }

h2 { font-size: 1.3rem; line-height: 1.3; margin: calc(var(--space) * 2) 0 var(--space); }
h3 { font-size: 1.1rem; line-height: 1.3; margin: calc(var(--space) * 1.5) 0 calc(var(--space) / 2); }

/* Formulaires */
.form { max-width: 40rem; }
.form fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 calc(var(--space) * 1.5); padding: var(--space); background: #fff; }
.form legend { font-weight: 700; padding-inline: 8px; }
.field { margin-bottom: var(--space); }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    font: inherit;
    color: var(--navy);
    background: #fff;
    border: 2px solid var(--muted);
    border-radius: 6px;
}
/* Zones de texte (motifs, message) : pleine largeur, assez hautes pour écrire quelques phrases. */
textarea {
    display: block;
    width: 100%;
    max-width: 48rem;
    min-height: 8rem;
    padding: 8px 12px;
    font: inherit;
    line-height: 1.5;
    color: var(--navy);
    background: #fff;
    border: 2px solid var(--muted);
    border-radius: 6px;
    resize: vertical;
}
textarea:focus-visible { outline: 3px solid #3e8ede; outline-offset: 2px; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid #3e8ede; outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--ink-pink); }
.field--checkbox { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.field--checkbox input { width: 22px; height: 22px; margin: 2px 0 0; }
.field--checkbox label { font-weight: 400; margin: 0; }
.field--checkbox .form-error, .field--checkbox .help-text { grid-column: 2; }
.help-text { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.form-error { margin: 4px 0; color: var(--ink-pink); font-weight: 700; }
.form > .form-error { padding: var(--space); background: var(--pale-pink); border-left: 4px solid var(--ink-pink); }
.form--inline { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space); }
.form--inline .field { flex: 1 1 16rem; margin: 0; }

/* Champ piège : hors de l'écran, ignoré par les lecteurs d'écran (aria-hidden) et le clavier (tabindex -1). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.button {
    display: inline-block;
    min-height: 44px;
    padding: 10px 24px;
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: var(--ink-pink);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}
.button:hover { background: #8a1550; }
.button:focus-visible { outline: 3px solid #3e8ede; outline-offset: 3px; }

/* Pages légales */
.legal-layout { display: grid; gap: calc(var(--space) * 2); align-items: start; }
.legal-summary { padding: var(--space); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.legal-summary li + li { margin-top: 8px; }
.legal-full > h2 { margin-top: 0; }
.legal-sections { display: grid; gap: var(--space); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.legal-section { padding: var(--space); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.legal-section h3 { margin-top: 0; }
.legal-section p:last-child { margin-bottom: 0; }
@media (min-width: 64rem) {
    .legal-layout { grid-template-columns: minmax(16rem, 22rem) 1fr; }
    .legal-summary { position: sticky; top: var(--space); }
}
.legal-summary h2 { margin-top: 0; }
.legal-version { color: var(--muted); }

/* Déclaration d'un Digital Cleanup */
.field--choice { border: 0; padding: 0; margin: 0 0 var(--space); background: none; }
.form .field--choice { border: 0; padding: 0; background: none; }
.field--choice legend { padding: 0; margin-bottom: 4px; }
.field--choice .choice-option { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-block: 6px; }
.field--choice .choice-option input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.field--choice .choice-option label { display: inline; font-weight: 400; margin: 0; }
.commune-results { margin-bottom: var(--space); }
.commune-results__title { font-weight: 700; margin-bottom: 4px; }
.commune-list { list-style: none; margin: 0; padding: 0; }
.commune-list li { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-block: 6px; }
.commune-list input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.commune-list label { cursor: pointer; }
.button--secondary { color: var(--navy); background: #fff; border: 2px solid var(--navy); }
.button--secondary:hover { background: var(--pale-blue); }
.details { max-width: 40rem; }
.details dt { font-weight: 700; margin-top: var(--space); }
.details dd { margin: 0; }
.details ul { margin: 0; padding-left: 1.2em; }

/* Texte réservé aux lecteurs d'écran, ou bouton doublon d'envoi par la touche Entrée */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Espace organisateur */
.banner { max-width: 65ch; padding: var(--space); margin: 0 0 var(--space); background: var(--pale-blue); border-left: 4px solid var(--blue); }
.banner p:last-child { margin-bottom: 0; }
.banner__title { font-weight: 700; margin-bottom: 4px; }
.banner--refused, .banner--suspended { background: var(--pale-pink); border-left-color: var(--ink-pink); }
.flash-success, .flash-error { max-width: 65ch; padding: var(--space); margin: 0 0 var(--space); }
.flash-success { background: var(--pale-blue); border-left: 4px solid var(--blue); }
.flash-error { background: var(--pale-pink); border-left: 4px solid var(--ink-pink); font-weight: 700; }
/* ---- Mon espace : carte des liens personne → organisations → Digital Cleanups ---- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.icon--lg { width: 1.6rem; height: 1.6rem; }

.space-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space); margin-bottom: var(--space); }
.space-head h1 { margin-bottom: 4px; }
.space-hello { font-size: 1.15rem; margin: 0; }
.deadline-pill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 36rem; margin: 0; padding: 10px 16px; background: var(--pale-blue); border-radius: 14px; }
.deadline-pill__days { padding: 2px 12px; background: var(--navy); color: #fff; border-radius: 999px; white-space: nowrap; }
.deadline-pill--none { background: #fff; border: 1px solid var(--line); }

.space-layout { display: grid; gap: calc(var(--space) * 2); align-items: start; }
@media (min-width: 64rem) { .space-layout { grid-template-columns: 1fr minmax(18rem, 22rem); } }

.relation-map h2 { margin-top: 0; }
.relation-map__intro { color: var(--muted); }
.relation-map__person { display: flex; align-items: center; gap: 14px; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--ink-pink); color: #fff; font: 1.4rem/1 var(--font-heading); box-shadow: 0 0 0 6px var(--pale-pink); }
.relation-map__name { font: 1.35rem/1.2 var(--font-heading); }

/* Le chemin : un trait pointillé descend de la personne et se ramifie vers chaque organisation. */
.relation-map__branches { --rail: 32px; list-style: none; margin: 0 0 0 calc(var(--rail) - 2px); padding: 12px 0 0; }
.relation-map__branch { position: relative; padding: 0 0 calc(var(--space) * 1.5) calc(var(--rail) + 8px); }
.relation-map__branch::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 3px dashed var(--blue); }
.relation-map__branch:last-child::before { bottom: auto; height: 34px; }
.relation-map__branch::after { content: ""; position: absolute; left: 0; top: 34px; width: var(--rail); border-top: 3px dashed var(--blue); }

.node { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left-width: 6px; border-radius: 4px 14px 14px 4px; }
.node__icon { width: 36px; height: 36px; flex: none; padding: 6px; border-radius: 10px; background: var(--pale-blue); color: var(--navy); }
.node__title { margin: 0 0 4px; font-size: 1.15rem; }
.node__title a { color: var(--navy); }
.node__meta, .node__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.node__help { margin: 0 0 8px; color: var(--muted); }
.node--validated { border-left-color: #2f9e5b; }
.node--pending { border-left-color: #e0a100; }
.node--refused, .node--suspended { border-left-color: var(--ink-pink); }
.node--self { border-left-color: var(--pink); background: var(--pale-pink); }
.node--self .node__icon { background: #fff; color: var(--ink-pink); }
.node--new { border: 2px dashed var(--line); border-radius: 14px; background: transparent; }
.node--new .node__icon { background: var(--pale-pink); color: var(--ink-pink); }
.relation-map__branch .banner { margin: 10px 0 0; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--pale-blue); color: var(--navy); font-size: 0.9rem; font-weight: 700; }
.badge--validated { background: #e3f4e8; }
.badge--pending { background: #fff4d6; }
.badge--refused, .badge--suspended { background: var(--pale-pink); }

/* Les Digital Cleanups : des tickets, la date dans le talon. */
.tickets { display: grid; gap: 10px; list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; }
.event-ticket__link { position: relative; display: flex; min-height: 72px; color: var(--navy); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.event-ticket__link:hover, .event-ticket__link:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgb(5 46 69 / 0.12); }
.event-ticket__link:focus-visible { outline: 3px solid #3e8ede; outline-offset: 2px; }
.event-ticket__stub { display: grid; place-content: center; justify-items: center; width: 72px; flex: none; background: var(--navy); color: #fff; border-right: 2px dashed rgb(255 255 255 / 0.5); }
.event-ticket__day { font: 1.6rem/1 var(--font-heading); }
.event-ticket__month { font-size: 0.85rem; }
.event-ticket__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 14px; min-width: 0; }
.event-ticket__title { font-weight: 700; overflow-wrap: anywhere; }
.event-ticket__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.event-ticket__hint { color: var(--muted); font-size: 0.95rem; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); font-size: 0.85rem; }
.chip--todo { background: #fff4d6; border-color: #f0d68a; }
.event-ticket--new .event-ticket__link { background: transparent; border: 2px dashed var(--line); }
.event-ticket--new .event-ticket__stub { background: var(--pale-pink); color: var(--ink-pink); border-right-color: var(--line); }
.event-ticket--new .event-ticket__title { color: var(--ink-pink); }

.profile-card { padding: var(--space); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.profile-card h2 { margin-top: 0; }
.profile-card__list { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 var(--space); }
.profile-card__list dt { font-weight: 700; }
.profile-card__list dd { margin: 0; overflow-wrap: anywhere; }
.profile-card__links { padding-left: 1.2rem; margin: 0 0 var(--space); }
.profile-card__links li + li { margin-top: 6px; }

@media (max-width: 30rem) {
    .relation-map__branches { --rail: 18px; }
    .tickets { padding-left: 0; }
    .event-ticket__stub { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .event-ticket__link { transition: none; }
    .event-ticket__link:hover, .event-ticket__link:focus-visible { transform: none; }
}
.event-list { list-style: none; margin: 0 0 var(--space); padding: 0; }
.event-list__item { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.event-list__date, .event-list__report { color: var(--muted); }
.learn-more { max-width: 48rem; margin-top: calc(var(--space) * 2.5); padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); }
.learn-more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; color: var(--navy); }
.learn-more summary:focus-visible { outline: 3px solid #3e8ede; outline-offset: 3px; }
.learn-more[open] summary { margin-bottom: 8px; }
.learn-more ul { margin: 0; padding-left: 1.2em; }
.learn-more li { padding-block: 4px; }
.learn-more__lang { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-bottom: var(--space); }
.members { border-collapse: collapse; width: 100%; background: #fff; }
.members th, .members td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.members thead th { background: var(--pale-blue); }
.members__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.members__actions form { margin: 0; }

/* ---- Fiche d'une organisation ---- */
.crumb { margin-bottom: 8px; }
.org-head { display: flex; gap: 16px; align-items: center; margin-bottom: var(--space); padding: 16px; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--line); border-radius: 4px 14px 14px 4px; }
.org-head h1 { margin: 0 0 6px; }
.org-head__icon { width: 56px; height: 56px; flex: none; padding: 10px; border-radius: 14px; background: var(--pale-blue); color: var(--navy); }
.org-layout { display: grid; gap: calc(var(--space) * 2); align-items: start; }
@media (min-width: 64rem) { .org-layout { grid-template-columns: 1fr minmax(16rem, 20rem); } }
.org-main > section + section { margin-top: calc(var(--space) * 2); }
.tickets--flat { padding-left: 0; }
.side-card { padding: var(--space); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.side-card h2 { margin-top: 0; font-size: 1.15rem; }
.member-list { list-style: none; margin: 0 0 var(--space); padding: 0; display: grid; gap: 8px; }
.member-list__item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.member-list__who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.member-list__name { font-weight: 700; }
.member-list__email { color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.avatar--sm { width: 40px; height: 40px; font-size: 0.95rem; box-shadow: none; }
.danger-zone { max-width: 48rem; margin-top: calc(var(--space) * 3); padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); }
.danger-zone summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.danger-zone summary:focus-visible { outline: 3px solid #3e8ede; outline-offset: 3px; }
.danger-zone[open] { color: var(--navy); }
.danger-zone[open] summary { margin-bottom: 8px; color: var(--ink-pink); }
.button--danger { background: #fff; color: var(--ink-pink); border: 2px solid var(--ink-pink); }
.button--danger:hover { background: var(--pale-pink); }
.org-head.node--validated { border-left-color: #2f9e5b; }
.org-head.node--pending { border-left-color: #e0a100; }
.org-head.node--refused, .org-head.node--suspended { border-left-color: var(--ink-pink); }

/* ---- Administration : navigation latérale, file des organisations ---- */
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--space) * 2); align-items: start; }
.admin-nav { min-width: 0; }
.admin-content { min-width: 0; }
.admin-nav { background: var(--navy); color: #fff; border-radius: 14px; padding: 12px; }
.admin-nav__title { margin: 4px 8px 10px; font: 1rem/1.2 var(--font-heading); color: var(--blue); }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.admin-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.admin-nav a:hover { background: rgb(255 255 255 / 0.1); }
.admin-nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.admin-nav a[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 700; }
.admin-nav__label { flex: 1; }
.admin-nav__count { min-width: 1.6rem; padding: 0 8px; border-radius: 999px; background: var(--pink); color: var(--navy); font-weight: 700; text-align: center; }
@media (min-width: 64rem) {
    .admin-layout { grid-template-columns: 18rem minmax(0, 1fr); }
    .admin-nav { position: sticky; top: var(--space); }
    .admin-nav ul { flex-direction: column; overflow: visible; }
    .admin-nav a { white-space: normal; }
}
.admin-lead { color: var(--muted); }

.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space); }
.queue-card { background: #fff; border: 1px solid var(--line); border-left: 6px solid #e0a100; border-radius: 4px 14px 14px 4px; padding: 16px; }
.queue-card__head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.queue-card__icon { width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: var(--pale-blue); color: var(--navy); }
.queue-card__title { margin: 0 0 6px; font-size: 1.2rem; }
.queue-card__date { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 40rem) {
    .queue-card__head { grid-template-columns: auto 1fr auto; }
    .queue-card__date { grid-column: auto; text-align: right; }
}
.queue-card__referent { display: flex; gap: 12px; align-items: center; margin: 14px 0; padding: 12px; background: var(--page); border-radius: 12px; }
.queue-card__referent p { margin: 0; }
.queue-card__label { color: var(--muted); font-size: 0.9rem; }
.queue-card__who { font-weight: 700; }
.queue-card__email { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; overflow-wrap: anywhere; }
.queue-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.queue-card__actions form { margin: 0; }
.queue-card__actions .button { display: inline-flex; align-items: center; gap: 8px; }
.admin-refuse { flex: 1 1 18rem; }
.admin-refuse summary { list-style: none; cursor: pointer; }
.admin-refuse summary::-webkit-details-marker { display: none; }
.admin-refuse[open] summary { margin-bottom: 10px; }
.admin-refuse .form { max-width: none; }

.awaiting-confirmation { margin-top: calc(var(--space) * 2.5); scroll-margin-top: var(--space); }
.message-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.message-list__item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.message-list__item > .icon { color: var(--ink-pink); }
.message-list__text { display: flex; flex-direction: column; flex: 1 1 14rem; }
.message-list__date { color: var(--muted); font-size: 0.95rem; }
.empty-state { display: flex; align-items: center; gap: 12px; padding: 16px; background: #e3f4e8; border-radius: 14px; }
.empty-state p { margin: 0; font-weight: 700; }
.empty-state__icon { width: 32px; height: 32px; color: #1d7a45; }

/* ---- Agir en mon nom ---- */
.act-alone-intro { display: flex; gap: 16px; align-items: flex-start; margin-bottom: var(--space); }
.act-alone-intro h1 { margin-bottom: 8px; }
.steps { max-width: 40rem; margin: 0 0 calc(var(--space) * 1.5); padding: 16px 16px 16px 2.5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.steps li + li { margin-top: 8px; }

/* ---- Déclaration d'un Digital Cleanup : quatre étapes ---- */
.form-head { max-width: 48rem; margin-bottom: calc(var(--space) * 1.5); }
.form-head h1 { margin-bottom: 6px; }
.form-head__for { display: inline-block; margin-bottom: 10px; padding: 2px 12px; border-radius: 999px; background: var(--pale-pink); color: var(--ink-pink); font-weight: 700; }
.form-head__intro { color: var(--muted); }
.form--steps { max-width: 48rem; }
.form-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--space); }
.form-step { counter-increment: step; position: relative; padding: 20px 20px 4px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.form-step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step__title { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: var(--space); font: 1.2rem/1.2 var(--font-heading); }
.form-step__title::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1rem; }
.form-grid { display: grid; gap: 0 var(--space); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); align-items: start; }
.commune-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.commune-search .field { margin-bottom: 0; grid-column: 1 / -1; }
.commune-search > .button { grid-column: 1 / -1; justify-self: start; margin-bottom: var(--space); }
@media (min-width: 30rem) {
    .commune-search .field { grid-column: 1; margin-bottom: var(--space); }
    .commune-search > .button { grid-column: 2; align-self: start; margin-top: 30px; }
}

/* Tuiles : chaque choix est une carte cliquable ; le bouton radio ou la case reste visible. */
.choice-tiles > div { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.choice-tiles .choice-option { align-items: center; min-height: 56px; padding: 0 0 0 14px; background: var(--page); border: 2px solid var(--line); border-radius: 12px; }
.choice-tiles .choice-option label { flex: 1; align-self: stretch; display: flex; align-items: center; padding: 10px 14px 10px 0; cursor: pointer; font-weight: 700; }
.choice-tiles .choice-option input { margin: 0; }
.choice-tiles .choice-option:hover { border-color: var(--blue); }
.choice-tiles .choice-option:has(input:checked) { background: var(--pale-blue); border-color: var(--navy); }
.choice-tiles .choice-option:has(input:focus-visible) { outline: 3px solid #3e8ede; outline-offset: 2px; }
.choice-tiles .choice-option input { accent-color: var(--navy); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space); margin-top: calc(var(--space) * 1.5); padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }

/* ---- Fiche d'un Digital Cleanup ---- */
.event-hero { display: flex; gap: 18px; align-items: stretch; margin-bottom: var(--space); background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.event-hero .event-ticket__stub { width: 96px; padding: 12px 0; }
.event-hero .event-ticket__day { font-size: 2.2rem; }
.event-hero__body { padding: 16px 16px 12px 0; min-width: 0; }
.event-hero__body h1 { margin-bottom: 8px; overflow-wrap: anywhere; }
.event-hero__body .event-ticket__meta { margin: 0; }
.fact-list { margin: 0; display: grid; gap: 0; }
.fact { display: grid; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact dt { font-weight: 700; color: var(--muted); }
.fact dd { margin: 0; }
.fact__big { font: 1.6rem/1 var(--font-heading); }
@media (min-width: 40rem) { .fact { grid-template-columns: 12rem 1fr; } }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.report-card h2 { margin-top: 0; }
.chip--hidden { background: var(--navy); color: #fff; border-color: var(--navy); }
.hidden-option { margin-top: var(--space); padding: 12px 14px; background: var(--page); border: 1px dashed var(--line); border-radius: 12px; }
.hidden-option .field { margin-bottom: 0; }
.choice-tiles .choice-option label { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.choice-option__def { font-weight: 400; font-size: 0.92rem; color: var(--muted); }

/* ---- Connexion ---- */
.auth-back { margin-bottom: var(--space); }
.auth-layout { display: grid; gap: calc(var(--space) * 1.5); align-items: start; max-width: 60rem; }
@media (min-width: 52rem) { .auth-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.auth-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--pink); border-radius: 14px; }
.auth-card h1 { margin-bottom: 6px; }
.auth-card__intro { color: var(--muted); }
.auth-card .form { max-width: none; }
.field__label-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.field__label-row a { font-size: 0.95rem; }
.button--wide { width: 100%; justify-content: center; }
.auth-aside { padding: 24px; background: var(--pale-blue); border-radius: 14px; }
.auth-aside h2 { margin-top: 0; }
.auth-aside__list { margin: 0 0 var(--space); padding-left: 1.2rem; }
.auth-aside__list li + li { margin-top: 8px; }

/* ---- Listes de l'administration : recherche, filtres, pages ---- */
.admin-search { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; max-width: 40rem; }
.admin-search input { flex: 1 1 16rem; min-height: 44px; padding: 8px 12px; font: inherit; border: 2px solid var(--muted); border-radius: 999px; }
.admin-search input:focus-visible { outline: 3px solid #3e8ede; outline-offset: 2px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.filter-chips a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); text-decoration: none; }
.filter-chips a[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-list__item { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.admin-list__main { flex: 1 1 18rem; min-width: 0; }
.admin-list__main p { margin: 0 0 4px; }
.admin-list__title { font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-list__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--muted); overflow-wrap: anywhere; }
.admin-list__dates { font-size: 0.9rem; }
.admin-list__stub { width: 60px; min-height: 60px; border-radius: 10px; border-right: 0; }
.admin-list .user-verify { margin: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: var(--space); }
.admin-nav__group { margin: 14px 8px 6px; font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.admin-nav__group:first-of-type { margin-top: 4px; }
@media (max-width: 63.99rem) {
    .admin-nav { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; }
    .admin-nav__title, .admin-nav__group { display: none; }
    .admin-nav ul { flex: none; }
}
.phone-ask { margin-top: var(--space); padding: 12px 14px; background: var(--pale-blue); border-radius: 12px; }
.phone-ask .field { margin-bottom: 0; }
.call-button { white-space: nowrap; }

/* ---- Suivi des appels ---- */
.call-track { flex: 1 1 100%; padding-top: 10px; border-top: 1px dashed var(--line); }
.call-last { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; }
.call-last--never { font-style: italic; }
.call-followup { color: var(--ink-pink); }
.call-note { color: var(--navy); }
.call-details summary { list-style: none; cursor: pointer; display: inline-flex; }
.call-details summary::-webkit-details-marker { display: none; }
.call-details[open] summary { margin-bottom: 10px; }
.call-details .form { max-width: 44rem; }
.badge--outcome-reached { background: #e3f4e8; }
.badge--outcome-voicemail, .badge--outcome-no_answer { background: #fff4d6; }
.badge--outcome-wrong_number, .badge--outcome-refused { background: var(--pale-pink); }
.admin-results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.admin-results-bar .admin-lead { margin: 0; }
