/* =========================================================
   SALTITUDE — contact.css (page Contact)

   SOMMAIRE
     1. Base de la page
     2. Menu de navigation
     3. Titre
     4. Formulaire de contact
     5. Pied de page (footer)
     6. Responsive (adaptation aux tailles d'écran)
   ========================================================= */


/* =========================================================
   1. BASE DE LA PAGE
   ========================================================= */

/* Les tailles incluent les marges intérieures et bordures */
* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  overflow-x: clip;
}

/* Police, image de fond, et mise en colonne pour coller le footer en bas */
body {
  font-family: "Cabinet Grotesk", sans-serif;
  font-weight: 900;
  background: url("../images/background.jpg") center / cover fixed no-repeat;
  color: #1a1a1a;
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}


/* =========================================================
   2. MENU DE NAVIGATION
   ========================================================= */

/* Barre blanche fixée en haut de l'écran */
nav {
  position: fixed;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  padding: 0 2rem;
  background-color: white;
  width: 100%;
  border-top: 2px solid #000;
  border-bottom: none;
}

/* Trait décoratif sous le menu */
nav .nav-trait {
  position: absolute;
  left: -2rem;
  top: 100%;
  width: calc(100% + 4rem);
  height: 5rem;
  z-index: 10;
  object-fit: cover;
  object-position: center 45%;
  pointer-events: none;
  transform: translateY(-10%) rotate(180deg);
}

/* Logo en haut à gauche */
nav .logo {
  position: relative;
  z-index: 3;
  height: 100%;
  width: auto;
  bottom: 0.25rem;
  left: -0.5rem;
}

/* --- Liens du menu --- */

#mobile-menu {
  position: relative;
  z-index: 3;
  margin-left: auto;
}

/* --- Boutons de langue FR / EN --- */

.lang-switch {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  margin-left: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid #290fff;
}

/* Les réglages margin/width/border-radius/align-self annulent
   le style des boutons du formulaire (section 4) */
.lang-switch button {
  background: none;
  border: none;
  padding: 0 0.4rem;
  cursor: pointer;
  font-family: inherit;
  color: #290fff;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  opacity: 0.4;
  margin: 0;
  width: auto;
  border-radius: 0;
  align-self: auto;
}

.lang-switch button:hover {
  opacity: 0.7;
  background: none;
}

/* Langue actuellement choisie */
.lang-switch button.active {
  opacity: 1;
}

/* --- Liste des liens (Accueil, À propos, Contact) --- */

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #290fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
}

nav ul li a:hover {
  opacity: 0.7;
}

/* --- Bouton burger (caché sur ordinateur, visible sur mobile) --- */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin-right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 4;
}

/* Les 3 traits du burger */
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #290fff;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Quand le menu est ouvert, les 3 traits forment une croix */
.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   3. TITRE ("Nous contacter")
   ========================================================= */

h1 {
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 2rem 1rem;
  font-size: 2.2rem;
  color: #fff;
  text-transform: uppercase;
  margin-top: 10rem;
}


/* =========================================================
   4. FORMULAIRE DE CONTACT
   ========================================================= */

/* Le formulaire : une colonne centrée */
form {
  flex: 1;
  width: min(90%, 45rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

/* Ligne Nom + Prénom côte à côte */
.row {
  display: flex;
  gap: 1.25rem;
}

/* Un champ du formulaire */
.field {
  display: flex;
  flex-direction: column;
}

/* Dans la ligne Nom + Prénom, les deux champs ont la même largeur */
.row .field {
  flex: 1;
}

label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 0;
  min-height: 3.25rem;
  font-size: 0.95rem;
  color: #fff;
  background: transparent;
}

/* --- Zones de saisie : simple trait blanc en dessous --- */

input,
textarea {
  display: flex;
  justify-content: start;
  background: transparent;
  border: none;
  border-bottom: 2px solid #fff;
  font: inherit;
  color: #fff;
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0;
  outline: none;
  border-radius: 0;
  transition: border-bottom-color 0.2s ease;
}

/* Le trait devient rose quand on clique dans le champ */
input:focus,
textarea:focus {
  border-bottom-color: #fca0fa;
}

/* --- Zone du message (plus haute) --- */

.field.message label {
  align-items: flex-start;
  height: 10rem;
}

textarea {
  resize: none;
  flex: 1;
  min-height: 0;
  width: 100%;
  font-family: inherit;
  overflow-y: auto;
}

/* --- Textes d'aide dans les champs ("Nom", "Email"...) --- */

input::placeholder,
textarea::placeholder {
  color: #fff;
  opacity: 0.9;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

/* Le texte d'aide disparaît quand on clique dans le champ */
input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent;
}

/* --- Bouton "Envoyer" (rose, bleu au survol) --- */

button {
  align-self: center;
  margin-top: 0.5rem;
  padding: 0.75rem 2rem;
  background: #fca0fa;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #290fff;
}


/* =========================================================
   5. PIED DE PAGE (FOOTER)
   Grille en 3 colonnes : (vide) | copyright | icônes
   ========================================================= */

footer {
  position: relative;
  z-index: 1;
  background-color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 4rem;
  padding: 1rem;
  color: #000;
  font-weight: bold;

  .adress {
    padding: 0;
    text-align: left;
  }
  .mail {
    padding: 0;
    text-align: left;
  }
}

/* Colonne centrale : copyright */
.right {
  grid-column: 2;
  justify-self: center;
  align-self: center;
}

.right p {
  margin: 0;
  text-align: center;
}

.legal {
  display: flex;
  justify-content: center;
  color: #000;
}

footer > section .right {
  grid-column: 2;
}

/* Trait décoratif au-dessus du footer */
footer > .footer-trait,
footer > .trait {
  position: absolute;
  left: -2rem;
  top: 0;
  width: calc(100% + 4rem);
  height: 5rem;
  z-index: 2;
  object-fit: cover;
  object-position: center 45%;
  pointer-events: none;
  transform: translateY(-90%);
}

footer > section {
  position: relative;
  z-index: 3;
}

footer article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer article p {
  margin: 0;
  line-height: 1.4;
}

/* Colonne droite : petites icônes des réseaux sociaux */
.pictos {
  display: flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
}

.pictos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 5rem;
  line-height: 0;
  border-radius: 50%;
}

.pictos a img {
  display: block;
  width: 1.875rem;
  height: 1.875rem;
  object-fit: contain;
}


/* =========================================================
   6. RESPONSIVE (adaptation aux tailles d'écran)
   ========================================================= */

/* ---------------------------------------------------------
   Tablette (1024px et moins)
   --------------------------------------------------------- */
@media (max-width: 64rem) {
  /* Menu un peu plus compact */
  nav {
    padding-inline: 1.5rem;
  }

  .lang-switch {
    margin-left: 1.1rem;
    padding-left: 1.1rem;
  }

  h1 {
    margin-top: 9rem;
  }

  form {
    width: min(92%, 45rem);
  }
}


/* ---------------------------------------------------------
   Mobile (768px et moins)
   --------------------------------------------------------- */
@media (max-width: 48rem) {
  body {
    overflow-x: hidden;
  }

  /* --- Menu : passage au burger --- */

  nav {
    padding-inline: 1rem;
  }

  nav ul {
    gap: 0.6rem;
  }

  nav ul li a {
    font-size: 0.65rem;
  }

  /* Le burger devient visible */
  .burger {
    display: flex;
    order: 2;
  }

  .lang-switch {
    margin-left: auto;
    margin-right: 1rem;
    padding-left: 0;
    border-left: none;
  }

  /* Menu déroulant, fermé par défaut */
  #mobile-menu {
    margin-left: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    border-bottom: 2px solid #000;
    transition: max-height 0.3s ease;
    z-index: 9;
  }

  /* Menu déroulant ouvert (après clic sur le burger) */
  #mobile-menu.open {
    max-height: 20rem;
  }

  /* Liens empilés verticalement */
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
  }

  nav ul li a {
    font-size: 0.9rem;
  }

  nav .nav-trait {
    left: -1rem;
    width: calc(100% + 2rem);
    height: 3rem;
    transform: translateY(-60%);
  }

  /* --- Titre --- */

  h1 {
    margin-top: 8rem;
    font-size: 1.5rem;
  }

  /* --- Formulaire : Nom et Prénom l'un sous l'autre --- */

  .row {
    flex-direction: column;
    gap: 1.25rem;
  }

  form {
    flex: 0 0 auto;
    gap: 1.25rem;
    padding-bottom: 2rem;
  }

  label {
    flex-wrap: wrap;
  }

  /* --- Footer sur une seule colonne, centré --- */

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
  }

  .right,
  .pictos {
    grid-column: 1;
  }

  .pictos {
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .pictos a {
    width: 3.5rem;
    height: 3.5rem;
  }

  .pictos a img {
    width: 1.5rem;
    height: 1.5rem;
  }

  footer > .footer-trait,
  footer > .trait {
    left: -1rem;
    width: calc(100% + 2rem);
    height: 3rem;
    transform: translateY(-60%);
  }
}

/* ---------------------------------------------------------
   Petit mobile (480px et moins)
   --------------------------------------------------------- */
@media (max-width: 30rem) {
  h1 {
    font-size: 1.3rem;
  }

  /* Bouton "Envoyer" sur toute la largeur */
  button {
    width: 100%;
  }
}

/* ---------------------------------------------------------
   Ordinateur (1040px et plus)
   --------------------------------------------------------- */
@media (min-width: 65rem) {

  h1 {
    margin-top: 10rem;
    margin-bottom: 2rem;
    font-size: 2.5rem;
  }

  form {
    width: 45rem;
    justify-content: flex-start;
    flex: 0 0 auto;
  }

  /* Footer collé en bas de la page */
  footer {
    margin-top: auto;
  }
}

/* ---------------------------------------------------------
   Grands écrans (1920px et plus, et 960px de haut minimum)
   --------------------------------------------------------- */
@media (min-width: 120rem) and (min-height: 60rem) {
  h1 {
    margin-top: 16rem;
  }

  form {
    flex: 1;
    width: 52rem;
    justify-content: center;
    gap: 3rem;
  }
}

/* ---------------------------------------------------------
   Très grands écrans (2560px et plus, et 960px de haut minimum)
   --------------------------------------------------------- */
@media (min-width: 160rem) and (min-height: 60rem) {
  /* Menu */
  nav {
    height: 6rem;
  }

  nav .logo {
    height: 6rem;
  }

  /* Traits décoratifs du menu et du footer */
  nav .nav-trait,
  footer > .footer-trait,
  footer > .trait {
    width: calc(100% + 5.333rem);
    height: 6.667rem;
  }

  /* Liens du menu et boutons de langue */
  nav ul {
    padding-right: 0.5rem;
    gap: 2rem;
  }
nav ul li a {
  font-size: 1rem;
}
.lang-switch button {
  font-size: 1rem;
}

  /* Titre */
  h1 {
    margin-top: 12rem;
    font-size: 3rem;
  }
}