/* =====================================================================
   JOBS : SECTION HÉROS DE L'ACCUEIL   (2026-11-17)
   Même esprit que Processus / Plans / Soumissions : bandeau bleu pleine largeur, fine grille de plan qui avance,
   textes alignés à gauche qui entrent en fondu, dessin animé à droite (un casque de chantier au-dessus d'une pile de candidatures).
   La barre de recherche (« Mots clés / Emplacement ») garde sa place : elle dépasse toujours du bandeau de 45 px.
   AUCUN texte ajouté, AUCUN texte changé (les textes viennent de la base et des fichiers de langue, 12 langues).
   Chargée SEULEMENT par l'accueil de Jobs (home.blade.php). 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 .home-page > section.hero-section {
    --jb-gouttiere: max(var(--amu-marge, var(--h-m)), calc(50% - var(--amh-demi)));
    position: relative; isolation: isolate; overflow: hidden;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(55, 138, 221, .45), transparent 65%),
        linear-gradient(135deg, #06304F, #085292) !important;
}
/* fine grille de plan, très discrète, qui avance doucement */
body .home-page > section.hero-section::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: jb-grille 50s linear infinite;
}
@keyframes jb-grille { to { background-position: 0 40px, 40px 0; } }
/* le dessin */
body .home-page > section.hero-section::after {
    content: "";
    position: absolute; z-index: -1; pointer-events: none;
    top: 45.5%; right: var(--jb-gouttiere);
    height: min(80%, 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: 5.6% -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 1.6s 2.6s cubic-bezier(.3,.7,.2,1) both}@media (prefers-reduced-motion:reduce){*{animation:none!important}.rg{display:none}}%3C/style%3E %3Cdefs%3E %3ClinearGradient id='tq' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23B9FFF7'/%3E%3Cstop offset='.5' stop-color='%234FE0D2'/%3E%3Cstop offset='1' stop-color='%231FA9B8'/%3E%3C/linearGradient%3E %3ClinearGradient id='ic' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2359A9F2'/%3E%3Cstop offset='1' stop-color='%231F5FA8'/%3E%3C/linearGradient%3E %3ClinearGradient id='ca' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23E3F3FF' stop-opacity='.30'/%3E%3Cstop offset='1' stop-color='%238FD0FF' stop-opacity='.09'/%3E%3C/linearGradient%3E %3C/defs%3E %3Cg class='fl'%3E %3Cg class='w' filter='url(%23g)'%3E%3Crect x='30' y='74' width='180' height='256' rx='24' fill='%23378ADD'/%3E%3Crect x='310' y='74' width='180' height='256' rx='24' fill='%23378ADD'/%3E%3Ccircle cx='260' cy='200' r='34' fill='%234FE0D2'/%3E%3C/g%3E %3Cg class='dr' style='animation-delay:.3s'%3E %3Crect x='30' y='74' width='180' height='256' rx='24' fill='url(%23ca)' stroke='%237CE6FF' stroke-opacity='.65' stroke-width='1.5'/%3E %3Ccircle cx='120' cy='128' r='40' fill='url(%23ic)' stroke='%23fff' stroke-opacity='.55' stroke-width='1.6'/%3E %3Crect x='99' y='104' width='26' height='50' rx='3' fill='%23F2F9FF'/%3E%3Crect x='125' y='122' width='18' height='32' rx='3' fill='%23CFE8FF'/%3E %3Crect x='104' y='109' width='6' height='6' rx='1.2' fill='%232FC7BE'/%3E %3Crect x='114' y='109' width='6' height='6' rx='1.2' fill='%232FC7BE'/%3E %3Crect x='104' y='119' width='6' height='6' rx='1.2' fill='%232FC7BE'/%3E %3Crect x='114' y='119' width='6' height='6' rx='1.2' fill='%232FC7BE'/%3E %3Crect x='104' y='129' width='6' height='6' rx='1.2' fill='%232FC7BE'/%3E %3Crect x='114' y='129' width='6' height='6' rx='1.2' fill='%232FC7BE'/%3E %3Crect x='104' y='139' width='6' height='6' rx='1.2' fill='%232FC7BE'/%3E %3Crect x='114' y='139' width='6' height='6' rx='1.2' fill='%232FC7BE'/%3E %3Crect x='129' y='128' width='5' height='5' rx='1' fill='%232A74C6'/%3E%3Crect x='129' y='139' width='5' height='5' rx='1' fill='%232A74C6'/%3E %3Crect x='111' y='142' width='7' height='12' rx='1.5' fill='%232A74C6'/%3E %3Cpath d='M94,154 H148' stroke='%23fff' stroke-opacity='.8' stroke-width='3' stroke-linecap='round'/%3E %3Crect class='ln' style='animation-delay:1.5s' x='52' y='184' width='136' height='13' rx='6.5' fill='%23D4EEFF'/%3E %3Crect class='ln' style='animation-delay:1.65s' x='52' y='206' width='96' height='9' rx='4.5' fill='%238FD0FF' fill-opacity='.65'/%3E %3Ccircle cx='62' cy='236' r='4.5' fill='%234FE0D2'/%3E %3Crect class='ln' style='animation-delay:1.80s' x='76' y='232' width='104' height='8' rx='4' fill='%238FD0FF' fill-opacity='.55'/%3E %3Ccircle cx='62' cy='258' r='4.5' fill='%234FE0D2'/%3E %3Crect class='ln' style='animation-delay:1.95s' x='76' y='254' width='120' height='8' rx='4' fill='%238FD0FF' fill-opacity='.55'/%3E %3Ccircle cx='62' cy='280' r='4.5' fill='%234FE0D2'/%3E %3Crect class='ln' style='animation-delay:2.10s' x='76' y='276' width='88' height='8' rx='4' fill='%238FD0FF' fill-opacity='.55'/%3E %3Crect x='52' y='298' width='136' height='18' rx='9' fill='url(%23tq)' fill-opacity='.9'/%3E %3C/g%3E %3Cg class='dr' style='animation-delay:.6s'%3E %3Crect x='310' y='74' width='180' height='256' rx='24' fill='url(%23ca)' stroke='%237CE6FF' stroke-opacity='.65' stroke-width='1.5'/%3E %3Ccircle cx='400' cy='128' r='40' fill='url(%23ic)' stroke='%23fff' stroke-opacity='.55' stroke-width='1.6'/%3E %3Cg transform='translate(400 136) scale(.52)'%3E %3Cpath d='M-62,12 C-62,-26 -36,-54 0,-54 C36,-54 62,-26 62,12 Z' fill='%23FFFFFF' stroke='%23A9CFF2' stroke-width='2.5'/%3E %3Cpath d='M-12,-53 C-5,-55 5,-55 12,-53 L13,12 L-13,12 Z' fill='%23BFDDF8' stroke='%23A9CFF2' stroke-width='1.5'/%3E %3Cpath d='M-40,-22 C-34,-36 -24,-46 -16,-50 M40,-22 C34,-36 24,-46 16,-50' stroke='%23C9E2F8' stroke-width='3' fill='none' stroke-linecap='round'/%3E %3Crect x='-76' y='8' width='152' height='17' rx='8.5' fill='%235AA8F0' stroke='%23fff' stroke-opacity='.65' stroke-width='1.5'/%3E %3Cpath d='M-50,-8 C-46,-26 -36,-38 -26,-44' stroke='%23fff' stroke-width='5' fill='none' stroke-linecap='round'/%3E %3C/g%3E %3Crect class='ln' style='animation-delay:1.8s' x='332' y='184' width='136' height='13' rx='6.5' fill='%23D4EEFF'/%3E %3Crect class='ln' style='animation-delay:1.95s' x='332' y='206' width='96' height='9' rx='4.5' fill='%238FD0FF' fill-opacity='.65'/%3E %3Crect class='ln' style='animation-delay:2.10s' x='332' y='232' width='38' height='18' rx='9' fill='%234FE0D2' fill-opacity='.85'/%3E %3Crect class='ln' style='animation-delay:2.25s' x='378' y='232' width='44' height='18' rx='9' fill='%238FD0FF' fill-opacity='.85'/%3E %3Crect class='ln' style='animation-delay:2.40s' x='430' y='232' width='32' height='18' rx='9' fill='%234FE0D2' fill-opacity='.85'/%3E %3Crect x='332' y='266' width='136' height='9' rx='4.5' fill='%23fff' fill-opacity='.14'/%3E %3Crect class='prog' x='332' y='266' width='110' height='9' rx='4.5' fill='url(%23tq)'/%3E %3Crect x='332' y='298' width='136' height='18' rx='9' fill='url(%23tq)' fill-opacity='.9'/%3E %3C/g%3E %3Cpath class='ck' style='animation-delay:2.4s;animation-duration:1.1s' d='M196,70 C226,28 294,28 324,70' stroke='%237CE6FF' stroke-width='3' fill='none' stroke-linecap='round' pathLength='1'/%3E %3Cpolygon class='pop' style='animation-delay:3.3s' points='326,76 312,70 324,60' fill='%237CE6FF'/%3E %3Cpath class='ck' style='animation-delay:2.6s;animation-duration:1.1s' d='M324,334 C294,376 226,376 196,334' stroke='%234FE0D2' stroke-width='3' fill='none' stroke-linecap='round' pathLength='1'/%3E %3Cpolygon class='pop' style='animation-delay:3.5s' points='194,328 208,334 196,344' fill='%234FE0D2'/%3E %3Cg class='pop' style='animation-delay:3s'%3E%3Ccircle cx='260' cy='202' r='36' fill='%23fff' stroke='%237CE6FF' stroke-width='2.5'/%3E%3Ccircle cx='260' cy='202' r='28' fill='url(%23tq)'/%3E%3C/g%3E %3Ccircle class='rg' style='animation-delay:3.9s' cx='260' cy='202' r='36' fill='none' stroke='%237CE6FF' stroke-width='2'/%3E %3Cpath class='ck' style='animation-delay:3.3s' d='M246,203 L256,213 L276,189' stroke='%23fff' stroke-width='6' fill='none' stroke-linecap='round' stroke-linejoin='round' pathLength='1'/%3E %3Cpath class='t' style='animation:tw 1.8s 3.2s ease-in-out infinite alternate' d='M486,48 L490,60 L502,64 L490,68 L486,80 L482,68 L470,64 L482,60 Z' fill='%23E6FAFF'/%3E %3Cpath class='t' style='animation:tw 2.4s 3.8s ease-in-out infinite alternate' d='M30,50 L33,58 L41,61 L33,64 L30,72 L27,64 L19,61 L27,58 Z' fill='%23BFF7F0'/%3E %3C/g%3E %3C/svg%3E") no-repeat center / 100% 100%;
}

/* hauteur : fini les 650 px fixes ; le bas laisse la place à la barre de recherche qui dépasse de 45 px */
body .home-page > section.hero-section .carousel-inner {
    height: auto !important;
    min-height: clamp(26rem, 58vh, 31rem);
    display: flex; align-items: center;
    padding: 3rem 0 4.4rem;
}
/* le bloc de textes n'est plus centré par un transform : il se range à gauche, sur la colonne du site */
body .home-page > section.hero-section .hero-content-row {
    position: relative !important;
    inset: auto !important; transform: none !important;
    width: 100% !important; margin: 0 !important; padding: 0 var(--jb-gouttiere);
}
body .home-page > section.hero-section .hero-content-row > [class*="col-"] {
    flex: 0 0 auto; width: min(56%, 40rem); max-width: 100%;
    padding: 0; text-align: left !important;
}
body .home-page > section.hero-section .hero-contentt { margin: 0 !important; text-align: left !important; }

body .home-page > section.hero-section .hero-contentt p:first-child {
    margin: 0 0 .5rem !important;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem) !important; font-weight: 500; line-height: 1.2;
    color: #9CD3FF !important;
    animation: jb-entree .7s cubic-bezier(.2, .7, .2, 1) 0s both;
}
body .home-page > section.hero-section .hero-contentt h1 {
    margin: 0 0 1rem !important;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem) !important;
    line-height: 1.1; letter-spacing: -.02em; font-weight: 800;
    color: #fff !important; -webkit-text-fill-color: #fff;
    text-wrap: balance;
    animation: jb-entree .7s cubic-bezier(.2, .7, .2, 1) .12s both;
}
body .home-page > section.hero-section .hero-contentt h1.text-primary { color: #fff !important; }
body .home-page > section.hero-section .hero-contentt p:last-child {
    max-width: 32rem; margin: 0 !important;
    font-size: clamp(1rem, 1.5vw, 1.12rem) !important; line-height: 1.6;
    color: #D6E6F4 !important;
    animation: jb-entree .7s cubic-bezier(.2, .7, .2, 1) .26s both;
}
@keyframes jb-entree { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* ---------- tablette / téléphone ---------- */
@media (max-width: 991px) {
    body .home-page > section.hero-section .hero-content-row > [class*="col-"] { width: min(70%, 40rem); }
}
@media (max-width: 760px) {
    body .home-page > section.hero-section .carousel-inner { min-height: 0; padding: 2.6rem 0 4.6rem; }
    body .home-page > section.hero-section .hero-content-row > [class*="col-"] { width: 100%; }
    body .home-page > section.hero-section .hero-contentt p:last-child { max-width: none; }
    body .home-page > section.hero-section::after { width: 92%; right: -14%; top: auto; bottom: 8%; height: 70%; opacity: .26; translate: none; aspect-ratio: auto; background-size: contain; background-position: right center; }
}

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