/* =========================================================================
   L'accueil de mybrand, le hub des trois outils.

   Il n'ajoute rien au socle : il pose une barre d'en-tete, un hero, une grille
   de trois cartes et un pied. Tout ce qui a l'air d'une decision de marque
   (couleur, police, approche, rayon, duree) vient de assets/atlantis.css.
   ========================================================================= */

/* ============================== En-tete ================================= */

/* Rangee 1 : la bande de service, comme sur newera. Elle dit ou l'on est et
   laisse changer de langue, rien de plus. */
.hub-util {
  border-bottom: 1px solid var(--rule);
  background: var(--atl-ink-1000);
}
.hub-util__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 16px; min-height: 34px; padding-block: 6px; flex-wrap: wrap;
}
.hub-util__note {
  font-family: var(--font-sans); font-weight: 600; font-size: 10px;
  letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--fg-4);
}
.hub-lang { display: inline-flex; gap: 2px; flex: 0 0 auto; margin-left: auto; }
.hub-lang button {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: 4px 8px; color: var(--fg-4);
  font-family: var(--font-sans); font-weight: 700; font-size: 10px;
  letter-spacing: var(--track-wide); text-transform: uppercase;
  transition: color var(--dur-quick) var(--ease-out);
}
.hub-lang button:hover { color: var(--fg-2); }
.hub-lang button.is-active { color: var(--fg); }

/* Rangee 2 : le mot-symbole, et le nom de ce qu'on regarde. */
.hub-mast {
  border-bottom: 1px solid var(--rule);
  background: var(--atl-ink-1000);
}
.hub-mast__in {
  display: flex; align-items: center; gap: 18px; min-height: 76px; padding-block: 14px;
}
.hub-mast__logo { display: inline-flex; }
.hub-mast__logo img { height: 30px; width: auto; display: block; }
.hub-mast__sep { width: 1px; align-self: stretch; background: var(--rule); }
.hub-mast__tag {
  font-family: var(--font-sans); font-weight: 700; font-size: 11px;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--fg-3);
}
.hub-mast__beta {
  margin-left: auto;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px;
  letter-spacing: .1em; color: var(--accent);
  border: 1px solid var(--accent); padding: 3px 8px;
}

/* ================================ Hero ================================== */

.hub-hero {
  position: relative; isolation: isolate;
  padding-block: clamp(56px, 12vh, 128px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
/* Un decor discret, dessine et non photographie : la trame du plancher et la
   ligne de decoupe que ces trois outils passent leur temps a produire. Aucune
   image a telecharger, aucun poids, et rien qui puisse dater. */
.hub-hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.86) 46%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 72px);
}
.hub-hero__mark {
  position: absolute; right: -80px; top: 50%; translate: 0 -50%; z-index: -1;
  width: min(46vw, 560px); aspect-ratio: 1; opacity: .1;
}
/*
 * LE PLANCHER DE CETTE TAILLE EST LE POINT DELICAT. Le titre porte un <br>
 * choisi (« Deposez un logo. » / « Repartez avec l'epreuve. »), donc ses lignes
 * ne peuvent PAS se recomposer quand la place manque : elles debordent. Mesure
 * du 2026-09-04 sur un ecran de 390 px : avec un plancher a 40 px, « Repartez
 * avec » sortait de la page et emportait toute la mise en page avec lui.
 * 30 px tient, et vw pilote la montee jusqu'au plafond.
 */
.hub-hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: #fff;
  font-size: clamp(30px, min(7vw, 9vh), 96px); line-height: .92;
  letter-spacing: var(--track-display); margin: 0 0 26px; max-width: 15ch;
  overflow-wrap: break-word;
}
.hub-hero__title em { font-style: normal; color: var(--accent); }
.hub-hero__lede, .hub-lede {
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--fg-2);
  max-width: 56ch; margin: 0 0 38px;
}
.hub-lede { margin: 0; max-width: 44ch; }
.hub-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================== Les outils ============================== */

.hub-tools { padding-block: clamp(56px, 9vh, 96px); }
.hub-tools .section-head > :first-child { flex: 1 1 420px; }
.hub-tools .section-head > .hub-lede { flex: 0 1 44ch; }
.hub-tools__grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tool {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-1); overflow: hidden;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.tool:hover { background: var(--surface-2); transform: translateY(-3px); }
/* Le cadre rouge qui apparait au survol : c'est la vignette de galerie de
   newera, reprise telle quelle. Elle ne change que l'opacite, donc elle ne
   deplace rien. */
.tool::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: 2px solid var(--accent); opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.tool:hover::after, .tool:focus-visible::after { opacity: 1; }

.tool__media {
  position: relative; display: block; background: var(--atl-ink-1000);
  border-bottom: 1px solid var(--rule); padding: 28px 28px 22px;
}
.tool__media svg { display: block; width: 100%; height: auto; }
.tool__index {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .1em; color: var(--fg-4);
}

.tool__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 28px; flex: 1; }
.tool__name {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.02; letter-spacing: var(--track-tight);
  color: var(--fg);
  /* Deux lignes reservees : « Epreuve de plateforme » en prend deux, « Epreuve
     de gabarit » une seule, et sans cette reserve les trois cartes decalent
     tout ce qui suit. */
  min-height: calc(2 * 1.02em);
}
.tool__desc { color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.tool__spec {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--fg-4); border-top: 1px solid var(--rule-2); padding-top: 12px;
  margin-top: auto;
}
.tool__go { padding-top: 6px; }

/* ============================ Ce qui est promis ========================= */

.hub-promise {
  border-top: 1px solid var(--rule);
  background: var(--atl-ink-900);
  padding-block: clamp(48px, 7vh, 80px);
}
.hub-promise__grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.promise__key {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.promise__title {
  font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  color: var(--fg); margin-bottom: 6px;
}
.promise__text { color: var(--fg-3); font-size: 14.5px; line-height: 1.55; }

/* ================================ Pied ================================== */

.hub-footer {
  border-top: 1px solid var(--rule);
  padding-block: 28px;
}
.hub-footer__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--font-sans); font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--fg-4);
}
.hub-footer__in a { color: var(--fg-3); }
.hub-footer__in a:hover { color: var(--fg); }

@media (max-width: 640px) {
  .hub-mast__sep, .hub-mast__tag { display: none; }
  .hub-mast__in { min-height: 60px; }
  /* Les deux boutons du hero passent l'un sous l'autre plutot que de se
     serrer : « Ouvrir les gabarits » ne se coupe pas. */
  .hub-hero__actions { flex-direction: column; align-items: stretch; }
  .hub-hero__mark { display: none; }
  .tool__media { padding: 20px 20px 16px; }
  .tool__body { padding: 22px 20px 24px; }
  /* La reserve de deux lignes n'a plus de sens quand chaque carte est seule sur
     sa ligne : rien n'a besoin de s'aligner avec rien. */
  .tool__name { min-height: 0; }
}
