/* ========================
   GLOBAL
   ======================== */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* ========================
   CONTACT CONTAINER
   ======================== */

.contact-container {
  display: grid;
  grid-template-columns: 60% 1fr;
  height: 100vh;
  background: white;
  box-sizing: border-box;
}

/* ========================
   COLONNE GAUCHE
   ======================== */

.contact-left {
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  overflow: hidden;
}

/* HEADER */

.contact-header {
  background-color: #ffc0cb;
  display: flex;
  align-items: center;
  padding: 2rem 4rem;
}

.contact-header h1 {
  font-family: "Matrimoine", sans-serif;
  font-size: 2.5rem;
  margin: 0;
  color: white;
}

/* ========================
   CONTACT BODY
   ======================== */

.contact-body {
  background-color: #45a3a7;
  position: relative;
  font-family: "Mohave", sans-serif;
  color: white;
}

/* ========================
   STRUCTURE INTERNE
   ======================== */

.rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  grid-template-areas:
    "details equipe"
    "reseau reseau"
    "socials ."
    "newsletter adhesion"
    "mentions mentions";
}

/* ===== ACCROCHE (colonne gauche) ===== */

.details {
  grid-area: details;
  padding: 1rem 4rem;
  position: relative;
}

.contact-title {
  margin: 1.5rem 0 1rem;
  font-family: "Mohave", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: white;
}

.details p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
}

.details::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  right: 0;
  width: 1px;
  background: white;
}

/* ===== COORDONNÉES (colonne droite) ===== */

.equipe {
  grid-area: equipe;
  padding: 1rem 4rem;
}

.contact-infos {
  padding-top: 2.5rem; /* aligné avec le titre de gauche */
  font-size: 1.1rem;
  line-height: 1.5;
}

.contact-label {
  margin: 1.1rem 0 0.25rem;
  font-family: "Mohave", sans-serif;
  font-size: 1em;
  font-weight: 700;
  color: #ffc0cb;
}

.contact-label:first-child {
  margin-top: 0;
}

.contact-infos address {
  font-style: normal;
}

.contact-infos p {
  margin: 0;
}

.contact-infos a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.contact-infos a:hover {
  color: #ffb654;
}

.contact-tels {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-tels li {
  margin-bottom: 0.6rem;
}

/* ===== RESEAU ===== */

.reseau {
  grid-area: reseau;
  padding: 1rem 4rem;
  text-align: justify;
}

.reseau a {
  color: white;
  transition: 0.2s;
}

.reseau a:hover {
  color: #ffc0cb;
}

.reseau img {
  width: 100%;
  mix-blend-mode: multiply;
}

/* ===== SOCIALS ===== */

.socials {
  grid-area: socials;
  padding: 1rem 4rem;
  display: flex;
  justify-content: center;
  gap: 50px;
}

.socials a svg {
  width: 30px;
  height: 30px;
  fill: #ffc0cb;
  transition:
    transform 0.2s,
    fill 0.2s;
}

.socials a:hover svg {
  transform: scale(1.2);
  fill: #ffb654;
}

/* ===== NEWSLETTER + ADHESION ===== */

.newsletter,
.adhesion {
  padding: 1rem 4rem;
  display: flex;
  flex-direction: column;
}

.newsletter {
  grid-area: newsletter;
}

.newsletter button {
  padding: 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  transition: 0.25s;
}

.newsletter button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.06);
}

.adhesion {
  grid-area: adhesion;
}

.adhesion a {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.adhesion a:hover {
  background-color: #ffb654;
  transform: scale(1.06);
}

/* ===== MENTIONS ===== */

.mentions {
  grid-area: mentions;
}

.mentions-link {
  padding: 1rem 4rem;
  font-size: 15px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

.mentions-link:hover {
  color: #ffb654;
}

/* ========================
   PANNEAU MENTIONS FULLSCREEN
   ======================== */

#mentions-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.6s ease;
  z-index: 5;
}

#mentions-panel.is-open {
  transform: translateX(0);
}
.mentions-content {
  position: absolute;
  inset: 0;
  padding: 80px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: #45a3a7;
  text-align: justify;
  box-sizing: border-box;
  z-index: 1;
}

.close-mentions {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  z-index: 20;
}

/* Mentions légales : texte rose, titres inchangés (bleus) */
#mentions-panel .mentions-content p,
#mentions-panel .mentions-content li,
#mentions-panel .mentions-content strong,
#mentions-panel .mentions-content em,
#mentions-panel .mentions-content a {
  color: #ffc0cb;
}
/* ========================
   COLONNE DROITE (MAP)
   ======================== */

.contact-right {
  display: flex;
  height: 100%;
}

.map-contact {
  width: 100%;
  height: 100%;
}

.map-contact object {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* ========================
   RESPONSIVE MOBILE
   ======================== */

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .contact-right {
    display: none;
  }

  .rows {
    display: flex;
    flex-direction: column;
  }

  .details,
  .equipe,
  .reseau,
  .socials,
  .newsletter,
  .adhesion,
  .mentions-link {
    padding: 1.2rem 1.5rem;
  }

  .details::after {
    display: none;
  }

  .contact-title {
    margin-top: 0;
  }

  .socials {
    justify-content: center;
    gap: 2.5rem;
  }

  .contact-header h1 {
    font-size: 2rem;
  }

  #mentions-panel {
    position: fixed;
    inset: 0;
    height: 100dvh;
    transform: translateX(100%);
    z-index: 9999;
  }

  #mentions-panel.is-open {
    transform: translateX(0);
  }
}