/* ==========================================================================
   Chalet Victory — /contact (FR + EN)
   Bloc « Hero and Form » propre à la page (.framer-moibjd) + FAQ (.framer-p31f81).
   Le formulaire réutilise les classes du partial contact (base.css : .contact__form, .field,
   .field__input, .contact__submit, .contact__hp) : mêmes champs Netlify (name="contact").
   ========================================================================== */

/* ============================================================ HERO + FORMULAIRE */
.ct-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 128px 48px 50px;
}
.ct-hero__container { display: flex; align-items: flex-start; justify-content: center; gap: 64px; width: 100%; max-width: 1590px; }

/* colonne texte (flex 1 0 0 comme Framer : la carte, qui a 24 px de padding, est donc 48 px plus large) */
.ct-hero__content { display: flex; flex: 1 0 0; flex-direction: column; align-items: flex-start; gap: 48px; min-width: 0; }
.ct-hero__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; }
/* badge « Contact » : il porte aussi data-reveal, dont la transition (opacité + transform) écraserait celle du
   survol de .tag (fond brun instantané au lieu du ressort Framer) → on cumule les deux transitions */
html.js .ct-hero__heading .tag[data-reveal] {
  transition: opacity var(--rv-dur) var(--rv-ease) var(--rv-delay, 0s), transform var(--rv-dur) var(--rv-ease) var(--rv-delay, 0s),
              background-color .5s var(--ease-spring), color .5s var(--ease-spring);
}
.ct-hero__title {
  width: 100%;
  max-width: 800px;
  font-family: var(--f-display);
  font-size: 68px;                 /* Framer : 68 / 46 / 49 px (desktop / tablette / mobile) */
  line-height: 1.1em;
  color: var(--c-brown);
  word-break: break-word;
  overflow-wrap: break-word;
}
.ct-hero__text { width: 100%; max-width: 800px; text-wrap: balance; }

/* coordonnées : grille 2 colonnes, 3 rangées min-content (la 3e, vide, ajoute l'écart de 20 px comme Framer) */
.ct-hero__info { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; overflow: hidden; }
.ct-hero__lines { display: grid; grid-template-columns: repeat(2, minmax(50px, 1fr)); grid-template-rows: repeat(3, min-content); grid-auto-rows: min-content; gap: 20px 0; width: 100%; }
.ct-hero__lines dt { min-width: 0; font-family: var(--f-body-bold); font-size: 18px; line-height: 1.4em; color: var(--c-black); white-space: pre; }
.ct-hero__lines dd { min-width: 0; font-size: 18px; line-height: 1.4em; color: var(--c-black-75); word-break: break-word; overflow-wrap: break-word; }
.ct-hero__border { width: 100%; height: 1px; background: rgba(208, 209, 219, .1); }

/* carte du formulaire : image de fond (luminosité 70 %) + panneau vitré centré */
.ct-hero__card {
  position: relative;
  display: flex;
  flex: 1 0 0;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}
.ct-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; filter: brightness(.7); }
.ct-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ct-hero__form { align-self: center; }

/* ======================================================================== FAQ */
.ct-faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 50px 48px 200px;
  overflow: hidden;
  background-color: var(--c-cream);
}
.ct-faq__container { display: flex; flex-direction: column; align-items: center; gap: 96px; width: 100%; max-width: 1590px; }
.ct-faq__head { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.ct-faq__title { width: 100%; max-width: 600px; text-align: center; }
.ct-faq__text { width: 100%; max-width: 600px; text-align: center; text-wrap: balance; }
.ct-faq__acc { gap: 20px; width: 100%; max-width: 800px; }
/* réponses : white-space pre-wrap comme Framer (double espace d'origine « personnel de maison  supplémentaire » conservé) */
.ct-faq__acc .acc__text p { white-space: pre-wrap; }

/* =================================================================== TABLETTE */
@media (max-width: 1199px) {
  .ct-hero { padding: 128px 32px 50px; }
  .ct-hero__container { gap: 32px; }
  .ct-hero__title { font-size: 46px; }
  .ct-hero__card { align-self: auto; }   /* Framer : hauteur du contenu, calée en haut */
  .ct-faq { padding: 50px 32px 200px; }
  .ct-faq__container { gap: 64px; }
}

/* ===================================================================== MOBILE */
/* Framer : section de 1600 px, conteneur en colonne de 697 px centré (contenu qui déborde également en haut
   et en bas), carte du formulaire = 697 px de haut. Reproduit tel quel pour les mêmes positions. */
@media (max-width: 809px) {
  .ct-hero { height: 1600px; padding: 100px 16px; }
  .ct-hero__container { flex-direction: column; justify-content: center; gap: 64px; max-width: 620px; height: 697px; }   /* écart desktop (64) : Framer ne le surcharge qu'en tablette */
  .ct-hero__content { flex: none; align-items: center; width: 100%; }
  .ct-hero__heading { align-items: center; }
  .ct-hero__title { font-size: 49px; }
  .ct-hero__card { flex: none; width: 100%; height: 100%; }
  /* Framer : fond calé à gauche sur 358 px (right: unset), rogné par la carte sous 390 px. Au-delà, Framer laisse
     la droite de la carte sans image (défaut non repris) : ici l'image couvre toute la carte. */
  .ct-hero__bg { right: auto; width: max(100%, 358px); }
  .ct-faq { padding: 50px 16px 200px; }
  .ct-faq__container { gap: 48px; max-width: 600px; }
}
