/* ===== 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: #63BCDE;              /* 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: #63BCDE;              /* 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: #63BCDE;              /* 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;   
}

/* =========================================
   Card de login sous .hyper-hero
========================================= */

.connexion-login-section{
  padding: 34px 0 72px;
}

.connexion-login-card{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);

  padding: 34px 36px 36px;
  color: #000;
  overflow: hidden;
}

.connexion-login-overline{
  display: block;
  margin: 0 0 12px 0;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #63BCDE;
  text-transform: uppercase;
}

.connexion-login-title{
  margin: 0 0 14px 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  color: #000;
}

.connexion-login-intro{
  margin: 0 0 24px 0;
  max-width: 62ch;

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

.connexion-login-form{
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.connexion-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.connexion-field label{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

.connexion-field input{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;

  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  color: #000;
  font: inherit;
  line-height: 1.3;
  border-radius: 0;
  box-shadow: none;
}

.connexion-field input:focus{
  outline: none;
  border-color: #000;
}

.connexion-login-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.connexion-remember{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #000;
}

.connexion-forgot-link{
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}

.connexion-login-actions{
  padding-top: 6px;
}

.connexion-submit-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 220px;
  max-width: 100%;
  padding: 14px 22px;

  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.connexion-submit-btn:hover{
  background: #111;
}

/* sécurité anti-débordement */
.connexion-login-section .maggy-rail,
.connexion-login-card,
.connexion-login-form,
.connexion-field{
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px){
  .connexion-login-section{
    padding: 22px 0 48px;
  }

  .connexion-login-card{
    padding: 22px 20px 24px;
  }

  .connexion-login-title{
    font-size: 32px;
  }

  .connexion-login-intro{
    font-size: 17px;
  }

  .connexion-submit-btn{
    width: 100%;
    min-width: 0;
  }
}

.connexion-login-card{
  width: 100%;
  max-width: 520px;   /* ← moitié environ */
  margin: 0 auto;     /* ← centre la card */

  box-sizing: border-box;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);

  padding: 34px 36px 36px;
  color: #000;
  overflow: hidden;
}

.connexion-alert{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  margin: 0 0 18px 0;
  font-size: 14px;
  line-height: 1.5;
}

.connexion-alert-error{
  background: #FDECEC;
  border: 1px solid #E5A9A9;
  color: #7A1F1F;
}

.connexion-alert-success{
  background: #EDF8EE;
  border: 1px solid #A9D5AE;
  color: #1E5F2A;
}

.connexion-logged-box{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.connexion-logged-text{
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
}

.connexion-forgot-block{
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(0,0,0,0.10);
}

.connexion-forgot-title{
  margin: 0 0 16px 0;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  line-height: 1.15;
  color: #000;
}

.connexion-forgot-form{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.connexion-mock-note{
  margin: 16px 0 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0,0,0,0.68);
}

.connexion-form-wrapper{
  position: relative;
}

.connexion-alert-floating{
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  z-index: 10;
  transform: translateY(-100%);
}

.connexion-alert-error{
  background: #FDECEC;
  border: 1px solid #E5A9A9;
  color: #B00020;
}

.connexion-alert-success{
  background: #EDF8EE;
  border: 1px solid #A9D5AE;
  color: #1E5F2A;
}

.connexion-form-wrapper{
  position: relative;
  padding-top: 44px; /* réserve la place du message */
}

.connexion-alert{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.connexion-alert-floating{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.connexion-alert-error{
  background: #FDECEC;
  border: 1px solid #E5A9A9;
  color: #B00020;
}

.connexion-alert-success{
  background: #EDF8EE;
  border: 1px solid #A9D5AE;
  color: #1E5F2A;
}

.connexion-login-form{
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.connexion-form-wrapper{
  position: relative;
  margin-top: 28px;     /* espace entre l’intro et le formulaire */
  padding-top: 58px;    /* réserve la hauteur du message flottant */
}

.connexion-alert{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.connexion-alert-floating{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.connexion-alert-error{
  background: #FDECEC;
  border: 1px solid #E5A9A9;
  color: #B00020;
}

.connexion-alert-success{
  background: #EDF8EE;
  border: 1px solid #A9D5AE;
  color: #1E5F2A;
}

.connexion-login-intro{
  margin: 0 0 70px 0;
}

html, body{
  height: 100%;
}

body.page-connexion{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* le contenu prend tout l’espace dispo */
.page-main{
  flex: 1;
}

body.page-maggy.page-connexion{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-maggy.page-connexion .page-main{
  flex: 1;
}

/* ===== FIX FOOTER BAS SANS <main> ===== */

html, body{
  height: 100%;
}

body.page-maggy.page-connexion{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* on pousse le footer vers le bas */
.site-footer{
  margin-top: auto;
}

body.page-maggy.page-connexion .connexion-login-section{
  margin-top: 80px;
}

.connexion-login-section{
  margin-top: 100px; /* ajuste ici */
}

body.page-maggy.page-connexion .connexion-login-section{
  margin-top: 80px;
}

.connexion-login-section{
  margin-top: clamp(40px, 6vw, 100px);
}

.connexion-forgot-button{
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.connexion-forgot-button:focus,
.connexion-forgot-button:focus-visible{
  outline: none;
}

.connexion-forgot-button{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font: inherit !important;
  color: #000 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
}

.connexion-forgot-button:hover{
  background: transparent !important;
  color: #000 !important;
}

.connexion-forgot-button:focus,
.connexion-forgot-button:focus-visible,
.connexion-forgot-button:active{
  outline: none !important;
  background: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
}

.connexion-hidden{
  display: none !important;
}

.connexion-alert-slot {
  min-height: 52px;
  margin: 0 0 18px 0;
}

.connexion-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.connexion-alert-error {
  background: #fdecec;
  border-color: #f3b5b5;
  color: #8f1f1f;
}

.connexion-alert-success {
  background: #ecf8ef;
  border-color: #b9e2c2;
  color: #1f6b35;
}

