/* CAPAMBU V1.6.4 — Accueil AA uniquement : orbite sans chevauchement de signature. */
body.aa-home-view .orbit-subhub-inner{padding-bottom:0;min-height:0;overflow:visible}
body.aa-home-view .orbit-subhub-stage{min-height:660px;margin-top:12px}
body.aa-home-view .orbit-subhub-tile{width:clamp(106px,30vw,124px);min-height:108px}
body.aa-home-view .orbit-subhub-tile.p1{left:0;top:10%}
body.aa-home-view .orbit-subhub-tile.p2{right:0;top:10%}
body.aa-home-view .orbit-subhub-tile.p3{left:0;top:58%}
body.aa-home-view .orbit-subhub-tile.p4{right:0;top:58%}
body.aa-home-view .orbit-subhub-tile.p5{left:50%;top:79%;transform:translateX(-50%)}
body.aa-home-view .orbit-subhub-tile.p5:active{transform:translateX(-50%) scale(.97)}
body.aa-home-view .aa-home-motto{margin:0 auto 22px;padding:8px 16px;text-align:center;max-width:94%;font-size:clamp(13px,3.2vw,17px);font-weight:650;font-style:italic;letter-spacing:.055em;line-height:1.5;color:#f0f8ff;text-shadow:0 0 12px rgba(108,205,255,.25);white-space:normal}
body.aa-home-view .aa-home-motto::after{content:"";display:block;height:2px;max-width:180px;margin:12px auto 0;background:linear-gradient(90deg,transparent,#57b4ff,#e92340,transparent)}
/* La signature AA appartient au contenu, plus à la barre fixe. */
body.aa-home-view .capambu-global-nav::before,body.aa-home-view .capambu-global-nav::after{content:none!important;display:none!important}
body.aa-home-view .aa-library-access{padding:10px 16px max(134px,calc(130px + env(safe-area-inset-bottom)));background:transparent}
@media(max-width:370px){
 body.aa-home-view .orbit-subhub-stage{min-height:630px}
 body.aa-home-view .orbit-subhub-tile{width:106px;padding:9px 6px}
 body.aa-home-view .orbit-subhub-ring{width:260px;height:260px}
 body.aa-home-view .orbit-subhub-core{width:126px;height:126px}
 body.aa-home-view .orbit-subhub-core img{width:68px;height:68px}
}
@media(min-width:700px){
 body.aa-home-view .orbit-subhub-inner{min-height:0}
 body.aa-home-view .orbit-subhub-stage{min-height:670px}
}
@media(prefers-reduced-motion:reduce){body.aa-home-view .orbit-subhub-ring{animation:none}}

/* CAPAMBU 1.6.5 — grille C4 et vidéothèque au seul emplacement pédagogique C4. */
.aa-c4-grid{margin:18px 0 22px;background:#f5f9ff;color:#102e53;border:1px solid #cadaed;border-radius:19px;overflow:hidden;box-shadow:0 8px 22px rgba(4,26,60,.10)}
.aa-c4-grid h2{font-size:clamp(19px,4vw,25px);line-height:1.25;margin:0;padding:20px 18px 5px;color:#0b3369}
.aa-c4-intro{margin:0;padding:4px 18px 18px;line-height:1.5;color:#315270;font-size:14px}
.aa-c4-table{margin:0 12px;border-radius:12px;overflow:hidden;border:1px solid #dae5f1}
.aa-c4-heading,.aa-c4-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(72px,22%);gap:12px;padding:12px 13px;align-items:start}
.aa-c4-heading{background:#10346a;color:white;font-weight:750}
.aa-c4-row{background:white;color:#152c47;font-size:clamp(13px,3.5vw,16px);line-height:1.46}
.aa-c4-row:nth-child(even){background:#e9f1f9}
.aa-c4-row strong{color:#10346a}.aa-c4-row [role=cell]:last-child{overflow-wrap:anywhere}
.aa-c4-extra{margin:12px 18px;font-size:13px;font-weight:650;color:#1c6a8b}
.aa-c4-library{margin:14px 12px 16px;border:1px solid #8dbde3;background:linear-gradient(145deg,#e7f3ff,#f8fcff);border-radius:14px;padding:16px;display:grid;gap:13px;color:#0d3567}
.aa-c4-library p{margin:7px 0 0;font-size:14px;line-height:1.5;color:#315473}
.aa-c4-video-btn{display:block;text-decoration:none;text-align:center;background:#0c4f8f;color:white!important;border-radius:12px;padding:14px 12px;font-weight:700;min-height:48px;box-sizing:border-box}
.aa-c4-video-btn:focus-visible{outline:3px solid #e72344;outline-offset:3px}
@media(max-width:390px){.aa-c4-heading,.aa-c4-row{grid-template-columns:minmax(0,1fr) 72px;gap:7px;padding:10px 9px}}

/* CAPAMBU V1.6.6 : grille C5 réutilisant la présentation de C4. */
.aa-c5-grid .aa-c5-note{padding:0 18px;margin:14px 0 18px;color:#244d70;font-size:13px;line-height:1.5}

/* V1.6.7 — Organisation des ressources C5 */
.aa-c5-resources-title{color:#0b3260;font-size:clamp(1.1rem,2.8vw,1.45rem);margin:24px 0 8px;line-height:1.25}

/* V1.6.8 : accueil AA à quatre cartes, cinquième rubrique supprimée car vide. */
.aa-c4-resources-title{color:#0b3260;font-size:clamp(1.1rem,2.8vw,1.45rem);margin:24px 0 8px;line-height:1.25}


/* V1.6.12 — noyau central AA remplacé par le logo Livret AA, cliquable en Safari iPhone. */
body.aa-home-view .orbit-subhub-core{overflow:hidden}
body.aa-home-view .aa-home-core-link{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px;text-decoration:none;color:#fff}
body.aa-home-view .aa-home-core-link:focus-visible{outline:3px solid #9bd7ff;outline-offset:4px;border-radius:50%}
body.aa-home-view .aa-home-core-logo{width:104px;height:104px;max-width:88%;max-height:70%;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,.28))}
body.aa-home-view .aa-home-core-link strong{font-size:15px;letter-spacing:.04em;line-height:1.1;margin-top:2px}
@media(max-width:390px){
  body.aa-home-view .aa-home-core-logo{width:92px;height:92px}
  body.aa-home-view .aa-home-core-link strong{font-size:14px}
}

/* V1.6.13 — lisibilité du centre Livret AA et cercles AA, sans modifier la homepage principale. */
body.aa-home-view .aa-home-core-link{min-width:100%;min-height:100%;box-sizing:border-box;touch-action:manipulation}
body.aa-home-view .aa-home-core-link strong{font-size:14px;line-height:1.2;white-space:nowrap}
body.aa-home-view .aa-home-core-link::after{content:'Ouvrir le PDF';font-size:10px;line-height:1.2;letter-spacing:0;color:#c7e6ff}
body.aa-home-view .orbit-subhub-stage{margin-left:auto;margin-right:auto}
body.aa-home-view .orbit-subhub-tile{min-height:112px;max-width:calc(50% - 12px);box-sizing:border-box}
body.aa-home-view .orbit-subhub-tile b{overflow-wrap:break-word;hyphens:auto;line-height:1.2}
body.aa-home-view .aa-home-motto{position:relative;z-index:3;margin-top:22px;margin-bottom:120px;min-height:30px}
@media(max-width:390px){body.aa-home-view .orbit-subhub-tile{width:clamp(104px,31vw,124px);padding:9px 6px}body.aa-home-view .orbit-subhub-stage{min-height:620px}body.aa-home-view .aa-home-motto{margin-top:24px}}
@media(max-width:340px){body.aa-home-view .orbit-subhub-tile{width:104px}body.aa-home-view .orbit-subhub-core{width:116px;height:116px}body.aa-home-view .aa-home-core-logo{width:70px;height:70px}}


/* V1.6.15 — recherche AA discrète, sous la signature, avant la navigation fixe. */
body.aa-home-view .aa-home-motto{margin-bottom:12px}
body.aa-home-view .aa-home-search{text-align:center;margin:0 auto 130px;padding:0 18px;position:relative;z-index:4}
body.aa-home-view .aa-home-search a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;padding:12px 17px;color:#fff;background:#0b528d;border:1px solid #62a9dd;border-radius:14px;font-size:14px;font-weight:700;text-decoration:none}
body.aa-home-view .aa-home-search a:focus-visible{outline:3px solid #a1dfff;outline-offset:3px}


/* V1.6.17 : la bibliothèque visuelle C5 reprend les composants validés en C4. */
.aa-c5-library{margin-top:16px}

/* CAPAMBU 1.6.20 · Bibliothèque visuelle C3 INRS */
.aa-c3-videos{margin:24px 0 26px;padding:18px;border:1px solid #bad7ef;border-radius:18px;background:#f5faff;color:#102b4d}
.aa-c3-videos h2{margin:0 0 9px;font-size:1.28rem;color:#113d72}
.aa-c3-video-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px;margin-top:14px}
.aa-c3-video-card{background:white;border:1px solid #c5dcf0;border-radius:14px;padding:15px;display:flex;flex-direction:column;gap:10px}
.aa-c3-video-heading{display:flex;align-items:flex-start;gap:10px}
.aa-c3-video-heading h3{margin:0 0 5px;color:#153d6e;font-size:1rem;line-height:1.35}
.aa-c3-video-heading p,.aa-c3-video-card>p{margin:0;font-size:.87rem;line-height:1.45;color:#34546e}
.aa-c3-video-icon{flex:0 0 35px;width:35px;height:35px;border-radius:12px;background:#e2f0ff;color:#0d5b96;display:grid;place-items:center}
.aa-c3-video-card .aa-c3-video-criteria{font-weight:700;color:#164a77}
.aa-c3-video-link{margin-top:auto;display:inline-block;text-align:center;padding:12px 14px;border-radius:12px;background:#135998;color:#fff!important;font-weight:700;text-decoration:none;min-height:44px}
.aa-c3-video-link:focus-visible{outline:3px solid #ffbf37;outline-offset:2px}
.aa-c3-video-notice{margin:14px 0 0!important;font-size:.83rem;color:#405773;line-height:1.5}
