/* =====================================================================
   SUPPORT : SECTION HÉROS DE L'ACCUEIL   (2026-11-17)
   Même esprit que Processus / Plans / Soumissions / Jobs / Academy : bandeau bleu, fine grille de plan qui avance,
   textes qui entrent en fondu, dessin animé à droite. TOUT EN TONS BLEUS (aucun jaune).
   Le dessin : un casque-micro d'assistance + une conversation (question, réponse validée, réponse en cours d'écriture).
   La barre de recherche et la liste de résultats gardent leur fonctionnement. AUCUN texte ajouté, AUCUN texte changé (12 langues).
   Chargée SEULEMENT par la vue d'accueil de Support (accueil.blade.php) : les pages de chaque logiciel ne changent pas.
   Retour : RESTAURER-heros-modules.cmd  (choix : support)
   ===================================================================== */

/* ---------- 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 .sp-bandeau {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    min-height: clamp(23rem, 46vh, 26rem);
    padding: clamp(2.4rem, 5vw, 3.8rem) 0;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(55, 138, 221, .45), transparent 65%),
        linear-gradient(135deg, #06304F, #085292);
}
body .sp-bandeau > .sp-conteneur { width: 100%; max-width: calc(2 * var(--amh-demi) + 2 * var(--amu-marge, var(--h-m))); padding: 0 var(--amu-marge, var(--h-m)); }

/* fine grille de plan, très discrète, qui avance doucement */
body .sp-bandeau::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: sp-grille 50s linear infinite;
}
@keyframes sp-grille { to { background-position: 0 40px, 40px 0; } }
/* le dessin (tout est dans l'image) */
body .sp-bandeau::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(88%, 30.8vw, 20.8rem); 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: 5.2% -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} @keyframes bnc{0%25,55%25,100%25{transform:translateY(0);opacity:.55}28%25{transform:translateY(-7px);opacity:1}}.pt{opacity:0;transform-box:fill-box;transform-origin:50%25 50%25;animation:bnc 1.3s ease-in-out infinite}@media (prefers-reduced-motion:reduce){*{animation:none!important}.rg{display:none}}%3C/style%3E %3Cdefs%3E %3ClinearGradient id='ans' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23EAF7FF'/%3E%3Cstop offset='1' stop-color='%2386C4F6'/%3E%3C/linearGradient%3E %3C/defs%3E %3Cg class='fl'%3E %3Cg class='w' filter='url(%23g)'%3E%3Cpath d='M72,214 C72,132 108,92 150,92 C192,92 228,132 228,214' stroke='%237CE6FF' stroke-width='18' fill='none'/%3E%3Crect x='50' y='196' width='40' height='78' rx='18' fill='%23378ADD'/%3E%3Crect x='210' y='196' width='40' height='78' rx='18' fill='%23378ADD'/%3E%3Crect x='284' y='176' width='208' height='92' rx='22' fill='%23378ADD'/%3E%3C/g%3E %3Cpath d='M72,214 C72,132 108,92 150,92 C192,92 228,132 228,214' stroke='%231F5FA8' stroke-opacity='.45' stroke-width='19' fill='none' stroke-linecap='round'/%3E %3Cpath class='ck' style='animation-delay:.3s;animation-duration:1.3s' d='M72,214 C72,132 108,92 150,92 C192,92 228,132 228,214' stroke='%23DDF1FF' stroke-width='14' fill='none' stroke-linecap='round' pathLength='1'/%3E %3Cpath class='ck' style='animation-delay:.5s;animation-duration:1.2s' d='M96,134 C110,110 130,102 150,102' stroke='%23fff' stroke-opacity='.7' stroke-width='3' fill='none' stroke-linecap='round' pathLength='1'/%3E %3Cg class='pop' style='animation-delay:1.30s'%3E %3Crect x='50' y='196' width='40' height='78' rx='18' fill='url(%23dm)' stroke='%23fff' stroke-opacity='.45' stroke-width='1.3'/%3E %3Crect x='82' y='206' width='12' height='58' rx='6' fill='%23CFEFFF'/%3E %3Ccircle cx='70' cy='235' r='9' fill='none' stroke='%237CE6FF' stroke-width='2'/%3E %3C/g%3E %3Cg class='pop' style='animation-delay:1.45s'%3E %3Crect x='210' y='196' width='40' height='78' rx='18' fill='url(%23dm)' stroke='%23fff' stroke-opacity='.45' stroke-width='1.3'/%3E %3Crect x='208' y='206' width='12' height='58' rx='6' fill='%23CFEFFF'/%3E %3Ccircle cx='230' cy='235' r='9' fill='none' stroke='%237CE6FF' stroke-width='2'/%3E %3C/g%3E %3Cpath class='ck' style='animation-delay:1.8s;animation-duration:.9s' d='M234,272 C234,306 214,322 184,318' stroke='%23DDF1FF' stroke-width='6' fill='none' stroke-linecap='round' pathLength='1'/%3E %3Cg class='pop' style='animation-delay:2.5s'%3E%3Crect x='158' y='308' width='32' height='19' rx='9.5' fill='url(%23hi)' stroke='%23fff' stroke-opacity='.6' stroke-width='1.2'/%3E%3Crect x='164' y='313' width='14' height='4' rx='2' fill='%23fff' fill-opacity='.7'/%3E%3C/g%3E %3Ccircle cx='230' cy='203' r='4.5' fill='%237CE6FF'/%3E %3Ccircle class='rg' style='animation-delay:3.2s' cx='230' cy='203' r='4.5' fill='none' stroke='%237CE6FF' stroke-width='1.6'/%3E %3Cg class='pop' style='animation-delay:2s;transform-origin:20%25 100%25'%3E %3Cpolygon points='312,146 304,172 338,146' fill='%23CFE8FF' fill-opacity='.18'/%3E %3Crect x='296' y='70' width='196' height='78' rx='20' fill='%23CFE8FF' fill-opacity='.16' stroke='%237CE6FF' stroke-opacity='.6' stroke-width='1.4'/%3E %3Ccircle cx='332' cy='109' r='19' fill='url(%23hi)'/%3E %3Cpath d='M325,103 C325,95 339,95 339,103 C339,109 332,109 332,115' stroke='%230A4C86' stroke-width='3.3' fill='none' stroke-linecap='round'/%3E %3Ccircle cx='332' cy='122' r='2.3' fill='%230A4C86'/%3E %3Crect class='ln' style='animation-delay:2.6s' x='362' y='96' width='108' height='10' rx='5' fill='%23D4EEFF'/%3E %3Crect class='ln' style='animation-delay:2.75s' x='362' y='114' width='76' height='8' rx='4' fill='%238FD0FF' fill-opacity='.6'/%3E %3C/g%3E %3Cg class='pop' style='animation-delay:2.7s;transform-origin:80%25 100%25'%3E %3Cpolygon points='462,268 478,296 432,268' fill='url(%23ans)'/%3E %3Crect x='284' y='176' width='208' height='92' rx='22' fill='url(%23ans)' stroke='%23fff' stroke-opacity='.6' stroke-width='1.4'/%3E %3Ccircle cx='322' cy='222' r='20' fill='%230A4C86'/%3E %3Crect class='ln' style='animation-delay:3.3s' x='354' y='204' width='118' height='11' rx='5.5' fill='%230A4C86' fill-opacity='.85'/%3E %3Crect class='ln' style='animation-delay:3.45s' x='354' y='223' width='84' height='8' rx='4' fill='%230A4C86' fill-opacity='.45'/%3E %3Crect class='ln' style='animation-delay:3.6s' x='354' y='239' width='104' height='8' rx='4' fill='%230A4C86' fill-opacity='.45'/%3E %3C/g%3E %3Cpath class='ck' style='animation-delay:3.4s' d='M312,223 L319,230 L333,213' stroke='%23fff' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round' pathLength='1'/%3E %3Cg class='pop' style='animation-delay:3.9s;transform-origin:10%25 100%25'%3E %3Crect x='296' y='312' width='92' height='44' rx='22' fill='%23CFE8FF' fill-opacity='.16' stroke='%237CE6FF' stroke-opacity='.55' stroke-width='1.3'/%3E %3C/g%3E %3Ccircle class='pt' style='animation-delay:4.50s' cx='324' cy='334' r='5' fill='%23CFEFFF'/%3E %3Ccircle class='pt' style='animation-delay:4.68s' cx='342' cy='334' r='5' fill='%23CFEFFF'/%3E %3Ccircle class='pt' style='animation-delay:4.86s' cx='360' cy='334' r='5' fill='%23CFEFFF'/%3E %3C/g%3E %3C/svg%3E") no-repeat center / 100% 100%;
}

/* les textes laissent la place au dessin et entrent en fondu */
body .sp-bandeau .sp-surtitre,
body .sp-bandeau h1,
body .sp-bandeau .sp-intro,
body .sp-bandeau .sp-recherche,
body .sp-bandeau .sp-delai { animation: sp-entree .7s cubic-bezier(.2, .7, .2, 1) both; }
body .sp-bandeau .sp-surtitre { animation-delay: 0s; }
body .sp-bandeau h1 { max-width: min(60%, 40rem); animation-delay: .1s; text-wrap: pretty; letter-spacing: -.02em; }
body .sp-bandeau .sp-intro { max-width: min(58%, 600px); animation-delay: .2s; }
body .sp-bandeau .sp-recherche { max-width: min(58%, 680px); animation-delay: .3s; }
body .sp-bandeau .sp-resultats-directs { max-width: min(58%, 680px); }
body .sp-bandeau .sp-delai { max-width: min(60%, 680px); animation-delay: .42s; }
@keyframes sp-entree { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* ---------- tablette / téléphone ---------- */
@media (max-width: 900px) {
    body .sp-bandeau h1,
    body .sp-bandeau .sp-intro,
    body .sp-bandeau .sp-recherche,
    body .sp-bandeau .sp-resultats-directs,
    body .sp-bandeau .sp-delai { max-width: none; }
    body .sp-bandeau { min-height: 0; padding: 2.6rem 0 2.8rem; }
    body .sp-bandeau::after { width: 90%; right: -12%; top: auto; bottom: -2%; height: 56%; opacity: .2; translate: none; aspect-ratio: auto; background-size: contain; background-position: right center; }
}

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