/* v53 - apercu : logo premium, hero d'arrivee type IA Formation. Aucune autre retouche. */

/* Logo premium dans l'en-tete (a gauche du wordmark, texte inchange) */
.av-brand{position:relative;padding-left:130px;min-height:112px;display:flex;flex-direction:column;justify-content:center}
.av-brand::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:108px;height:108px;background:url("/media/logo-avency-conseil-rond.png?v=67") center/contain no-repeat;filter:drop-shadow(0 2px 10px rgba(6,30,45,.35))}

/* Logo premium (disque) dans le pied de page */
.av-footer>div:first-child{position:relative;padding-left:164px;min-height:172px;display:flex;flex-direction:column;justify-content:center}
.av-footer>div:first-child::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:142px;height:155px;background:url("/media/logo-avency-conseil-footer.png?v=67") center/contain no-repeat;filter:drop-shadow(0 3px 12px rgba(0,0,0,.30))}

/* Hero d'arrivee pleine largeur, film La Defense + titre existant */
.av-hero53{position:relative;isolation:isolate;overflow:hidden;min-height:78vh;display:flex;align-items:center;background:#061e2d;margin:0 0 8px;width:100vw;margin-left:calc(50% - 50vw)}
.av-hero53>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 42%}
.av-hero53::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(6,30,45,.84),rgba(6,30,45,.38) 55%,rgba(6,30,45,.12))}
.av-hero53-inner{position:relative;z-index:2;padding:96px 6vw;max-width:840px}
.av-hero53-inner small{color:#d7b879;letter-spacing:.22em;font-size:12px;font-weight:600}
.av-hero53-inner h1{font-family:Georgia,serif;font-weight:400;color:#fff;font-size:clamp(38px,5.6vw,72px);line-height:1.08;letter-spacing:-.02em;margin:20px 0 0;max-width:14ch}
.av-hero53-inner .av-button{margin-top:34px;min-height:50px;padding:0 26px;font-size:13px}

@media (max-width:760px){
  .av-brand{padding-left:80px;min-height:68px}
  .av-brand::before{width:66px;height:66px}
  .av-footer>div:first-child{padding-left:128px;min-height:132px}
  .av-footer>div:first-child::before{width:112px;height:122px}
  .av-hero53{min-height:62vh}
  .av-hero53-inner{padding:64px 24px}
}

/* v54 - premier ecran plein ecran sur chaque page (ref iaformation.fr). Textes et structure inchanges. */
.av-fs53{width:100vw !important;margin-left:calc(50% - 50vw) !important;height:calc(100vh - var(--av-hdr,94px)) !important;height:calc(100svh - var(--av-hdr,94px)) !important;min-height:480px;max-height:none !important;position:relative !important;overflow:hidden;background:#061e2d}
.av-fs53 .av2-scene-visual,.av-fs53 .av-cinema{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;margin:0 !important;max-width:none !important}
.av-fs53 video,.av-fs53 img{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;object-fit:cover !important;object-position:50% 36%}
.av-fs53.av2-scene::before,.av-fs53.av-talent-hero::before,.av-fs53.av-universe-banner::before{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(180deg,rgba(6,30,45,.55),rgba(6,30,45,0) 30%),linear-gradient(90deg,rgba(6,30,45,.86),rgba(6,30,45,.44) 55%,rgba(6,30,45,.14));pointer-events:none}
.av-fs53.av2-scene>div:last-child,.av-fs53.av-talent-hero>div:first-child,.av-fs53.av-universe-banner>.av-banner-content{position:absolute !important;left:6vw;right:6vw;bottom:7vh;z-index:3;max-width:780px;background:transparent !important;padding:0 !important}
.av-fs53 h1{color:#fff !important}
.av-fs53 p{color:rgba(255,255,255,.88) !important}
.av-fs53 small{color:#d7b879 !important}
.av-fs53 .av-cinema-pause{z-index:3 !important}
.av-fs53.av2-scene .av-cinema-caption,.av-fs53.av-talent-hero .av-cinema-caption,.av-fs53.av-universe-banner .av-cinema-caption{display:none !important}
@media (max-width:760px){
  .av-fs53{min-height:400px}
  .av-fs53.av2-scene>div:last-child,.av-fs53.av-talent-hero>div:first-child,.av-fs53.av-universe-banner>.av-banner-content{left:24px;right:24px;bottom:6vh;max-width:none}
}

/* v56 - en-tete transparent superpose au visuel, premier ecran = toute la fenetre (comme iaformation.fr) */
main.av-site:has(.av-fs53){padding-top:0 !important;position:relative}
main.av-site:has(.av-fs53) .av-masthead{position:absolute;top:0;left:0;right:0;z-index:30;background:transparent !important;border-bottom:0 !important;box-shadow:none !important;backdrop-filter:none !important}
main.av-site:has(.av-fs53) .av-brand{color:#fff !important;text-shadow:0 1px 12px rgba(6,30,45,.65)}
main.av-site:has(.av-fs53) .av-brand span{color:#e7c98a !important}
main.av-site:has(.av-fs53) .av-masthead>p{color:#e7c98a !important;text-shadow:0 1px 12px rgba(6,30,45,.65)}
main.av-site:has(.av-fs53) .av-topcontact{color:#fff !important;border-color:#e7c98a !important;text-shadow:0 1px 12px rgba(6,30,45,.65)}
.av-fs53{height:100vh !important;height:100svh !important}
.av-hero53.av-fs53{min-height:100vh;min-height:100svh}
.av-hero53.av-fs53::before{content:"";position:absolute;top:0;left:0;right:0;height:200px;z-index:2;background:linear-gradient(180deg,rgba(6,30,45,.6),rgba(6,30,45,0));pointer-events:none}
main.av-site>.av-cinema.av-fs53::before{content:"";position:absolute;top:0;left:0;right:0;height:200px;z-index:2;background:linear-gradient(180deg,rgba(6,30,45,.6),rgba(6,30,45,0));pointer-events:none}
@media (max-width:760px){
  .av-hero53.av-fs53::before,main.av-site>.av-cinema.av-fs53::before{height:240px}
}

/* v57 - la barre son ne pousse plus le hero : elle flotte au-dessus du visuel */
.av6-sound-note{position:absolute !important;top:10px;right:16px;left:auto !important;width:auto !important;z-index:40;background:transparent !important;padding:0 !important;margin:0 !important;min-height:0 !important}

/* v58 - mobile : en-tete superpose lisible, pas de chevauchement avec le bouton son */
@media (max-width:760px){
  main.av-site:has(.av-fs53) .av-masthead{padding-left:14px !important;padding-right:14px !important}
  .av6-sound-note{display:none !important}
}

/* v59 - mobile : pilule son au-dessus de la legende video */
@media (max-width:760px){
  .av-floating-sound{top:auto !important;bottom:14px !important}
  .av-cinema-caption{padding-right:130px}
}

/* v64 - accueil : image d'accueil fournie par le client a la place du film */
.av-hero53>video{display:none}
.av-hero53{background:url('/media/hero-accueil-conseil.jpg') center 25%/cover no-repeat #0e1a26}

/* v69 - pages catalogue/approche/demande/a-propos : hero colle au haut comme l'accueil */
main.av-site>.av-cinema.av-cinema-intro.av-fs53{margin-top:0 !important}

/* v71 - accueil : logo a droite + mur AVENCY de l'image entierement visible a gauche */
/* En-tete : tagline a gauche, CTA puis logo (disque + wordmark) a droite - toutes pages */
main.av-site .av-masthead{justify-content:flex-end !important;column-gap:26px}
main.av-site .av-masthead>p{order:1;margin-right:auto}
main.av-site .av-masthead>.av-topcontact{order:2}
main.av-site .av-masthead>.av-brand{order:3}
/* Accueil : bloc de texte ancre en bas a gauche (ne recouvre ni les personnages ni l'enseigne), voile sombre concentre en bas a gauche */
.av-hero53::after{background:radial-gradient(75% 90% at 0% 100%,rgba(6,30,45,.88),rgba(6,30,45,.55) 45%,rgba(6,30,45,0) 72%)}
.av-hero53-inner{align-self:flex-end;margin-left:0;max-width:470px;padding:40px 40px 5vh 6vw;text-align:left}
.av-hero53-inner h1{font-size:clamp(34px,4.4vw,58px)}
@media (max-width:760px){
  /* mobile : le mur AVENCY reste dans le cadre a gauche, texte ancre en bas */
  main.av-site .av-masthead>p{order:4;width:100%;margin-right:0}
  .av-hero53{background-position:13% 25% !important;align-items:flex-end}
  .av-hero53-inner{margin-left:0;width:100%;max-width:none;padding:40px 24px 52px}
  .av-hero53-inner h1{font-size:clamp(32px,9vw,40px)}
  .av-hero53::after{background:linear-gradient(0deg,rgba(6,30,45,.9),rgba(6,30,45,.4) 30%,rgba(6,30,45,0) 55%)}
}

/* v74 - accueil : logo retire de l'en-tete (l'enseigne du mur porte la marque), image animee d'un zoom lent (impression que les personnages avancent), enseigne et personnages toujours entierement visibles */
main.av-site:has(.av-hero53) .av-masthead>.av-brand{display:none}
.av-hero53{animation:avHeroZoom 26s ease-in-out infinite alternate !important}
@keyframes avHeroZoom{from{background-size:102% auto;background-position:50% 25%}to{background-size:110% auto;background-position:50% 27%}}
@media (max-width:760px){
  .av-hero53{animation-name:avHeroZoomM !important}
  @keyframes avHeroZoomM{from{background-size:386% auto;background-position:13% 25%}to{background-size:391% auto;background-position:13% 26%}}
}
@media (prefers-reduced-motion:reduce){
  .av-hero53{animation:none !important}
}

/* === v76 mode PC : hero portrait (video 9:16) affiche en format desktop, pas en recadrage mobile === */
@media (min-width:861px){
  .av-fs53 .av-cinema-portrait{background:linear-gradient(100deg,#0a2634 0%,#0f3a4b 46%,#1b4653 100%) !important}
  .av-fs53 .av-cinema-portrait video{object-fit:contain !important;object-position:74% center !important}
}
