/*
 * Le calendrier de l'Atelier : une seule feuille pour les deux vues (accueil public et espace parent).
 * Version raffinée approuvée par Pat le 2 novembre 2026 (les 20 points), puis le paquet A.
 * Peau : NASApunk Light. La vue publique prend les jetons de l'accueil (page-home-router.php).
 * Tout est rangé sous .aca-cal : aucun jeton sur :root, pour ne rien changer à la page qui l'accueille.
 * Quatre tailles de texte (--cal-xl, --cal-l, --cal-m, --cal-s) et un seul niveau d'ombre (--cal-ombre).
 * ⛔ Zéro tiret cadratin.
 */
.aca-cal {
	--cal-paper: #F4F5F7;
	--cal-white: #FFFFFF;
	--cal-ink: #1B2A47;
	--cal-navy: #314B7A;
	--cal-dim: rgba(27, 42, 71, 0.68);
	--cal-faint: rgba(27, 42, 71, 0.62);
	--cal-line: rgba(27, 42, 71, 0.12);
	--cal-line-soft: rgba(27, 42, 71, 0.07);
	--cal-immersif: #C32136;
	--cal-initiative: #DF5F35;
	--cal-club: #FFB612;
	--cal-club-ink: #855B00;
	--cal-tutorat: #1E7A72;
	--cal-tache: #5B6478;
	--cal-conge: #E8EBF1;
	--cal-conge-c: #7D889C;
	--cal-fds: rgba(27, 42, 71, 0.028);
	--cal-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
	--cal-xl: clamp(36px, 5.4vw, 58px);
	--cal-l: 22px;
	--cal-m: 15px;
	--cal-s: 13px;
	--cal-ombre: 0 1px 2px rgba(27, 42, 71, 0.05), 0 16px 40px -18px rgba(27, 42, 71, 0.26);
	--cal-doux: cubic-bezier(0.2, 0.8, 0.2, 1);
	color: var(--cal-ink);
	font-family: var(--cal-font);
	font-size: var(--cal-m);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	color-scheme: light; /* la façade impose « dark » : les cases à cocher et les barres resteraient sombres */
	max-width: 1180px;
	min-width: 0; /* dans une grille (la façade), le calendrier ne force jamais la colonne à s'élargir */
	margin: 0 auto;
	text-align: left;
}
.aca-cal[data-vue="public"] { --cal-paper: #f2f0e9; --cal-ink: #192741; --cal-initiative: #e36b3f; --cal-conge: #E7E3D8; --cal-conge-c: #8A8371; }
.aca-cal *, .aca-cal *::before, .aca-cal *::after { box-sizing: border-box; }
.aca-cal button { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.aca-cal a { color: inherit; }
.aca-cal h1, .aca-cal h2, .aca-cal h3, .aca-cal h4, .aca-cal p { font-family: var(--cal-font); color: inherit; }
.aca-cal :focus-visible { outline: 3px solid var(--cal-club-ink); outline-offset: 2px; border-radius: 8px; }
.aca-cal svg { display: block; }

/* L'en-tête, la police de l'accueil, la place de la photo */
.aca-cal .tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 28px 40px; align-items: end; margin-bottom: 30px; }
.aca-cal .tete.sans-photo { grid-template-columns: minmax(0, 1fr) auto; }
.aca-cal .eyebrow { margin: 0 0 14px; font-size: var(--cal-s); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cal-dim); }
.aca-cal .titre { margin: 0; font-weight: 850; font-size: var(--cal-xl); line-height: 0.95; letter-spacing: -0.055em; text-wrap: balance; }
.aca-cal .lede { margin: 16px 0 0; font-size: var(--cal-m); color: var(--cal-dim); max-width: 54ch; text-wrap: pretty; }
.aca-cal .photo { margin: 0; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px var(--cal-line); display: grid; place-items: center; align-content: center; gap: 6px; color: var(--cal-faint); text-align: center; }
.aca-cal .photo img { width: 100%; height: 100%; object-fit: cover; }
.aca-cal .photo svg { width: 30px; height: 30px; }
.aca-cal .photo strong { font-size: var(--cal-s); font-weight: 650; color: var(--cal-dim); }
.aca-cal .photo span { font-size: var(--cal-s); }
.aca-cal .outils { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* Les annonces (congé qui approche, activité annulée) */
.aca-cal .annonces { display: grid; gap: 8px; margin-bottom: 18px; }
.aca-cal .annonces:empty { display: none; }
.aca-cal .annonce { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--cal-conge); font-size: var(--cal-s); }
.aca-cal .annonce svg { width: 20px; height: 20px; flex: none; color: var(--cal-conge-c); margin-top: 1px; }
.aca-cal .annonce strong { display: block; font-size: var(--cal-m); }
.aca-cal .annonce.alerte { background: color-mix(in srgb, var(--cal-immersif) 9%, var(--cal-white)); }
.aca-cal .annonce.alerte svg { color: var(--cal-immersif); }

/* La saison en une ligne */
.aca-cal .saison { margin-bottom: 22px; }
.aca-cal .saison-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.aca-cal .saison-tete strong { font-size: var(--cal-m); font-weight: 750; letter-spacing: -0.01em; }
.aca-cal .saison-tete span { font-size: var(--cal-s); color: var(--cal-dim); font-variant-numeric: tabular-nums; }
.aca-cal .saison-tete b { color: var(--cal-ink); font-weight: 650; }
.aca-cal .piste { position: relative; height: 6px; border-radius: 3px; background: var(--cal-line); }
.aca-cal .piste .fait { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--cal-ink); }
.aca-cal .piste .repos { position: absolute; top: 0; bottom: 0; background: var(--cal-conge-c); opacity: 0.45; }
.aca-cal .piste .ici { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--cal-club); box-shadow: 0 0 0 3px var(--cal-paper), 0 0 0 4px var(--cal-line); }
.aca-cal .mois-rail { position: relative; height: 40px; margin-top: 6px; }
.aca-cal .mois-rail button { position: absolute; top: 0; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; font-size: var(--cal-s); color: var(--cal-dim); text-align: center; border-radius: 8px; }
.aca-cal .mois-rail button::before { content: ""; position: absolute; left: 0; top: -10px; width: 1px; height: 10px; background: var(--cal-line); }
.aca-cal .mois-rail button:hover { color: var(--cal-ink); }
.aca-cal .mois-rail button[aria-current="true"] { color: var(--cal-ink); font-weight: 750; }
.aca-cal .mois-rail button[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 18px; height: 2px; margin-left: -9px; border-radius: 1px; background: var(--cal-ink); }
.aca-cal .mois-rail .court { display: none; }

/* Pour qui, puis la légende qui sert de filtre */
.aca-cal .filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.aca-cal .pour { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--cal-white); box-shadow: 0 0 0 1px var(--cal-line); }
.aca-cal .pour button { border: 0; background: none; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: var(--cal-s); font-weight: 650; color: var(--cal-dim); cursor: pointer; }
.aca-cal .pour button[aria-pressed="true"] { background: var(--cal-ink); color: var(--cal-white); }
.aca-cal .legende { display: flex; flex-wrap: wrap; gap: 8px; }
.aca-cal .filtre { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 10px; border: 0; border-radius: 999px; background: var(--cal-white); box-shadow: 0 0 0 1px var(--cal-line); font-size: var(--cal-s); font-weight: 650; cursor: pointer; transition: color 0.2s, box-shadow 0.2s; }
.aca-cal .filtre[aria-pressed="false"] { color: var(--cal-dim); background: transparent; }
.aca-cal .coche { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--c); color: var(--cal-white); transition: background 0.2s, box-shadow 0.2s; flex: none; }
.aca-cal .coche.sombre { color: var(--cal-ink); }
.aca-cal .coche svg { width: 14px; height: 14px; transition: opacity 0.15s, transform 0.2s var(--cal-doux); }
.aca-cal .filtre[aria-pressed="false"] .coche { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.aca-cal .filtre[aria-pressed="false"] .coche svg { opacity: 0; transform: scale(0.6); }
.aca-cal .filtre[data-enfant][aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--cal-ink); }
.aca-cal .filtre .verif { width: 16px; height: 16px; color: var(--cal-ink); }
.aca-cal .filtre[aria-pressed="false"] .verif { display: none; }
.aca-cal .bascule-aussi { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 6px; border: 0; background: none; border-radius: 999px; font-size: var(--cal-s); font-weight: 650; color: var(--cal-dim); cursor: pointer; }
.aca-cal .bascule-aussi .rail-b { width: 34px; height: 20px; border-radius: 999px; background: var(--cal-line); position: relative; transition: background 0.2s; }
.aca-cal .bascule-aussi .rail-b::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--cal-white); box-shadow: 0 1px 2px rgba(27, 42, 71, 0.3); transition: transform 0.2s var(--cal-doux); }
.aca-cal .bascule-aussi[aria-checked="true"] { color: var(--cal-ink); }
.aca-cal .bascule-aussi[aria-checked="true"] .rail-b { background: var(--cal-ink); }
.aca-cal .bascule-aussi[aria-checked="true"] .rail-b::after { transform: translateX(14px); }
.aca-cal .avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: var(--cal-s); font-weight: 800; color: var(--cal-white); background: var(--c); flex: none; line-height: 1; }
.aca-cal .cle { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; font-size: var(--cal-s); color: var(--cal-dim); }
.aca-cal .cle span { display: inline-flex; align-items: center; gap: 6px; }
.aca-cal .cle i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.aca-cal .cle i.attente { background: transparent; box-shadow: inset 0 0 0 1.5px var(--cal-dim); }
.aca-cal .cette-semaine { margin: 0 0 18px; font-size: var(--cal-s); color: var(--cal-dim); }
.aca-cal .cette-semaine b { color: var(--cal-ink); font-weight: 650; }

/* La prochaine sortie (espace parent) */
.aca-cal .prochaine { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--cal-ink); color: var(--cal-white); border-radius: 20px; padding: 18px 22px 18px 18px; margin-bottom: 26px; box-shadow: var(--cal-ombre); }
.aca-cal .prochaine:empty { display: none; }
.aca-cal .prochaine-quand { margin: 0 0 4px; font-size: var(--cal-s); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cal-club); }
.aca-cal .prochaine-titre { margin: 0; font-size: var(--cal-l); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: var(--cal-white); }
.aca-cal .prochaine .meta { margin: 4px 0 0; color: rgba(255, 255, 255, 0.78); font-size: var(--cal-s); }

/* Le bloc date, comme une feuille d'éphéméride */
.aca-cal .bloc-date { width: 84px; flex: none; border-radius: 16px; background: var(--cal-white); color: var(--cal-ink); box-shadow: 0 0 0 1px var(--cal-line); overflow: hidden; text-align: center; display: grid; }
.aca-cal .bloc-date .bd-j { display: block; background: var(--cal-club); color: var(--cal-ink); font-size: var(--cal-s); font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 0 3px; }
.aca-cal .bloc-date b { font-size: var(--cal-xl); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; padding-top: 2px; font-variant-numeric: tabular-nums; }
.aca-cal .bloc-date .bd-m { font-size: var(--cal-s); color: var(--cal-dim); padding-bottom: 8px; }
.aca-cal .bloc-date.petit { width: 56px; border-radius: 12px; }
.aca-cal .bloc-date.petit b { font-size: var(--cal-l); font-weight: 400; padding: 4px 0 6px; }
.aca-cal .bloc-date.petit .bd-m { display: none; }

/* Les boutons, de vrais boutons */
.aca-cal .btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--cal-ink); color: var(--cal-white); font-size: var(--cal-m); font-weight: 650; text-decoration: none; cursor: pointer; transition: transform 0.15s var(--cal-doux), background 0.2s; }
.aca-cal .btn:hover { background: var(--cal-navy); color: var(--cal-white); }
.aca-cal .btn:active { transform: scale(0.98); }
.aca-cal .btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.2s var(--cal-doux); }
.aca-cal .btn:hover svg { transform: translateX(3px); }
.aca-cal .btn.ligne { background: var(--cal-white); color: var(--cal-ink); box-shadow: inset 0 0 0 1.5px var(--cal-ink); }
.aca-cal .btn.ligne:hover { background: var(--cal-paper); color: var(--cal-ink); }
.aca-cal .btn.clair { background: var(--cal-white); color: var(--cal-ink); }
.aca-cal .btn.clair:hover { background: var(--cal-paper); }
.aca-cal .btn.essai { background: var(--cal-club); color: var(--cal-ink); }
.aca-cal .btn.essai:hover { background: color-mix(in srgb, var(--cal-club) 82%, var(--cal-ink)); color: var(--cal-ink); }
.aca-cal .btn.petit { min-height: 40px; font-size: var(--cal-s); gap: 8px; padding: 0 14px; justify-content: center; }
.aca-cal .btn.petit svg { width: 16px; height: 16px; }
.aca-cal .icone-btn { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px var(--cal-line); display: grid; place-items: center; cursor: pointer; color: var(--cal-ink); }
.aca-cal .icone-btn:hover { background: var(--cal-paper); }
.aca-cal .icone-btn svg { width: 18px; height: 18px; }

/* Le mois et le jour : une seule surface, une seule ombre */
.aca-cal .corps { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 20px; align-items: start; }
.aca-cal .mois { background: var(--cal-white); border-radius: 22px; box-shadow: var(--cal-ombre); overflow: hidden; min-width: 0; touch-action: pan-y; }
.aca-cal .mois-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 14px 22px; }
.aca-cal .mois-titre { margin: 0; font-size: var(--cal-l); letter-spacing: -0.03em; font-weight: 800; }
.aca-cal .mois-titre span { color: var(--cal-faint); font-weight: 400; }
.aca-cal .nav { display: flex; gap: 6px; align-items: center; }
.aca-cal .rond { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; box-shadow: inset 0 0 0 1px var(--cal-line); display: grid; place-items: center; cursor: pointer; transition: background 0.2s; padding: 0; }
.aca-cal .rond:hover:not(:disabled) { background: var(--cal-paper); }
.aca-cal .rond:disabled { opacity: 0.3; cursor: default; }
.aca-cal .rond svg { width: 18px; height: 18px; }
.aca-cal .pilule { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: none; box-shadow: inset 0 0 0 1px var(--cal-line); font-weight: 650; font-size: var(--cal-s); cursor: pointer; }
.aca-cal .pilule:hover { background: var(--cal-paper); }
.aca-cal .jours-sem { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 10px; border-bottom: 1px solid var(--cal-line-soft); }
.aca-cal .jours-sem span { font-size: var(--cal-s); font-weight: 650; color: var(--cal-faint); padding: 0 10px 8px; }
.aca-cal .grille { padding: 6px 10px 12px; }
.aca-cal .grille.va-g { animation: aca-cal-g 0.34s var(--cal-doux); }
.aca-cal .grille.va-d { animation: aca-cal-d 0.34s var(--cal-doux); }
@keyframes aca-cal-g { from { opacity: 0; transform: translateX(32px); } }
@keyframes aca-cal-d { from { opacity: 0; transform: translateX(-32px); } }
.aca-cal .grille.entree .case { animation: aca-cal-monte 0.5s var(--cal-doux) both; animation-delay: calc(var(--i, 0) * 14ms); }
@keyframes aca-cal-monte { from { opacity: 0; transform: translateY(10px); } }
.aca-cal .semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.aca-cal .case { grid-row: 1; container-type: inline-size; position: relative; min-height: 116px; border: 0; border-radius: 14px; background: none; text-align: left; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; min-width: 0; transition: background 0.2s, box-shadow 0.25s var(--cal-doux), transform 0.25s var(--cal-doux); }
.aca-cal .case.fds { background: var(--cal-fds); }
.aca-cal .case:hover { background: var(--cal-paper); }
.aca-cal .case.hors { cursor: default; background: none; }
.aca-cal .case[aria-pressed="true"] { background: var(--cal-white); box-shadow: 0 0 0 1px var(--cal-line), 0 14px 28px -14px rgba(27, 42, 71, 0.4); transform: translateY(-2px); z-index: 2; }
.aca-cal .case.enligne::after { content: ""; position: absolute; top: 3px; left: 14px; right: 14px; height: 2px; border-radius: 1px; background: var(--cal-navy); opacity: 0.35; }
.aca-cal .num { font-size: var(--cal-l); font-weight: 400; letter-spacing: -0.02em; width: 36px; height: 36px; margin: -2px 0 2px -4px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.aca-cal .case.auj .num { box-shadow: inset 0 0 0 1.5px var(--cal-ink); font-weight: 600; }
.aca-cal .case.passe .num { color: var(--cal-faint); }
.aca-cal .bande { display: flex; align-items: center; gap: 6px; height: 24px; padding-right: 8px; border-radius: 7px; background: color-mix(in srgb, var(--c) 13%, var(--cal-white)); font-size: var(--cal-s); font-weight: 650; line-height: 1; white-space: nowrap; overflow: hidden; }
.aca-cal .bande::before { content: ""; width: 3px; align-self: stretch; background: var(--c); flex: none; }
.aca-cal .bande.club { background: color-mix(in srgb, var(--c) 22%, var(--cal-white)); }
.aca-cal .bande.attente { background: transparent; box-shadow: inset 0 0 0 1px var(--c); }
.aca-cal .bande.autre { background: transparent; box-shadow: inset 0 0 0 1px var(--cal-line); color: var(--cal-dim); }
.aca-cal .bande .avatar { width: 18px; height: 18px; font-size: 10px; }
.aca-cal .bande.serre { height: 6px; padding: 0; border-radius: 3px; background: var(--c); margin-top: 2px; }
.aca-cal .bande.serre::before, .aca-cal .bande.serre .t { display: none; }
.aca-cal .bande.serre.attente, .aca-cal .bande.serre.autre { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); height: 7px; }
.aca-cal[data-vue="parent"] .bande.serre { width: 22px; height: 22px; border-radius: 50%; margin-top: 0; }
.aca-cal[data-vue="parent"] .bande.serre .avatar { width: 22px; height: 22px; background: transparent; color: var(--cal-white); font-size: 11px; }
.aca-cal[data-vue="parent"] .bande.serre.club .avatar, .aca-cal[data-vue="parent"] .bande.serre.attente .avatar, .aca-cal[data-vue="parent"] .bande.serre.autre .avatar { color: var(--cal-ink); }
.aca-cal .points { display: flex; align-items: center; gap: 5px; margin-top: auto; font-size: var(--cal-s); color: var(--cal-dim); white-space: nowrap; }
.aca-cal .points i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.aca-cal .points i.neuf { box-shadow: 0 0 0 2px var(--cal-white), 0 0 0 3.5px var(--c); margin: 0 2px; }
.aca-cal .ferie, .aca-cal .plus { font-size: var(--cal-s); color: var(--cal-dim); white-space: nowrap; }
@container (max-width: 56px) { .aca-cal .points .pt, .aca-cal .ferie { display: none; } }
.aca-cal .bande-conge { grid-row: 1; align-self: end; z-index: 1; pointer-events: none; height: 28px; margin: 0 4px 10px; border-radius: 8px; background: var(--cal-conge); color: var(--cal-conge-c); font-size: var(--cal-s); font-weight: 650; display: flex; align-items: center; gap: 8px; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.aca-cal .bande-conge svg { width: 15px; height: 15px; flex: none; }

/* Le panneau du jour */
.aca-cal .jour { background: var(--cal-white); border-radius: 22px; box-shadow: var(--cal-ombre); padding: 20px; position: sticky; top: 16px; min-width: 0; }
.aca-cal .jour-tete { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--cal-line-soft); }
.aca-cal .jour-tete > div:nth-child(2) { flex: 1; min-width: 0; }
.aca-cal .jour-quand { margin: 0 0 2px; font-size: var(--cal-s); font-weight: 700; color: var(--cal-dim); }
.aca-cal .jour-quand.auj { color: var(--cal-club-ink); }
.aca-cal .jour-titre { margin: 0; font-size: var(--cal-l); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.aca-cal .jour-resume { margin: 4px 0 0; font-size: var(--cal-s); color: var(--cal-dim); }
.aca-cal .anim { animation: aca-cal-entre 0.3s var(--cal-doux); }
@keyframes aca-cal-entre { from { opacity: 0; transform: translateY(6px); } }
.aca-cal .act { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--cal-line-soft); }
.aca-cal .act:last-child { border-bottom: 0; padding-bottom: 6px; }
.aca-cal .act.autre { opacity: 0.92; }
.aca-cal .tuile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, var(--cal-white)); color: var(--c); }
.aca-cal .tuile.club { background: color-mix(in srgb, var(--c) 22%, var(--cal-white)); color: var(--cal-club-ink); }
.aca-cal .tuile svg { width: 22px; height: 22px; }
.aca-cal .act-titre { margin: 2px 0 2px; font-size: var(--cal-m); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aca-cal .act p { margin: 0; font-size: var(--cal-s); color: var(--cal-dim); }
.aca-cal .qui { display: inline-flex; align-items: center; gap: 6px; }
.aca-cal .qui .avatar { width: 20px; height: 20px; font-size: 10px; }
.aca-cal .badge { font-size: var(--cal-s); font-weight: 650; padding: 1px 8px; border-radius: 6px; background: var(--cal-paper); color: var(--cal-dim); box-shadow: inset 0 0 0 1px var(--cal-line); }
.aca-cal .badge.neuf { background: color-mix(in srgb, var(--cal-club) 22%, var(--cal-white)); color: var(--cal-club-ink); box-shadow: none; }
.aca-cal .horaire { grid-column: 2; margin-top: 12px; }
.aca-cal .h-piste { position: relative; height: 6px; border-radius: 3px; background: var(--cal-line-soft); }
.aca-cal .h-piste span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--c); }
.aca-cal .h-lib { position: relative; height: 20px; margin-top: 4px; font-size: var(--cal-s); color: var(--cal-dim); font-variant-numeric: tabular-nums; }
.aca-cal .h-lib span { position: absolute; top: 0; white-space: nowrap; }
.aca-cal .h-lib span:last-child { transform: translateX(-100%); }
.aca-cal .liens { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 14px; }
.aca-cal .enligne-ligne { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--cal-navy) 6%, var(--cal-white)); font-size: var(--cal-s); color: var(--cal-ink); }
.aca-cal .enligne-ligne svg { width: 18px; height: 18px; flex: none; color: var(--cal-navy); }
.aca-cal .enligne-ligne a { margin-left: auto; font-weight: 650; color: var(--cal-navy); white-space: nowrap; }
.aca-cal .conge-bloc { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--cal-conge); font-size: var(--cal-s); color: var(--cal-ink); }
.aca-cal .conge-bloc svg { width: 20px; height: 20px; flex: none; color: var(--cal-conge-c); margin-top: 1px; }
.aca-cal .conge-bloc strong { display: block; font-size: var(--cal-m); margin-bottom: 2px; }
.aca-cal .vide { margin-top: 16px; }
.aca-cal .vide p { margin: 0 0 12px; font-size: var(--cal-m); color: var(--cal-dim); }
.aca-cal .suivante { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border: 0; border-radius: 16px; background: var(--cal-paper); text-align: left; cursor: pointer; transition: background 0.2s, transform 0.15s var(--cal-doux); }
.aca-cal .suivante:hover { background: color-mix(in srgb, var(--cal-paper) 70%, var(--cal-line)); }
.aca-cal .suivante:active { transform: scale(0.99); }
.aca-cal .suivante .s-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.aca-cal .suivante small { font-size: var(--cal-s); color: var(--cal-dim); }
.aca-cal .suivante strong { font-size: var(--cal-m); }
.aca-cal .suivante > svg { width: 18px; height: 18px; flex: none; color: var(--cal-dim); }
.aca-cal .lieu { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding-bottom: 12px; font-size: var(--cal-s); color: var(--cal-dim); }
.aca-cal .lieu svg { width: 18px; height: 18px; flex: none; }

/* L'aperçu au survol (souris seulement) */
.aca-cal-apercu { position: fixed; z-index: 99990; width: 260px; padding: 12px 14px; border-radius: 14px; background: #1B2A47; color: #fff; box-shadow: 0 16px 40px -18px rgba(27, 42, 71, 0.5); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 0.16s, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif; }
.aca-cal-apercu.vu { opacity: 1; transform: none; }
.aca-cal-apercu p { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #FFB612; }
.aca-cal-apercu ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.aca-cal-apercu li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.4; }
.aca-cal-apercu li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(-1px); }

/* Le message court (lien copié) */
.aca-cal-message { position: fixed; z-index: 99991; left: 50%; bottom: 88px; transform: translate(-50%, 8px); padding: 10px 16px; border-radius: 999px; background: #1B2A47; color: #fff; font: 650 13px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; opacity: 0; transition: opacity 0.2s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.aca-cal-message.vu { opacity: 1; transform: translate(-50%, 0); }

/* La boîte « Ajouter à mon agenda » */
.aca-cal .agenda { position: relative; }
.aca-cal .agenda-boite { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(320px, calc(100vw - 32px)); padding: 16px; border-radius: 18px; background: var(--cal-white); box-shadow: 0 0 0 1px var(--cal-line), var(--cal-ombre); display: grid; gap: 8px; }
.aca-cal .agenda-boite[hidden] { display: none; }
.aca-cal .agenda-boite p { margin: 0 0 4px; font-size: var(--cal-s); color: var(--cal-dim); }

/* La date du jour choisi glisse jusqu'au panneau */
::view-transition-group(aca-cal-jour) { animation-duration: 0.4s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }

/* Au téléphone : une bande de sept jours et une liste */
.aca-cal .tel { display: none; }
.aca-cal .tel-boite { background: var(--cal-white); border-radius: 22px; box-shadow: var(--cal-ombre); padding: 14px 12px 6px; touch-action: pan-y; }
.aca-cal .tel-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 12px 6px; }
.aca-cal .tel-titre { margin: 0; font-size: var(--cal-m); font-weight: 750; letter-spacing: -0.01em; }
.aca-cal .sept { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.aca-cal .sept.va-g { animation: aca-cal-g 0.3s var(--cal-doux); }
.aca-cal .sept.va-d { animation: aca-cal-d 0.3s var(--cal-doux); }
.aca-cal .j7 { border: 0; background: none; border-radius: 14px; min-height: 76px; padding: 6px 0 8px; display: grid; justify-items: center; align-content: start; gap: 4px; cursor: pointer; }
.aca-cal .j7 .l { font-size: var(--cal-s); font-weight: 650; color: var(--cal-faint); }
.aca-cal .j7 .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: var(--cal-l); font-weight: 400; font-variant-numeric: tabular-nums; }
.aca-cal .j7.auj .n { box-shadow: inset 0 0 0 1.5px var(--cal-ink); }
.aca-cal .j7[aria-pressed="true"] .n { background: var(--cal-ink); color: var(--cal-white); box-shadow: none; }
.aca-cal .j7.conge { background: var(--cal-conge); }
.aca-cal .j7.fds:not(.conge) { background: var(--cal-fds); }
.aca-cal .j7 .pts { display: flex; gap: 3px; height: 7px; }
.aca-cal .j7 .pts i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.aca-cal .j7 .pts i.attente, .aca-cal .j7 .pts i.autre { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.aca-cal .retour { display: block; margin: 2px auto 6px; min-height: 40px; padding: 0 14px; border: 0; background: none; border-radius: 999px; font-size: var(--cal-s); font-weight: 650; color: var(--cal-navy); cursor: pointer; }
.aca-cal .retour[hidden] { display: none; }
.aca-cal .tel-liste { margin-top: 18px; display: grid; gap: 14px; }
.aca-cal .tl-jour { background: var(--cal-white); border-radius: 20px; box-shadow: var(--cal-ombre); padding: 16px 16px 4px; scroll-margin-top: 12px; transition: box-shadow 0.25s; }
.aca-cal .tl-jour.choisi { box-shadow: 0 0 0 1.5px var(--cal-ink), var(--cal-ombre); }
.aca-cal .tl-titre { margin: 0 0 2px; font-size: var(--cal-m); font-weight: 750; display: flex; align-items: center; gap: 8px; }
.aca-cal .tl-jour .vide, .aca-cal .tl-jour .conge-bloc { margin: 10px 0 12px; }
.aca-cal .tl-jour .tl-outils { display: flex; justify-content: flex-end; margin: -36px 0 0; }

/* Le bouton qui reste en bas, au téléphone (vue publique) */
.aca-cal .collant { display: none; }

.aca-cal .pied { margin-top: 30px; font-size: var(--cal-s); color: var(--cal-dim); max-width: 70ch; }
.aca-cal .sans-script { display: grid; gap: 8px; padding: 0; list-style: none; }

@media (max-width: 960px) {
	.aca-cal .corps { grid-template-columns: minmax(0, 1fr) 300px; }
	.aca-cal .case { min-height: 104px; }
}
@media (max-width: 820px) {
	.aca-cal .corps { grid-template-columns: 1fr; }
	.aca-cal .jour { position: static; }
	.aca-cal .tete, .aca-cal .tete.sans-photo { grid-template-columns: 1fr; }
	.aca-cal .outils { justify-content: flex-start; }
	.aca-cal .photo { aspect-ratio: 16 / 7; }
}
@media (max-width: 620px) {
	.aca-cal .corps { display: none; }
	.aca-cal .tel { display: block; }
	.aca-cal .tete { margin-bottom: 24px; gap: 20px; }
	.aca-cal .photo { aspect-ratio: 2 / 1; border-radius: 18px; }
	.aca-cal .legende { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-snap-type: x proximity; }
	.aca-cal .legende::-webkit-scrollbar { display: none; }
	.aca-cal .legende .filtre { flex: none; scroll-snap-align: start; }
	.aca-cal[data-vue="parent"] .legende { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
	.aca-cal .prochaine { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 16px; }
	.aca-cal .prochaine .btn { grid-column: 1 / -1; }
	.aca-cal .prochaine .bloc-date { width: 68px; }
	.aca-cal .collant { display: flex; position: fixed; z-index: 9990; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; box-shadow: 0 14px 30px -10px rgba(27, 42, 71, 0.45); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--cal-doux); }
	.aca-cal .collant.vu { opacity: 1; transform: none; pointer-events: auto; }
	.aca-cal[data-vue="public"] { padding-bottom: 72px; }
}
/* La fiche d'un projet, au clic : au centre sur grand écran, en bas au téléphone. */
.aca-cal dialog.fiche { box-sizing: border-box; width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 0; border-radius: 16px; background: var(--cal-white); color: var(--cal-ink); box-shadow: var(--cal-ombre); overflow-y: auto; }
.aca-cal dialog.fiche::backdrop { background: rgba(27, 42, 71, 0.5); }
.aca-cal .fiche-tete { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.aca-cal .fiche-tete img { width: 48px; height: 48px; object-fit: contain; }
.aca-cal .fiche-sur { margin: 0; font-size: var(--cal-s); color: var(--cal-dim); }
.aca-cal .fiche-tete h2 { margin: 2px 0 0; font-size: var(--cal-l); line-height: 1.2; color: var(--cal-ink); }
.aca-cal .fiche-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cal-paper); color: var(--cal-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.aca-cal .fiche dl { margin: 20px 0 0; display: grid; gap: 14px; }
.aca-cal .fiche dt { font-size: var(--cal-s); font-weight: 700; color: var(--cal-navy); }
.aca-cal .fiche dd { margin: 2px 0 0; }
.aca-cal .fiche > .btn { width: 100%; margin-top: 20px; box-sizing: border-box; }
@media (max-width: 620px) {
	.aca-cal dialog.fiche { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.aca-cal .anim, .aca-cal .grille.va-g, .aca-cal .grille.va-d, .aca-cal .sept.va-g, .aca-cal .sept.va-d, .aca-cal .grille.entree .case { animation: none; }
	.aca-cal *, .aca-cal-apercu, .aca-cal-message { transition: none !important; }
	::view-transition-group(*) { animation: none !important; }
}

/* Imprimer le mois : une page propre pour le frigo */
@media print {
	body * { visibility: hidden !important; }
	.aca-cal, .aca-cal * { visibility: visible !important; }
	.aca-cal { position: absolute; left: 0; top: 0; width: 100%; max-width: none; padding: 0; }
	.aca-cal .photo, .aca-cal .outils, .aca-cal .annonces, .aca-cal .prochaine, .aca-cal .saison, .aca-cal .filtres, .aca-cal .cle,
	.aca-cal .cette-semaine, .aca-cal .jour, .aca-cal .tel, .aca-cal .collant, .aca-cal .nav, .aca-cal .pied, .aca-cal .lede { display: none !important; }
	.aca-cal .tete { display: block; margin-bottom: 12px; }
	.aca-cal .titre { font-size: 26px; }
	.aca-cal .corps { display: block !important; }
	.aca-cal .mois { box-shadow: none; border: 1px solid #ccc; }
	.aca-cal .case { min-height: 92px; break-inside: avoid; }
	.aca-cal .case[aria-pressed="true"] { box-shadow: none; transform: none; }
	.aca-cal .bande.serre { height: 20px; width: auto; border-radius: 6px; background: color-mix(in srgb, var(--c) 13%, #fff); padding-right: 6px; }
	.aca-cal .bande.serre .t { display: inline; }
	.aca-cal .bande.serre::before { display: block; }
	.aca-cal * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Garde contre les feuilles de l'hôte. L'espace parent (parent-navigation.css) colore et souligne tous ses titres
   (body.aca-espace-parents.ep-com5 .ep-corps h1 à h6). Le titre de la page garde ce style, comme toutes les pages du
   parent; les titres À L'INTÉRIEUR du calendrier gardent les siens (sinon le titre de la carte sombre devient invisible). */
.aca-cal.aca-cal.aca-cal :is(.mois-titre, .jour-titre, .act-titre, .tel-titre, .tl-titre, .prochaine-titre, .idees-titre, .idee-nom) { font-family: var(--cal-font); letter-spacing: -0.02em; }
.aca-cal.aca-cal.aca-cal :is(.mois-titre, .jour-titre, .act-titre, .tel-titre, .tl-titre, .prochaine-titre, .idees-titre, .idee-nom)::after { content: none; display: none; }
.aca-cal.aca-cal.aca-cal .prochaine-titre { color: var(--cal-white); }
.aca-cal.aca-cal.aca-cal :is(.mois-titre, .jour-titre, .act-titre, .tel-titre, .tl-titre, .idees-titre, .idee-nom) { color: var(--cal-ink); }

/* Sur l'accueil des deux sites (aca-facade-publique, page statique) : la section, sa boîte, son texte d'attente.
   La boîte se remplit depuis /wp-json/aca-commerce/v1/calendrier-atelier; sans script, le texte et le lien restent. */
/* La façade range ses blocs dans la grille à deux colonnes de « Concrètement, on fait quoi? » (#horaire) : le
   calendrier prend toute la largeur, comme le tutorat, en feuille de papier posée sur le fond sombre. */
.aca-cal-facade { grid-column: 1 / -1; min-width: 0; max-width: 100%; margin: clamp(16px, 3vw, 40px) 0; padding: clamp(24px, 4vw, 56px) clamp(16px, 3.5vw, 48px); border-radius: 28px; background: #f2f0e9; color: #192741; color-scheme: light; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.55); }
.aca-cal-facade-u { max-width: 1180px; margin: 0 auto; min-height: 640px; }
.aca-cal-facade-u.charge { min-height: 0; }
.aca-cal-facade .aca-cal { scroll-margin-top: 84px; } /* la barre « Babillard · Vitrine · Site web » reste en haut (67 px) */
.aca-cal-facade .aca-cal .jour { top: 80px; }
@media (max-width: 620px) { .aca-cal-facade { border-radius: 22px; padding: 24px 16px; } }
.aca-cal-attente { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif; }
.aca-cal-attente .eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(25, 39, 65, 0.68); }
.aca-cal-attente h2 { margin: 0; font-size: clamp(36px, 5.4vw, 58px); font-weight: 850; line-height: 0.95; letter-spacing: -0.055em; color: #192741; }
.aca-cal-attente p { margin: 16px 0 0; font-size: 15px; color: rgba(25, 39, 65, 0.68); }
.aca-cal-attente a { display: inline-flex; margin-top: 18px; min-height: 44px; align-items: center; padding: 0 16px; border-radius: 12px; background: #192741; color: #fff; font-weight: 650; text-decoration: none; }
/* La façade (readability.css) impose un espacement à TOUS les h1, h2, h3 avec !important, et un autre à ses <p>.
   Le calendrier garde le sien, approuvé par Pat (titre serré comme l'accueil, texte normal). */
body .aca-cal .titre, body .aca-cal-attente h2 { letter-spacing: -0.055em !important; }
body .aca-cal :is(.mois-titre, .jour-titre, .act-titre, .tel-titre, .tl-titre, .prochaine-titre, .idees-titre, .idee-nom) { letter-spacing: -0.02em !important; }
.aca-cal.aca-cal.aca-cal p, .aca-cal-attente.aca-cal-attente p { letter-spacing: normal; }

/* Les logos des produits comme icônes (Pat, 2 nov. 2026). Tuile blanche : les logos sont en couleurs, ils restent nets. */
.aca-cal .tuile.logo { background: var(--cal-white); box-shadow: inset 0 0 0 1px var(--cal-line); }
.aca-cal .tuile.logo img { width: 34px; height: 34px; object-fit: contain; display: block; }
.aca-cal .logo-mini { width: 22px; height: 22px; object-fit: contain; flex: none; display: block; }
.aca-cal .btn .btn-t { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.aca-cal .filtre .logo-mini { width: 20px; height: 20px; margin: 0 -2px 0 -4px; transition: filter 0.2s, opacity 0.2s; }
.aca-cal .filtre[aria-pressed="false"] .logo-mini { filter: grayscale(1); opacity: 0.45; }

/* Les changements de Caroline : une activité annulée, une note, une idée proposée pour une date. */
.aca-cal .bande.annule { background: transparent; box-shadow: inset 0 0 0 1px var(--cal-line); color: var(--cal-dim); }
.aca-cal .bande.annule .t { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.aca-cal .bande.idee { background: transparent; box-shadow: none; outline: 1.5px dashed color-mix(in srgb, var(--cal-navy) 55%, transparent); outline-offset: -1.5px; color: var(--cal-navy); }
.aca-cal .bande.note { background: color-mix(in srgb, var(--cal-navy) 8%, var(--cal-white)); }
.aca-cal .bande.serre.annule, .aca-cal .bande.serre.idee { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); outline: 0; height: 7px; }
.aca-cal .act.annule .tuile { background: var(--cal-conge); color: var(--cal-conge-c); }
.aca-cal .act.annule .act-titre { color: var(--cal-dim); }
.aca-cal .act.note .tuile { background: color-mix(in srgb, var(--cal-navy) 9%, var(--cal-white)); color: var(--cal-navy); }

/* Les idées de la Vitrine, à voter (Pat, 2 nov. 2026). La jauge n'a jamais de chiffre. */
.aca-cal .idees { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--cal-line); }
.aca-cal .idees[hidden] { display: none; }
.aca-cal .idees-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.aca-cal .idees-titre { margin: 0; font-size: var(--cal-l); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.aca-cal .idees-tete .lede { margin-top: 10px; }
.aca-cal .idees-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.aca-cal .idee-carte { display: grid; grid-template-rows: auto 1fr; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--cal-white); box-shadow: var(--cal-ombre); }
.aca-cal .idee-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cal-paper); }
.aca-cal .idee-img.vide { display: grid; place-items: center; color: var(--cal-faint); }
.aca-cal .idee-img.vide svg { width: 34px; height: 34px; }
.aca-cal .idee-corps { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; min-width: 0; }
.aca-cal .idee-nom { margin: 0; font-size: var(--cal-m); font-weight: 750; line-height: 1.3; letter-spacing: -0.01em; }
.aca-cal .idee-quand { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--cal-s); font-weight: 650; color: var(--cal-navy); }
.aca-cal .idee-quand svg { width: 16px; height: 16px; flex: none; }
.aca-cal .idee-resume { margin: 0; font-size: var(--cal-s); color: var(--cal-dim); text-wrap: pretty; }
.aca-cal .jauge { height: 8px; margin-top: 4px; border-radius: 4px; background: var(--cal-line-soft); overflow: hidden; }
.aca-cal .jauge span { display: block; height: 100%; border-radius: 4px; background: var(--cal-club); transition: width 0.6s var(--cal-doux); }
.aca-cal .jauge-mot { margin: 0; font-size: var(--cal-s); font-weight: 650; color: var(--cal-club-ink); }
.aca-cal .idee-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.aca-cal .btn.vote { justify-content: center; gap: 8px; }
.aca-cal .btn.vote.oui { background: var(--cal-white); color: var(--cal-ink); box-shadow: inset 0 0 0 1.5px var(--cal-ink); }
.aca-cal .btn.vote svg { width: 16px; height: 16px; }
.aca-cal .btn.vote:hover svg { transform: none; }
.aca-cal .vote-recu { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--cal-s); font-weight: 650; color: var(--cal-ink); }
.aca-cal .vote-recu svg { width: 18px; height: 18px; color: var(--cal-tutorat); }
.aca-cal .vote-form { display: grid; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--cal-line-soft); font-size: var(--cal-s); }
.aca-cal .vote-form p { margin: 0; color: var(--cal-dim); }
.aca-cal .vote-form label { display: grid; gap: 4px; font-weight: 650; color: var(--cal-ink); }
.aca-cal .vote-form input[type="email"] { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--cal-line); background: var(--cal-white); font: inherit; font-size: 16px; color: var(--cal-ink); }
.aca-cal .vote-form .accord { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 8px; font-weight: 400; color: var(--cal-dim); }
.aca-cal .vote-form .accord input { width: 20px; height: 20px; margin: 1px 0 0; }
.aca-cal .vote-form .politique { font-weight: 650; color: var(--cal-navy); }
.aca-cal .vote-form .piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aca-cal .vote-erreur { color: var(--cal-immersif) !important; font-weight: 650; }
.aca-cal .vote-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Dans le panneau du jour, l'idée prend la forme d'une activité : image à gauche, texte à droite. */
.aca-cal .idee-carte.dans-jour { grid-template-rows: none; grid-template-columns: 88px minmax(0, 1fr); margin: 16px 0; border-radius: 14px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cal-navy) 30%, transparent); }
.aca-cal .idee-carte.dans-jour .idee-img { aspect-ratio: auto; height: 100%; min-height: 88px; }
.aca-cal .idee-carte.dans-jour .idee-corps { padding: 12px 14px 14px; }
@media print { .aca-cal .idees { display: none !important; } }

/* Le calendrier au téléphone (maquette approuvée par Pat le 2 nov. 2026) : un jour à la fois, mois lisibles, cibles de 44 px. */
.aca-cal .act p.act-heures { display: none; }
.aca-cal .idees-bascule { display: none; }
@media (max-width: 620px) {
	.aca-cal[data-vue="public"] .photo { display: none; }
	.aca-cal[data-vue="public"] .legende { display: none; }
	.aca-cal .piste, .aca-cal .saison-tete strong { display: none; }
	.aca-cal .saison { margin-bottom: 12px; }
	.aca-cal .saison-tete { margin-bottom: 8px; }
	.aca-cal .mois-rail { display: flex; gap: 4px; height: auto; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
	.aca-cal .mois-rail::-webkit-scrollbar { display: none; }
	.aca-cal .mois-rail button { position: static; flex: none; width: auto !important; min-width: 58px; height: 44px; padding: 0 12px; border-radius: 12px; font-size: var(--cal-m); font-weight: 600; }
	.aca-cal .mois-rail button::before, .aca-cal .mois-rail button[aria-current="true"]::after { content: none; }
	.aca-cal .mois-rail button[aria-current="true"] { background: var(--cal-ink); color: var(--cal-white); }
	.aca-cal .pour { display: flex; width: 100%; box-sizing: border-box; }
	.aca-cal .pour button { flex: 1 1 0; min-height: 44px; padding: 0 6px; font-size: var(--cal-m); }
	.aca-cal .rond { width: 44px; height: 44px; }
	.aca-cal .j7 { min-height: 0; }
	.aca-cal .j7 .pts { height: 16px; gap: 2px; align-items: center; }
	.aca-cal .j7 .pts img { width: 16px; height: 16px; object-fit: contain; }
	.aca-cal .act p { font-size: var(--cal-m); color: rgba(27, 42, 71, 0.82); }
	.aca-cal .act p.act-heures { display: block; font-weight: 650; color: var(--cal-ink); }
	.aca-cal .act .horaire { display: none; }
	.aca-cal[data-vue="public"] .act .btn.essai { display: none; }
	.aca-cal .tel-liste { margin-top: 12px; }
	.aca-cal .idees { margin-top: 12px; padding-top: 0; border-top: 0; }
	.aca-cal .idees-bascule { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--cal-white); color: var(--cal-ink); box-shadow: var(--cal-ombre); font-size: var(--cal-m); font-weight: 700; text-align: left; cursor: pointer; }
	.aca-cal .idees-bascule svg { width: 18px; height: 18px; flex: none; transform: rotate(90deg); transition: transform 0.2s var(--cal-doux); }
	.aca-cal .idees-bascule[aria-expanded="true"] svg { transform: rotate(-90deg); }
	.aca-cal .idees-corps { display: none; margin-top: 16px; }
	.aca-cal .idees-corps.ouvert { display: block; }
}

/* ── À l'ordinateur : le logo de la grille ouvre sa fiche (Pat, 3 nov. 2026) ── */
.aca-cal .logos-case { display: flex; flex-wrap: wrap; gap: 4px; }
.aca-cal .logo-case { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--cal-white); box-shadow: inset 0 0 0 1px var(--cal-line); transition: box-shadow 0.2s, transform 0.2s var(--cal-doux); }
.aca-cal .logo-case img { width: 22px; height: 22px; object-fit: contain; display: block; }
.aca-cal .logo-case:hover { box-shadow: inset 0 0 0 1.5px var(--cal-ink); transform: translateY(-1px); }
.aca-cal .case.passe .logo-case img { opacity: 0.55; }
@container (max-width: 72px) { .aca-cal .logo-case { width: 24px; height: 24px; border-radius: 6px; } .aca-cal .logo-case img { width: 18px; height: 18px; } }
@media (prefers-reduced-motion: reduce) { .aca-cal .logo-case { transition: none; } .aca-cal .logo-case:hover { transform: none; } }
