/* MASTER HUB — landing refonte (cycle de vie du master). Chargé après master_hub.css. */

#hero h1 { white-space: normal; max-width: 900px; margin: 0 auto 1.25rem; font-size: 48px; line-height: 1.1; }
#hero .mh-brand {
  margin-bottom: 1rem;
}
#hero .mh-brand img {
  display: inline-block;
  height: 64px;
  width: auto;
  max-width: min(420px, 88vw);
  object-fit: contain;
}
.mh-lead { max-width: 780px; margin: 0 auto 2rem; font-size: 18px; line-height: 28px; color: var(--gray-text); }
#hero .mh-lead { color: rgba(255, 255, 255, 0.95); }

.mh-hero-proofs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin: 0 auto 1rem;
  padding: 0;
  max-width: 900px;
}
.mh-hero-proofs li { color: #fff; font-weight: 600; }
.mh-hero-proofs .fa { color: var(--accent); margin-right: 6px; }

.mh-reassurance { margin-top: 1.5rem; font-size: 14px; color: var(--gray-text) !important; text-shadow: none !important; }
#hero .mh-reassurance { color: rgba(255, 255, 255, 0.85) !important; }
.mh-trust-tagline { margin: 2rem auto 0; max-width: 700px; color: var(--gray-text); font-size: 15px; }

.mh-section-head { max-width: 860px; margin: 0 auto 3rem; text-align: center; }
.mh-section-head h2 { line-height: 1.2; }
.mh-section-head p { color: var(--gray-text); font-size: 17px; line-height: 27px; }
.mh-center-block { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.mh-note { font-size: 14px; line-height: 22px; color: var(--gray-text); }

/* Parcours en six étapes */
.mh-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  counter-reset: none;
}
.mh-step, .mh-usecase {
  position: relative;
  background: var(--gray-card);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 2rem 1.75rem 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.mh-step:hover, .mh-usecase:hover { transform: translateY(-3px); border-color: var(--accent); }
.mh-step h3, .mh-usecase h3 { font-size: 20px; margin-bottom: 0.75rem; }
.mh-step p, .mh-usecase p { margin: 0; color: var(--gray-text); line-height: 25px; }
.mh-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #0e1a1f;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
}

/* Trois innovations : blocs asymétriques */
.mh-innovation {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.mh-innovation:last-child { margin-bottom: 0; }
.mh-innovation--reverse { grid-template-columns: 7fr 5fr; }
.mh-innovation--reverse .mh-innovation__text { order: 2; }
.mh-innovation__visual { display: grid; gap: 1.5rem; min-width: 0; }
.mh-innovation h3 { font-size: 28px; line-height: 1.2; }
.mh-innovation p { color: var(--gray-text); }
.mh-innovation .highlight { margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; font-size: 16px; color: #fff; max-width: none; }
.mh-editorial-link { display: inline-block; margin-top: 1.25rem; color: var(--accent); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.mh-editorial-link:hover { color: #fff; }
.mh-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  background: var(--accent-dark);
  border: 1px solid var(--accent);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mh-checklist { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.4rem; }
.mh-checklist li { color: #e0e0e0; line-height: 24px; padding-left: 1.6rem; position: relative; }
.mh-checklist .fa { position: absolute; left: 0; top: 4px; color: var(--accent); font-size: 14px; }

/* Cadres réservés aux futurs visuels */
.mh-visual { margin: 0; }
.mh-visual__frame {
  aspect-ratio: var(--mh-ratio, 16 / 9);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem;
  text-align: center;
  border: 2px dashed var(--gray-text-muted);
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 12px, rgba(255,255,255,0.06) 12px 24px);
  color: var(--gray-text);
}
.mh-visual__frame strong { color: #fff; font-family: 'Roboto', sans-serif; font-size: 17px; }
.mh-visual__frame small { font-size: 12px; line-height: 18px; max-width: 460px; }
.mh-visual__tag {
  padding: 0.15rem 0.7rem;
  border-radius: 4px;
  background: var(--gray-border);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Familles de fonctions */
.mh-families { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.mh-family {
  background: var(--gray-card);
  border: 1px solid var(--accent-light);
  border-radius: 12px;
  padding: 2rem;
  min-width: 0;
}
.mh-family h3 { font-size: 20px; line-height: 1.3; }
.mh-family h3 span { margin-right: 7px; color: var(--accent); }
.mh-family > p { color: var(--gray-text); }
.mh-family .mh-visual { margin-top: 1.25rem; }

/* Sécurité / écologie : pastilles */
.mh-pills {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.mh-pills li {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--gray-border);
  border-radius: 50px;
  background: var(--gray-card);
  color: #e0e0e0;
  font-size: 15px;
  line-height: 22px;
}
.mh-pills .fa { color: var(--accent); margin-right: 6px; }
#eco .mh-pills li { background: #262626; }
#security .highlight, #eco .highlight { margin-top: 2rem; }

/* Plans tarifaires */
.mh-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; align-items: stretch; }
.mh-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
}
.mh-plan--featured { border: 2px solid var(--accent); box-shadow: 0 8px 28px rgba(56, 192, 242, 0.18); }
.mh-plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.9rem;
  border-radius: 50px;
  background: var(--accent);
  color: #0e1a1f;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.mh-plan h3 { margin-bottom: 0.5rem; font-size: 22px; }
.mh-plan__price { margin: 0 0 0.25rem; font-family: 'Roboto', sans-serif; font-size: 34px; line-height: 1.1; font-weight: 700; color: #fff; }
.mh-plan__price small { font-size: 14px; font-weight: 400; color: var(--gray-text); margin-left: 4px; }
.mh-plan__for { min-height: 3em; margin-bottom: 0.5rem; color: var(--gray-text); font-size: 14px; line-height: 21px; }
.mh-plan .mh-checklist { margin-bottom: 0; }
#plans .master-hub-hero-cta { margin-top: 3rem; }

/* Parcours d'usage */
.mh-usecases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.mh-usecase { background: var(--gray-bg); }

#trust .mh-lead { max-width: 820px; }
.cta-final-section .btn.btn-border.dark { font-size: 1.4em; padding: 15px 25px; border-radius: 10px; }
.master-hub-hero-cta .btn.btn-border.dark { font-size: 1.4em; padding: 15px 25px; border-radius: 10px; }

@media (max-width: 991px) {
  .mh-innovation, .mh-innovation--reverse { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; }
  .mh-innovation--reverse .mh-innovation__text { order: 0; }
}

@media (max-width: 768px) {
  #hero { padding: 4rem 1rem; }
  #hero h1 { font-size: 32px; }
  .mh-lead { font-size: 16px; line-height: 26px; }
  .mh-hero-proofs { flex-direction: column; align-items: center; }
  .mh-families { grid-template-columns: 1fr; }
  .mh-family { padding: 1.5rem; }
  .mh-innovation h3 { font-size: 24px; }
  .master-hub-hero-cta .btn.btn-dark,
  .master-hub-hero-cta .btn.btn-border.dark { font-size: 1.1em; width: 100%; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mh-step, .mh-usecase { transition: none; }
  .mh-step:hover, .mh-usecase:hover { transform: none; }
}

/* Images inclinées (même esprit que la page d'origine) */
.mh-tilt { margin: 0; perspective: 2000px; min-width: 0; }
.mh-tilt > img,
.mh-tilt > .mk {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mh-tilt--hero > img { max-width: 1100px; margin: 0 auto; transform: rotateX(20deg) rotateY(10deg); }
.mh-tilt--right > * { transform: rotateY(-16deg) rotateX(4deg); }
.mh-tilt--left > * { transform: rotateY(16deg) rotateX(4deg); }
.mh-tilt--soft > * { transform: rotateY(-10deg) rotateX(3deg); }
.mh-tilt:hover > * { transform: rotateY(0) rotateX(0); }
.mh-hero-shot { overflow: hidden; }
.mh-family .mh-tilt { margin-top: 1.5rem; }
.mh-family .mh-tilt > img { border: 1px solid var(--gray-border); }

/* Maquettes d'interface (écrans non encore capturés) */
.mk { background: var(--gray-nav); border: 1px solid var(--gray-border); overflow: hidden; font: 13px/1.4 'Roboto', sans-serif; color: #e0e0e0; }
.mk b { color: #fff; font-weight: 600; }
.mk__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; background: var(--gray-card); border-bottom: 1px solid var(--gray-border); }
.mk__bar span { color: var(--gray-text); font-size: 12px; }
.mk__body { padding: 0.75rem 1rem 1rem; }
.mk__row { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid #2a2a2b; }
.mk__row--head { color: var(--gray-text); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.mk__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk__dim { color: var(--gray-text); font-size: 12px; }
.mk__tag { padding: 1px 8px; border-radius: 4px; background: var(--accent-dark); border: 1px solid var(--accent); font-style: normal; font-size: 11px; color: #fff; }
.mk__lock { color: var(--ktt-orange); font-size: 11px; white-space: nowrap; }
.mk__chk { width: 14px; height: 14px; flex: none; border: 1px solid var(--gray-text); border-radius: 3px; }
.mk__chk.is-on { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--gray-nav); }
.mk__btn { margin-top: 1rem; padding: 0.6rem 1rem; width: max-content; border-radius: 8px; background: linear-gradient(90deg, var(--accent) 0%, #2596be 100%); color: #fff; font-weight: 600; }
.mk__split { display: grid; grid-template-columns: 3fr 2fr; }
.mk__split--even { grid-template-columns: 1fr 1fr; }
.mk__video { position: relative; min-height: 220px; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(90deg, #3a2417 0 14px, #1d4b57 14px 28px, #5a2a2a 28px 42px, #3b3416 42px 56px); }
.mk__video::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(255, 240, 210, 0.55), rgba(0, 0, 0, 0.55) 70%); }
.mk__badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 2px 10px; border-radius: 50px; background: rgba(0, 0, 0, 0.65); font-size: 11px; color: #fff; }
.mk__play { position: relative; z-index: 1; width: 0; height: 0; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; opacity: 0.9; }
.mk__timeline { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255, 255, 255, 0.25); z-index: 1; }
.mk__timeline i { display: block; width: 45%; height: 100%; background: var(--accent); }
.mk__side { padding: 1rem; background: var(--gray-card); }
.mk__side dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0.75rem 0 0; }
.mk__side dt { font-weight: 400; color: #fff; }
.mk__side dd { margin: 0; color: var(--gray-text); text-align: right; }
.mk__chips { display: flex; gap: 6px; }
.mk__chips em { padding: 1px 9px; border-radius: 50px; border: 1px solid var(--gray-border); font-style: normal; font-size: 11px; color: var(--gray-text); }
.mk__chips em.is-on { border-color: var(--accent); background: var(--accent-dark); color: #fff; }
.mk__cue { display: flex; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid #2a2a2b; }
.mk__cue p { margin: 0; line-height: 1.4; }
.mk__tc { flex: none; color: var(--accent); font-family: monospace; font-size: 12px; padding-top: 2px; }
.mk__tiers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding: 1.5rem 1rem 1rem; }
.mk__tier { padding: 1rem; border-radius: 10px; background: var(--gray-card); border: 1px solid var(--accent); display: grid; gap: 0.5rem; }
.mk__tier--cold { border-color: var(--ktt-orange); }
.mk__file { color: var(--gray-text); font-size: 12px; }
.mk__meter { height: 6px; border-radius: 3px; background: #444; overflow: hidden; }
.mk__meter i { display: block; height: 100%; background: var(--accent); }
.mk__tier--cold .mk__meter i { background: var(--ktt-orange); }
.mk__arrow { display: grid; justify-items: center; gap: 4px; color: var(--accent); font-size: 22px; }
.mk__arrow small { font-size: 10px; color: var(--gray-text); text-align: center; max-width: 70px; line-height: 1.2; }
.mk__kept { margin: 0 1rem 1.25rem; padding: 0.6rem 0.9rem; border-radius: 8px; background: rgba(56, 192, 242, 0.12); color: #fff; font-size: 12px; }
.mk__kept .fa { color: var(--accent); margin-right: 6px; }
.mk__sw { width: 30px; height: 16px; flex: none; border-radius: 8px; background: #555; position: relative; }
.mk__sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.mk__sw.is-on { background: var(--accent); }
.mk__sw.is-on::after { left: 16px; }
.mk__chart { padding: 0.75rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mk__bars { flex: 1; min-height: 110px; display: flex; align-items: flex-end; gap: 8px; }
.mk__bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--accent); opacity: 0.85; }
.mk__st { padding: 1px 10px; border-radius: 50px; font-style: normal; font-size: 11px; white-space: nowrap; }
.mk__st--ok { background: rgba(80, 200, 120, 0.18); color: #7fe0a0; }
.mk__st--wait { background: rgba(230, 81, 0, 0.2); color: #ffa069; }
.mk__st--off { background: #333; color: var(--gray-text); }

@media (max-width: 768px) {
  .mh-tilt--hero > img { transform: rotateX(8deg) rotateY(4deg); }
  .mh-tilt--right > *, .mh-tilt--left > *, .mh-tilt--soft > * { transform: none; }
  .mk__split, .mk__split--even { grid-template-columns: 1fr; }
  .mk__tiers { grid-template-columns: 1fr; }
  .mk__arrow .fa { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mh-tilt > img, .mh-tilt > .mk { transition: none; }
  .mh-tilt--hero > img, .mh-tilt--right > *, .mh-tilt--left > *, .mh-tilt--soft > * { transform: none; }
}

/* Cartes de fonctions : visuels alignés en bas */
.mh-family { display: flex; flex-direction: column; }
.mh-family .mh-tilt { margin-top: auto; padding-top: 1.5rem; }
.mh-family .mh-checklist { margin-bottom: 0; }
.mk__grow { flex: 1; min-width: 0; }

/* Un visuel par bloc d'innovation, aussi haut que le texte */
.mh-innovation { align-items: stretch; }
.mh-innovation__visual { display: flex; }
.mh-innovation__visual .mh-tilt { flex: 1; display: flex; }
.mh-innovation__visual .mh-tilt > .mk { flex: 1; display: flex; flex-direction: column; min-height: 420px; }
.mh-innovation__visual .mk__split--grow,
.mh-innovation__visual .mk__video--grow,
.mh-innovation__visual .mk__tiers--grow { flex: 1; }
.mk__split--grow .mk__video { min-height: 240px; }
.mk__video--grow { min-height: 200px; border-bottom: 1px solid var(--gray-border); }
.mk__sub { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 1; text-align: center; color: #fff; font-size: 15px; line-height: 1.35; text-shadow: 0 1px 3px #000; }
.mk__tiers--grow { align-content: center; padding-top: 2rem; padding-bottom: 1.5rem; }
@media (max-width: 991px) {
  .mh-innovation__visual .mh-tilt > .mk { min-height: 0; }
}

/* Parcours d'usage : colonnes explicites, le 3e bloc s'étale quand il est seul sur sa ligne */
.mh-usecases { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .mh-usecases { grid-template-columns: repeat(2, 1fr); }
  .mh-usecase:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
  .mh-usecases { grid-template-columns: repeat(3, 1fr); }
  .mh-usecase:last-child:nth-child(odd) { grid-column: auto; }
}

/* Navigation interne : ancres dégagées du menu fixe + barre de liens du hero */
html { scroll-padding-top: 9rem; }
section[id] { scroll-margin-top: 9rem; }
.mh-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 2rem auto 0;
  max-width: 900px;
}
.mh-subnav a {
  padding: 0.4rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.mh-subnav a:hover,
.mh-subnav a:focus-visible { background: var(--accent-dark); border-color: var(--accent); color: #fff; }
@media (max-width: 768px) {
  html { scroll-padding-top: 6rem; }
  section[id] { scroll-margin-top: 6rem; }
}

/* Logos clients : monochrome blanc pour rester lisibles sur fond sombre */
.trust-clients-logos { max-width: 1100px; margin-left: auto; margin-right: auto; }
.trust-clients-logo--mono { max-height: 44px; max-width: 130px; filter: brightness(0) invert(1); opacity: 0.8; transition: opacity 0.2s; }
.trust-clients-logo--mono:hover { opacity: 1; }
/* fond blanc opaque (JPEG) : inversion puis fusion pour effacer le fond */
.trust-clients-logo--opaque { filter: grayscale(1) invert(1); mix-blend-mode: screen; }

/* Logos clients : une seule ligne qui défile en boucle */
.mh-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mh-marquee__track {
  display: flex;
  width: max-content;
  animation: mh-marquee 45s linear infinite;
}
.mh-marquee:hover .mh-marquee__track { animation-play-state: paused; }
.mh-marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 3.5rem;
  margin: 0;
  padding: 0 1.75rem;
  list-style: none;
}
.mh-marquee__group li { margin: 0; flex: none; display: flex; align-items: center; }
@keyframes mh-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mh-marquee { -webkit-mask-image: none; mask-image: none; }
  .mh-marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .mh-marquee__group[aria-hidden="true"] { display: none; }
  .mh-marquee__group { flex-wrap: wrap; justify-content: center; gap: 2rem 3rem; }
}

/* Titre du hero : majuscules, deux lignes */
#hero h1 { text-transform: uppercase; letter-spacing: 0.5px; max-width: none; }

/* Engagement environnemental : feuilles en vert */
#eco .mh-pills .fa-leaf { color: #4caf50; }

/* Plans tarifaires : 1 colonne, puis 2 colonnes x 2 lignes, puis 4 colonnes */
.mh-plans { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .mh-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .mh-plans { grid-template-columns: repeat(4, 1fr); }
}

/* Captures dans les blocs d'innovation : remplissent la hauteur du bloc, bandes de la couleur du fond de la capture */
.mh-innovation__visual .mh-tilt > img { height: 100%; object-fit: contain; background: #070e0e; }
.mh-innovation__visual .mh-tilt--fit-cover > img { object-fit: cover; object-position: left top; }
.mh-innovation__visual .mh-tilt--fit-deep > img { object-fit: contain; background: #0f1113; }
