/* === Page Hyperactivité === */

/* Même fond que l’index */
body {
  background: #f2eeeb;
  margin: 0;
  padding: 0;
}

/* Header flottant au-dessus du bandeau (comme sur l’index),
   ET jamais sticky/fixed même si le thème essaie */
.site-header,
.site-header.is-sticky,
.site-header.sticky,
.site-header.fixed,
.site-header--fixed,
.site-header[data-sticky],
.site-header[data-fixed] {
  position: absolute !important;   /* clé : défile avec le bandeau */
  top: 0;
  left: 0;
  right: 0;
  background: none !important;
  z-index: 50;
}

/* Ligne sous le menu en blanc */
.site-header::after {
  border-bottom-color: #ffffff !important;
}

/* ===== Bandeau Hyperactivité plein haut ===== */

:root {
  --header-height: 80px; /* valeur de secours, surchargée par le JS global */
}

.hyper-hero {
  position: relative;
  width: 100%;
  height: calc(var(--header-height) * 1.5);
  background-image: url("images/apropos_header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
}

.hyper-hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hyper-hero-rail {
  position: relative;
  height: 100%;
}

/* Titre "Hyperactivité" = même style que hero-title de la home */
.hyper-hero-title {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);

  margin: 0;

  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.5px;

  color: #ffffff;
  text-align: center;
}

/* ===== Contenu principal sous le bandeau ===== */

/* gap réduit sous le texte pour coller les colonnes */
.page-main {
  padding-top: 80px;
  padding-bottom: 0px;
  min-height: 33vh;
}

.hyper-body {
  margin: 0 auto;
  text-align: center;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.33;
  color: #000;

  font-size: clamp(17px, 3vw, 35px);
  max-width: 53ch;
}

/* 901–1449px : copie la formule des .card-title */
@media (min-width: 901px) and (max-width: 1449px){
  .hyper-body{
    font-size: calc((36px + (34 * ((100vw - 901px) / 549))) * 0.5) !important;
  }
}

/* ≥1450px : 70px * 0.5 = 35px */
@media (min-width: 1450px){
  .hyper-body{
    font-size: 35px !important;
  }
}

/* Mobiles très étroits */
@media (max-width: 900px){
  /* Espace réduit entre le bandeau et le texte */
  .page-main{
    padding-top: 40px; /* au lieu de 80px */
  }

  .hyper-body{
    font-size: 18px !important;
    padding-inline: 8%;
  }

  /* Titre 30% plus grand que le texte en mobile */
  .hyper-title-3{
    font-size: 1.3em;
  }

  /* Espace entre le paragraphe d'intro et les 2 colonnes */
  .hyper-two-cols{
    margin-top: 30px;
  }
}

/* ===== SECTION 2 COLONNES ===== */

.hyper-two-cols {
  padding-top: 0px !important;
  padding-bottom: 80px;
}

.hyper-columns {
  display: flex;
  gap: 24px;   /* réduit de 40% vs 40px */
  width: 100%;
  justify-content: space-between;
  align-items: stretch;
}

/* Colonnes */
.hyper-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Images */
.hyper-img-box {
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}

.hyper-img {
  width: 100%;
  display: block;
  border-radius: 0 !important;
}

/* Blocs texte sous images : même hauteur + collés à l’image */
.hyper-text-box {
  padding: 30px;
  margin-top: 0;       /* collé à l’image */
  border-radius: 0;    /* coins droits */
  flex: 1;             /* même hauteur pour les deux rectangles */

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  color: #000;
}

/* Blanc */
.hyper-text-white {
  background: #ffffff;
}

/* Saumon */
.hyper-text-salmon {
  background: #f3c1a9;
}

.hyper-title-1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(17px, 3vw, 35px);  /* same as .hyper-body */
  line-height: 1.15;
  display: block;
}

.hyper-title-2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(17px, 3vw, 35px); /* same as .hyper-body */
  line-height: 1.15;
  display: block;
}

/* === Match "Incomprise et dérangeante" to .mission-title .line1 (desktop) === */
.hyper-title-3{
    font-family: "Playfair Display", serif !important;
    font-weight: 700;
    line-height: 1.1 !important;
    font-size: 80px !important; /* EXACT match to mission-title .line1 */
    display: block;
    text-align: center;
}

/* === Responsive scaling identical to mission-title .line1 === */
@media (max-width: 1450px){
  .hyper-title-3{
    font-size: 40px !important;
  }
}

@media (max-width: 1150px){
  .hyper-title-3{
    font-size: 34px !important;
  }
}

@media (max-width: 900px){
  .hyper-title-3{
    font-size: 30px !important;
  }
}

@media (max-width: 700px){
  .hyper-title-3{
    font-size: 26px !important;
  }
}

@media (max-width: 480px){
  .hyper-title-3{
    font-size: 24px !important;
  }
}

/* === Make Hyperactivité banner title match "Ma Mission" line1 === */
.hyper-title-4 {
  font-family: "Playfair Display", serif !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  font-size: 70px !important;     /* identical to .mission-title .line1 */
  
  white-space: nowrap;
  display: block;
  text-align: center;
  color: #f3c1a9;
}

/* === Responsive scaling identical to mission-title .line1 === */
@media (max-width: 1450px){
  .hyper-title-4{
    font-size: 40px !important;
  }
}

@media (max-width: 1150px){
  .hyper-title-4{
    font-size: 34px !important;
  }
}

@media (max-width: 900px){
  .hyper-title-4{
    font-size: 30px !important;
  }
}

@media (max-width: 700px){
  .hyper-title-4{
    font-size: 26px !important;
  }
}

@media (max-width: 480px){
  .hyper-title-4{
    font-size: 24px !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hyper-columns {
    flex-direction: column;
    gap: 50px;
  }
}

/* Ultra-narrow phones (≤ 380px) */
@media (max-width: 450px){
  .hyper-title-4{
    font-size: 20px !important;
  }
}

/* Very narrow phones (≤ 330px — older iPhones, small Androids) */
@media (max-width: 330px){
  .hyper-title-4{
    font-size: 18px !important;
  }
}

/* ===== Bandeau sous les 2 colonnes ===== */
.hyper-banner {
  /* background: #111111; */  /* same as footer */
  background: #4D5699;   
  color: #fff;
  /* 3.9 * 1.25 = 4.875 → +25% par rapport à la version précédente */
  /*height: calc(var(--header-height) * 4.875);*/
  height: calc(var(--header-height) * 5);
  display: flex;
  align-items: center;
  margin-bottom: 110px;   /* gap avant le footer */
  padding-top: 80px;
  padding-bottom: 80px;
}

.hyper-banner-rail {
  width: 100%;
}

/* On force aussi le centrage ici au cas où un style global viendrait l'écraser */
.hyper-banner-text {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-indent: 0 !important;
  width: fit-content;            /* KEY : permet un centrage parfait */
  font-size: 18px;
  line-height: 1.45;  /* comme .hyper-text-box */
}

/* un peu d’air sur petits écrans */
@media (max-width: 600px){
  .hyper-banner {
    height: auto;              /* laisse la hauteur s’adapter au texte */
    padding: 40px 0;
  }
  .hyper-banner-text {
    padding-inline: 8%;
    font-size: 18px;
    line-height: 1.45;  /* comme .hyper-text-box */
  }
}

/* ===== Quote block (same as Nietzsche on index.php) ===== */

.quote-section {
  text-align: center;
  padding: 0 0 40px;
  font-family: Caveat;
}

/* Duguay quote */
.duguay-quote {
  /* font-family: 'Dancing Script', cursive; */
  font-family: Caveat;  
  font-size: 48px;
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto 15px;
  margin-bottom: 30px;
  /*color: #4D5699;*/
  color: #000000;
  letter-spacing: 0.5px;
}

/* Responsive adjustments matching Nietzsche quote */
@media (max-width: 900px){
  .duguay-quote {
    font-size: 38px;
  }
}

@media (max-width: 600px){
  .duguay-quote {
    font-size: 32px;
  }
}

@media (max-width: 600px){
  .hyper-banner {
    height: auto;
    padding: 40px 0;
  }
  .hyper-banner-text {
    padding-inline: 8%;
    font-size: 18px;   /* même taille que .hyper-text-box */
    line-height: 1.45;  /* comme .hyper-text-box */
  }
}

.hyper-highlight{
  color: #f3c1a9;
  font-weight: 700; /* optionnel, si tu veux la mettre en valeur */
}

/* À propos : titre aligné exactement sur le début du menu */
#hyperactivite .hyper-body {
  max-width: none;      /* enlève la contrainte 53ch */
  margin: 0;            /* plus de centrage */
  text-align: left;     /* alignement à gauche */
}

/* À propos : aligner le titre EXACTEMENT comme le menu */
#hyperactivite .hyper-title-3{
  text-align: left !important;
}

/* À propos : enlever toute contrainte de centrage du conteneur */
#hyperactivite .hyper-body{
  margin: 0 !important;
  max-width: none !important;
  text-align: left !important;
}

/* À propos : titre principal réduit de 20% */
#hyperactivite .hyper-title-3{
  font-size: 68px !important;   /* 70px → -20% */
}

/* Responsive : mêmes paliers, -20% partout */
@media (max-width: 1450px){
  #hyperactivite .hyper-title-3{ font-size: 32px !important; } /* 40 → 32 */
}
@media (max-width: 1150px){
  #hyperactivite .hyper-title-3{ font-size: 27px !important; } /* 34 → ~27 */
}
@media (max-width: 900px){
  #hyperactivite .hyper-title-3{ font-size: 24px !important; } /* 30 → 24 */
}
@media (max-width: 700px){
  #hyperactivite .hyper-title-3{ font-size: 21px !important; } /* 26 → ~21 */
}
@media (max-width: 480px){
  #hyperactivite .hyper-title-3{ font-size: 19px !important; } /* 24 → ~19 */
}

/* À propos : menu en noir */
body .site-header .brand,
body .site-header .site-nav a,
body .site-header .btn-login,
body .site-header .btn-login-standalone {
  color: #000 !important;
}

/* Icône burger en noir */
body .site-header .nav-toggle .bar {
  background-color: #000 !important;
}

/* Ligne sous le menu en noir */
body .site-header::after {
  border-bottom-color: #000 !important;
}

/* ===== À propos : menu noir ===== */
body .site-header .brand,
body .site-header .site-nav a:not(.btn-login),
body .site-header .btn-login-standalone {
  color: #000 !important;
}

/* Burger menu noir */
body .site-header .nav-toggle .bar {
  background-color: #000 !important;
}

/* Ligne sous le menu noire */
body .site-header::after {
  border-bottom-color: #000 !important;
}

/* ===== À propos : menu en noir (sauf Connexion) ===== */
.site-header .nav-wrap .site-nav > a {
  color: #000 !important;
}

/* ===== À propos : Connexion inversé (fond noir / texte blanc) ===== */
.site-header .nav-wrap a.btn-login {
  background: #000 !important;
  background-color: #000 !important;

  color: #fff !important;
  -webkit-text-fill-color: #fff !important;

  border: 1px solid #000 !important;
  border-color: #000 !important;

  box-shadow: none !important;
  filter: none !important;
  text-decoration: none !important;
}

/* ===== À propos : Connexion EXACTEMENT inversé (fond noir / texte blanc) ===== */
.page-apropos .site-header .nav-wrap a.btn-login{
  background: #000 !important;
  background-color: #000 !important;

  color: #fff !important;
  -webkit-text-fill-color: #fff !important;

  border: 1px solid #000 !important;
  border-color: #000 !important;

  box-shadow: none !important;
  text-decoration: none !important;
}

/* Si styles.css dessine le bouton via ::before/::after, on les tue */
.page-apropos .site-header .nav-wrap a.btn-login::before,
.page-apropos .site-header .nav-wrap a.btn-login::after{
  content: none !important;
  display: none !important;
  background: transparent !important;
}

/* Hover */
.page-apropos .site-header .nav-wrap a.btn-login:hover{
  background: #111 !important;
  background-color: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ===== À propos : menu texte noir ===== */
.page-apropos .site-header .brand,
.page-apropos .site-header .site-nav a{
  color: #000 !important;
}

/* burger bars en noir aussi (si besoin) */
.page-apropos .site-header .nav-toggle .bar{
  background: #000 !important;
}

/* underline du header en noir (si tu veux cohérent avec texte noir) */
.page-apropos .site-header::after{
  border-bottom-color: #000 !important;
}

/* ===== À propos : Connexion inversé (fond NOIR, texte BLANC) ===== */
/* desktop bouton dans le nav */
.page-apropos .site-header #primary-nav.site-nav a.btn-login{
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 0 !important; /* ton bouton hyperactivite a border:0 */
}

/* mobile bouton standalone */
.page-apropos .site-header a.btn-login-standalone{
  background: #000 !important;
  background-color: #000 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 0 !important;
}

/* ===== À propos : sous-titre "Aspirations" ===== */
.apropos-subtitle{
  display: block;
  margin-top: 1.2em;          /* léger espace sous le titre */
  font-family: inherit;       /* même famille que le texte parent */
  font-weight: 400;
  color: #000;

  /* 40% plus petit que le titre au-dessus */
  font-size: 0.6em;           /* -40% */
  line-height: 1.2;
}




/* =========================
   “More Ways I Can Help” clone
   - top/bottom rules = full viewport
   - inner content constrained to menu rail
========================= */

.mwih{
  position: relative;
  background: transparent;
  margin-top: 28px; /* espace sous “Aspirations” */
}

/* Full viewport lines */
.mwih-fullrule{
  width: 100vw;
  height: 1px;
  background: #000;
  margin-left: calc(50% - 50vw); /* center a 100vw rule in any container */
}

/* Inner rail = EXACT menu span */
.mwih-rail{
  width: var(--header-line-width, 53vw);
  margin-left: var(--header-line-left, 0);
  margin-right: 0;
  padding: 26px 0; /* breathing space between full rules */
  box-sizing: border-box;
}

/* Grid: left titles | right content */
.mwih-grid{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  column-gap: 28px;
  align-items: start;
  position: relative;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Internal top/bottom lines (CONSTRAINED to rail) */
.mwih-grid::before,
.mwih-grid::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  height: 1px;
  background:#000;
}
.mwih-grid::before{ top: 0; }
.mwih-grid::after{ bottom: 0; }

/* Vertical separator (CONSTRAINED to rail) */
.mwih-left{
  padding-right: 22px;
  border-right: 1px solid #000;
}

/* Tabs look */
.mwih-tab{
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 10px 0;
  margin: 0;
  cursor: pointer;

  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: #000;
  font-size: 18px;
  line-height: 1.15;
}

.mwih-tab.is-active{
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Right side panels */
.mwih-panel{ display: none; }
.mwih-panel.is-active{ display: block; }

.mwih-text{
  margin: 0 0 16px 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 28px;
  line-height: 1.55;
  color: #000;
  max-width: 55ch;
}

.mwih-media{
  width: 100%;
  max-width: 520px; /* like the reference: image not absurdly huge */
}

.mwih-media img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mobile */
@media (max-width: 900px){
  .mwih-rail{
    width: calc(100vw - 2 * var(--header-gutter, 24px));
    margin-left: var(--header-gutter, 24px);
    margin-right: var(--header-gutter, 24px);
  }

  .mwih-grid{
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .mwih-left{
    border-right: 0;
    border-bottom: 1px solid #000;
    padding-right: 0;
    padding-bottom: 12px;
  }
}

/* ===== Left column: static titles with separators ===== */

.mwih-left{
  padding-right: 0;
  border-right: 1px solid #000; /* ligne verticale */
  display: flex;
  flex-direction: column;
}

/* Each title row */
.mwih-item{
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.15;
  color: #000;

  padding: 12px 22px 12px 0; /* right padding stops at vertical line */
  margin: 0;

  /* horizontal line between items */
  border-bottom: 1px solid #000;
}

/* Remove last bottom line (comme sur la référence) */
.mwih-item:last-child{
  border-bottom: none;
}

/* Remove top & bottom horizontal lines around the 7 titles block */
.mwih-left{
  border-top: none !important;
  border-bottom: none !important;
}

/* === KILL internal rail-width horizontal lines around the 7 titles (keep full-viewport lines) === */

/* If the lines are borders on the left column */
.mwih-rail .mwih-left{
  border-top: none !important;
  border-bottom: none !important;
}

/* If the lines are drawn by pseudo-elements on the left column */
.mwih-rail .mwih-left::before,
.mwih-rail .mwih-left::after{
  content: none !important;
  display: none !important;
  border: 0 !important;
}

/* If the lines are drawn by pseudo-elements on the rail wrapper */
.mwih-rail::before,
.mwih-rail::after{
  content: none !important;
  display: none !important;
  border: 0 !important;
}

/* If the lines are actual <hr> inside the rail block */
.mwih-rail hr{
  display: none !important;
  border: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

/* Remove ONLY the 2 rail-width horizontal rules (keep the full-viewport ones) */
.mwih-rail,
.mwih-grid,
.mwih-left{
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.mwih-rail::before,
.mwih-rail::after,
.mwih-grid::before,
.mwih-grid::after,
.mwih-left::before,
.mwih-left::after{
  content: none !important;
  display: none !important;
}

/* Safety: if you used <hr> inside rail later */
.mwih-rail hr{ display:none !important; }

/* Double font size of the 6 titles */
.mwih-item{
  font-size: 2em;   /* x2 par rapport à la taille actuelle */
}

/* Remove vertical gap between full-width rules and vertical line */
.mwih{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.mwih-rail{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.mwih-left{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.mwih-left::before{
  top: 0 !important;
  bottom: 0 !important;
}

/* ===== Fix: faire toucher la ligne verticale avec les 2 lignes full-viewport ===== */
:root{ --mwih-v-extend: 18px; } /* augmente à 24px / 30px si besoin */

.mwih-left{
  position: relative;
}

/* On redessine la verticale en pseudo-élément, un peu plus longue */
.mwih-left::before{
  content: "";
  position: absolute;
  left: 0;                 /* collé au bord gauche du bloc titres */
  top: calc(-1 * var(--mwih-v-extend));
  bottom: calc(-1 * var(--mwih-v-extend));
  width: 1px;
  background: #000;
}

/* =========================
   PATCH SAFE (à coller TOUT EN BAS)
   - Fait toucher les 2 full rules (100vw) avec la verticale
   - Sans casser le layout interne
========================= */

/* 26px (mwih-rail padding) + 18px (mwih-grid padding) = 44px */
:root{ --mwih-join: 44px; }

/* 1) On "tire" les règles 100vw vers l'intérieur pour qu'elles arrivent au niveau du contenu */
.mwih .mwih-fullrule-top{
  margin-bottom: calc(-1 * var(--mwih-join)) !important;
}
.mwih .mwih-fullrule-bottom{
  margin-top: calc(-1 * var(--mwih-join)) !important;
}

/* 2) On s’assure que la verticale est bien celle à DROITE de la colonne titres */
.mwih .mwih-left{
  position: relative !important;
  border-right: 1px solid #000 !important;
}

/* 3) On prolonge cette verticale pour qu’elle touche exactement les 2 règles 100vw */
.mwih .mwih-left::after{
  content: "" !important;
  position: absolute !important;
  right: -1px !important;                 /* colle à la border-right */
  top: calc(-1 * var(--mwih-join)) !important;
  bottom: calc(-1 * var(--mwih-join)) !important;
  width: 1px !important;
  background: #000 !important;
  display: block !important;
  pointer-events: none !important;
}

/* =========================
   FIX DEFINITIF : zéro gap entre full rules (100vw)
   et la verticale (séparateur) dans MWIH
   -> à coller TOUT EN BAS du CSS
========================= */

/* 1) On fixe des variables qui matchent tes valeurs actuelles */
.mwih{
  --mwih-rail-pad: 26px;   /* mwih-rail padding vertical */
  --mwih-grid-pad: 18px;   /* mwih-grid padding vertical */
  --mwih-join: calc(var(--mwih-rail-pad) + var(--mwih-grid-pad));
}

/* 2) On ré-impose tes paddings (car tu as plein d’overrides à 0 plus bas) */
.mwih .mwih-rail{
  padding-top: var(--mwih-rail-pad) !important;
  padding-bottom: var(--mwih-rail-pad) !important;
}
.mwih .mwih-grid{
  padding-top: var(--mwih-grid-pad) !important;
  padding-bottom: var(--mwih-grid-pad) !important;
}

/* 3) On neutralise les anciens pseudo-éléments (tu en as plusieurs qui se contredisent) */
.mwih .mwih-left::before{
  content: none !important;
  display: none !important;
}

/* 4) On garde une vraie verticale “normale” sur la droite de la colonne titres */
.mwih .mwih-left{
  position: relative !important;
  border-right: 1px solid #000 !important;
}

/* 5) Et on PROLONGE cette verticale pour qu’elle TOUCHE les 2 full rules (zéro gap) */
.mwih .mwih-left::after{
  content: "" !important;
  position: absolute !important;
  right: -1px !important;                 /* aligné sur border-right */
  top: calc(-1 * var(--mwih-join)) !important;
  bottom: calc(-1 * var(--mwih-join)) !important;
  width: 1px !important;
  background: #000 !important;
  display: block !important;
  pointer-events: none !important;
}

/* =========================
   FIX: verticale trop longue -> on annule l'extension
   (à coller tout en bas)
========================= */

/* On supprime la verticale prolongée que tu as en pseudo-élément */
.mwih .mwih-left::after{
  content: none !important;
  display: none !important;
}

/* On revient à une verticale "normale" (juste la hauteur du bloc) */
.mwih .mwih-left{
  border-right: 1px solid #000 !important;
  position: relative !important;
}

.mwih .mwih-left::before{
  content: none !important;
  display: none !important;
}

/* Réduire de 60% l’espace entre le titre et la ligne horizontale du haut */
#hyperactivite .hyper-body{
  margin-bottom: 0em !important; /* -60% */
}

.mwih{
  margin-top: 11px !important; /* 28px → ~11px (-60%) */
}

/* === COLLER la ligne horizontale au titre (−60%) === */

/* 1. Réduire fortement l’espace SOUS le main */
#hyperactivite.page-main{
  padding-bottom: 0 !important;
}

/* 2. Supprimer toute marge résiduelle du paragraphe */
#hyperactivite .hyper-body{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 3. Remonter la première ligne horizontale */
.mwih-fullrule-top{
  margin-top: 0 !important;
}

/* Réduire de 60% l’espace entre le bloc titre et la 1re ligne horizontale */
.mwih{
  margin-top: 11px !important; /* 28px * 0.4 = 11.2px */
}

/* (Optionnel mais souvent nécessaire) Réduire l'espace interne créé par le sous-titre */
.apropos-subtitle{
  margin-top: 0.5em !important; /* au lieu de 1.2em */
}

#hyperactivite.page-main{ padding-bottom: 0 !important; margin-bottom: 0 !important; }
#hyperactivite .page-rail{ padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* Enlever le gros vide sous "De quelle manière..." sur la page À propos */
.page-apropos #hyperactivite.page-main{
  min-height: auto !important;   /* ou 0 si tu préfères */
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Puis réduire l’espace avant la ligne horizontale du haut */
.page-apropos .mwih{
  margin-top: 11px !important;   /* 28px * 0.4 = ~11px  (-60%) */
}

.page-apropos .mwih{ margin-top: 150px; !important; }

/* MWIH : réduire le texte et ajouter des marges */
.mwih-text{
  font-size: 22px !important;  /* 28px → -30% = 19.6px */
  margin-top: 24px !important;   /* espace au-dessus */
  margin-left: 28px !important;  /* décalage depuis la ligne verticale */
}

/* Le panel doit servir de référence */
#mwih-1{
  position: relative;
}

/* Conteneur image aligné sur le bord droit EXACT du menu */
#mwih-1 .mwih-media{
  position: absolute;
  right: 0;          /* bord droit du rail = bord droit du menu */
  top: 0;            /* ajuste si besoin */
}

/* Image Mickey */
#mwih-1 .mwih-media img{
  width: 200px;
  max-width: 200px;
  height: auto;
  display: block;
}

/* Panel: empile texte puis image, image collée à droite (sans chevauchement) */
#mwih-1.mwih-panel{
  display: flex;            /* override .mwih-panel display when active */
  flex-direction: column;
  align-items: stretch;
}

/* Quand actif */
#mwih-1.mwih-panel.is-active{
  display: flex;
}

/* Conteneur image = pleine largeur, contenu aligné à droite */
#mwih-1 .mwih-media{
  width: 100%;
  margin-top: 270px;         /* espace sous le texte (ajuste si tu veux) */
  display: flex;
  justify-content: flex-end; /* bord droit = bord droit du menu/rail */
}

/* Image Mickey */
#mwih-1 .mwih-media img{
  width: 300px;
  max-width: 300px;
  height: auto;
  display: block;
}

/* === Section "Travailler avec moi" (largeur = menu, 2 colonnes égales) === */
.workwith{
  margin-top: 32px; /* espace sous mwih (ajuste si besoin) */
}

.workwith-rail{
  width: var(--header-line-width, 53vw);
  margin-left: var(--header-line-left, 0);
  margin-right: 0;
  box-sizing: border-box;
}

.workwith-grid{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
  column-gap: 28px;
  align-items: start;
}

/* Titre : même taille que "De quelle manière Sphinx vous accompagne" */
.workwith-title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.1;
  font-size: 64px; /* match #hyperactivite .hyper-title-3 */
  margin: 0 0 18px 0;
}

/* Responsive identique à ton #hyperactivite .hyper-title-3 */
@media (max-width: 1450px){ .workwith-title{ font-size: 32px; } }
@media (max-width: 1150px){ .workwith-title{ font-size: 27px; } }
@media (max-width: 900px){  .workwith-title{ font-size: 24px; } }
@media (max-width: 700px){  .workwith-title{ font-size: 21px; } }
@media (max-width: 480px){  .workwith-title{ font-size: 19px; } }

/* Texte : même style que "Vers l’unicité..." (= .mwih-text) */
.workwith-text{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 28px;   /* garde la même base que .mwih-text (et tes ajustements si tu les as changés) */
  line-height: 1.55;
  color: #000;
  max-width: 60ch;   /* largeur du bloc de texte (modifie ici pour élargir/rétrécir) */
}

.workwith-text p{ margin: 0 0 14px 0; }

.workwith-text ul{
  margin: 0;
  padding-left: 1.1em;
}

.workwith-text li{
  margin: 0 0 8px 0;
}

/* Image carrée qui remplit toute la colonne droite */
.workwith-square{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.workwith-square img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile */
@media (max-width: 900px){
  .workwith-grid{
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
}

.workwith{
  margin-top: 120px;   /* espace clair entre mwih et Travailler avec moi */
}

.workwith-title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.1;
  font-size: 68px;
  margin: 0 0 48px 0;  /* ⬅ espace sous le titre */
}

.workwith-text{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 22px;    /* EXACTEMENT comme .mwih-text */
  line-height: 1.55; /* EXACTEMENT comme .mwih-text */
  color: #000;
  max-width: 60ch;
}


/* Duguay quote */
.duguay-quote {
  /* font-family: 'Dancing Script', cursive; */
  font-family: Caveat;  
  font-size: 48px;
  line-height: 1.25;
  max-width: 1100px;
  margin: 0 auto 15px;
  margin-bottom: 30px;
  /*color: #4D5699;*/
  color: #000000;
  letter-spacing: 0.5px;
}

.workwith-text ul li::marker{
  color: #4D5699; /* même couleur que .duguay-quote */
}

button.btn-more{
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
}

.workwith-btn{
  display: inline-block;
  margin-top: 40px; /* espace sous l’énumération */
}

/* Centre le bouton par rapport à la colonne */
.twm-cta{
  display: flex;
  justify-content: center;
  margin-top: 32px; /* espace sous l’énumération */
}

/* Le titre sert de référence visuelle */
.twm-title{
  display: inline-block; /* ne casse PAS le rendu */
}

/* Conteneur du bouton */
.twm-cta{
  width: fit-content;
  margin-left: auto;
  margin-right: 40px;
  margin-top: -45px;
}

/* ===== Sous-menu "À propos" : +50% hauteur ===== */
.page-apropos .nav-item.has-submenu .submenu{
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.page-apropos .nav-item.has-submenu .submenu a{
  padding-left: 6px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  display: block; /* assure que le padding augmente bien la hauteur */
}

/* === FIX : supprimer UNIQUEMENT la bande blanche sous la ligne du menu === */
.page-apropos .hyper-hero{
  height: var(--header-height) !important; /* plus de surplus blanc */
}

/* ===== Mobile : descendre mickey.jpg pour éviter le chevauchement ===== */
@media (max-width: 900px){
  #mwih-1.mwih-panel.is-active{
    display: flex;
    flex-direction: column;
  }

  #mwih-1 .mwih-text{
    margin-right: 0 !important;
  }

  #mwih-1 .mwih-media{
    position: static !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 32px !important;
  }

  #mwih-1 .mwih-media img{
    width: 220px !important;
    max-width: 70vw !important;
    height: auto !important;
    display: block;
  }

  .workwith{
    margin-top: 48px !important;
  }
}

/* ===== Mobile : espace sous mickey.jpg ===== */
@media (max-width: 900px){
  #mwih-1 .mwih-media{
    margin-bottom: 60px !important; /* ajuste 40 → 60px si tu veux plus d'air */
  }
}

/* ===== Mobile : plus d’espace entre "Du trouble au Don" et le bouton ===== */
@media (max-width: 900px){
  .twm-cta{
    margin-top: 28px !important; /* ajuste 48 → 60px si tu veux plus d’air */
    margin-bottom: 28px !important;
  }
}
