/* =====================================================================
   ACADEMY : SECTION HÉROS DE L'ACCUEIL (et de /patron-libre)   (2026-11-17)
   Même esprit que Processus / Plans / Soumissions / Jobs : bandeau bleu, fine grille de plan qui avance,
   textes qui entrent en fondu, dessin animé à droite (une formation vidéo qui avance, 6 modules qui s'allument,
   la toque qui tombe et le diplôme qui se valide).
   La hauteur d'origine du bandeau est conservée. AUCUN texte ajouté, AUCUN texte changé (11 langues, fichiers de langue art-accueil.php).
   Chargée par art-accueil/index.blade.php et patron-libre.blade.php, APRÈS accueil.css. Retour : RESTAURER-heros-modules.cmd
   ===================================================================== */

/* ---------- ALIGNEMENT SUR LE MENU (2026-11-17) ----------
   Le texte commence au bord gauche du LOGO et le dessin finit au bord droit de « S'inscrire ».
   Le menu a le contenu du pied de page : 1100 px (marge 20 px, 16 px sous 1024 px, 12 px sous 421 px), avec une marge latérale de 20 px (16 px sur tablette, 12 px sur téléphone).
   --amh-demi = moitié de la largeur du contenu du menu ; le menu lui-même (#amu) fait foi s'il est déjà là. */
/* barre UNIQUE du menu = pied de page : contenu 1100 px (162,5 -> 1262,5 px à 1440 px) => moitié = 550 px
   (le menu fixe aussi --amh-demi dans menu-unifie.css : valeur commune, ne pas la changer ici sans la session menu) */
:root { --amh-demi: 550px; }
/* marge latérale du menu (recopiée : 20 px >= 1024 px, 16 px jusqu'à 1023 px, 12 px jusqu'à 420 px, 8 px de 1024 à 1100 px hors français) */
:root { --h-m: 20px; }
@media (max-width: 1023px) { :root { --h-m: 16px; } }
@media (max-width: 420px) { :root { --h-m: 12px; } }
@media (min-width: 1024px) and (max-width: 1100px) { :root:has(#amu:not([data-amu-lang="fr"])) { --h-m: 8px; } }


body .academy-page .academy-hero {
    isolation: isolate; overflow: hidden;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(55, 138, 221, .45), transparent 65%),
        linear-gradient(135deg, #063f70 0%, #085292 55%, #0a6bb8 100%);
}
/* fine grille de plan, très discrète, qui avance doucement */
body .academy-page .academy-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 80% 20%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 90% at 80% 20%, #000 10%, transparent 75%);
    animation: ac-grille 50s linear infinite;
}
@keyframes ac-grille { to { background-position: 0 40px, 40px 0; } }
/* le dessin (le conteneur de la page fait 1180 px au maximum) */
body .academy-page .academy-hero::after {
    content: "";
    position: absolute; z-index: -1; pointer-events: none;
    top: 50%; right: max(var(--amu-marge, var(--h-m)), calc(50% - var(--amh-demi)));
    height: min(84%, 35.4vw, 400px); aspect-ratio: 520 / 400; width: auto;
    /* la marge vide à droite de l'image est annulée : la partie VISIBLE du dessin finit pile au bord droit du cadre (= bord droit de « S'inscrire ») */
    translate: 4.8% -50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 400'%3E %3Cdefs%3E %3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%238FD0FF'/%3E%3Cstop offset='.55' stop-color='%23378ADD'/%3E%3Cstop offset='1' stop-color='%23185FA5' stop-opacity='.55'/%3E%3C/linearGradient%3E %3ClinearGradient id='hi' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23C9F6FF'/%3E%3Cstop offset='.5' stop-color='%236FD3F7'/%3E%3Cstop offset='1' stop-color='%232A9AE0'/%3E%3C/linearGradient%3E %3ClinearGradient id='sh' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23CFE8FF' stop-opacity='.28'/%3E%3Cstop offset='1' stop-color='%238FD0FF' stop-opacity='.07'/%3E%3C/linearGradient%3E %3ClinearGradient id='dm' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23D9F2FF'/%3E%3Cstop offset='.45' stop-color='%236DB9F5'/%3E%3Cstop offset='1' stop-color='%232C7FD1'/%3E%3C/linearGradient%3E %3ClinearGradient id='br' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234A9BEA'/%3E%3Cstop offset='1' stop-color='%23185FA5'/%3E%3C/linearGradient%3E %3Cfilter id='g' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='11'/%3E%3C/filter%3E %3C/defs%3E %3Cstyle%3E @keyframes d{from{stroke-dashoffset:1}to{stroke-dashoffset:0}} @keyframes f{from{opacity:0}to{opacity:1}} @keyframes u{from{transform:scaleY(.03);opacity:0}to{transform:scaleY(1);opacity:1}} @keyframes sx{from{transform:scaleX(.02);opacity:0}to{transform:scaleX(1);opacity:1}} @keyframes s{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}} @keyframes sl{from{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}} @keyframes w{from{opacity:.25}to{opacity:.8}} @keyframes fl{from{transform:translateY(0)}to{transform:translateY(-5px)}} @keyframes ring{0%25{transform:scale(.85);opacity:.75}100%25{transform:scale(1.9);opacity:0}} @keyframes tw{from{opacity:.25;transform:scale(.6)}to{opacity:1;transform:scale(1.1)}} .t{transform-box:fill-box;transform-origin:50%25 50%25} .w{animation:w 4s 3.6s ease-in-out infinite alternate;opacity:.3} .fl{animation:fl 7s 4s ease-in-out infinite alternate} .dr{animation:sl .9s cubic-bezier(.2,.8,.2,1) both} .pop{transform-box:fill-box;transform-origin:50%25 50%25;animation:s .7s cubic-bezier(.3,1.6,.5,1) both} .ln{transform-box:fill-box;transform-origin:0 50%25;animation:sx .7s cubic-bezier(.2,.8,.2,1) both} .ck{stroke-dasharray:1;animation:d .7s cubic-bezier(.3,.7,.2,1) both} .rg{transform-box:fill-box;transform-origin:50%25 50%25;animation:ring 2.8s ease-out infinite} .prog{transform-box:fill-box;transform-origin:0 50%25;animation:sx 2.6s 1.5s cubic-bezier(.3,.7,.2,1) both}@keyframes kn{from{transform:translateX(-250px);opacity:0}to{transform:translateX(0);opacity:1}}.knob{animation:kn 2.6s 1.5s cubic-bezier(.3,.7,.2,1) both}.mod{animation:f .5s ease-out both}@keyframes bob{from{transform:translateY(0) rotate(-1deg)}to{transform:translateY(-6px) rotate(1.5deg)}}.cap{transform-box:fill-box;transform-origin:50%25 60%25;animation:bob 4.6s 4.4s ease-in-out infinite alternate}@media (prefers-reduced-motion:reduce){*{animation:none!important}.rg{display:none}}%3C/style%3E %3Cg class='fl'%3E %3Cg class='w' filter='url(%23g)'%3E%3Crect x='36' y='72' width='344' height='186' rx='16' fill='%23378ADD'/%3E%3Cpolygon points='330,102 410,68 490,102 410,136' fill='%237CE6FF'/%3E%3Ccircle cx='432' cy='312' r='28' fill='%23378ADD'/%3E%3C/g%3E %3Cg class='dr' style='animation-delay:.2s'%3E %3Crect x='36' y='72' width='344' height='186' rx='16' fill='url(%23sh)' stroke='%237CE6FF' stroke-opacity='.6' stroke-width='1.4'/%3E %3Cpath d='M52,72 H364 A16,16 0 0 1 380,88 V104 H36 V88 A16,16 0 0 1 52,72 Z' fill='%238FD0FF' fill-opacity='.2'/%3E %3Ccircle cx='58' cy='88' r='4.5' fill='%237CE6FF' fill-opacity='.9'/%3E%3Ccircle cx='76' cy='88' r='4.5' fill='%237CE6FF' fill-opacity='.55'/%3E%3Ccircle cx='94' cy='88' r='4.5' fill='%237CE6FF' fill-opacity='.3'/%3E %3Crect x='60' y='214' width='34' height='34' fill='%238FD0FF' fill-opacity='.18'/%3E%3Crect x='100' y='192' width='34' height='56' fill='%238FD0FF' fill-opacity='.18'/%3E%3Crect x='282' y='200' width='34' height='48' fill='%238FD0FF' fill-opacity='.18'/%3E%3Crect x='322' y='222' width='34' height='26' fill='%238FD0FF' fill-opacity='.18'/%3E %3Ccircle cx='208' cy='178' r='38' fill='%23fff' fill-opacity='.13' stroke='%23CFEFFF' stroke-width='2'/%3E %3Cpolygon points='197,158 197,198 231,178' fill='%23fff' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E %3Ccircle class='rg' style='animation-delay:2.4s' cx='208' cy='178' r='38' fill='none' stroke='%237CE6FF' stroke-width='2'/%3E %3C/g%3E %3Crect x='36' y='282' width='344' height='10' rx='5' fill='%23fff' fill-opacity='.14' class='t' style='animation:f .8s 1.2s both'/%3E %3Crect class='prog' x='36' y='282' width='250' height='10' rx='5' fill='url(%23hi)'/%3E %3Ccircle class='knob' cx='286' cy='287' r='9.5' fill='%23fff' stroke='%237CE6FF' stroke-width='2.5'/%3E %3Crect class='mod' style='animation-delay:2.50s' x='36' y='314' width='49' height='15' rx='7.5' fill='url(%23hi)'/%3E %3Crect x='36' y='314' width='49' height='15' rx='7.5' fill='none' stroke='%237CE6FF' stroke-opacity='.45' stroke-width='1.2'/%3E %3Crect class='mod' style='animation-delay:2.82s' x='95' y='314' width='49' height='15' rx='7.5' fill='url(%23hi)'/%3E %3Crect x='95' y='314' width='49' height='15' rx='7.5' fill='none' stroke='%237CE6FF' stroke-opacity='.45' stroke-width='1.2'/%3E %3Crect class='mod' style='animation-delay:3.14s' x='154' y='314' width='49' height='15' rx='7.5' fill='url(%23hi)'/%3E %3Crect x='154' y='314' width='49' height='15' rx='7.5' fill='none' stroke='%237CE6FF' stroke-opacity='.45' stroke-width='1.2'/%3E %3Crect class='mod' style='animation-delay:3.46s' x='213' y='314' width='49' height='15' rx='7.5' fill='url(%23hi)'/%3E %3Crect x='213' y='314' width='49' height='15' rx='7.5' fill='none' stroke='%237CE6FF' stroke-opacity='.45' stroke-width='1.2'/%3E %3Crect class='mod' style='animation-delay:3.78s' x='272' y='314' width='49' height='15' rx='7.5' fill='url(%23hi)'/%3E %3Crect x='272' y='314' width='49' height='15' rx='7.5' fill='none' stroke='%237CE6FF' stroke-opacity='.45' stroke-width='1.2'/%3E %3Crect class='mod' style='animation-delay:4.10s' x='331' y='314' width='49' height='15' rx='7.5' fill='url(%23hi)'/%3E %3Crect x='331' y='314' width='49' height='15' rx='7.5' fill='none' stroke='%237CE6FF' stroke-opacity='.45' stroke-width='1.2'/%3E %3Cg class='dr' style='animation-delay:3.4s;animation-duration:1s'%3E%3Cg class='cap'%3E %3Cpath d='M366,112 L366,146 Q410,170 454,146 L454,112 L410,132 Z' fill='url(%23br)' stroke='%23fff' stroke-opacity='.35' stroke-width='1.2'/%3E %3Cpolygon points='326,102 410,66 494,102 410,138' fill='url(%23dm)' stroke='%23fff' stroke-opacity='.55' stroke-width='1.4' stroke-linejoin='round'/%3E %3Cpath d='M410,102 L478,106 L478,150' stroke='%237CE6FF' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E %3Ccircle cx='478' cy='154' r='6' fill='%237CE6FF'/%3E %3C/g%3E%3C/g%3E %3Cg class='pop' style='animation-delay:4.2s'%3E %3Cpolygon points='414,326 406,366 424,356 432,368 436,326' fill='%232C7FD1'/%3E%3Cpolygon points='428,326 436,368 446,354 462,362 452,326' fill='%23185FA5'/%3E %3Ccircle cx='434' cy='312' r='28' fill='url(%23hi)' stroke='%23fff' stroke-opacity='.7' stroke-width='1.6'/%3E %3Ccircle cx='434' cy='312' r='19' fill='none' stroke='%230A4C86' stroke-opacity='.45' stroke-width='1.4'/%3E %3C/g%3E %3Cpath class='ck' style='animation-delay:4.6s' d='M424,313 L431,320 L445,304' stroke='%230A4C86' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round' pathLength='1'/%3E %3C/g%3E %3C/svg%3E") no-repeat center / 100% 100%;
}

/* le contenu occupe exactement la largeur du menu (du logo à « S'inscrire ») */
body .academy-page .academy-hero .academy-container { width: min(calc(100% - 2 * var(--amu-marge, var(--h-m))), calc(2 * var(--amh-demi))); }

/* les textes laissent la place au dessin et entrent en fondu */
body .academy-page .academy-hero-content { max-width: min(56%, 720px); }
body .academy-page .academy-hero-content > * { animation: ac-entree .7s cubic-bezier(.2, .7, .2, 1) both; }
body .academy-page .academy-hero-content > :nth-child(1) { animation-delay: 0s; }
body .academy-page .academy-hero-content > :nth-child(2) { animation-delay: .12s; }
body .academy-page .academy-hero-content > :nth-child(3) { animation-delay: .26s; }
body .academy-page .academy-hero-content > :nth-child(4) { animation-delay: .4s; }
@keyframes ac-entree { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
body .academy-page .academy-btn-light { box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .45); }

/* ---------- tablette / téléphone ---------- */
@media (max-width: 900px) {
    body .academy-page .academy-hero-content { max-width: none; }
    body .academy-page .academy-hero::after { width: 92%; right: -14%; top: auto; bottom: 2%; height: 60%; opacity: .24; translate: none; aspect-ratio: auto; background-size: contain; background-position: right center; }
}

/* ---------- accessibilité / impression ---------- */
@media (prefers-reduced-motion: reduce) {
    body .academy-page .academy-hero, body .academy-page .academy-hero *,
    body .academy-page .academy-hero::before, body .academy-page .academy-hero::after { animation: none !important; }
}
@media print {
    body .academy-page .academy-hero, body .academy-page .academy-hero * { animation: none !important; opacity: 1 !important; translate: none !important; }
    body .academy-page .academy-hero::before, body .academy-page .academy-hero::after { display: none !important; }
}
