/* NEXUS AGENCE v2 — effets 3D sur les visuels, RIEN d'autre.
   Ce fichier ne touche ni à la barre de menu, ni aux boutons, ni aux largeurs :
   la mise en page reste celle de la production. */

/* ---------- 1. visuels de contenu : bascule 3D au repos ---------- */
.imgfx,
.pkg-art {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  transform: perspective(1200px) rotateX(6deg) rotateY(-3deg);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, filter .25s ease;
  backface-visibility: hidden;
}

/* CK 2026-11-08 : les visuels de la section Secteurs (portfolio) doivent rester
   COMPLETS et droits. L'inclinaison 3D les faisait paraitre coupes en diagonale. */
.sect-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  transform: none;
}

/* CK 2026-11-08 : les visuels de la section Secteurs (portfolio) restent
   COMPLETS et droits. L'image porte DEUX classes (.sect-img .imgfx) : la
   regle .imgfx de ce fichier l'inclinait en 3D, d'ou l'effet « coupe en
   diagonale ». On neutralise ici, animation comprise. */
.sect-img,
.sect-img.imgfx {
  transform: none !important;
  animation: none !important;
}


/* ---------- 2. respiration lente ---------- */
@keyframes respiration3d {
  0%   { transform: perspective(1200px) rotateX(7.5deg) rotateY(-4deg); }
  50%  { transform: perspective(1200px) rotateX(3deg) rotateY(-1.5deg); }
  100% { transform: perspective(1200px) rotateX(7.5deg) rotateY(-4deg); }
}

.imgfx, .pkg-art { animation: respiration3d 15s ease-in-out infinite; }
.look3d img { animation: respiration3d 14s ease-in-out infinite; }

/* ---------- 3. survol : le visuel se redresse ---------- */
@media (hover: hover) and (pointer: fine) {
  .imgfx:hover,
  .pkg-art:hover,
  .look3d:hover img {
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(63, 224, 168, .22);
    filter: brightness(1.04) saturate(1.03);
    animation-play-state: paused;
  }
}

/* ---------- 4. voile de fumée sur le conteneur du visuel ---------- */
figure:has(> .imgfx),
figure:has(> .pkg-art),
.card:has(> .imgfx),
.card:has(> .pkg-art),
.card:has(> .sect-img),
.look3d { position: relative; }

figure:has(> .imgfx)::after,
figure:has(> .pkg-art)::after,
.card:has(> .imgfx)::after,
.card:has(> .pkg-art)::after,
.card:has(> .sect-img)::after,
.look3d::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  opacity: .22;
  background:
    radial-gradient(55% 70% at 25% 15%, rgba(63, 224, 168, .32), transparent 70%),
    radial-gradient(45% 60% at 85% 85%, rgba(238, 244, 251, .16), transparent 70%);
}

/* ---------- 5. moins de mouvement ---------- */


/* ---------- 6. correctifs de mise en page (aucun effet visuel) ---------- */
/* les visuels sont dans un <picture> : on rétablit le cadrage du hero */
.hero-media { overflow: hidden; }

.hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media picture img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 60%;
}

/* une image large ne doit pas élargir sa colonne de grille */
.g2 > *, .g3 > * { min-width: 0; }

/* carte du Grand Montréal : elle épouse son contenu */
#zone figure.card { align-self: center; height: auto; padding: 10px; }

#zone figure.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 857;
  object-fit: cover;
  border-radius: 10px;
}

#zone .chip-row { margin-top: 14px; padding: 0; gap: 8px; }


/* Le menu reste affiché jusqu'à 820 px (la feuille d'origine le masquait dès 1000 px). */
@media (min-width: 821px) and (max-width: 1000px) {
  .nav-links { display: flex !important; gap: 4px !important; max-width: calc(100vw - 230px); }
  .nav-links > a { font-size: .78rem !important; padding: 6px 4px !important; letter-spacing: 0; }
  .nav-in { padding-right: 104px !important; gap: 8px !important; }
  .nav-cta { display: none !important; }
}


/* ===== HERO COMPACT EN MOBILE =====
   Sur téléphone, les heros dépassaient la hauteur de l'écran : on resserre
   les marges, les tailles de texte et les boutons pour que le titre, le
   texte et l'appel à l'action tiennent dans la première vue. */
@media (max-width: 768px) {
  .hero { min-height: 0 !important; }
  .hero-in, .hero-content { padding: 22px 18px 20px !important; }
  .hero-kicker { font-size: 12.5px !important; margin: 0 0 6px !important; line-height: 1.3 !important; }
  .hero h1, .hero-content h1 { font-size: 22px !important; line-height: 1.22 !important; margin: 0 0 8px !important; }
  .hero .lead, .hero-content .lead { font-size: 14.2px !important; line-height: 1.45 !important; margin: 0 0 9px !important; }
  .hero-cta { gap: 10px !important; margin-top: 10px !important; }
  .hero-cta .btn, .hero-cta a, .hero-cta button { padding: 12px 14px !important; font-size: 15px !important; }
  .hero-badgeline { font-size: 12.5px !important; margin-top: 10px !important; line-height: 1.35 !important; }
}

/* Hero « formation » : la phrase d'accroche et les trois preuves prenaient
   tout l'écran. On les resserre aussi. */
@media (max-width: 768px) {
  .hero-content .eyebrow, .hero .eyebrow { font-size: 11.5px !important; margin: 0 0 4px !important; }
  .hero-content .tagline, .hero .tagline { font-size: 14.5px !important; line-height: 1.45 !important; margin: 6px 0 !important; }
  .hero-proof { gap: 8px !important; margin-top: 12px !important; }
  .hero-proof .proof-item { padding: 10px 12px !important; font-size: 13.5px !important; }
  .hero-proof .proof-item strong, .hero-proof .proof-item b { font-size: 17px !important; }
  .hero-content { gap: 4px !important; }
  .hero-content .btn, .hero-content a.btn { padding: 13px 16px !important; font-size: 15px !important; }
}


/* ===== HERO MOBILE — passe 2 : encore plus compact =====
   Objectif : que le titre, l'accroche, les boutons et la ligne de réassurance
   tiennent dans la première vue, sans avoir à défiler. */
@media (max-width: 768px) {
  .hero-in, .hero-content { padding: 16px 16px 18px !important; }
  .hero h1, .hero-content h1 { font-size: 21px !important; line-height: 1.2 !important; margin: 0 0 6px !important; }
  .hero .lead, .hero-content .lead { font-size: 13.6px !important; line-height: 1.4 !important; margin: 0 0 7px !important; }
  .hero-kicker { font-size: 11.5px !important; margin: 0 0 5px !important; }
  .hero-cta { gap: 8px !important; margin-top: 8px !important; flex-direction: column !important; }
  .hero-cta .btn, .hero-cta a, .hero-cta button { width: 100% !important; padding: 11px 14px !important; font-size: 14.5px !important; }
  .hero-badgeline { font-size: 11.8px !important; margin-top: 8px !important; }
  .hero-content .tagline, .hero .tagline { font-size: 13.6px !important; line-height: 1.4 !important; margin: 5px 0 !important; }
  .hero-proof { gap: 6px !important; margin-top: 10px !important; }
  .hero-proof .proof-item { padding: 8px 10px !important; font-size: 13px !important; }
  .hero-proof .proof-item strong, .hero-proof .proof-item b { font-size: 16px !important; }
  /* la vignette vidéo du hero ne mange plus la moitié de l'écran */
  .hero-media { max-height: 78vh; }
}

/* ===== cadrage des visuels de hero en mobile =====
   Cadrage validé sur la page cybersécurité (84 % 52 %) : le sujet part
   légèrement à gauche, la chaîne/le décor reste visible à droite. Appliqué
   à tous les heros ; les cas particuliers se règlent ensuite. */
@media (max-width: 768px) {
  .hero-media img,
  .hero-media video,
  .page-hero .hero-media img,
  .page-hero .hero-media video,
  .hero-entete .hero-media img,
  .hero-entete .hero-media video,
  .hero-cursus .hero-media img,
  .hero-cursus .hero-media video { object-position: 84% 52% !important; }
}

/* Certification (validé CK) : panneau du certificat réduit et centré à 94 %. */
@media (max-width: 768px) {
  #hero-certification .hero-media { top: -6% !important; left: -6% !important; right: -6% !important; bottom: -6% !important; }
  #hero-certification .hero-media img,
  #hero-certification .hero-media video {
    object-position: 94% 50% !important;
    transform: scale(.9) !important;
    transform-origin: center center !important;
  }
}

/* Services (validé CK) : appareil ramené au centre-gauche, cadrage 100 %. */
@media (max-width: 768px) {
  #hero-services .hero-media img,
  #hero-services .hero-media video { object-position: 100% 52% !important; }
}

/* Portfolio (validé CK) : visuel recadré sur fond flouté, cadrage 79 %. */
@media (max-width: 768px) {
  #hero-portfolio .hero-media img,
  #hero-portfolio .hero-media video { object-position: 79% 52% !important; }
}

/* Contact (validé CK) : enveloppe cadrée à 100 %. */
@media (max-width: 768px) {
  #hero-contact .hero-media img,
  #hero-contact .hero-media video { object-position: 100% 52% !important; }
}

/* 24/7 surveillance (validé CK) : cadrage 100 % + couche décalée de 10 % à gauche. */
@media (max-width: 768px) {
  #hero-surveillance .hero-media img,
  #hero-surveillance .hero-media video { object-position: 100% 52% !important; }
  #hero-surveillance .hero-media {
    transform: translateX(-10%) scale(1.22);
    transform-origin: center center;
  }
}


/* Zoom lent du hero : sur téléphone on le fige pour que le cadrage reste
   exactement celui qui a été réglé. */
@media (max-width: 768px) {
  .hero-media img { animation-name: none !important; animation: none !important; }
}



/* Pages secteurs : la maquette est une capture d'écran — on la montre en
   entier (contain, centrée) sur fond sombre, au lieu de la recadrer. */
@media (max-width: 768px) {
  .hero-media img[src*="style-"],
  .hero-media video[data-src-webm*="secteur-"],
  .hero-media video[data-src-mp4*="secteur-"] {
    object-fit: contain !important;
    object-position: 50% 50% !important;
    transform: none !important;
    animation: none !important;
  }
  .hero-media:has(img[src*="style-"]) { background: #07111a !important; }
}

/* Dons (validé CK) : même visuel que le bureau, cadrage décalé à gauche. */
@media (max-width: 768px) {
  #hero-dons .hero-media img,
  #hero-dons .hero-media video { object-position: 100% 52% !important; }
}


/* Pages secteurs : le bouton « Demander une maquette » descend un peu,
   pour ne plus être collé au texte au-dessus de la maquette. */
@media (max-width: 768px) {
  .hero:has(.hero-media img[src*="style-"]) .btn-lg {
    margin-top: 34px !important;
  }
}

/* Pages secteurs (validé CK) : le visuel 3D devient un bloc au-dessus du
   texte, ce qui place le bouton « Demander une maquette » SOUS le visuel. */
@media (max-width: 768px) {
  .hero:has(.hero-media img[src*="style-"]) .hero-media {
    position: relative !important;
    inset: auto !important;
    height: 250px !important;
    background: #07111a !important;
  }
  .hero:has(.hero-media img[src*="style-"]) .hero-voile { display: none !important; }
}

/* Accueil (demande CK) : même disposition que les pages secteurs — le visuel
   3D devient un bloc au-dessus du texte, les boutons passent en dessous. */
@media (max-width: 768px) {
  #hero-accueil .hero-media {
    position: relative !important;
    inset: auto !important;
    height: 260px !important;
    background: #07111a !important;
  }
  #hero-accueil .hero-voile { display: none !important; }
  #hero-accueil .hero-video-pause { display: none !important; }
}

/* Certification (demande CK) : même disposition que l'accueil — visuel 3D en
   haut, texte et bouton en dessous. */
@media (max-width: 768px) {
  #hero-certification .hero-media {
    position: relative !important;
    inset: auto !important;
    height: 260px !important;
    background: #07111a !important;
    transform: none !important;
  }
  #hero-certification .hero-media img,
  #hero-certification .hero-media video { transform: none !important; }
  #hero-certification .hero-voile { display: none !important; }
  #hero-certification .hero-video-pause { display: none !important; }
}

/* Visuel en haut de page : on supprime le vide entre l'en-tête et le visuel
   (le hero avait 40 px de marge haute). */
@media (max-width: 768px) {
  #hero-accueil.hero,
  #hero-certification.hero,
  .hero:has(.hero-media img[src*="style-"]) { padding-top: 0 !important; }
  #hero-accueil .hero-media,
  #hero-certification .hero-media,
  .hero:has(.hero-media img[src*="style-"]) .hero-media { height: 280px !important; }
}

/* Dons (demande CK) : visuel 3D au-dessus du texte, boutons en dessous. */
@media (max-width: 768px) {
  #hero-dons.hero { padding-top: 0 !important; }
  #hero-dons .hero-media {
    position: relative !important;
    inset: auto !important;
    height: 280px !important;
    background: #07111a !important;
    transform: none !important;
  }
  #hero-dons .hero-media img,
  #hero-dons .hero-media video { transform: none !important; object-position: 100% 52% !important; }
  #hero-dons .hero-voile { display: none !important; }
  #hero-dons .hero-video-pause { display: none !important; }
}

/* Applications web (validé CK) : cadrage 92 %. */
@media (max-width: 768px) {
  #hero-application .hero-media img,
  #hero-application .hero-media video { object-position: 92% 52% !important; }
}

/* Boutique en ligne (validé CK) : cadrage 97 %. */
@media (max-width: 768px) {
  #hero-boutique .hero-media img,
  #hero-boutique .hero-media video { object-position: 97% 52% !important; }
}

/* Hébergement (validé CK) : cadrage 100 %. */
@media (max-width: 768px) {
  #hero-hebergement .hero-media img,
  #hero-hebergement .hero-media video { object-position: 100% 52% !important; }
}

/* Identité visuelle (validé CK) : visuel 3D réduit (×0,78), cadrage 84 %,
   boîte élargie pour qu'aucun bord ne se voie. */
@media (max-width: 768px) {
  #hero-identite .hero-media {
    top: -14.1% !important; left: -14.1% !important;
    right: -14.1% !important; bottom: -14.1% !important;
  }
  #hero-identite .hero-media img,
  #hero-identite .hero-media video {
    object-position: 84% 52% !important;
    transform: scale(.78) !important;
    transform-origin: center center !important;
  }
}

/* Maintenance & infogérance (validé CK) : cadrage 93 %. */
@media (max-width: 768px) {
  #hero-maintenance .hero-media img,
  #hero-maintenance .hero-media video { object-position: 93% 52% !important; }
}

/* Référencement local (validé CK) : cadrage 88 %. */
@media (max-width: 768px) {
  #hero-referencement .hero-media img,
  #hero-referencement .hero-media video { object-position: 88% 52% !important; }
}

/* Refonte & modernisation (validé CK) : cadrage 92 %. */
@media (max-width: 768px) {
  #hero-refonte .hero-media img,
  #hero-refonte .hero-media video { object-position: 92% 52% !important; }
}

/* Vérification de certificat (validé CK) : colonne décalée à gauche,
   léger zoom pour ne jamais laisser de trou sur le bord droit. */
@media (max-width: 768px) {
  #hero-verification .hero-media img,
  #hero-verification .hero-media video {
    object-position: 100% 52% !important;
    transform: scale(1.26) translateX(-10%) !important;
    transform-origin: center center !important;
  }
}


/* ---------- Certification (desktop) : surtitre aligne a 159 px ----------
   Sa structure (.wrap.hero-cols) n'utilise pas .hero-in ; on ajoute les
   29 px manquants pour que le « // » tombe a la meme hauteur que partout. */
@media (min-width: 769px) {
  #hero-certification .wrap.hero-cols { padding-top: 37px !important; }
  #hero-certification h1 { margin-top: calc(.3em + 5px) !important; }
}

/* ---------- Certification : le surtitre affiche « /// » comme partout ----------
   La page utilise la classe .kicker (prefixe « // ») au lieu de .hero-kicker. */
#hero-certification .kicker::before { content: "/// " !important; }

/* ---------- Surtitres « /// » : texte vert comme la page certification ----------
   Vert exact de certification : #54ecb7 ; le prefixe « /// » reste gris. */
.hero-kicker { color: #54ecb7 !important; }
.hero-kicker::before { color: #8aa0b8 !important; }

/* ---------- Surtitres : vert #54ecb7 sur TOUS les elements « kicker » ----------
   Certains surtitres de section avaient un autre vert ou du gris. */
.hero-kicker, .kicker, [class*="kicker"] { color: #54ecb7 !important; }
.hero-kicker::before, .kicker::before, [class*="kicker"]::before { color: #8aa0b8 !important; }

/* ---------- Pages app (boutique, portail, signer, succes) : bandeau Assistance + FR/EN ----------
   Sur mobile le bouton FR/EN fixe recouvrait le logo, et le « · » restait
   seul en fin de ligne avant l'adresse courriel. */
@media (max-width: 768px) {
  header.bx-entete, header.pt-entete, header.sg-entete, header.sc-entete {
    padding-top: 58px !important;
  }
  .bx-tel, .pt-tel, .sg-tel, .sc-tel {
    display: block !important; line-height: 1.5 !important;
  }
  .cf-sep { display: none !important; }
}

/* ---------- Tout element « kicker », meme hors .kicker / .hero-kicker ----------
   La page succes utilisait .sc-kicker : aucun prefixe n'etait rendu. */
[class*="kicker"]::before { content: "/// " !important; }

/* ---------- Formation / cours : visuel 3D pleine largeur sur mobile ----------
   La section .hero-cursus est sortie des 24 px de marge du <main> ; le texte
   garde son retrait (padding 46 px) et le visuel occupe 100 % de la largeur. */
@media (max-width: 768px) {
  .hero-cursus {
    margin-left: -24px !important; margin-right: -24px !important;
    margin-top: -32px !important;          /* supprime l'espace sous l'en-tete */
    padding-left: 46px !important; padding-right: 46px !important;
  }
  .hero-cursus .hero-media { left: 0 !important; right: 0 !important; width: auto !important; }
  .hero-cursus .hero-media img,
  .hero-cursus .hero-media video {
    transform: scale(1.22) !important; transform-origin: center center !important;
    object-position: 50% 50% !important;
  }
}

/* ---------- Formation / cours : version DESKTOP (>= 769 px) ----------
   Meme traitement que sur mobile : visuel 3D pleine largeur, colle sous
   l'en-tete, texte centre dans une colonne de 1120 px. */
@media (min-width: 769px) {
  html:has(.hero-cursus) { overflow-x: clip; }
  .hero-cursus {
    position: relative !important;
    left: 50% !important; transform: translateX(-50%) !important;
    width: 100vw !important; max-width: none !important;
    margin-top: -64px !important;
    padding: 56px max(22px, calc((100vw - 1120px) / 2)) !important;
  }
  .hero-cursus .hero-media { left: 0 !important; right: 0 !important; width: auto !important; }
  .hero-cursus .hero-media img,
  .hero-cursus .hero-media video {
    transform: scale(1.18) !important; transform-origin: center center !important;
    object-position: 50% 50% !important;
  }
}

/* ---------- Fil d'Ariane masque partout ----------
   « Accueil / FAQ » faisait doublon avec le bouton Accueil (barre du bas sur
   mobile, menu sur desktop). */
.breadcrumb { display: none !important; }

/* ---------- Accueil mobile : texte SUR le visuel, boutons EN DESSOUS ----------
   Le visuel 3D repasse derriere le texte (pleine largeur) et s'arrete juste
   au-dessus du bloc de boutons, qui reste sur le fond de page. */
@media (max-width: 768px) {
  #hero-accueil .hero-media {
    position: absolute !important;
    top: 0 !important; bottom: auto !important;
    height: 100% !important;
    left: 50% !important; right: auto !important;
    width: 100vw !important; max-width: none !important;
    transform: translateX(-50%) !important;
    background: transparent !important;
  }
  #hero-accueil .hero-in { padding-top: 36px !important; }
  #hero-accueil .hero-cta { position: relative !important; z-index: 3 !important; }
}

/* ---------- Certification mobile : visuel 3D derriere tout le texte ----------
   Meme traitement que l'accueil ; un voile sombre garde le texte lisible. */
@media (max-width: 768px) {
  #hero-certification .hero-media {
    position: absolute !important;
    top: 0 !important; bottom: 0 !important; height: 100% !important;
    max-height: none !important;           /* la limite 78vh coupait le visuel avant le bas */
    left: 0 !important; right: 0 !important; width: auto !important;
    transform: none !important; background: transparent !important;
  }
  #hero-certification .hero-voile {
    display: block !important;
    background: linear-gradient(180deg, rgba(7,14,22,.55) 0%, rgba(7,14,22,.20) 45%, rgba(7,14,22,.70) 100%) !important;
  }
  /* la plaque 3D est a droite dans l'image : on la recentre et on l'eclaircit */
  #hero-certification .hero-media img,
  #hero-certification .hero-media video {
    object-position: 50% 50% !important;
    transform: none !important;
    filter: brightness(1.35) contrast(1.05) !important;
  }
  #hero-certification .wrap { position: relative !important; z-index: 2 !important; }
}

/* ---------- Verification de certificat (mobile) : aucun vide sous le visuel ----------
   Le hero avait 40 px de padding bas + 40 px de marge, et la carte 30 px de marge haute. */
@media (max-width: 768px) {
  .header.hero-entete { padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .verification-container { margin-top: 0 !important; }
}

/* ---------- 24/7 (desktop) : surtitre sur une seule ligne ----------
   Le texte etait long et passait sur 2 lignes, ce qui descendait le titre
   de 21 px par rapport aux autres pages (h1 a 217 au lieu de 196). */
@media (min-width: 769px) {
  #hero-surveillance .hero-kicker { white-space: nowrap !important; }
}

/* ---------- Verification de certificat (desktop) : le visuel 3D etait ecrase ----------
   Le hero ne mesurait que 69 px de haut (il ne contenait que le titre et la ligne
   d'accroche). On lui donne une vraie hauteur, avec le texte centre. */
@media (min-width: 769px) {
  .header.hero-entete {
    min-height: 460px !important;
    display: flex !important; flex-direction: column !important;
    justify-content: center !important; align-items: center !important;
    text-align: center !important;
  }
}

/* ---------- Verification de certificat (desktop) : pleine largeur ----------
   Le visuel 3D et la carte de saisie prennent toute la largeur de la fenetre
   et se touchent (aucun espace, aucune marge laterale). */
@media (min-width: 769px) {
  html:has(.header.hero-entete), body:has(.header.hero-entete) { overflow-x: clip; }
  .header.hero-entete,
  .verification-container {
    width: 100vw !important; max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  .header.hero-entete { margin-bottom: 0 !important; padding-bottom: 0 !important; }
  .verification-container { margin-top: 0 !important; }
}


/* ---------- Portfolio (desktop) : uniquement le visuel 3D agrandi ---------- */
@media (min-width: 769px) {
  #hero-portfolio .hero-media img,
  #hero-portfolio .hero-media video { transform: scale(1.25) !important; transform-origin: center center !important; }
}

/* ---------- Surtitres longs (desktop) : une seule ligne ----------
   application-web, identite-visuelle, maintenance-web, refonte-site-web
   passaient sur deux lignes et decalaient le titre de 21 px. */
@media (min-width: 769px) {
  #hero-application .hero-kicker,
  #hero-identite .hero-kicker,
  #hero-maintenance .hero-kicker,
  #hero-refonte .hero-kicker { white-space: nowrap !important; }
}

/* ---------- Pages secteurs (desktop) : entete aligne sur les autres ----------
   Le fil « Accueil · Portfolio · Secteur : … » (.crumb) ajoutait 23 px au-dessus
   du surtitre : on reduit d'autant le padding haut du hero-in. */
@media (min-width: 769px) {
  .hero-in:has(.crumb) { padding-top: 55px !important; }
}

/* Pages formation (curriculum, accueil formation, FAQ) : le visuel 3D est dans
   la partie droite de l'image (zone lumineuse 70-90 %). Sur mobile, on recadre
   dessus au lieu de centrer sur la zone sombre.
   [RESTAURE 2026-11-08 depuis F:/NEXUS/site-v2/assets/img3d.css — ce bloc
   existait en production mais manquait dans la copie locale.] */
@media (max-width: 768px){
  .hero-media img[src*="hero-cours-nexus"],
  .hero-media img[src*="hero-formation-nexus"],
  .hero-media img[src*="hero-faq-nexus"],
  .hero-media video[data-src-webm*="hero-cours"],
  .hero-media video[data-src-webm*="hero-formation"],
  .hero-media video[data-src-webm*="hero-faq"]{ object-position: 80% 50% !important; }
}
