/* ================================================================ */
/*  STYLES PARTAGÉS — Pages internes AIANT                          */
/*  Charte éditoriale premium (cohérente avec la home)              */
/* ================================================================ */

:root {
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #999999;
  --line: #d8d8d8;
  --line-2: #ececec;
  --bg: #ffffff;
  --bg-2: #f6f6f6;
  --bg-3: #fafafa;
  --accent: #1B325D;
  --max: 1280px;
  --pad-x: 40px;
  --section-y: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* Empêche tout débord horizontal accidentel */
}

/* ============= BANNER WIREFRAME (bas de page) ============= */
.wf-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 16px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

/* ============= TYPO ============= */
.eyebrow {
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

/* ============= CONTAINERS ============= */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============= HEADER ============= */
header.wf-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 110;
}
.logo-ph {
  width: 110px;
  height: 36px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
/* Reset commun pour les versions avec image */
.logo-ph:has(img) {
  background: transparent;
  border: none;
  padding: 0;
}
.logo-ph:has(img):hover { opacity: 0.7; }
.logo-ph img {
  display: block;
  user-select: none;
}
/* Header sticky : logo HORIZONTAL (largeur auto, hauteur fixe) */
.nav .logo-ph:has(img) {
  width: auto;
  height: 80px;
}
.nav .logo-ph img {
  height: 100%;
  width: auto;
  display: block;
}
/* Compense le doublement du logo pour éviter un header trop haut */
.nav { padding-top: 12px; padding-bottom: 12px; }
/* Footer : favicon SVG (carré) */
.footer-brand .logo-ph:has(img) {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
}
.footer-brand .logo-ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-items {
  list-style: none;
  display: flex;
  gap: 44px;
  margin: 0 auto;
  align-items: center;
  padding: 0;
}
.nav-item { position: static; }
.nav-link {
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.nav-link:hover { opacity: 0.6; }
.nav-link.active { font-weight: 600; }
.nav-chevron {
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 3px;
  transition: transform 0.35s ease;
}
.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 60px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  flex-shrink: 0;
  transition: gap 0.3s ease;
}
.nav-cta:hover { gap: 16px; }

/* ============= MEGA-MENU ============= */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.55s;
  pointer-events: none;
  z-index: 50;
}
/* === FIX UX : zone tampon SOUS chaque bouton (pas sur la largeur entière) === */
/* Le ::after est limité à la largeur du bouton parent (pas de débord) pour ne */
/* pas bloquer le hover sur les boutons voisins lors d'une navigation latérale. */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 56px;
  background: transparent;
}
.nav-item:hover .megamenu,
.nav-item:focus-within .megamenu,
.megamenu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}
/* Délai court de fermeture (250ms) pour tolérance déplacement souris */
.megamenu {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
}
/* Force-close : après clic sur un lien, ferme le menu même si :hover est encore actif */
.megamenu.force-close {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-6px) !important;
}
.megamenu-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--pad-x) 80px;
  display: grid;
  grid-template-columns: 0.85fr 1.55fr;
  gap: 96px;
  align-items: start;
}
.megamenu-intro { max-width: 340px; padding-top: 4px; }
.megamenu-intro .eyebrow { margin-bottom: 20px; }
.megamenu-intro h3 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}
.megamenu-intro p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.megamenu-intro .mm-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.3s ease;
}
.megamenu-intro .mm-link:hover { gap: 16px; }
.megamenu-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
}
.megamenu-item {
  display: block;
  padding: 16px 20px 18px 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
}
.megamenu-item::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.megamenu-item:hover { padding-left: 24px; }
.megamenu-item:hover::before { width: 12px; }
/* Cas où le bloc contient 2 liens distincts (h4 et p séparés) */
.megamenu-item.split { padding: 0; }
.megamenu-item.split::before { display: none; }
.megamenu-item.split:hover { padding-left: 0; }
.megamenu-item.split .mm-link-title,
.megamenu-item.split .mm-link-desc {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: padding-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.megamenu-item.split .mm-link-title {
  padding: 16px 20px 4px 0;
}
.megamenu-item.split .mm-link-desc {
  padding: 0 20px 18px 0;
}
.megamenu-item.split .mm-link-title::before,
.megamenu-item.split .mm-link-desc::before {
  content: '';
  position: absolute;
  left: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.megamenu-item.split .mm-link-title::before { top: 22px; }
.megamenu-item.split .mm-link-desc::before { top: 6px; }
.megamenu-item.split .mm-link-title:hover,
.megamenu-item.split .mm-link-desc:hover { padding-left: 24px; }
.megamenu-item.split .mm-link-title:hover::before,
.megamenu-item.split .mm-link-desc:hover::before { width: 12px; }
.megamenu-item h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 6px;
  transition: color 0.3s ease;
}
.megamenu-item p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.megamenu-item.split .mm-link-title:hover h4 { color: var(--ink); }
.megamenu-item.split .mm-link-desc:hover p { color: var(--ink); }

/* ============= BURGER MOBILE ============= */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transition: opacity 0.2s ease;
}
.nav-toggle:hover { opacity: 0.7; }
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 90;
  padding: 88px 24px 32px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0s linear 0.5s;
  visibility: hidden;
  overflow-y: auto;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0s linear 0s;
}
.nav-drawer-list { list-style: none; padding: 0; margin: 0; }
.nav-drawer-section {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.nav-drawer-section:first-child { border-top: none; }
.nav-drawer-section > a, .nav-drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.nav-drawer-toggle .chev {
  font-size: 18px;
  color: var(--ink-3);
  transition: transform 0.35s ease;
}
.nav-drawer-section.open .nav-drawer-toggle .chev { transform: rotate(180deg); }
.nav-drawer-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-drawer-section.open .nav-drawer-sub { max-height: 800px; }
.nav-drawer-sub-list { list-style: none; padding: 20px 0 4px; margin: 0; }
.nav-drawer-sub-list li { padding: 10px 0; }
.nav-drawer-sub-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.nav-drawer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 60px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 32px;
}
@media (max-width: 1024px) {
  .nav-items, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer { display: block; }
}

/* ============= LAYOUT GLOBAL DES PAGES INTERNES ============= */
body.page { padding-top: 72px; }

/* ============= PAGE HEADER ÉDITORIAL ============= */
.page-header {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line);
}
.page-header-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 96px;
  align-items: end;
}
.page-header h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 760px;
}
.page-header-right { padding-top: 16px; }
.page-header-right p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
}

/* ============= BREADCRUMB / FIL D'ARIANE ============= */
.breadcrumb {
  margin-top: 16px;
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.breadcrumb a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; }

/* ============= SECTION-ANCHOR (ancres dans la page) ============= */
.section-anchor {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.section-anchor.alt { background: var(--bg-3); margin: 0 calc(-1 * 100vw); padding: 120px 100vw; }

.section-header {
  display: grid;
  grid-template-columns: 0.85fr 1.55fr;
  gap: 96px;
  margin-bottom: 80px;
  align-items: start;
}
.section-num {
  font-family: 'SF Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  display: inline-block;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-intro p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.section-intro p strong { color: var(--ink); font-weight: 600; }

/* ============= ACCENT COLOR BAR (pour les univers) ============= */
.accent-bar {
  width: 48px;
  height: 4px;
  margin-bottom: 24px;
}

/* ============= BLOCS DE CONTENU ÉDITORIAL ============= */
.editorial-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
  align-items: start;
}
.editorial-block-label {
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 8px;
}
.editorial-block-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.editorial-block-content p strong { color: var(--ink); font-weight: 600; }

/* ============= LISTE ÉDITORIALE (capacités, items) ============= */
.editorial-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}
.editorial-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}
.editorial-list li h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.editorial-list li p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ============= LIEN CTA SOBRE ============= */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.3s ease;
  margin-top: 24px;
}
.cta-link:hover { gap: 16px; }

/* ============= BANDEAU INVITATION (bleu nuit) ============= */
.invite-section {
  background: #1B325D;
  color: rgba(255,255,255,0.95);
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
}
.invite-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 120px 100%;
  pointer-events: none;
}
.invite-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}
.invite-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 96px;
  align-items: end;
}
.invite-section .eyebrow {
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}
.invite-title {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: #fff;
  max-width: 760px;
  margin-bottom: 28px;
}
.invite-lead {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  font-style: italic;
}
.invite-action { padding-bottom: 4px; }
.invite-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 60px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), gap 0.4s ease;
}
.invite-cta-btn:hover {
  background: #fff;
  color: #1B325D;
  border-color: #fff;
  gap: 22px;
}
.invite-divider {
  margin: 40px 0 24px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  max-width: 240px;
}
.invite-alt {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.invite-alt a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
  transition: border-color 0.3s ease;
}
.invite-alt a:hover { border-color: rgba(255,255,255,0.9); }

/* ============= FOOTER ============= */
footer.wf-footer {
  padding: 96px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo-ph {
  width: 120px;
  height: 40px;
  margin-bottom: 28px;
}
.footer-positioning {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  font-style: italic;
  letter-spacing: -0.005em;
}
.footer-col h4 {
  font-family: 'SF Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col ul li {
  font-size: 14.5px;
  line-height: 1.4;
  padding: 0;
}
.footer-col ul li a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.25s ease;
  letter-spacing: -0.005em;
}
.footer-col ul li a:hover { opacity: 0.55; }

.footer-wordmark {
  margin-top: 112px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: clamp(100px, 16vw, 280px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: rgba(17, 17, 17, 0.04);
  user-select: none;
  pointer-events: none;
  font-family: inherit;
  overflow: hidden;
}
.footer-wordmark span { display: inline-block; line-height: 1; }

.footer-bottom {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.005em;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-bottom-links a:hover { color: var(--ink); }

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
  :root { --pad-x: 24px; --section-y: 64px; }
  .page-header { padding: 80px 0 56px; }
  .page-header-grid,
  .section-header,
  .editorial-block,
  .invite-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; margin-bottom: 16px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .editorial-list li { grid-template-columns: 1fr; gap: 8px; }
  body.page { padding-top: 64px; }
}
</content>
</invoke>