/* ===== 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%;
  }
}

/* ===== Bandeau Contact ===== */
.contact-band {
  width: 100vw;
  background: #ebadff; /* même couleur que FAQ */
  padding: 80px 0;
  text-align: center;
}

.contact-band h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #000;
}

/* ===== Section contact ===== */
.contact-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 8% 100px;
}

.contact-intro p {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 50px;
  color: #000;
}

/* ===== Formulaire ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row {
  display: flex;
  gap: 30px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 16px;
  margin-bottom: 8px;
}

.form-group label span {
  font-weight: normal;
  font-size: 14px;
  color: #555;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #000;
  background: transparent;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

/* ===== Bouton ===== */
.form-actions {
  text-align: center;
  margin-top: 20px;
}

.btn-submit {
  padding: 14px 40px;
  font-size: 16px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-submit:hover {
  opacity: 0.8;
}

@media (max-width: 700px) {
  .form-row {
    flex-direction: column;
  }

  .contact-main {
    padding: 60px 6% 80px;
  }
}


/* ===== 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;
}

/* ===== Contact direct (téléphone) ===== */
.contact-direct {
  margin-top: 18px;
  margin-bottom: 35px;
}

.contact-direct-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.4;
}

.contact-direct-phone {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 24px;
}

.contact-direct-phone a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
}

.contact-direct-phone a:hover {
  opacity: 0.75;
}

/* ===== Téléphones en 2 colonnes (label / numéro) ===== */
.contact-direct-phones {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 30px;
  row-gap: 14px;
  margin: 20px 0 30px;
  align-items: center;
}

.contact-phone-label {
  font-size: 20px;
  color: #000;
}

.contact-phone-number {
  font-family: sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #000;
  margin-left: 50px;
}

/* Le hero ne sert ici qu’à porter le menu : on le réduit à la hauteur du header */
.page-maggy .hyper-hero{
  height: var(--header-height) !important;
  min-height: var(--header-height) !important;
}

.contact-main {
  max-width: 1400px;
}

/* ===== Labels cachés (accessibilité) ===== */
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* ===== Champs "underline only" ===== */
.contact-form .form-group input,
.contact-form .form-group textarea{
  border: none !important;
  border-bottom: 1px solid #000 !important;
  background: transparent !important;

  padding: 12px 2px !important;
  font-size: 16px;
  outline: none !important;

  width: 100%;
  border-radius: 0 !important;
}

/* Placeholder */
.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder{
  color: #444;
  opacity: 1;
}

/* Focus : ligne un peu plus marquée */
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus{
  border-bottom-width: 2px !important;
}

/* Pour éviter que textarea ressemble à une boîte */
.contact-form .form-group textarea{
  resize: vertical;
}

.contact-band {
  background-image: url("images/contact_header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* hauteur du bandeau (ajustable) */
  min-height: 220px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.contact-band h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hyper-title-1 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(20px, 3vw, 48px);
  line-height: 1.2;
  display: block;
}

@media (max-width: 700px) {
  .contact-direct-phones {
    grid-template-columns: max-content max-content;
    column-gap: 18px;
  }

  .contact-phone-number {
    margin-left: 0;
    white-space: nowrap;
    font-size: 18px;
  }

  .contact-phone-label {
    font-size: 18px;
  }
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

.page-maggy {
  background: #f2eeeb;
}

.page-maggy .site-footer {
  margin-bottom: 0 !important;
}

.page-maggy::after {
  content: none !important;
}

.contact-main {
  padding: 80px 8% 60px;
}

@media (max-width: 700px) {
  .contact-main {
    padding: 60px 6% 40px;
  }
}

/* Évite le faux espace blanc sous le footer en mobile */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  background: #f2eeeb !important;
  overflow-x: hidden !important;
}

/* Le 100vw peut créer un débordement mobile */
.contact-band {
  width: 100% !important;
}

/* Le footer ferme visuellement la page */
.page-maggy .site-footer {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Sécurité : aucun pseudo-élément après la page */
body::after,
.page-maggy::after {
  display: none !important;
  content: none !important;
}

.contact-band {
  width: 100%;
}

@media (max-width: 700px) {
  html,
  body {
    height: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background: #f2eeeb !important;
  }

  body.page-maggy {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100dvh !important;
  }

  .contact-main {
    flex: 1 0 auto !important;
    padding-bottom: 40px !important;
  }

  .site-footer {
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
  }

  .site-footer,
  .footer-meta,
  .footer-copy {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}

.contact-alert {
  text-align: center;
  padding: 18px 20px;
  margin-bottom: 30px;
  font-size: 16px;
  border-radius: 4px;
}

.contact-alert.success {
  background: #e6f4ea;
  color: #1e6b3a;
}

.contact-alert.error {
  background: #fdecea;
  color: #a52828;
}
