/* ===== Page Maggy ===== */

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

/* Header flottant au-dessus du bandeau */
.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;
  top: 0;
  left: 0;
  right: 0;
  background: none !important;
  z-index: 50;
}

/* Ligne sous le menu (on force noir sur cette page) */
.site-header::after {
  border-bottom-color: #000 !important;
}

/* ===== Bandeau hero ===== */

: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%;
}

.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 ===== */

.page-main {
  padding-top: 80px;
  padding-bottom: 0px;
  min-height: auto;
}

.hyper-body {
  margin: 0;
  text-align: left;

  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: none;
}

/* Titre principal */
.hyper-title-3{
  font-family: "Playfair Display", serif !important;
  font-weight: 700;
  line-height: 1.1 !important;
  display: block;
  text-align: left !important;

  /* version “À propos : titre principal réduit de 20%” (tes valeurs) */
  font-size: 68px !important;
}

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

/* Mobiles */
@media (max-width: 900px){
  .page-main{ padding-top: 40px; }
  .hyper-body{
    font-size: 18px !important;
    padding-inline: 8%;
  }
}

/* ===== Menu en noir sur la page Maggy ===== */
.page-maggy .site-header .brand,
.page-maggy .site-header .site-nav a,
.page-maggy .site-header .btn-login,
.page-maggy .site-header .btn-login-standalone {
  color: #000 !important;
}

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

/* ===== Connexion inversé (fond noir / texte blanc) ===== */
.page-maggy .site-header #primary-nav.site-nav a.btn-login,
.page-maggy .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;
  box-shadow: none !important;
  text-decoration: none !important;
}

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

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

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

.page-maggy .nav-item.has-submenu .submenu a{
  padding-left: 6px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  display: block;
}

/* ===== Quote block ===== */
.quote-section {
  text-align: center;
  padding: 80px 0 150px;
  font-family: "Playfair Display", serif;
}

.duguay-quote {
  font-family: 'Dancing Script', cursive;
  font-size: 48px;
  line-height: 1.25;
  max-width: 1200px;
  margin: 0 auto 15px;
  color: #4D5699;
  letter-spacing: 0.5px;
  text-align: center;
}

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



/* =========================
   Maggy – Section 2 colonnes (largeur = menu)
   - 2 colonnes 50/50
   - gauche: image full + texte superposé
   - droite: texte noir
========================= */

.maggy-two-cols{
  margin-top: 60px;
}

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

.maggy-grid{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% / 50% */
  gap: 28px;
  align-items: start;
}

/* LEFT */
.maggy-left{
  position: relative;
  width: 100%;
  overflow: hidden;
}

.maggy-photo{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /*aspect-ratio: 1 / 1;*/ /* carré (retire si tu veux une autre forme) */
}

/* Overlay texte sur la photo */
.maggy-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.maggy-overlay-text{
  color: #000;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(20px, 2.3vw, 34px);
  line-height: 1.1;
  text-align: center;
  padding: 18px 20px;
  background: rgba(242, 238, 235, 0.65); /* léger voile pour lisibilité */
}

/* RIGHT */
.maggy-right{
  color: #000;
}

.maggy-title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.1;
  font-size: 48px;
  margin: 0 0 18px 0;
}

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

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

.maggy-title{
  margin: 0 0 20px 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

.maggy-subtitle{
  margin: 36px 0 20px 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
}

.maggy-signature{
  margin-top: 42px;
  margin-left: 350px;
  font-size: 24px;
  font-weight: 400;
}

.maggy-list{
  margin: 10px 0 0 0;
  padding-left: 1.2em;
}

.maggy-list li{
  margin: 0 0 8px 0;
}

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

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

  .maggy-title{
    font-size: 32px;
  }

  .maggy-text{
    font-size: 17px;
  }
}

/* ===== Overlay texte : coin supérieur gauche, sans fond, +100% ===== */

.maggy-overlay{
  position: absolute;
  inset: 0;
  display: block;          /* plus de centrage */
  pointer-events: none;
}

.maggy-overlay-text{
  position: absolute;
  top: 22px;               /* marge depuis le haut */
  left: 28px;              /* marge depuis la gauche */

  background: none !important;   /* aucun cadre / fond */
  padding: 0 !important;

  color: #000;
  font-family: "Playfair Display", serif;
  font-weight: 700;

  /* +100% par rapport à avant */
  font-size: clamp(40px, 4.6vw, 58px);

  line-height: 1.05;
  text-align: left;
}

/* Signature : nom manuscrit */
.maggy-signature-name{
  font-family: 'Dancing Script', cursive;
  font-size: 1.4em;        /* léger accent, ajustable */
  line-height: 1.1;
  display: inline-block;
  margin: 28px 0 0 110px;
  color: #1f86b0;              /* bleu */
}

.maggy-first-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: #1f86b0;              /* bleu */
  letter-spacing: 0.04em;
  margin-top: 0px;
  margin-bottom: 15px;
  margin-left: 3px;
}

.maggy-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: #1f86b0;              /* bleu */
  letter-spacing: 0.04em;
  margin-top: 35px;
  margin-bottom: 15px;
  margin-left: 3px;
}

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

.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: 1100px;
  margin: 0 auto 15px;
  margin-bottom: 30px;
  /*color: #4D5699;*/
  color: #000000;
  letter-spacing: 0.5px;
}

.maggy-bullet {
  color: #415AA0;   
}

.maggy-grid{
  display: grid;
  grid-template-columns: 40% 60%; /* gauche 40% / droite 60% */
  gap: 28px;
  align-items: start;
}

.maggy-right{
  padding-left: 15%;
  padding-right: 15%;
}

.maggy-left-title{
  margin-top: 65px;
}

.maggy-left{
  order: 2;
}

.maggy-right{
  order: 1;
}

.maggy-grid{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% / 50% */
  gap: 28px;
  align-items: start;
}

.maggy-quelques-mots{
  font-size: 56px !important;   /* plus petit que 68px */
  font-weight: 500 !important;  /* plus fin que 700 */
  line-height: 1.2;
  margin-top: 230px;
}

.maggy-right{
  max-width: 800px;
  margin: 0 auto;
  padding-inline: 10px;
}


.maggy-main-title{
  display: block;
  margin-bottom: 25px;
}

.maggy-quelques-mots{
  display: block;
  margin-top: 60px;
  font-size: 42px !important;
  font-weight: 500 !important;
  line-height: 1.2;
}

.maggy-right-text{
  margin-top: 115px;
}

.maggy-right-text + .maggy-signature{
  margin-top: 30px;
}

.maggy-main-title{
  display: block;
  margin-bottom: 25px;
  font-size: 48px !important;
  font-weight: 500 !important;
  line-height: 1.15;
}

@media (max-width: 900px){

  /* On transforme la grille en flex pour contrôler l’ordre */
  .maggy-grid{
    display: flex;
    flex-direction: column;
  }

  /* 1. Bloc principal (texte gauche) */
  .maggy-right{
    order: 1;
  }

  /* 2. Photo */
  .maggy-photo{
    order: 2;
  }

  /* 3. "Quelques mots..." */
  .maggy-quelques-mots{
    order: 3;
  }

  /* 4. Texte + signature de droite */
  .maggy-right-text{
    order: 4;
  }

  .maggy-signature{
    order: 5;
  }

}

@media (max-width: 900px){

  .maggy-signature{
    margin-left: 0 !important;
    text-align: center;
  }

  .maggy-signature-name{
    display: block;
    margin: 12px auto 0 auto;
    text-align: center;
  }

}

@media (max-width: 900px){

  .maggy-signature{
    margin-top: 40px !important; /* ajuste la valeur si besoin */
  }

}

@media (max-width: 900px){

  .maggy-signature-name{
    line-height: 1.3;       /* évite que le bas des lettres soit coupé */
    padding-bottom: 4px;    /* petit buffer de sécurité */
  }

}

.maggy-signature-name{
  line-height: 1.25;
  padding-bottom: 2px;
}