/* ============================================================
   RESPONSIVE.CSS — Athenia Academy
   Responsabilité : TOUTES les media queries
   Source unique pour le responsive.
   ============================================================

   Breakpoints Athenia :
     --bp-xl  : 1200px  grilles larges
     --bp-lg  : 1024px  tablette paysage
     --bp-md  :  900px  tablette portrait
     --bp-sm  :  768px  mobile large (hamburger)
     --bp-xs  :  480px  mobile standard
     --bp-xxs :  390px  iPhone SE
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   1200px — Grilles larges
════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .team-grid   { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 1100px) {
  .team-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }

  /* Navigation: collapse to hamburger at tablet widths */
  .nav-links { display: none !important; }
  .nav-inner .btn-luxury { display: none !important; }
  .hamburger { display: flex !important; }
}

@media (max-width: 1060px) {
  .prob-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ════════════════════════════════════════════════════════════
   1024px — Tablette paysage
════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  /* réservé */
}

/* ════════════════════════════════════════════════════════════
   900px — Tablette portrait
════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Hero inner layout */
  [data-hero-inner] {
    flex-direction: column !important;
    padding-top: 80px !important;
    gap: 2rem !important;
    min-height: auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  [data-hero-inner] > div:last-child  { display: none !important; }
  [data-hero-inner] > div:first-child { width: 100% !important; max-width: 100% !important; }
  [data-hero-inner] h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
    max-width: 100% !important;
  }

  /* KPI grid 3 → 2 col */
  .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ════════════════════════════════════════════════════════════
   860px
════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ════════════════════════════════════════════════════════════
   768px — Mobile large (hamburger obligatoire)
════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Navigation */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Logo fix: navigation.css hides nav-top at ≤768px — restore it as absolute overlay */
  nav {
    position: fixed;
    width: 100%;
  }
  .nav-top {
    display: flex !important;
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    width: 52px;
    transform: translateX(-50%);
    height: 64px;
    min-height: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
    pointer-events: none;
    z-index: 1001;
    align-items: center;
  }
  .nav-top .row-md-c { display: none !important; }
  .nav-top .logo-img {
    margin: 0;
    height: 64px;
    width: 52px;
    display: block;
    pointer-events: auto;
  }
  .nav-inner {
    position: relative;
    width: 100%;
  }
  .nav-inner > .row-md-c {
    position: fixed;
    top: 10px;
    right: max(12px, env(safe-area-inset-right));
    z-index: 1002;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  .hamburger {
    position: static;
    width: 44px;
    height: 44px;
    padding: 11px;
    align-items: center;
    justify-content: center;
    transform: none;
    background: rgba(245, 245, 247, 0.96);
    border: 1px solid rgba(29, 29, 31, 0.12);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(29, 29, 31, 0.08);
  }
  nav::after {
    content: "☰";
    position: fixed;
    top: 10px;
    right: max(12px, env(safe-area-inset-right));
    z-index: 1003;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #1D1D1F;
    background: rgba(245, 245, 247, 0.96);
    border: 1px solid rgba(29, 29, 31, 0.12);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(29, 29, 31, 0.08);
    font: 700 24px/1 Inter, sans-serif;
    pointer-events: none;
  }
  /* Belt + suspenders: hide CTA buttons crowding the mobile nav bar */
  .nav-inner .btn-luxury { display: none !important; }

  /* Grilles CSS */
  .grid-2,
  .grid-3,
  .grid-4,
  .pillars,
  .problem-grid,
  .process-steps,
  .metiers-grid,
  .lab-grid,
  .ai-tools-grid { grid-template-columns: 1fr; }

  .admission-steps { grid-template-columns: repeat(2, 1fr); }

  /* Hero stats */
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Tabs scroll horizontal */
  .formation-tabs { overflow-x: auto; }

  /* Process steps */
  .process-steps::before { display: none; }

  /* Sections padding */
  .section      { padding: 3rem 1.25rem !important; }
  .section-sm   { padding: 2.5rem 1.25rem !important; }
  .section-full { padding: 3rem 1.25rem !important; }

  /* Logos hero bandeau */
  [data-logos-hero] {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  /* Textes max-width inline → full width */
  [style*="max-width:660px"],
  [style*="max-width:680px"],
  [style*="max-width:840px"],
  [style*="max-width:520px"],
  [style*="max-width:580px"],
  [style*="max-width:600px"] {
    max-width: 100% !important;
  }

  /* Stats hero nowrap → wrap */
  [style*="gap:2.5rem;flex-wrap:nowrap"] {
    flex-wrap: wrap !important;
    gap: 1rem !important;
  }

  /* Padding sections inline */
  [style*="padding:5rem 2rem"],
  [style*="padding:4rem 2rem"],
  [style*="padding:3rem 2rem"] {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Grilles 4 col Mentor IA */
  [style*="grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-bottom:0.5rem"],
  [style*="grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-bottom:3rem"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Parcours 4 étapes → 1 col */
  [style*="grid-template-columns:repeat(4,1fr);gap:1.25rem;position:relative"] {
    grid-template-columns: 1fr !important;
  }
  [style*="position:absolute;top:2.5rem;left:calc(12.5%"] { display: none !important; }

  /* Team grids */
  .team-grid,
  .team-grid-3 { grid-template-columns: 1fr !important; }

  /* Protection overflow global */
  body { overflow-x: hidden; }
  *    { box-sizing: border-box; }

  /* Parcours cards */
  #parcours .section-grid-2,
  #parcours-candidat-detail .section-grid-2,
  #parcours-entreprise-detail .section-grid-2 { grid-template-columns: 1fr !important; }

  /* Hero slogan */
  .hero-slogan {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem) !important;
    margin-bottom: 1rem !important;
  }
  .hero-slogan::before { width: 36px; margin-bottom: 0.65rem; }

  /* Modal mobile */
  .ath-modal { padding: 1.75rem 1.25rem; }
  .ath-field-row { grid-template-columns: 1fr; }

  /* Legal */
  .legal-page { padding: 5rem 1.25rem 3rem; }
}

/* ════════════════════════════════════════════════════════════
   767px — Couche mobile Athenia
════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .ticker-wrapper::-webkit-scrollbar { display: none; }
  .ticker-track {
    animation: none !important;
    transform: none !important;
    width: max-content !important;
    overflow-x: visible !important;
    justify-content: flex-start;
  }
  .ticker-track::-webkit-scrollbar  { display: none; }
  .ticker-track:hover                { animation-play-state: running; }

  /* Boutons mobile nav */
  .mobile-nav .mob-nav-btn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.35rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav .mob-nav-btn:active,
  .mobile-nav .mob-nav-btn:focus {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    outline: none;
  }
  .mobile-nav .mob-nav-btn-cta {
    background: var(--accent) !important;
    color: var(--btn-text, #ffffff) !important;
    border-color: var(--accent) !important;
    margin-top: 0.5rem;
    margin-bottom: 0;
  }
  .mobile-nav .mob-nav-btn-cta:active {
    background: var(--accent2) !important;
    border-color: var(--accent2) !important;
  }

  /* Hero mobile */
  #mob-hero-section   { padding: 5.5rem 1.25rem 2rem; background: var(--bg); }
  .mob-eyebrow {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--accent-dim);
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }
  .mob-h1 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(1.75rem, 6.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 1rem;
  }
  .mob-sub       { font-size: 0.92rem; color: var(--text2); line-height: 1.75; margin: 0 0 1.75rem; }
  .mob-cta-group { display: flex; flex-direction: column; gap: 0.75rem; }
  .mob-cta-full  { width: 100%; min-height: 52px; justify-content: center; font-size: 0.9rem; }

  /* Proof strip */
  .mob-proof {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: var(--text2);
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  .mob-proof::-webkit-scrollbar { display: none; }
  .mob-proof-dot { color: var(--accent); flex-shrink: 0; font-size: 0.9rem; font-weight: 700; }

  /* Audience selector */
  #mob-selector-section {
    padding: 2rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .mob-selector-heading {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.1rem; font-weight: 800;
    color: var(--text);
    text-align: center;
    margin: 0 0 1.25rem;
  }
  .mob-selector-list { display: flex; flex-direction: column; gap: 0.65rem; }
  .mob-sel-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    min-height: 56px;
    padding: 0.85rem 1.15rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem; font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-sel-btn:active,
  .mob-sel-btn:focus {
    border-color: var(--accent);
    background: var(--accent-dim);
    outline: none;
  }
  .mob-sel-icon { width: 1.5rem; height: 1.5rem; object-fit: contain; flex-shrink: 0; display: block; }

  /* 4 piliers */
  #mob-pillars-section {
    padding: 2rem 1.25rem;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
  }
  .mob-pillars-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem; color: var(--accent);
    letter-spacing: 0.12em; text-transform: uppercase;
    text-align: center; margin: 0 0 1.25rem;
  }
  .mob-pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .mob-pillar {
    padding: 1.15rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
  }
  .mob-pillar-img   { width: 1.75rem; height: 1.75rem; object-fit: contain; display: block; margin-bottom: 0.6rem; }
  .mob-pillar-title {
    display: block;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem; font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.35rem; line-height: 1.25;
  }
  .mob-pillar-text { font-size: 0.77rem; color: var(--text2); line-height: 1.55; margin: 0; }

  /* CTA final */
  #mob-final-section {
    padding: 2rem 1.25rem;
    text-align: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .mob-final-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem; color: var(--text3);
    line-height: 1.65; margin: 0 0 1rem; letter-spacing: 0.04em;
  }
  .mob-final-btn { font-size: 0.95rem; min-height: 54px; }

  /* Zone tactile minimale 48px */
  .btn { min-height: 48px; }

  /* Sections "pour qui", "problème", "indicateurs" */
  #home-pour-qui [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #home-probleme [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  #home-indicateurs [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  #kpi-extended { grid-template-columns: 1fr !important; }

  /* Ticker partenaires */
  #home-partenaires .ticker-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100vw !important;
  }
  #home-partenaires .ticker-track {
    animation: none !important;
    transform: none !important;
    width: max-content !important;
    overflow-x: visible !important;
  }

  /* Pour aller plus loin */
  #home-pour-aller [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Orientation et formations grids */
  .orientation-grid                 { grid-template-columns: 1fr; }
  .orientation-ctas .btn            { width: 100%; justify-content: center; }
  .formations-final-cta-grid        { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════════
   640px — Prob cards mobile
════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .prob-grid { grid-template-columns: 1fr; gap: 14px; }
  .prob-card,
  .prob-card-wrap  { min-height: 440px; }
  .prob-face-inner { padding: 24px 22px 20px; }
  .prob-debts-grid { grid-template-columns: 1fr; }
  .prob-title      { font-size: 0.96rem; }
}

/* ════════════════════════════════════════════════════════════
   600px — Grilles inline 4 et 3 col → 1 col
════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  .kpi-grid      { grid-template-columns: 1fr !important; }
  .kpi-card-solo { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   580px — Modal plein écran
════════════════════════════════════════════════════════════ */

@media (max-width: 580px) {
  .ath-modal     { padding: 1.75rem 1.25rem; }
  .ath-field-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   560px — Team grid
════════════════════════════════════════════════════════════ */

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════════
   390px — iPhone SE et petits mobiles
════════════════════════════════════════════════════════════ */

@media (max-width: 390px) {
  .btn,
  .btn-primary,
  .btn-ghost,
  .btn-large,
  .btn-xl {
    font-size: 0.82rem !important;
    padding: 0.75rem 1rem !important;
    min-height: 44px;
  }

  h1, .hero-title    { font-size: clamp(1.6rem, 8vw, 2.2rem) !important; }
  h2, .section-title { font-size: clamp(1.4rem, 6vw, 2rem) !important; }
  .label             { font-size: 0.62rem !important; }

  .mob-pillars-grid { grid-template-columns: 1fr; }
  .mob-h1           { font-size: clamp(1.6rem, 8vw, 2rem); }
}

/* ════════════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .prob-card      { transition: none !important; }
  .prob-card-wrap { opacity: 1 !important; transform: none !important; transition: none !important; }
  .prob-face {
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    transition: opacity 0.12s ease;
  }
  .prob-back { opacity: 0; transform: none !important; pointer-events: none; }
  .prob-card.is-flipped .prob-front { opacity: 0; pointer-events: none; }
  .prob-card.is-flipped .prob-back  { opacity: 1; pointer-events: auto; }

  *,
  *::before,
  *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
  }
}

/* ════════════════════════════════════════════════════════════
   #home-risques-ia — Responsive Rules
════════════════════════════════════════════════════════════ */

/* Tablet: 3 columns */
@media (max-width: 1100px) {
  #home-risques-ia .risks-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  #home-risques-ia .risks-flip-wrap {
    min-height: 440px;
  }
  #home-risques-ia .risks-page-hook {
    font-size: clamp(32px, 5vw, 48px);
  }
}

/* Tablet narrow: 2 columns */
@media (max-width: 820px) {
  #home-risques-ia .risks-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #home-risques-ia .risks-flip-wrap {
    min-height: 420px;
  }
  #home-risques-ia .risks-2col,
  #home-risques-ia .risks-2col-equal {
    grid-template-columns: 1fr;
  }
  #home-risques-ia .risks-studies-header {
    flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 40px 0 28px;
  }
  #home-risques-ia .risks-study-head {
    padding: 24px; flex-direction: column;
  }
  #home-risques-ia .risks-study-body { padding: 24px; }
  #home-risques-ia .risks-impact-head {
    flex-direction: column; align-items: flex-start; gap: 12px;
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  #home-risques-ia .risks-inner-wrap {
    padding: 0 20px;
  }
  #home-risques-ia .risks-page-header {
    padding: 48px 0 40px;
  }
  #home-risques-ia .risks-cards-grid {
    grid-template-columns: 1fr;
  }
  #home-risques-ia .risks-flip-wrap {
    min-height: auto;
  }
  #home-risques-ia .risks-card-title {
    font-size: 18px;
  }
  #home-risques-ia .risks-progress-wrap {
    padding: 16px 0 40px;
  }
  #home-risques-ia .risks-page-hook {
    font-size: clamp(30px, 8vw, 40px);
  }
  #home-risques-ia .risks-impact-section.risks-open {
    padding: 40px 0 48px;
  }
  /* Impact table on mobile */
  #home-risques-ia .risks-impact-header {
    grid-template-columns: 28px 1fr 1.5fr;
  }
  #home-risques-ia .risks-impact-header span:last-child { display: none; }
  #home-risques-ia .risks-impact-row {
    grid-template-columns: 28px 1fr 1.5fr;
  }
  #home-risques-ia .risks-impact-badge { display: none; }
  /* Study panels */
  #home-risques-ia .risks-study-inner { border-radius: 20px; }
  #home-risques-ia .risks-panel,
  #home-risques-ia .risks-panel-full { padding: 20px; }
  #home-risques-ia .risks-athenia-box { padding: 20px; }
}


/* ── PSH Page — Responsive ── */
@media (max-width: 640px) {
  .psh-timing-grid { grid-template-columns: 1fr; }
  .psh-adapt-grid  { grid-template-columns: 1fr; }
  .psh-contact-row { flex-direction: column; gap: 0.25rem; }
  .psh-contact-label { min-width: unset; }
  .psh-home-block { flex-direction: column; gap: 1.5rem; padding: 2.5rem 1.5rem; }
  .psh-home-badge { display: none; }
}

/* ============================================================
   HOME V2 — Responsive overrides
============================================================ */
@media (max-width: 1100px) {
  .home-hero-grid,
  .home-dark-grid,
  .home-editorial-row,
  .home-editorial-row.reverse {
    grid-template-columns: 1fr;
  }
  .home-hero-panel,
  .home-editorial-content {
    max-width: 760px;
  }
  .home-method-grid,
  .home-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .home-shell {
    width: min(100% - 36px, 1200px);
  }
  .home-hero {
    min-height: auto;
  }
  .home-hero-content {
    padding: 132px 0 58px;
  }
  .home-hero h1 {
    font-size: clamp(42px, 12vw, 72px);
  }
  .home-section,
  .home-section-dark,
  .home-manifest {
    padding: 78px 0;
  }
  .home-route-grid,
  .home-pillar-grid,
  .home-compact-grid,
  .home-insight-grid {
    grid-template-columns: 1fr;
  }
  .home-route-card,
  .home-pillar-card,
  .home-compact-card,
  .home-insight-card {
    min-height: auto;
  }
  #home-ecosysteme .home-pillar-card { min-height: auto !important; }
  .home-media-card,
  .home-interface-mockup,
  .home-media-card img,
  .home-media-card video {
    min-height: 420px;
  }
}
@media (max-width: 640px) {
  .home-shell {
    width: min(100% - 28px, 1200px);
  }
  .home-hero-content {
    padding: 112px 0 44px;
  }
  .home-hero-grid {
    gap: 30px;
  }
  .home-hero h1,
  .home-section-head h2,
  .home-editorial-content h2,
  .home-section-dark h2,
  .home-final-content h2,
  .home-manifest h2 {
    letter-spacing: -.045em;
  }
  .home-hero p,
  .home-section-head p,
  .home-editorial-content p,
  .home-section-dark p,
  .home-final-content p,
  .home-manifest p {
    font-size: 17px;
  }
  .home-actions,
  .home-final-content .home-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-btn {
    width: 100%;
    min-height: 48px;
  }
  .home-hero-panel,
  .home-route-card,
  .home-pillar-card,
  .home-compact-card,
  .home-insight-card,
  .home-interface-mockup {
    border-radius: 22px;
    padding: 22px;
  }
  .home-method-grid,
  .home-proof-grid {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .home-method-grid article,
  .home-proof-item {
    min-height: auto;
  }
  .home-media-card,
  .home-interface-mockup,
  .home-media-card img,
  .home-media-card video {
    min-height: 360px;
  }
  .home-mentor-media { min-height: 300px !important; }
  .home-mock-card.muted {
    margin-left: 0;
  }
  .home-media-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .careers-hero .home-hero-media::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.70) 55%, rgba(0,0,0,.90)),
      linear-gradient(90deg, rgba(0,0,0,.44), rgba(0,0,0,.22));
  }
  .careers-hero-salary {
    align-items: flex-start;
  }
  .careers-hero-source {
    max-width: none;
    width: 100%;
  }
}
/* ============================================================
   END HOME V2 RESPONSIVE
============================================================ */


/* ============================================================
   ACADEMY V2 — Responsive
============================================================ */
@media (max-width: 1100px) {
  .acad-hero-grid,
  .acad-split,
  .acad-editorial-row,
  .acad-matrix-grid,
  .acad-ambition-grid {
    grid-template-columns: 1fr;
  }
  .acad-matrix-grid {
    align-items: initial;
  }
  .acad-proof-panel,
  .acad-editorial-copy {
    max-width: 760px;
  }
  .acad-method-grid,
  .acad-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .acad-path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #acad-methode .acad-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .acad-shell {
    width: min(100% - 36px, 1200px);
  }
  .acad-hero {
    min-height: auto;
  }
  .acad-hero-grid {
    padding: 132px 0 58px;
    gap: 30px;
  }
  .acad-section,
  .acad-matrix,
  .acad-ambition,
  .acad-final-cta {
    padding: 78px 0;
  }
  .acad-path-grid,
  .acad-method-grid,
  .acad-team-grid {
    grid-template-columns: 1fr;
  }
  .acad-media-card {
    min-height: 420px;
  }
  .acad-ambition-media {
    height: 340px;
  }
  .acad-matrix-card {
    height: clamp(320px, 52vw, 460px);
    min-height: 0;
  }
  .acad-matrix-card video,
  .acad-matrix-card img {
    height: 100%;
    min-height: 0;
  }
  .acad-parcours-head p {
    white-space: normal;
  }
}
@media (max-width: 640px) {
  .acad-shell {
    width: min(100% - 28px, 1200px);
  }
  .acad-hero-grid {
    padding: 112px 0 44px;
  }
  .acad-hero h1,
  .acad-section-head h2,
  .acad-ambition-head h2,
  .acad-editorial-copy h2,
  .acad-matrix-copy h2,
  .acad-final-cta h2 {
    letter-spacing: -.045em;
  }
  .acad-hero p,
  .acad-section-head p,
  .acad-editorial-copy p,
  .acad-matrix-copy p,
  .acad-ambition-copy p,
  .acad-final-cta p,
  .acad-lead-copy p {
    font-size: 17px;
  }
  .acad-actions,
  .acad-actions.center {
    flex-direction: column;
    align-items: stretch;
  }
  .acad-btn,
  .acad-path-card button {
    width: 100%;
    min-height: 48px;
  }
  .acad-proof-panel,
  .acad-path-card {
    border-radius: 22px;
    padding: 22px;
  }
  .acad-method-grid {
    border-radius: 22px;
  }
  .acad-method-grid article,
  .acad-path-card {
    min-height: auto;
  }
  .acad-media-card {
    min-height: 360px;
  }
  .acad-ambition-media {
    height: 300px;
  }
  .acad-matrix-card {
    height: 300px;
  }
  .acad-matrix-card div,
  .acad-media-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
  .acad-team-card {
    grid-template-columns: 1fr;
  }
  .acad-team-card img {
    width: 100%;
    height: 220px;
  }
}
@media (max-width: 700px) {
  #acad-methode .acad-method-grid {
    grid-template-columns: 1fr;
  }

  #acad-methode .acad-method-card,
  #acad-methode .acad-method-card-content {
    min-height: 390px;
  }

  #acad-methode .acad-method-card-content {
    padding: 24px;
  }
}
@media (max-width: 1100px) {
  .acad-market-ecosystem {
    grid-template-columns: 1fr;
  }

  .acad-market-copy {
    max-width: 760px;
  }

  .acad-market-connectors,
  .acad-market-proof {
    grid-template-columns: repeat(2, 1fr);
  }

  .acad-market-section > .acad-shell > .acad-market-cycle {
    grid-template-columns: 1fr;
  }

  .acad-market-title {
    max-width: 900px;
  }

  .acad-market-subtitle {
    max-width: 820px;
  }
}

@media (max-width: 860px) {
  .acad-market-visual,
  .acad-market-visual img,
  .acad-market-visual video,
  .acad-market-video {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .acad-market-ecosystem {
    gap: 34px;
  }

  .acad-market-connectors,
  .acad-market-proof {
    grid-template-columns: 1fr;
  }

  .acad-market-connector {
    min-height: auto;
    border-radius: 22px;
    padding: 22px;
  }

  .acad-market-visual,
  .acad-market-visual img,
  .acad-market-visual video,
  .acad-market-video {
    min-height: 360px;
    border-radius: 22px;
  }

  .acad-market-visual-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-radius: 18px;
  }

  .acad-market-visual-caption strong {
    font-size: 18px;
  }

  .acad-market-title br {
    display: none;
  }

  .acad-market-section > .acad-shell > .acad-market-cycle {
    border-radius: 22px;
  }

  .acad-market-section > .acad-shell > .acad-market-cycle div {
    min-height: auto;
    padding: 22px;
  }
}
@media (max-width: 860px) {
  #acad-parcours .acad-parcours-title,
  #acad-equipe .acad-team-title,
  #acad-ambition .acad-ambition-title {
    font-size: clamp(38px, 10vw, 58px);
    line-height: 1.04;
  }
}

@media (max-width: 640px) {
  #acad-parcours .acad-parcours-title br,
  #acad-equipe .acad-team-title br,
  #acad-ambition .acad-ambition-title br {
    display: none;
  }

  #acad-parcours .acad-parcours-title,
  #acad-equipe .acad-team-title,
  #acad-ambition .acad-ambition-title {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.05;
  }

  #acad-entreprises .acad-market-subtitle {
    max-width: 100%;
  }
}
/* ============================================================
   END ACADEMY V2 RESPONSIVE
============================================================ */





/* Mentor IA refonte — responsive */
@media (max-width: 980px) {
  .mentor-hero-grid,
  .mentor-risk-slide,
  .mentor-response-grid,
  .mentor-access-grid,
  .mentor-uses-grid {
    grid-template-columns: 1fr;
  }
  .mentor-hero-visual,
  .mentor-hero-visual video {
    min-height: 460px;
  }
  .mentor-risk-track {
    min-height: 900px;
  }
  .mentor-risk-slide {
    position: absolute;
  }
  .mentor-risk-media,
  .mentor-risk-content,
  .mentor-risk-video {
    min-height: 430px;
  }
  .mentor-training-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .mentor-refresh-container {
    width: min(100% - 28px, 1180px);
  }
  .mentor-refresh-hero {
    padding: 6rem 0 4rem;
  }
  .mentor-risk-section,
  .mentor-response-section,
  .mentor-training-section,
  .mentor-uses-section,
  .mentor-access-section,
  .mentor-final-cta {
    padding: 4rem 0;
  }
  .mentor-hero-title,
  .mentor-final-cta h2 {
    font-size: clamp(2.65rem, 16vw, 4rem);
  }
  .mentor-risk-heading h2,
  .mentor-section-title {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }
  .mentor-hero-actions {
    align-items: stretch;
  }
  .mentor-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .mentor-risk-carousel {
    padding: 0.65rem;
    border-radius: 24px;
  }
  .mentor-risk-track {
    min-height: 820px;
  }
  .mentor-risk-media,
  .mentor-risk-video {
    min-height: 300px;
  }
  .mentor-risk-content {
    min-height: 470px;
    border-radius: 22px;
  }
  .mentor-training-grid,
  .mentor-use-list {
    grid-template-columns: 1fr;
  }
}


/* Mentor IA restored details responsive */
@media (max-width: 980px) {
  .mentor-refresh .studies-header,
  .mentor-refresh .impact-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .mentor-refresh .study-2col,
  .mentor-refresh .study-2col-equal,
  .mentor-refresh .impact-table-header,
  .mentor-refresh .impact-row {
    grid-template-columns: 1fr;
  }
  .mentor-refresh .impact-table-header {
    display: none;
  }
  .mentor-refresh .impact-badge {
    justify-self: start;
  }
}
@media (max-width: 640px) {
  .mentor-refresh .studies-header,
  .mentor-refresh .study,
  .mentor-refresh .divider,
  .mentor-refresh .impact-divider,
  .mentor-refresh .impact-cta-wrap,
  .mentor-refresh .impact-section {
    width: min(100% - 28px, 1180px);
  }
  .mentor-refresh .study-head {
    flex-direction: column;
  }
  .mentor-refresh .metric-row {
    grid-template-columns: 1fr;
  }
  .mentor-refresh .mentor-video-sound-btn {
    right: 12px;
    bottom: 12px;
  }
}
/* End Mentor IA restored details responsive */


/* Mentor IA section 2 interaction fixes responsive */
@media (max-width: 640px) {
  .mentor-refresh .mentor-risk-actions {
    flex-direction: column;
  }
  .mentor-refresh .mentor-risk-actions .mentor-more-btn,
  .mentor-refresh .mentor-risk-actions .mentor-impact-inline-btn {
    width: 100%;
    justify-content: center;
  }
}
/* End Mentor IA section 2 interaction fixes responsive */


/* Mentor IA hero full video responsive */
@media (max-width: 980px) {
  .mentor-home-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mentor-home-hero-panel {
    max-width: 520px;
  }
}
@media (max-width: 640px) {
  .mentor-home-shell {
    width: min(100% - 28px, 1200px);
  }
  .mentor-home-hero {
    min-height: 92vh;
  }
  .mentor-home-hero-content {
    padding: 120px 0 52px;
  }
  .mentor-home-hero h1 {
    font-size: clamp(42px, 14vw, 66px);
  }
  .mentor-home-actions,
  .mentor-home-actions .mentor-home-btn {
    width: 100%;
  }
}
/* End Mentor IA hero full video responsive */


/* Mentor IA section 2 final layout responsive */
@media (max-width: 980px) {
  .mentor-refresh .mentor-risk-track {
    min-height: 880px;
  }
  .mentor-refresh .mentor-risk-content {
    min-height: 850px;
  }
}
@media (max-width: 640px) {
  .mentor-refresh .mentor-risk-track {
    min-height: 760px;
  }
  .mentor-refresh .mentor-risk-content {
    min-height: 730px;
  }
  .mentor-refresh .mentor-risk-media,
  .mentor-refresh .mentor-risk-video {
    min-height: 250px;
  }
}
/* End Mentor IA section 2 final layout responsive */


/* Mentor IA carousel natural flow fix responsive */
@media (max-width: 980px) {
  .mentor-refresh .mentor-risk-track,
  .mentor-refresh .mentor-risk-content {
    min-height: 0 !important;
  }
}
@media (max-width: 640px) {
  .mentor-refresh .mentor-risk-tags,
  .mentor-refresh .mentor-risk-answer,
  .mentor-refresh .mentor-risk-actions {
    width: 100%;
  }
}
/* End Mentor IA carousel natural flow fix responsive */


/* Mentor IA remaining fixes responsive */
@media (max-width: 640px) {
  .mentor-refresh .mentor-risk-media {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
  }
  .mentor-refresh .mentor-risk-video {
    min-height: 260px !important;
    max-height: 260px !important;
  }
  .mentor-refresh .impact-close-row {
    justify-content: stretch;
  }
  .mentor-refresh .impact-close-btn {
    width: 100%;
  }
}
/* End Mentor IA remaining fixes responsive */











/* Mentor IA modes rolling cards responsive */
@media (max-width: 768px) {
  .mentor-refresh .mentor-modes-section {
    padding: clamp(3.75rem, 11vw, 5.5rem) 0;
  }
  .mentor-refresh .mentor-modes-head {
    width: min(100% - 32px, 680px);
    margin-bottom: 2rem;
  }
  .mentor-refresh .mentor-modes-title {
    font-size: clamp(2.15rem, 8.6vw, 3.4rem);
    line-height: 1.04;
    white-space: normal;
  }
  .mentor-refresh .mentor-modes-lead {
    font-size: 1rem;
    line-height: 1.6;
  }
  .mentor-refresh .mentor-modes-source {
    font-size: 0.88rem;
  }
  .mentor-refresh .mentor-modes-track {
    animation-duration: 56s;
  }
  .mentor-refresh .mentor-modes-card {
    flex-basis: 82vw;
    border-radius: 20px;
  }
  .mentor-refresh .mentor-modes-lightbox {
    padding: 1rem;
  }
  .mentor-refresh .mentor-modes-lightbox-panel {
    width: 94vw;
    max-height: 78vh;
    border-radius: 22px;
  }
  .mentor-refresh .mentor-modes-lightbox-img {
    max-width: 94vw;
    max-height: 78vh;
  }
  .mentor-refresh .mentor-modes-close {
    min-height: 52px;
    padding: 0.85rem 1.2rem;
  }
}
@media (max-width: 480px) {
  .mentor-refresh .mentor-modes-section {
    padding: 3.25rem 0 3.75rem;
  }
  .mentor-refresh .mentor-modes-head {
    width: min(100% - 28px, 420px);
  }
  .mentor-refresh .mentor-modes-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
  .mentor-refresh .mentor-modes-lead {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .mentor-refresh .mentor-modes-source {
    margin-top: 0.8rem;
    font-size: 0.82rem;
  }
  .mentor-refresh .mentor-modes-track {
    gap: 0.85rem;
  }
  .mentor-refresh .mentor-modes-card {
    border-radius: 16px;
  }
  .mentor-refresh .mentor-modes-lightbox-panel {
    border-radius: 18px;
  }
}
/* End Mentor IA modes rolling cards responsive */


/* Mentor IA accessibility responsive */
@media (max-width: 980px) {
  .mentor-refresh .mentor-accessibility-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .mentor-refresh .mentor-accessibility-section {
    padding: clamp(3.75rem, 11vw, 5.5rem) 0;
  }
  .mentor-refresh .mentor-accessibility-header,
  .mentor-refresh .mentor-accessibility-mockup,
  .mentor-refresh .mentor-accessibility-cards {
    width: min(100% - 32px, 680px);
  }
  .mentor-refresh .mentor-accessibility-title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }
  .mentor-refresh .mentor-accessibility-mockup-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .mentor-refresh .mentor-accessibility-cards {
    grid-template-columns: 1fr;
  }
  .mentor-refresh .mentor-accessibility-mockup-top,
  .mentor-refresh .mentor-accessibility-progress > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }
  .mentor-refresh .mentor-accessibility-diagnostic,
  .mentor-refresh .mentor-accessibility-cards article {
    min-height: 0;
  }
}
/* End Mentor IA accessibility responsive */


/* Mentor IA Accessibilité IA product theatre responsive */
@media (max-width: 1120px) {
  .mentor-refresh .ai-access-panel {
    position: relative;
    inset: auto;
    width: auto;
  }
  .mentor-refresh .ai-access-product {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .mentor-refresh .ai-access-panel-left,
  .mentor-refresh .ai-access-panel-right,
  .mentor-refresh .ai-access-panel-bottom {
    order: 2;
  }
  .mentor-refresh .ai-access-mockup {
    order: 1;
  }
}
@media (max-width: 900px) {
  .mentor-refresh .ai-access-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mentor-refresh .ai-access-timeline::before {
    display: none;
  }
}
@media (max-width: 768px) {
  .mentor-refresh .ai-access-section {
    padding: clamp(4rem, 12vw, 5.75rem) 0;
  }
  .mentor-refresh .ai-access-header,
  .mentor-refresh .ai-access-product,
  .mentor-refresh .ai-access-timeline {
    width: min(100% - 32px, 680px);
  }
  .mentor-refresh .ai-access-title {
    font-size: clamp(2.45rem, 10vw, 3.7rem);
  }
  .mentor-refresh .ai-access-mockup-grid,
  .mentor-refresh .ai-access-mockup-footer {
    grid-template-columns: 1fr;
  }
  .mentor-refresh .ai-access-status {
    min-height: 170px;
  }
  .mentor-refresh .ai-access-mockup {
    border-radius: 28px;
  }
}
@media (max-width: 560px) {
  .mentor-refresh .ai-access-header,
  .mentor-refresh .ai-access-product,
  .mentor-refresh .ai-access-timeline {
    width: min(100% - 28px, 420px);
  }
  .mentor-refresh .ai-access-mockup-header,
  .mentor-refresh .ai-access-progress > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }
  .mentor-refresh .ai-access-timeline {
    grid-template-columns: 1fr;
    margin-top: 2.3rem;
  }
  .mentor-refresh .ai-access-step {
    padding-top: 0;
    padding-left: 3rem;
  }
  .mentor-refresh .ai-access-step span {
    left: 0;
  }
}
/* End Mentor IA Accessibilité IA product theatre responsive */


/* Mentor IA Accessibilité IA calm correction responsive */
@media (max-width: 768px) {
  .mentor-refresh .ai-access-title {
    font-size: clamp(2.4rem, 9vw, 3.4rem);
    line-height: 1;
  }
  .mentor-refresh .ai-access-product-calm,
  .mentor-refresh .ai-access-timeline {
    width: min(100% - 32px, 680px);
  }
  .mentor-refresh .ai-access-mockup-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .mentor-refresh .ai-access-title {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
  }
  .mentor-refresh .ai-access-product-calm,
  .mentor-refresh .ai-access-timeline {
    width: min(100% - 28px, 420px);
  }
  .mentor-refresh .ai-access-progress-calm > div:first-child {
    flex-direction: row;
    align-items: center;
  }
  .mentor-refresh .ai-access-timeline {
    grid-template-columns: 1fr;
  }
  .mentor-refresh .ai-access-timeline::before {
    display: none;
  }
  .mentor-refresh .ai-access-step {
    padding-top: 0;
    padding-left: 3rem;
  }
}
/* End Mentor IA Accessibilité IA calm correction responsive */


/* Mentor IA Accessibilité IA simple reassurance responsive */
@media (max-width: 980px) {
  .mentor-refresh .ai-access-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mentor-refresh .ai-access-card-grid .ai-access-card:last-child {
    grid-column: 1 / -1;
    min-height: 0;
  }
  .mentor-refresh .ai-access-proof-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mentor-refresh .ai-access-proof-band span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
  }
  .mentor-refresh .ai-access-proof-band span:nth-child(4) {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
  }
}
@media (max-width: 640px) {
  .mentor-refresh .ai-access-simple-section {
    padding: clamp(3.6rem, 11vw, 5rem) 0;
  }
  .mentor-refresh .ai-access-simple-section .ai-access-header,
  .mentor-refresh .ai-access-card-grid,
  .mentor-refresh .ai-access-proof-band {
    width: min(100% - 28px, 430px);
  }
  .mentor-refresh .ai-access-simple-section .ai-access-title {
    font-size: clamp(2.05rem, 9vw, 2.85rem);
    line-height: 1.04;
  }
  .mentor-refresh .ai-access-card-grid,
  .mentor-refresh .ai-access-proof-band {
    grid-template-columns: 1fr;
  }
  .mentor-refresh .ai-access-card-grid .ai-access-card:last-child {
    grid-column: auto;
  }
  .mentor-refresh .ai-access-card {
    min-height: 0;
    padding: 1.35rem;
    border-radius: 22px;
  }
  .mentor-refresh .ai-access-proof-band span + span,
  .mentor-refresh .ai-access-proof-band span:nth-child(3),
  .mentor-refresh .ai-access-proof-band span:nth-child(4) {
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
  }
}
/* End Mentor IA Accessibilité IA simple reassurance responsive */

/* ════════════════════════════════════════════════════════════
   CARRIERES — Responsive hero full-width centré
════════════════════════════════════════════════════════════ */

/* Grille métiers : 2 col → 1 col sous 1100px */
@media (max-width: 1100px) {
  .careers-page .careers-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero : typo + padding sous 860px */
@media (max-width: 860px) {
  .carr-hero-h1 {
    font-size: clamp(40px, 10vw, 72px);
    letter-spacing: -.055em;
  }
  .carr-hero-content {
    padding: 130px 0 64px;
  }
  .carr-hero-sub {
    font-size: clamp(15px, 2.2vw, 19px);
  }
  .careers-page .careers-local-card {
    align-items: flex-start;
  }
}

/* Hero : mobile standard */
@media (max-width: 640px) {
  .carr-hero-h1 {
    font-size: clamp(32px, 11vw, 54px);
    letter-spacing: -.045em;
    line-height: .96;
  }
  .carr-hero-content {
    padding: 110px 0 48px;
  }
  .carr-hero-sub {
    font-size: 16px;
  }
  .carr-hero-salary {
    flex-direction: column;
    align-items: center;
  }
  .careers-hero-source {
    max-width: none;
    width: 100%;
    text-align: center;
  }
  .careers-page .careers-local-card {
    flex-direction: column;
    border-radius: 22px;
    padding: 22px;
  }
  .careers-page .careers-final {
    border-radius: 28px;
    padding: 54px 22px;
  }
}

/* ============================================================
   MOBILE PREMIUM — Logos & Tickers
   Fix logos disproportionnés sur mobile (BPI, partenaires, etc.)
   Apple-like ultra-premium mobile experience
============================================================ */

/* ── Logos piliers écosystème (home) ──────────────────────────
   pages-home.css force 190×105px !important sans override mobile.
   On réduit à des dimensions proportionnées sur single-column.
────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #home-ecosysteme .home-pillar-logo {
    height: auto !important;
    min-height: 80px !important;
  }
  #home-ecosysteme .home-pillar-logo img {
    width: clamp(100px, 34vw, 150px) !important;
    height: auto !important;
    max-width: clamp(100px, 34vw, 150px) !important;
    max-height: 78px !important;
  }
  #home-ecosysteme .home-pillar-card:nth-child(2) .home-pillar-logo img {
    width: clamp(88px, 28vw, 130px) !important;
    max-width: clamp(88px, 28vw, 130px) !important;
    max-height: 78px !important;
  }
  /* Libère le titre de la hauteur fixe */
  #home-ecosysteme .home-pillar-card h3 {
    min-height: auto !important;
  }
}

/* ── Ticker partenaires home ──────────────────────────────────
   gap 3rem trop large + logos 44px OK mais items min-width 140px
────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .ticker-track {
    gap: 1.75rem;
  }
  #home-partenaires img {
    max-height: 30px;
    max-width: 110px;
  }
  #home-partenaires .ticker-item {
    min-width: 100px;
    min-height: 50px;
    padding: 6px 10px;
  }
  /* Academy partner ticker */
  .acad-partner-ticker .ticker-item {
    min-width: 120px;
  }
  .acad-partner-ticker img {
    max-height: 30px;
    max-width: 110px;
  }
}

/* ── Logo glass cards (marquee partenaires L48, home, etc.) ───
   clamp(150px, 14vw, 220px) → 150px floor trop large sur 390px
────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .logo-glass-card {
    width: clamp(108px, 26vw, 170px);
    height: clamp(58px, 15vw, 88px);
    padding: 14px 16px;
    border-radius: 18px;
  }
  .logo-glass-card img {
    max-height: 30px;
  }
  .logo-marquee-content {
    gap: clamp(10px, 3vw, 20px);
  }
  /* Fade edges plus étroits sur mobile pour laisser voir les logos */
  .logo-marquee-fade {
    width: min(12vw, 60px);
  }
}

/* ── Hero padding fine-tuning 390px ──────────────────────────
   Assure que la nav fixe (64px) ne cache pas le début du contenu
────────────────────────────────────────────────────────────── */
@media (max-width: 390px) {
  .home-hero-content {
    padding: 92px 0 40px !important;
  }
  .home-hero h1 {
    font-size: clamp(30px, 10.5vw, 42px) !important;
  }
  .home-section,
  .home-section-dark,
  .home-manifest {
    padding: 56px 0;
  }
  /* Réduit l'espace logo pilier au strict minimum */
  #home-ecosysteme .home-pillar-logo {
    min-height: 70px !important;
  }
  #home-ecosysteme .home-pillar-logo img {
    max-height: 64px !important;
  }
}

/* ── Academy hero 390px ───────────────────────────────────── */
@media (max-width: 390px) {
  .acad-hero-grid {
    padding: 92px 0 40px !important;
  }
  .acad-hero h1 {
    font-size: clamp(30px, 10.5vw, 42px) !important;
  }
  .acad-section,
  .acad-matrix,
  .acad-ambition,
  .acad-final-cta {
    padding: 56px 0;
  }
}

/* ── Tous les héros 390px ─────────────────────────────────── */
@media (max-width: 390px) {
  .carr-hero-content {
    padding: 88px 0 40px !important;
  }
  .carr-hero-h1 {
    font-size: clamp(28px, 10vw, 40px) !important;
  }
  /* Mentor IA */
  .mentor-refresh-hero {
    padding: 90px 0 36px !important;
  }
  .mentor-hero-title {
    font-size: clamp(2rem, 10.5vw, 3rem) !important;
  }
  .mentor-risk-section,
  .mentor-response-section,
  .mentor-training-section,
  .mentor-uses-section,
  .mentor-access-section,
  .mentor-final-cta {
    padding: 3.25rem 0 !important;
  }
}
/* ════════════════════════════════════════════════════════════
   END MOBILE PREMIUM
════════════════════════════════════════════════════════════ */

/* ============================================================
   MOBILE HARDENING — 2026-06
   Couche finale commune : largeur viewport, navigation, CTA,
   formulaires et safe areas.
   ============================================================ */
@media (max-width: 768px) {
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    scroll-padding-top: 76px;
  }

  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  main,
  section,
  header,
  footer,
  .container,
  .home-shell,
  .acad-shell,
  .form-shell,
  .mentor-shell,
  .adv-shell,
  .carr-shell,
  .l48-shell {
    max-width: 100%;
    min-width: 0;
  }

  .home-hero-grid,
  .acad-hero-grid,
  .mentor-home-hero-grid,
  .mentor-hero-grid,
  .form-hero-grid,
  .form-hero-dark-grid,
  .carr-hero-grid,
  .adv-hero-grid,
  [class*="hero-grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
  }

  .home-hero-grid > *,
  .acad-hero-grid > *,
  .mentor-home-hero-grid > *,
  .mentor-hero-grid > *,
  .form-hero-grid > *,
  .form-hero-dark-grid > *,
  .carr-hero-grid > *,
  .adv-hero-grid > *,
  [class*="hero-grid"] > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .acad-page #acad-equipe > .acad-shell {
    width: min(100% - 28px, 1240px);
  }

  .acad-page #acad-equipe .acad-team-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  .acad-page #acad-equipe .acad-team-card {
    width: 100%;
    min-width: 0;
  }

  h1,
  h2,
  h3,
  p,
  li,
  a,
  button,
  label,
  .hero-title,
  [class*="hero-title"],
  [class*="hero-h1"] {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .home-hero h1,
  .acad-hero h1,
  .mentor-home-hero h1,
  .mentor-hero-title,
  .form-hero-dark-title,
  .carr-hero-h1,
  .adv-hero-title {
    width: 100%;
    max-width: 100% !important;
    font-size: clamp(2rem, 10.5vw, 3.35rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .btn-luxury,
  .home-actions .btn-luxury,
  .mentor-hero-actions .btn-luxury,
  .form-hero-dark-ctas .btn-luxury,
  .carr-hero-actions .btn-luxury {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.25;
  }

  nav {
    position: fixed !important;
    inset: 0 0 auto;
    width: 100vw;
    max-width: 100vw;
    min-height: 64px;
  }

  .nav-top {
    left: 50% !important;
    right: auto !important;
    width: 58px !important;
    transform: translateX(-50%) !important;
  }

  .nav-top .logo-img {
    width: 58px !important;
    height: 64px !important;
  }

  .nav-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 64px;
    padding: 0 12px !important;
  }

  .nav-inner > .row-md-c {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 1002;
    width: 44px;
    height: 44px;
  }

  .hamburger {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 11px;
    border: 1px solid rgba(29, 29, 31, 0.12);
    border-radius: 12px;
    background: rgba(245, 245, 247, 0.96);
    box-shadow: 0 4px 14px rgba(29, 29, 31, 0.08);
    -webkit-tap-highlight-color: transparent;
  }

  .hamburger:focus-visible {
    outline: 3px solid rgba(0, 168, 107, 0.45);
    outline-offset: 2px;
  }

  .mobile-nav {
    top: calc(64px + env(safe-area-inset-top)) !important;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: calc(100dvh - 64px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem max(1rem, env(safe-area-inset-right))
      calc(1rem + env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .sticky-cta {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
  }

  #sticky-cta-root {
    max-width: 100%;
  }

  .sticky-cta .btn-luxury {
    width: auto;
    max-width: min(78vw, 300px);
    min-height: 46px;
    padding-inline: 18px;
    white-space: normal;
  }

  .ath-overlay {
    align-items: flex-end;
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .ath-modal {
    max-width: 100%;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 1.5rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    border-radius: 20px 20px 14px 14px;
    overscroll-behavior: contain;
  }

  .ath-modal-close {
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
  }

  .ath-field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ath-field input,
  .ath-field select,
  .ath-field textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .ath-field textarea {
    min-height: 112px;
  }

  .ath-btn-submit {
    min-height: 50px;
    font-size: 16px;
  }

  img,
  video,
  canvas,
  svg {
    max-width: 100%;
  }

  .home-hero,
  .acad-hero,
  .mentor-home-hero,
  .form-hero-dark,
  .carr-hero-fw,
  .adv-hero {
    min-height: 100svh;
    min-height: 100dvh;
  }
}

@media (max-width: 360px) {
  .home-hero h1,
  .acad-hero h1,
  .mentor-home-hero h1,
  .mentor-hero-title,
  .form-hero-dark-title,
  .carr-hero-h1,
  .adv-hero-title {
    font-size: clamp(1.8rem, 10vw, 2.55rem) !important;
  }

  .sticky-cta .btn-luxury {
    max-width: 70vw;
    font-size: 0.78rem;
  }
}

