.acdc-calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.acdc-calendar-toolbar {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-start;
    margin-bottom: 18px;
    padding: 14px 18px;
}

.acdc-calendar-title {
    margin: 0;
    color: var(--acdc-text);
    font-size: 20px;
    line-height: 25px;
    font-weight: 600;
}

.acdc-calendar-nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.acdc-calendar-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--acdc-radius-panel);
    border: 1px solid var(--acdc-border);
    background: #fff;
    color: var(--acdc-text);
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
}

.acdc-calendar-weekdays,
.acdc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.acdc-calendar-weekday {
    padding: 14px 12px;
    border-right: 1px solid var(--acdc-border);
    border-bottom: 1px solid var(--acdc-border);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--acdc-text-muted);
    background: var(--acdc-soft-bg);
}

.acdc-calendar-weekday:last-child {
    border-right: 0;
}

.acdc-calendar-day {
    min-height: 170px;
    padding: 10px;
    border-right: 1px solid var(--acdc-border);
    border-bottom: 1px solid var(--acdc-border);
    position: relative;
    background: #fff;
}

.acdc-calendar-day:nth-child(7n) {
    border-right: 0;
}

.acdc-calendar-day.is-outside {
    background: repeating-linear-gradient(-45deg, #fafbfc, #fafbfc 6px, #f3f5f7 6px, #f3f5f7 12px);
}

.acdc-calendar-day-number {
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    color: var(--acdc-text-muted);
    margin-bottom: 8px;
}

.acdc-calendar-day.is-today .acdc-calendar-day-number {
    background: var(--acdc-primary-soft);
    color: var(--acdc-text);
    border: 1px solid var(--acdc-primary);
    border-radius: var(--acdc-radius-pill);
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.acdc-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acdc-calendar-event {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border-radius: var(--acdc-radius-panel);
    background: var(--acdc-primary-soft);
    border: 1px solid var(--acdc-primary);
    color: var(--acdc-text);
    text-decoration: none;
    box-shadow: 0 1px 1px rgba(12, 45, 82, 0.04);
}

.acdc-calendar-event-time {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--acdc-text);
}

.acdc-calendar-event-title {
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
}

.acdc-calendar-event-meta {
    font-size: 12px;
    line-height: 16px;
    color: var(--acdc-text-muted);
}

.acdc-calendar-day.has-events {
    background: #fcfffe;
}

@media (max-width: 1100px) {
    .acdc-calendar-weekdays,
    .acdc-calendar-grid {
        grid-template-columns: 1fr;
    }

    .acdc-calendar-weekday {
        display: none;
    }

    .acdc-calendar-day {
        min-height: auto;
    }
}

/* ── ACDC 3.25.329 — Codes couleur par thématique, et le passé qui s'estompe ──
   La recette du 23/08 : « ce serait bien d'avoir des codes couleur en fonction
   des thématiques et quand la date est passée, mettre la couleur en estompé et
   hachuré ».

   La teinte n'est pas choisie ici : elle vient du répertoire des thématiques
   (couleur_hex), portée jusqu'à l'événement dans --acdc-cal-teinte. Une séance
   dont la formation n'a pas de thématique garde l'habillage d'origine — on ne
   peint pas au hasard, une couleur arbitraire ferait croire à un regroupement.

   Le hachurage se pose sur la CASE, l'estompage sur son CONTENU : hachurer le
   contenu rendrait les titres illisibles, alors que le but est justement de
   pouvoir encore les lire. */

.acdc-calendar-event.has-teinte {
    background: color-mix(in srgb, var(--acdc-cal-teinte) 14%, #fff);
    border-color: color-mix(in srgb, var(--acdc-cal-teinte) 55%, #fff);
    border-left: 4px solid var(--acdc-cal-teinte);
}

.acdc-calendar-event-thematique {
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--acdc-cal-teinte, var(--acdc-text-muted));
}

/* Repli pour les navigateurs sans color-mix : la bordure gauche suffit à
   distinguer les thématiques, et rien ne casse. */
@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
    .acdc-calendar-event.has-teinte {
        background: var(--acdc-primary-soft);
        border-color: var(--acdc-border);
    }
}

.acdc-calendar-day.is-passee {
    background-image: repeating-linear-gradient(-45deg, rgba(12, 45, 82, .035) 0, rgba(12, 45, 82, .035) 5px, transparent 5px, transparent 11px);
}

.acdc-calendar-day.is-passee .acdc-calendar-events,
.acdc-calendar-day.is-passee .acdc-calendar-day-number {
    opacity: .52;
    filter: saturate(.55);
}

/* Le survol rend au passé sa lisibilité pleine : estomper n'est pas cacher. */
.acdc-calendar-day.is-passee:hover .acdc-calendar-events,
.acdc-calendar-day.is-passee:focus-within .acdc-calendar-events {
    opacity: 1;
    filter: none;
}

/* ── ACDC 3.25.329 — Les mêmes repères dans la LISTE des séances ────────────
   La recette parle des « onglets séance ET calendrier ». Deux écrans qui
   montrent les mêmes objets et les distinguent différemment obligent à
   réapprendre le code en passant de l'un à l'autre. */

.acdc-session-row td.acdc-session-teinte {
    box-shadow: inset 4px 0 0 0 var(--acdc-cal-teinte);
}

.acdc-session-thematique {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--acdc-cal-teinte, var(--acdc-text-muted));
}

.acdc-session-row.is-passee td {
    opacity: .58;
    filter: saturate(.55);
    background-image: repeating-linear-gradient(-45deg, rgba(12, 45, 82, .035) 0, rgba(12, 45, 82, .035) 5px, transparent 5px, transparent 11px);
}

.acdc-session-row.is-passee:hover td {
    opacity: 1;
    filter: none;
}

/* ── ACDC 3.25.762 — L'agenda : légende (qui filtre par type), filtres, export,
   ajout d'un événement depuis la case d'un jour. La couleur d'un type passe par
   --acdc-cal-teinte, comme celle des thématiques des séances. */

.acdc-agenda-barre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-bottom: 18px;
    padding: 14px 18px;
}

.acdc-agenda-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-basis: 100%;
}

.acdc-agenda-filtre {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--acdc-border);
    border-radius: var(--acdc-radius-pill);
    background: #fff;
    color: var(--acdc-text);
    font-size: 13px;
    line-height: 18px;
    text-decoration: none;
}

.acdc-agenda-filtre.is-actif {
    border-color: var(--acdc-primary);
    background: var(--acdc-primary-soft);
    font-weight: 600;
}

.acdc-agenda-pastille {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--acdc-cal-teinte, var(--acdc-primary));
    box-shadow: inset 0 0 0 1px rgba(12, 45, 82, .18); /* 3.25.765 : une teinte claire reste visible */
    margin-right: 6px;
    vertical-align: middle;
}

.acdc-agenda-filtre .acdc-agenda-pastille {
    margin-right: 0;
}

.acdc-agenda-filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.acdc-agenda-filtres input[type="date"],
.acdc-agenda-filtres select {
    max-width: 200px;
}

.acdc-calendar-day[data-agenda-jour] {
    cursor: pointer;
}

.acdc-agenda-ajout {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: 1px solid var(--acdc-border);
    border-radius: 50%;
    background: #fff;
    color: var(--acdc-text-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s ease;
}

.acdc-calendar-day:hover .acdc-agenda-ajout,
.acdc-agenda-ajout:focus {
    opacity: 1;
}

@media (hover: none) {
    .acdc-agenda-ajout {
        opacity: 1;
    }
}

.acdc-agenda-participants {
    border: 1px solid var(--acdc-border);
    border-radius: var(--acdc-radius-panel);
    padding: 8px 12px;
    margin: 0 0 12px;
}

.acdc-agenda-case {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    font-weight: 400;
}

/* ACDC 3.25.762 — Un événement passé de l'agenda : estompé, comme les rendez-vous prospects passés. */
.acdc-calendar-event.has-teinte.is-past {
    opacity: .62;
    background-image: repeating-linear-gradient(-45deg, rgba(12, 45, 82, .04) 0, rgba(12, 45, 82, .04) 6px, transparent 6px, transparent 12px);
}

/* ============================================================
   ACDC 3.25.765 — La fenêtre « Nouvel événement » de l'Agenda.
   Couleurs : uniquement les variables de base.css (choix de David).
   ============================================================ */
/* Un bloc masqué reste masqué, même si une règle commune (.acdc-help…) lui donne un affichage. */
.acdc-rvf [hidden] {
    display: none !important;
}
/* 3.25.780 — Dimensions propres à l’Agenda, devant les modales communes en !important. */
.acdc-modal-shell.acdc-rvf {
    padding: 0;
    overflow: hidden;
}
.acdc-rvf .acdc-rvf-dialog {
    width: min(860px, 94vw) !important;
    max-width: 860px !important;
    height: auto;
    max-height: 92vh !important;
    margin: 4vh auto !important;
    overflow: hidden !important;
}
.acdc-rvf-tete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: var(--acdc-soft-bg);
    border-bottom: 1px solid var(--acdc-border);
}
.acdc-rvf-tete h3 {
    margin: 0 0 4px;
    color: var(--acdc-text);
    font-size: 20px;
    line-height: 1.25;
}
.acdc-rvf-tete p {
    margin: 0;
    color: var(--acdc-text-muted);
}
.acdc-rvf-fermer {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--acdc-border);
    border-radius: 50%;
    background: var(--acdc-white);
    color: var(--acdc-text);
    cursor: pointer;
}
.acdc-rvf-fermer:hover,
.acdc-rvf-fermer:focus-visible {
    border-color: var(--acdc-primary);
    background: var(--acdc-primary-soft);
}
.acdc-rvf-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin: 0;
}
.acdc-rvf-corps {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 6px 22px 12px;
}
.acdc-rvf-bloc {
    padding: 14px 0;
    border-bottom: 1px solid var(--acdc-border-soft);
}
.acdc-rvf-bloc:last-child {
    border-bottom: 0;
}
.acdc-rvf-bloc h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--acdc-text);
    font-size: 15px;
}
.acdc-rvf-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--acdc-primary);
    background: var(--acdc-primary-soft);
    color: var(--acdc-text);
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 700;
}
.acdc-rvf-bloc p {
    margin: 0 0 10px;
}
.acdc-rvf-bloc label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.acdc-rvf .acdc-rvf-bloc input[type="text"],
.acdc-rvf .acdc-rvf-bloc input[type="email"],
.acdc-rvf .acdc-rvf-bloc input[type="url"],
.acdc-rvf .acdc-rvf-bloc input[type="date"],
.acdc-rvf .acdc-rvf-bloc input[type="time"],
.acdc-rvf .acdc-rvf-bloc input[type="search"],
.acdc-rvf .acdc-rvf-bloc select,
.acdc-rvf .acdc-rvf-bloc textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.acdc-rvf-grille3,
.acdc-rvf-grille2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 12px;
}
.acdc-rvf-grille2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Les boutons-pastilles (type, modalité, statut) : le filtre de la légende de l'Agenda
   (.acdc-agenda-filtre / .is-actif) à la hauteur de 44 px ; la case radio est cachée. */
.acdc-rvf-pastilles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.acdc-rvf .acdc-rvf-pastille {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}
.acdc-rvf-pastille input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.acdc-rvf-pastille .acdc-agenda-pastille {
    margin: 0;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
}
.acdc-rvf-pastille:hover {
    border-color: var(--acdc-primary);
}
.acdc-rvf-pastille:has(input:focus-visible) {
    outline: 2px solid var(--acdc-text);
    outline-offset: 2px;
}
.acdc-rvf-pastille input:disabled + .acdc-agenda-pastille {
    opacity: .5;
}
.acdc-rvf-pastille:has(input:disabled) {
    opacity: .55;
    cursor: not-allowed;
}
.acdc-rvf-nouveau {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border: 1px solid var(--acdc-primary);
    border-radius: var(--acdc-radius-pill);
    background: var(--acdc-primary-soft);
    color: var(--acdc-text);
}

/* Les cartes de l'équipe. */
.acdc-rvf-cartes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.acdc-rvf .acdc-rvf-carte {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--acdc-border);
    border-radius: var(--acdc-radius-panel);
    background: var(--acdc-white);
    font-weight: 400;
    cursor: pointer;
    box-sizing: border-box;
}
.acdc-rvf-carte input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.acdc-rvf-initiales {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--acdc-primary);
    background: var(--acdc-primary-soft);
    color: var(--acdc-text);
    font-weight: 700;
    font-size: 14px;
    box-sizing: border-box;
}
.acdc-rvf-carte-texte {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.acdc-rvf-carte-texte span {
    color: var(--acdc-text-muted);
    font-size: 13px;
}
/* L'adresse sur une seule ligne, jamais coupée dans un mot : « … » et l'adresse complète au survol. */
.acdc-rvf-carte-mail {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acdc-rvf-coche {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: transparent;
    font-weight: 700;
}
.acdc-rvf-carte.is-choisi {
    border-color: var(--acdc-primary);
    background: var(--acdc-primary-soft);
}
.acdc-rvf-carte.is-choisi .acdc-rvf-coche {
    background: var(--acdc-primary);
    color: var(--acdc-text);
}
.acdc-rvf-carte:has(input:focus-visible) {
    outline: 2px solid var(--acdc-text);
    outline-offset: 2px;
}

/* « Avec qui ? » : la liste cliquable, cases de 22 px. */
.acdc-rvf-message {
    padding: 10px 12px;
    border-radius: var(--acdc-radius-panel);
    background: var(--acdc-soft-bg);
    border: 1px solid var(--acdc-border);
}
.acdc-rvf-recherche {
    margin-bottom: 8px;
}
.acdc-rvf .acdc-rvf-candidats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin: 0 0 8px;
}
.acdc-rvf-liste {
    max-height: 260px;
    overflow: auto;
    border: 1px solid var(--acdc-border);
    border-radius: var(--acdc-radius-panel);
}
.acdc-rvf-liste:empty {
    display: none;
}
.acdc-rvf .acdc-rvf-ligne {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border-bottom: 1px solid var(--acdc-border-soft);
    font-weight: 400;
    cursor: pointer;
    box-sizing: border-box;
}
.acdc-rvf-ligne[hidden] {
    display: none;
}
.acdc-rvf-ligne:last-child {
    border-bottom: 0;
}
.acdc-rvf-ligne:hover {
    background: var(--acdc-soft-bg);
}
.acdc-rvf .acdc-rvf-ligne input[type="checkbox"],
.acdc-rvf .acdc-rvf-ligne input[type="radio"],
.acdc-rvf .acdc-rvf-candidats input[type="checkbox"] {
    flex: 0 0 22px;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin: 0;
    padding: 0 !important;
    accent-color: var(--acdc-primary);
}
.acdc-rvf-ligne-nom {
    font-weight: 600;
    color: var(--acdc-text);
}
.acdc-rvf-ligne-detail {
    color: var(--acdc-text-muted);
    font-size: 13px;
}
.acdc-rvf-veilles {
    border: 1px solid var(--acdc-border);
    border-radius: var(--acdc-radius-panel);
    margin-bottom: 8px;
}
.acdc-rvf-veilles .acdc-help {
    margin: 0;
    padding: 8px 12px;
}
.acdc-rvf-libre {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    gap: 0 10px;
    align-items: end;
    margin-top: 8px;
}
.acdc-rvf-retirer {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border: 1px solid var(--acdc-border);
    border-radius: 50%;
    background: var(--acdc-white);
    color: var(--acdc-text);
    font-size: 20px;
    cursor: pointer;
}
.acdc-rvf-ajout {
    margin-top: 6px;
}

/* Pied de fenêtre : fond crème, « Annuler » et le bouton principal doré. */
.acdc-rvf-pied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 14px 22px;
    background: var(--acdc-soft-bg);
    border-top: 1px solid var(--acdc-border);
}
.acdc-rvf-pied-boutons {
    display: inline-flex;
    gap: 10px;
    margin-left: auto;
}
.acdc-rvf-pied .acdc-button {
    min-height: 44px;
}
.acdc-rvf-erreur {
    margin: 12px 0 0;
}

/* Sur téléphone : les blocs s'empilent, la fenêtre prend tout l'écran. */
@media (max-width: 640px) {
    .acdc-rvf .acdc-rvf-dialog {
        width: 100vw !important;
        max-width: none !important;
        max-height: 100vh !important;
        height: 100%;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    .acdc-rvf-tete,
    .acdc-rvf-corps,
    .acdc-rvf-pied {
        padding-left: 16px;
        padding-right: 16px;
    }
    .acdc-rvf-grille3,
    .acdc-rvf-grille2,
    .acdc-rvf-libre {
        grid-template-columns: minmax(0, 1fr);
    }
    .acdc-rvf-libre .acdc-rvf-retirer {
        justify-self: end;
    }
    .acdc-rvf-pied-boutons {
        width: 100%;
    }
    .acdc-rvf-pied-boutons .acdc-button {
        flex: 1;
    }
}
