/* Haut du site : une seule barre, sur toutes les pages publiques (Pat, 5 déc. 2026).
   Pourquoi : il y avait 2 barres empilées (153 px à l'ordi, 196 px au téléphone), et la première était bleu-gris hors de l'accueil.
   Pat a vu 2 dessins le 5 déc. et a retenu le A : la barre claire, comme sur ixpe.ca. Tout est sous body.hd.hd-a.
   Les pages reçoivent ces classes par outils-accueil-c/menu-du-haut.py (ne pas les écrire à la main).
   Couleurs : celles du site (site-shell.css, menu-messenger.css). Aucune couleur neuve. */

/* ---------- 1. La barre : sa forme ---------- */
body.hd .aca-header{position:sticky;top:0;z-index:70;box-sizing:border-box;min-height:64px;padding:8px clamp(16px,4vw,56px);gap:8px 12px;flex-wrap:nowrap;justify-content:flex-start;font-family:Arial,Helvetica,sans-serif}
body.hd .aca-header .brand{flex:0 0 auto;gap:9px;font-size:20px;color:#fff;text-decoration:none;min-height:44px}
body.hd .aca-header .brand img{width:36px;height:36px}
/* Si le logo ne charge pas, pages.css affiche une longue phrase à sa place. Dans la barre, elle couvrirait le bouton Menu : le nom écrit suffit. */
body.hd .aca-header .brand.media-missing:before,body.hd .entete .marque.media-missing:before,body.hd .ev-entete .ev-marque.media-missing:before{content:none}
body.hd .aca-header .aca-public-rail{position:static;z-index:auto;min-height:0;padding:0;border:0;background:none;margin-left:auto;view-transition-name:none}
body.hd .aca-header .aca-languages{margin-left:0}
body.hd .aca-header .navigation-fallback+.aca-languages{margin-left:auto}
body.hd .aca-header .shell-account{margin-left:0;padding:0 6px;font-size:14px;white-space:nowrap}
body.hd .aca-header .menu-toggle{margin-left:0;min-height:44px;padding:8px 16px;gap:12px;font-size:14px}
body.hd .aca-header a:focus-visible,body.hd .aca-header button:focus-visible{outline:3px solid #62dcff;outline-offset:2px}

/* ---------- 2. La barre claire : pas de fond, elle prend donc la couleur de la page. Un fond mauve arrive quand la page défile. ---------- */
body.hd-a .aca-header,body.hd-a.pj .entete,body.hd-a .ev-entete{border-bottom:1px solid transparent;background:none;transition:background-color .25s,border-color .25s}
body.hd-a .aca-header.hd-colle,body.hd-a.pj .entete.hd-colle,body.hd-a .ev-entete.hd-colle{background:#1c0a3aeb;border-bottom-color:#ffffff24;-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3)}
/* Accueil et pages de journée : le haut est une image. Elle monte sous la barre (comme sur ixpe.ca); un voile garde les mots lisibles. */
body.hd-a.home-clean .aca-header,body.hd-a.pj .entete{margin-bottom:-65px}
body.hd-a.home-clean .aca-header:not(.hd-colle),body.hd-a.pj .entete:not(.hd-colle){background:linear-gradient(#12062bd9,#12062b00) border-box no-repeat}
body.hd-a.home-clean .brand-hero{height:100svh;padding-top:92px}
body.hd-a.pj .hero{padding-top:112px}
body.hd-a .aca-public-spaces{display:flex;gap:2px;width:auto;padding:0;border:0;border-radius:0;background:none;font:700 14px/1.2 Arial,Helvetica,sans-serif}
body.hd-a .aca-public-spaces .aca-public-selection,body.hd-a .aca-public-spaces a.hd-site{display:none}
body.hd-a .aca-public-spaces a{min-height:44px;padding:8px 12px;color:#f6ecff}
body.hd-a .aca-public-spaces a[aria-current=page]{color:#ff95dc}
body.hd-a .aca-public-spaces a:not([aria-current]):hover,body.hd-a .aca-languages a:hover{background:#ffffff1f}
body.hd-a .aca-languages{gap:0;padding:0;border:0;background:none}
body.hd-a .aca-languages a[aria-current=page]{display:none}
body.hd-a .aca-languages a{min-width:44px;min-height:44px;font:700 14px/1 Arial,Helvetica,sans-serif;color:#f6ecff}
body.hd-a .aca-header .shell-account{color:#f6ecff}
body.hd-a .aca-header .menu-toggle{border:1.5px solid #ffffff73;background:#ffffff1a;color:#fff;transition:background .2s,border-color .2s,box-shadow .2s,color .2s,translate .2s}
@media(hover:hover){body.hd-a .aca-header .menu-toggle:hover{background:#ff59d0;border-color:#ff59d0;color:#1a0730;box-shadow:3px 3px 0 #62dcff;translate:-1px -1px}
body.hd-a .aca-header .menu-toggle:hover .hamburger i{background:#1a0730}}

/* ---------- 3. Le menu : parler d'abord, puis les pages et les projets, puis les espaces ---------- */
body.hd-a .site-menu{width:min(1000px,calc(100% - 32px));padding:24px 28px 18px}
body.hd-a .menu-top{margin-bottom:18px}
body.hd-a .menu-parler{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 6px 24px 0}
body.hd-a .site-menu .menu-parler .menu-messenger,body.hd-a .site-menu .menu-parler .menu-telephone{margin:0;box-sizing:border-box;min-height:56px}
body.hd-a .menu-columns{gap:40px}
body.hd-a .menu-pages>a{min-height:70px;padding:14px 0;font-size:clamp(24px,3.2vw,38px)}
body.hd-a .menu-bas{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:20px;padding-top:14px;border-top:1px solid #ffffff24}
body.hd-a .menu-bas a{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:8px 16px;box-sizing:border-box;border:1px solid #ae8bd466;border-radius:999px;color:#f0dafa!important;font:700 14px/1.2 Arial,Helvetica,sans-serif;text-decoration:none}
body.hd-a .menu-bas a:hover{background:#7040aa40;border-color:#cba5f699}
body.hd-a .menu-bas a[aria-current=page]{color:#ff95dc!important;border-color:#ff95dc}
body.hd-a .menu-bas .menu-account{display:none;margin-left:auto;border-color:#62dcff99;color:#cbeaff!important}
body.hd-a .menu-bas a:focus-visible{outline:3px solid #62dcff;outline-offset:2px}

/* ---------- 4. Les pages sans menu (journée, évaluation) : la même barre, avec le téléphone ---------- */
body.hd .entete,body.hd .ev-entete{position:sticky;top:0;z-index:70;box-sizing:border-box}
body.hd.pj .entete-dedans{min-height:64px;max-width:none;padding:8px clamp(16px,4vw,56px);box-sizing:border-box}
body.hd .ev-entete{min-height:64px;max-width:none;padding:8px clamp(16px,4vw,56px)}
body.hd .entete .marque,body.hd .ev-entete .ev-marque{gap:9px;font:800 20px/1.2 Arial,Helvetica,sans-serif;letter-spacing:0}
body.hd .entete .marque img,body.hd .ev-entete .ev-marque img{width:36px;height:36px}
body.hd-a.pj .pj-tel{border:1.5px solid #ffffff73;border-radius:999px;background:#ffffff1a;font-size:15px}

/* ---------- 5. Téléphone et petite tablette ---------- */
@media(max-width:900px){
 body.hd-a .aca-header .aca-public-rail{display:none}
 body.hd-a .aca-header .aca-languages{margin-left:auto}
 body.hd-a .menu-bas .menu-account{display:inline-flex}
}
@media(max-width:700px){
 body.hd .aca-header{min-height:56px;padding:6px 16px;gap:6px 8px}
 body.hd .aca-header .brand{font-size:18px;gap:8px}
 body.hd .aca-header .brand img{width:32px;height:32px}
 body.hd .aca-header .menu-toggle{padding:8px 14px;gap:10px}
 body.hd-a.home-clean .aca-header,body.hd-a.pj .entete{margin-bottom:-57px}
 body.hd-a.home-clean .brand-hero{height:auto;padding-top:84px}
 body.hd-a.pj .hero{padding-top:88px}
 body.hd.pj .entete-dedans,body.hd .ev-entete{min-height:56px;padding:6px 16px}
 body.hd .entete .marque,body.hd .ev-entete .ev-marque{font-size:18px;gap:8px}
 body.hd .entete .marque img,body.hd .ev-entete .ev-marque img{width:32px;height:32px}
 body.hd-a .site-menu{width:calc(100% - 20px);padding:14px 16px 14px}
 body.hd-a .menu-top{top:-14px;margin-bottom:6px;padding:8px 0}
 body.hd-a .menu-parler{grid-template-columns:1fr;gap:12px;margin:0 4px 14px 0}
 body.hd-a .site-menu .menu-parler .menu-telephone{min-height:48px}
 body.hd-a .menu-columns{gap:14px}
 body.hd-a .menu-pages{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
 body.hd-a .menu-pages>a{grid-template-columns:1fr 18px;min-height:50px;padding:10px 0;font-size:21px;gap:6px}
 body.hd-a .menu-pages>a>span:first-child{display:none}
 body.hd-a .menu-pages>a>span:last-child{font-size:18px}
 body.hd-a .menu-label{margin-bottom:8px}
 body.hd-a .menu-project{grid-template-columns:40px minmax(0,1fr) 16px;padding:7px 12px;gap:11px}
 body.hd-a .menu-project+.menu-project{margin-top:7px}
 body.hd-a .menu-project img{width:40px;height:40px}
 body.hd-a .menu-project small{margin-top:1px}
 body.hd-a .menu-tutor{padding:10px 4px;min-height:44px}
 body.hd-a .menu-bas{margin-top:8px;padding-top:12px;gap:8px}
 body.hd-a .menu-bas a{padding:8px 13px}
 body.hd-a .menu-bas .menu-account{margin-left:0}
}
@media(max-width:359px){
 body.hd .aca-header .menu-toggle>span:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.hd .aca-header .brand span{font-size:16px}
}
@media(prefers-reduced-motion:reduce){body.hd-a .aca-header,body.hd-a .entete,body.hd-a .ev-entete,body.hd-a .aca-header .menu-toggle{transition:none}body.hd-a .aca-header .menu-toggle:hover{translate:none}}
