/* =====================================================================
   SOUMISSIONS : SECTION HÉROS DE L'ACCUEIL   (2026-11-17)
   Même esprit, même taille et même fond que le héros de Processus et de Plans 2D/3D :
   bandeau bleu PLEINE LARGEUR collé à l'en-tête, fine grille de plan qui avance, dessin animé à droite
   (un appel d'offres + trois offres comparées, la meilleure validée).
   Actif SEULEMENT avec body.so-accueil (posé par app.blade.php sur /soumissions/ et suivi par soumissions-accueil.js).
   AUCUN texte ajouté, AUCUN texte changé. Les autres pages de Soumissions ne changent pas.
   Retour à l'ancien : voir RESTAURER-heros-modules.cmd  ou  /soumissions/?ancien=1 pour comparer.
   ===================================================================== */

/* ---------- 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; } }


/* le bandeau sort de la colonne (6xl = 72 rem) et se colle à l'en-tête ; le texte reste aligné sur la colonne */
body.so-accueil #app > div { overflow-x: clip; }
body.so-accueil main { padding-top: 0; }
body.so-accueil .s-page .s-bandeau {
    --so-gouttiere: max(calc(var(--amu-marge, var(--h-m)) + var(--sbw, 0px) / 2), calc(50vw - var(--amh-demi)));
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    min-height: clamp(19rem, 42vh, 25rem);
    margin: 0 calc(50% - 50vw) 3rem;
    padding: clamp(2.4rem, 5vw, 3.8rem) var(--so-gouttiere);
    border-radius: 0;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(55, 138, 221, .45), transparent 65%),
        linear-gradient(135deg, #06304F, #085292);
}
/* fine grille de plan, très discrète, qui avance doucement */
body.so-accueil .s-page .s-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: so-grille 50s linear infinite;
}
@keyframes so-grille { to { background-position: 0 40px, 40px 0; } }
/* le dessin : se construit à l'ouverture (tout est dans l'image) */
body.so-accueil .s-page .s-bandeau::after {
    content: "";
    position: absolute; z-index: -1; pointer-events: none;
    top: 54.5%; right: var(--so-gouttiere);
    height: min(88%, 33.8vw, 21.5rem); 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} .bar{transform-box:fill-box;transform-origin:50%25 100%25;animation:u 1.9s cubic-bezier(.2,.8,.2,1) both}@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%3Cpath d='M52,52 H192 L236,96 V328 A16,16 0 0 1 220,344 H52 A16,16 0 0 1 36,328 V68 A16,16 0 0 1 52,52 Z' fill='%23378ADD'/%3E%3Crect x='262' y='244' width='64' height='100' fill='%23378ADD'/%3E%3Crect x='346' y='130' width='64' height='214' fill='%237CE6FF'/%3E%3Crect x='430' y='200' width='64' height='144' fill='%23378ADD'/%3E%3C/g%3E %3Cg class='dr' style='animation-delay:.2s'%3E %3Cpath d='M52,52 H192 L236,96 V328 A16,16 0 0 1 220,344 H52 A16,16 0 0 1 36,328 V68 A16,16 0 0 1 52,52 Z' fill='url(%23sh)' stroke='%237CE6FF' stroke-opacity='.6' stroke-width='1.4'/%3E %3Cpolygon points='192,52 192,96 236,96' fill='%237CE6FF' fill-opacity='.28' stroke='%237CE6FF' stroke-opacity='.5' stroke-width='1'/%3E %3Crect class='ln' style='animation-delay:.9s' x='56' y='74' width='104' height='12' rx='6' fill='%23D4EEFF'/%3E %3Crect class='ln' style='animation-delay:1.05s' x='56' y='94' width='64' height='8' rx='4' fill='%238FD0FF' fill-opacity='.6'/%3E %3Crect class='ln' style='animation-delay:1.20s' x='56' y='126' width='96' height='9' rx='4.5' fill='%239FD6FF' fill-opacity='.8'/%3E %3Crect class='ln' style='animation-delay:1.28s;transform-origin:100%25 50%25' x='172' y='126' width='44' height='9' rx='4.5' fill='%235BB3F5'/%3E %3Cpath d='M56,142 H216' stroke='%237CE6FF' stroke-opacity='.2' stroke-width='1' fill='none'/%3E %3Crect class='ln' style='animation-delay:1.36s' x='56' y='157' width='78' height='9' rx='4.5' fill='%239FD6FF' fill-opacity='.8'/%3E %3Crect class='ln' style='animation-delay:1.44s;transform-origin:100%25 50%25' x='172' y='157' width='44' height='9' rx='4.5' fill='%235BB3F5'/%3E %3Cpath d='M56,173 H216' stroke='%237CE6FF' stroke-opacity='.2' stroke-width='1' fill='none'/%3E %3Crect class='ln' style='animation-delay:1.52s' x='56' y='188' width='110' height='9' rx='4.5' fill='%239FD6FF' fill-opacity='.8'/%3E %3Crect class='ln' style='animation-delay:1.60s;transform-origin:100%25 50%25' x='172' y='188' width='44' height='9' rx='4.5' fill='%235BB3F5'/%3E %3Cpath d='M56,204 H216' stroke='%237CE6FF' stroke-opacity='.2' stroke-width='1' fill='none'/%3E %3Crect class='ln' style='animation-delay:1.68s' x='56' y='219' width='70' height='9' rx='4.5' fill='%239FD6FF' fill-opacity='.8'/%3E %3Crect class='ln' style='animation-delay:1.76s;transform-origin:100%25 50%25' x='172' y='219' width='44' height='9' rx='4.5' fill='%235BB3F5'/%3E %3Cpath d='M56,235 H216' stroke='%237CE6FF' stroke-opacity='.2' stroke-width='1' fill='none'/%3E %3Crect class='ln' style='animation-delay:1.84s' x='56' y='250' width='96' height='9' rx='4.5' fill='%239FD6FF' fill-opacity='.8'/%3E %3Crect class='ln' style='animation-delay:1.92s;transform-origin:100%25 50%25' x='172' y='250' width='44' height='9' rx='4.5' fill='%235BB3F5'/%3E %3Cpath d='M56,266 H216' stroke='%237CE6FF' stroke-opacity='.2' stroke-width='1' fill='none'/%3E %3Crect class='ln' style='animation-delay:2.00s' x='56' y='281' width='84' height='9' rx='4.5' fill='%239FD6FF' fill-opacity='.8'/%3E %3Crect class='ln' style='animation-delay:2.08s;transform-origin:100%25 50%25' x='172' y='281' width='44' height='9' rx='4.5' fill='%235BB3F5'/%3E %3Cpath d='M56,297 H216' stroke='%237CE6FF' stroke-opacity='.2' stroke-width='1' fill='none'/%3E %3Crect class='ln' style='animation-delay:2.4s;transform-origin:100%25 50%25' x='150' y='318' width='66' height='14' rx='7' fill='%237CE6FF'/%3E %3C/g%3E %3Cpath d='M262,344 H494' stroke='%237CE6FF' stroke-opacity='.5' stroke-width='1.6' fill='none' stroke-linecap='round' pathLength='1' class='ck' style='animation-delay:1s;animation-duration:1.2s'/%3E %3Cpath d='M262,160 H494' stroke='%23BFE6FF' stroke-opacity='.3' stroke-width='1' stroke-dasharray='3 7' fill='none' class='t' style='animation:f 1s 2s both'/%3E %3Crect class='bar' style='animation-delay:1.4s' x='262' y='244' width='64' height='100' rx='12' fill='url(%23b)'/%3E %3Crect class='bar' style='animation-delay:1.75s' x='346' y='130' width='64' height='214' rx='12' fill='url(%23hi)'/%3E %3Crect class='bar' style='animation-delay:2.1s' x='430' y='200' width='64' height='144' rx='12' fill='url(%23b)'/%3E %3Cg class='pop' style='animation-delay:3s'%3E%3Ccircle cx='378' cy='100' r='25' fill='url(%23hi)' stroke='%23fff' stroke-opacity='.7' stroke-width='1.5'/%3E%3C/g%3E %3Ccircle class='rg' style='animation-delay:3.8s' cx='378' cy='100' r='25' fill='none' stroke='%237CE6FF' stroke-width='2'/%3E %3Cpath class='ck' style='animation-delay:3.3s' d='M366,101 L374,110 L391,90' stroke='%230A4C86' stroke-width='4.5' fill='none' stroke-linecap='round' stroke-linejoin='round' pathLength='1'/%3E %3C/g%3E %3C/svg%3E") no-repeat center / 100% 100%;
}

body.so-accueil .s-page .s-bandeau h1 {
    max-width: min(54%, 36rem);
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1.1; letter-spacing: -.02em; font-weight: 800;
    color: #fff;
    text-wrap: balance;
    animation: so-entree .7s cubic-bezier(.2, .7, .2, 1) .05s both;
}
body.so-accueil .s-page .s-bandeau p {
    max-width: min(50%, 32rem);
    margin: 0 0 1rem;
    color: #D6E6F4;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    animation: so-entree .7s cubic-bezier(.2, .7, .2, 1) .2s both;
}
@keyframes so-entree { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 760px) {
    body.so-accueil .s-page .s-bandeau { min-height: 0; margin-bottom: 2.2rem; }
    body.so-accueil .s-page .s-bandeau h1,
    body.so-accueil .s-page .s-bandeau p { max-width: none; }
    body.so-accueil .s-page .s-bandeau::after { width: 92%; right: -14%; top: auto; bottom: -5%; height: 74%; opacity: .26; translate: none; aspect-ratio: auto; background-size: contain; background-position: right center; }
}

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