/* === 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) * 3);
  background-image: url("images/hyperactivite_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: 23vh;
}

.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: 500;
  font-size: clamp(20px, 3vw, 48px);
  line-height: 1.2;
  display: block;
}

.hyper-title-2 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(20px, 3vw, 48px);
  line-height: 1.2;
  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: 70px !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: #ffffff;
}
*/

.hyper-title-4 {
  position: relative;
  left: 50%;
  transform: translateX(-50%);  /* centre mathématiquement */

  display: inline-block;
  white-space: nowrap;

  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 48px);  /* même taille que L'épreuve silencieuse */
  line-height: 1.15;
  /* color: #63BCDE; */
  color: #ffffff;  
  margin: 0;
  padding: 0;
}

/* === 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: #415AA0;   
  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: "Playfair Display", serif;
}

/* Duguay quote */
.duguay-quote {
  /* font-family: 'Dancing Script', cursive; */
  font-family: Caveat;  
  font-size: 48px;
  line-height: 1.25;
  max-width: 900px;
  margin: -30px auto 30px;
  padding-bottom: 40px;
  /*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: #ffffff;
  font-weight: 700; /* optionnel, si tu veux la mettre en valeur */
}

/* ===== Sous-menu "À propos" : même apparence que apropos.css ===== */
.page-hyperactivite .nav-item.has-submenu .submenu{
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

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

/* ===== Sous-menu "À propos" : texte NOIR sur fond blanc ===== */
.page-hyperactivite .nav-item.has-submenu .submenu{
  background: #fff !important;
}

.page-hyperactivite .nav-item.has-submenu .submenu a{
  color: #000 !important;
}

.hyperactivite-overline {
  display: block;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; /* sans-serif */
  font-size: 0.8em;            /* 50% of main title */
  font-weight: 500;
  /* color: #63BCDE; */              /* bleu */
  color: #1f86b0;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  margin-left: 4px;
}

/* Kill residual gap between overline and main title */
.hyperactivite-overline {
  padding-bottom: 0 !important;
  line-height: 1;
}

/* Indigo blue highlight sentence */
.hyperactivite-highlight {
  color: #000;   
  font-size: 1.3em;
  margin-bottom: 10px;
}

.hyperactivite-bullet {
  color: #ffffff;   
}

@media (max-width: 900px){

  #hyperactivite > .rail-wrap{
    width: 100%;
    max-width: 100%;
  }

  #hyperactivite .hyper-body{
    max-width: none;
    width: 100%;
    padding: 0;
  }

}